1

I am new to Java and maven I just need to run this https://github.com/att/XACML Maven project.

Any one please give me some guidelines as If I build this in Eclipse I get these errors.
I need to install gpg software as I don't know much about gpg, because I am new to this.

[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 

Once that will work, I will need to know how to run:

mvn jetty:run-war
VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283
  • I have edited my answer to address your other question. Please consider https://stackoverflow.com/help/someone-answers. – VonC Aug 23 '18 at 19:07

1 Answers1

0

The part of the error message that matters is just above what you posted.
See for instance 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]

That error was resolved with a Java update, so double-check which Java you are using in your Eclipse.


In the OP's case, the error is:

'gpg.exe' is not recognized as an internal or external command,
operable program or batch file.

That simply means you need to launch Eclipse from a CMD session where gpg.exe is recognized:

gpg.exe --version
gpg (GnuPG) 2.0.29 (Gpg4win 2.3.0)

Check your %PATH% in the CMD:

set PATH

And adjust it accordingly:

set PATH=C:\path\to\gpg;%PATH%

Then launch Eclipse, and in it maven.


The OP adds:

how I am able to access the console of local host?
Like where I can run this command (mvn jetty:run-war) and how.

See "Is there any tool in eclipse to run maven commands directly?": assuming you have m2e (M2Eclipse) already installed with you Eclipse, you will be able to define a maven "run configuration".

See more in "Sonatype: Developing with Eclipse and Maven / 4.2. Running Maven Builds".

https://books.sonatype.com/m2eclipse-book/reference/figs/web/running_run-config.png

For mvn jetty:run specifically, see "how to run a web service maven project on jetty 8 from eclipse?".

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283
  • I am not able to understand I just need to follow these steps. Open a terminal window and cd to the XACML-PAP-REST subdirectory. 'mvn jetty:run-war' By default it will be running at localhost:9090/pap – Ather Abdul Jabbar Aug 24 '18 at 04:39
  • @AtherAbdulJabbar What step of https://books.sonatype.com/m2eclipse-book/reference/running-sect-running-maven-builds.html you don't understand? – VonC Aug 24 '18 at 04:40
  • yeah done but now I am stuck at this [INFO] Started ServerConnector@53f7a906{HTTP/1.1,[http/1.1]}{0.0.0.0:9090} [INFO] Started @121084ms [INFO] Started Jetty Server – Ather Abdul Jabbar Aug 24 '18 at 06:22
  • @AtherAbdulJabbar Please create a new question, with a screenshot of your current "run configuration". That will be easier to answer it there. – VonC Aug 24 '18 at 06:29
  • https://stackoverflow.com/questions/51999676/unable-to-start-jetty-server – Ather Abdul Jabbar Aug 24 '18 at 09:11