Error in POM.xml

喜夏-厌秋 提交于 2019-12-01 23:31:39

It would help if you told us which versions of Eclipse & m2eclipse you are using, and which version of OpenNMS you are trying to build.

If all else fails, you should be able to run the Maven build from the command line. In my experience, command line builds are always more reliable and predictable.

Also make sure that you are using the instructions that match the version of OpenNMS you are trying to build.


I have run the command mvn eclipse:eclipse from cmd line which downloaded the libraries in repository then i tried to import the same source directory into eclipse only to find 10k errors

That's not what I meant.

  • Get out of eclipse.
  • Get a command prompt.
  • Create a new directory somewhere the is not in your eclipse workspace.
  • Checkout the source code.
  • From the command prompt run "mvn install".

And you haven't answered the questions I asked above. If you don't want to answer, fine ... but don't expect us to be able to help you.


... and i get the error as Build Failure [INFO] There are test failures.

What has happened is that the unit tests have failed, presumably because something needs to be set up to enable testing. (Perhaps, the tests are trying to talk to a database?)

There are two solutions:

  • Find out what is causing the tests to fail, and fix it. The surefire reports may give you some clues, and there may be some developer documentation on the test setup.

  • Turn off the tests by adding -Dmaven.test.skip=true to the mvn command line; see this page.

It would also be a good idea to read the Maven documentation if you haven't done so already.

You cannot combine eclipse:eclipse with the m2eclipse support. You cannot use m2eclipse with a project that uses the old resource plugin.

If you want to use eclipse:eclipse, you must use NOT use the 'maven' import from eclipse. Use just 'import existing project'. If you want to use m2eclipse, don't use eclipse:eclipse.

I had this issue with the PDFBox source, with the parent pom for that project. I put this in the pdfbox/pom.xml (just to get it to compile in eclipse at lease, which is the only thing I wanted):

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
     <version>2.4</version>
    <executions>
      <!-- had a process goal here that i removed because it was not compatible -->
    </executions>
  </plugin>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!