Does anyone know of an Eclipse (WSAD / RAD) plugin for Maven2 POM class container

I am trying to find a plugin with the sole purpose of being simple that will maintain an Eclipse classpath based on Maven2 POM dependencies.

I know about m2eclipse and q4e. Unfortunately I am currently using RAD (Rational Application Developer is a commercial version of IBM Eclipse) and it is not fully compatible with m2eclipse and I cannot use q4e as I am using Maven 2.0.7 with no upgrade to 2.1.

I'm almost to the point where I'm writing my own container plugin (probably based on some m2eclipse source :-)), but there would be a lot of problems resolving transitive and parent dependencies, so hopefully someone has already done this ...

0


source to share


1 answer


There is no better answer, so I ended up writing my own plugin. Works well :-)

Basically I am parsing the pom.xml in the project, this gives me the parent (if any) and dependencies. Then I loop through them and recursively do the same to create a complete list of banners that will be added to the container.



There are a lot of hacky problems with managing properties and dependencies, and our "team" repository is corrupted with a mixture of Maven 1 and Maven 2 poms (plus other stuff), so I strip the Maven 2 namespace so I can handle the xml the same way (in happy coincidence, this is means I can use simple xpath queries :-)).

Rich, I can send you the code, but this is a serious hack. I thought I should rebuild it to use output from dependency: list and / or dependency: tree, but I probably need to clear the repository first.

-1


source







All Articles