Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Maven2

740564Dec 11 2009 — edited Dec 17 2009
Hi Guys,

I was totaly suprised that with IDE version 11.0.0.0.2 finally maven2 has its support.
Great!!!

But there are still some loose ends, and I think easy to solve:

Maven bugs:
- Maven has support for a POM with modules. Jdeveloper cant open or use this types (create project from POM -> crash)
- Adding a maven project to your application has a weird bug with the central repository. I have my repo located at c:\.m2\repository instead of c:\users\<username>\.m2\repository. Ok this can be adjusted in the settings file of maven, but when i have changed this to my repo and add new project the old value c:\users\<username>\.m2\repositoy shows up @ 2 places: in de properties menu under maven settings (window with all repo's) and under all dependencies (if you click a dependency and select edit you'll see that the paths are still the old value and not the new value. Also when adding the project and i manually enter my repo in the location field it has no effect.
- Updating dependencies at runtime. If one project has dependency to another, and if you do a maven install on that project, the dependency in the ide is not updated. So in your editor the references arent there to the new dependency project (if you are working on a project with reference to that dependency). Only thing to resolve that is manualy remove dependency and add it again to the list or close the ide and open it again
- Maven2 has support on the CLI for multi goals. i have ex. 'mvn clean install javadoc:jar source:jar dependency:sources -Dmaven.test.skip=true' as a CLI command, adding goals in the menu only allows 1 goal, or the command cannot be executed. (according to log)

Also can be handy to have a button or what so ever to initially update your project.
When your POM is updated with new dependencies, that you can click this button to execute maven2 goal 'dependency:sources' javadoc:jar source:jar, which downloads all dependencies and parents, with javadocs (handy in code view) and sources (handy in code view). This has only have to be executed then the pom is changed with new dependencies.

futher great work!
ing. K. Aalders
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 14 2010
Added on Dec 11 2009
2 comments
959 views