Maven2 environment for building naws3
I wish I had adopted Maven earlier. I was surprised at how well it all worked. It took a few days to go from no knowledge of Maven to a system that builds naws, generates docs and supports a Maven repository for naws3 users. These links were very helpful. Some of the things that caused me lose time were:
- Tried to configure NetBeans remote repositories using pom files. That did not work you need to use the NetBeans repository browser and for some reason I could not find it. The Maven repository browser in NetBeans is not available from the project nodes, it is under Window / Other / Maven Repository Browser. More details can be found here.
- The site setup for ssh took some time because of an error in The Oreilly Maven book, it used publicKey instead of privateKey for the key on page 318
- naws has some files that use the IAIK security libraries, I spent quite a bit of time trying to figure out how to have the files there but not compiled by NetBeans. I was hoping that Maven would pre-process the files NetBeans includes in a project. I don’t think this is possible so I moved them out to a separate project not ideal
- setting properties for Maven is still a mystery so I am just using settings.xml (-X doesn’t tell you what properties file it is reading and in what order)
The still being worked on Maven generated site can be found here: digiorgio.com/naws3 and the repository with the required jars can be found here digiorgio.com:8082/artifactory/naws3/ naws3 is hosted on kenai for source code management, ans issue tracking. CI, static analysis, dynamic analysis and OpenGrok interfaces are on digiorgio.com.