java – maven – 在构建时获取弹出窗口请求权限
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了java – maven – 在构建时获取弹出窗口请求权限,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含4226字,纯文字阅读大概需要7分钟。
内容图文
![java – maven – 在构建时获取弹出窗口请求权限](/upload/InfoBanner/zyjiaocheng/803/f1e751f9946e47a1af776174835b544c.jpg)
我已经新安装了maven并且在构建hello world时,maven一直在向我请求权限,例如“applet正在尝试访问文件的”exists“状态属性……”
似乎这不是一个非常普遍的问题.有没有办法将这些权限授予maven?
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building tms-server 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ tms-server ---
Current policy properties:
mmc.sess_pe_act.block_unsigned: false
window.num_max: 5
jscan.sess_applet_act.sig_trusted: pass
jscan.sess_applet_act.block_all: false
file.destructive.state: disabled
window.num_limited: true
jscan.sess_applet_act.unsigned: instrument
mmc.sess_pe_act.action: validate
jscan.session.daemon_protocol: http
file.read.state: disabled
mmc.sess_pe_act.block_invalid: true
mmc.sess_pe_act.block_blacklisted: false
jscan.session.policyname: QXBwbGV0L0FjdGl2ZVggU2VjdXJpdHkgR2xvYmFsIFBvbGljeSA=
net.bind_enable: false
mmc.sess_cab_act.block_unsigned: false
file.nondestructive.state: disabled
jscan.session.origin_uri:
http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar
mmc.sess_cab_act.action: validate
net.connect_other: false
jscan.session.user_ipaddr: 10.109.50.50
jscan.sess_applet_act.sig_invalid: block
thread.thread_num_max: 8
mmc.sess_cab_act.block_invalid: true
jscan.sess_applet_act.sig_blacklisted: block
net.connect_src: true
thread.thread_num_limited: true
jscan.sess_applet_act.stub_out_blocked_applet: true
mmc.sess_cab_act.block_blacklisted: true
jscan.session.user_name: MTAuMTA5LjUwLjUw
thread.threadgroup_create: false
file.write.state: disabled
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
-->> returning Frame NULL
BaseDialog: owner frame is a java.awt.Frame
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.925s
[INFO] Finished at: Mon Mar 25 12:55:59 IST 2013
[INFO] Final Memory: 7M/74M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.3:resources (default-resources) on project tms-server:
Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.3:resources failed: The Applet is not allowed to access
the "exists" state attributes of file /root/tms-server/src/main/resources by IWSVA Javascan site policy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
更新:这是我的pom.xml,它直接来自apache的入门指南.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>app</groupId>
<artifactId>tms-server</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>tms-server</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
解决方法:
它说,
The Applet is not allowed to access the “exists” state attributes of
file /root/tms-server/src/main/resources by IWSVA Javascan site
policy.
您正在使用通过趋势科技防毒墙网络安全套件/设备代理从Internet下载的jar.此代理会在您从Internet下载的所有jar中挂钩,因此当他们尝试访问文件时,您会看到弹出的“Applet alert”.
解:
您有两种选择:
>您可以下载存档的jar文件.所以他们不会受到影响
代理.
>您可以配置代理不要修改下载jar文件.
还有另一个用户遇到了这个问题并解决了,我从here得到了这个答案
内容总结
以上是互联网集市为您收集整理的java – maven – 在构建时获取弹出窗口请求权限全部内容,希望文章能够帮你解决java – maven – 在构建时获取弹出窗口请求权限所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。