Monday, June 13, 2011

Convert NetBeans IvyBeans project to Maven3

Add the following to nbproject/ivy-impl.xml to generate the pom.xml from the ivy.xml:
<ivy:makepom ivyfile="ivy.xml" pomfile="pom.xml">
<mapping conf="default" scope="compile"/>
<mapping conf="compile-test" scope="test"/>
<mapping conf="runtime" scope="runtime"/>
<mapping conf="runtime-test" scope="test"/>
</ivy:makepom>
Run it.

Create src/main/java and src/test/java. Add them to version control. SCM move source to src/main/java and test source to src/test/java.


0 Comments:

Post a Comment

<< Home