I try to migrate my Ant-based NB platform app (~70 modules) to Maven, but I'm 
new to Maven, so forgive the newbie question.

I created a new empty NB platform app with a sample module from the NB wizard, 
then I built from there. I used https://github.com/gephi/gephi  on GitHub as a 
kind of model.
So now I have my parent project, the app project, the branding project and all 
my modules. I checked the various pom.xml. Running "mvn validate" is a success, 
and the projects structure in the IDE is OK.

BUT... I can't build ! Using "BUild with dependencies" on the app project, I 
get error messages like:

The POM for org.jjazz:org.jjazz.utilities:jar:1.0-SNAPSHOT is missing, no 
dependency information available
The POM for org.netbeans.api:org.openide.actions:jar:RELEASE170 is missing, no 
dependency information available...

Using the "Solve project problems" menu, I understood that the dependencies are 
not found because they are not available in my local repository. But to be in 
the repository I need to compile the module, which depends on other modules 
etc... The only modules I was able to compile are the few ones with no 
dependencies at all, so only those were copied in the local repository.

I expected Maven (or rather the reactor plugin) to parse the module dependency 
tree and infer the appropriate compilation order, like Ant did... 
What do I miss ? 


Jerome
PS: I used a bash script to automate the migration process as much as possible. 
When I'm done I'll be happy to share it -there is not much info on the web...





Reply via email to