user1191027
user1191027

Reputation:

Convert Maven project to Netbeans project

When ever I open up a Maven project in Netbeans and try do a "Priming Build" or normal "Build" it fails. It either gets stuck downloading dependencies or throws errors. Is there a plugin or something that can convert Maven projects to Netbeans projects? Even if you have to manually download the dependencies...

This is one of the errors I get:

Some problems were encountered while building the effective model for

org.dontpanic:spannersws:war:1.0-SNAPSHOT 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 66, 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.

Upvotes: 1

Views: 3971

Answers (2)

Daniel
Daniel

Reputation: 10245

NetBeans natively supports Maven projects. The error message isn't an error. It's just a warning that started appearing in Maven after version 3 to help people configure their projects better.

Upvotes: 0

Piotr Gwiazda
Piotr Gwiazda

Reputation: 12222

Netbeans just opens Maven projects. You don't need to convert them. What are you expecting is a Maven problem. It seems that pom.xml is broken. I think that the project was prepared on Maven 2. Newest Netbeans has Maven 3 included. Try to fix pom.xml following the directions or download Maven 2 and switch Maven version in Netbeans from embedded to external.

I'd suggest fixing pom.xml.

Upvotes: 1

Related Questions