VTN Coordinator build error

asked 2014-05-12 11:53:51 -0800

anonymous user


Hey there,

*I'm getting some errors when I try to build vtn coordinator from source. *

1. I followed the instructions from the wiki and installed a VM with CentOS 6.4 and odl virt edition, java, postgres, maven, etc.

2. When I try to build the vtn coordinator I get following errors:

cd vtn/coordinator

mvn -f dist/pom.xml package

INFO] ------------------------------------------------------------------------


[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1.1:exec (vtn-test-run) on project distribution.vtn-coordinator: Result of /bin/sh -c cd /home/odl/vtn/coordinator/dist && make -C build -j1 test-test VTNSKIPTESTBUILD=false VTNSKIP_TEST=false execution is: '2'. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

3. The detailed error message:

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/odl/vtn/coordinator). Please verify you invoked Maven from the correct directory. -> [Help 1]

org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/home/odl/vtn/coordinator). Please verify you invoked Maven from the correct directory. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:80) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [ERROR] [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/MissingProjectException

Seems like a pom file is missing in /vtn/coordinator/... Someone any ideas?

Many thanks in advance


edit retag flag offensive close merge delete


Hi Chris, Can you try two things a. cd /home/odl/vtn/coordinator/dist and then execute make -C build -j1 test-test VTNSKIPTESTBUILD=false VTNSKIP_TEST=false b. Can you try to build with -DskipTests in maven

gvrangan ( 2014-05-13 18:10:32 -0800 )edit

It seems that a test failed during the build. One possible reason is that the CPU of the build machine was not enough high so a test timed out. Therefore, as gvrangan commented, I also recommend you skip tests. You can skip tests using -DskipTests option. mvn -f dist/pom.xml package -DskipTests

hideyuki ( 2014-05-14 05:07:47 -0800 )edit

Is this problem still occurring?

Devin Avery ( 2014-05-27 09:45:21 -0800 )edit