Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1 with Netbeans IDE

3,064 views
Skip to first unread message

Heyi Zhou

unread,
Jun 16, 2015, 6:58:49 PM6/16/15
to opentripp...@googlegroups.com

Hello everybody,

I met a problem. When  I built the OTP project are successful, but when I run the project of an error with netbeans. I hope you guys can help me ! Thanks!!

The failure as follows:




cd C:\Projects\OpenTripPlanner\4_Development\Source_GIT\OpenTripPlanner; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_45" cmd /c "\"\"C:\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dexec.args=\"-classpath %classpath org.opentripplanner.analyst.cluster.JobSimulator\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_45\\bin\\java.exe\" -Dmaven.ext.class.path=\"C:\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...

Some problems were encountered while building the effective model for org.opentripplanner:otp:jar:0.19.0-SNAPSHOT
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 155, column 21

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.

                                                                        
------------------------------------------------------------------------
Building OpenTripPlanner 0.19.0-SNAPSHOT
------------------------------------------------------------------------

--- exec-maven-plugin:1.2.1:exec (default-cli) @ otp ---
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at org.opentripplanner.analyst.cluster.JobSimulator.main(JobSimulator.java:26)
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.646s
Finished at: Tue Jun 16 18:10:31 EDT 2015
Final Memory: 13M/309M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project otp: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:

Andrew Byrd

unread,
Jun 16, 2015, 7:15:52 PM6/16/15
to Heyi Zhou, opentripp...@googlegroups.com
Hello,

It appears that you using the Maven exec plugin to run the main class org.opentripplanner.analyst.cluster.JobSimulator with no command line parameters.

You probably need to run org.opentripplanner.standalone.OTPMain.

-Andrew

Heyi Zhou

unread,
Jun 16, 2015, 7:27:18 PM6/16/15
to opentripp...@googlegroups.com, com....@gmail.com
Dear Andrew,

I run the OTP  through the command line are successful. I also run the org.opentripplanner.standalone.OTPMain through the netbeans . But the error is still the “Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project otp: Command execution failed. Process exited with an error: -1 (Exit value: -1) -> [Help 1]”

I hope you can help me to solve it.Thanks so much!

Best,
Heyi
Reply all
Reply to author
Forward
0 new messages