我是Java和Maven的新手,我只需要运行它 https://github.com/att/XACML Maven项目。
任何人都请给我一些指导,因为如果我在Eclipse中进行构建,则会出现这些错误。
我需要安装gpg
软件,因为我对gpg
不太了解,因为我对此并不陌生。
[INFO] --- maven-failsafe-plugin:2.19.1:verify (integration-tests) @ att-xacml ---
[INFO]
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ att-xacml ---
'gpg.exe' is not recognized as an internal or external command,
operable program or batch file.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ATT XACML 2.0.0-SNAPSHOT ........................... FAILURE [ 19.653 s]
[INFO] att-xacml .......................................... SKIPPED
[INFO] att-xacml-pip ...................................... SKIPPED
[INFO] att-xacml-pdp ...................................... SKIPPED
[INFO] xacml-test ......................................... SKIPPED
[INFO] xacml-rest ......................................... SKIPPED
[INFO] xacml-pdp-rest ..................................... SKIPPED
[INFO] xacml-pap-rest ..................................... SKIPPED
[INFO] xacml-pap-admin 2.0.0-SNAPSHOT ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:54 min
一旦可行,我将需要知道如何运行:
mvn jetty:run-war
答案 0 :(得分:0)
重要的错误消息部分只是您发布的内容上方。
例如参见att/XACML issue 30:
[INFO] --- maven-gpg-plugin:1.5:sign (sign-artifacts) @ att-xacml ---
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ATT XACML .......................................... FAILURE [ 2.712 s]
该错误已通过Java更新得以解决,因此请仔细检查您在Eclipse中使用的Java。
在OP的情况下,错误是:
'gpg.exe' is not recognized as an internal or external command,
operable program or batch file.
这只是意味着您需要从可以识别gpg.exe的CMD会话中启动Eclipse:
gpg.exe --version
gpg (GnuPG) 2.0.29 (Gpg4win 2.3.0)
在CMD中检查您的%PATH%
:
set PATH
并相应地进行调整:
set PATH=C:\path\to\gpg;%PATH%
然后启动Eclipse,并在其中启动。
OP添加:
如何访问本地主机的控制台?
就像我可以在何处运行此命令(mvn jetty:run-war
)以及如何运行。
请参阅“ Is there any tool in eclipse to run maven commands directly?”:假设您已经安装了m2e (M2Eclipse),那么您将能够define a maven "run configuration"。
在“ Sonatype: Developing with Eclipse and Maven / 4.2. Running Maven Builds”中查看更多信息。
对于mvn jetty:run
,请参阅“ how to run a web service maven project on jetty 8 from eclipse?”。