Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] Maven Java project with custom packaging not imported properly

Hi

I'm new to M2Eclipse integration, I'm adding it to my Maven plugins now.
Some of them define custom packagings and I have problem with one of them.

My plugin [1] defines custom packaging "play2" [2] producing Java "jar"
file.
M2Eclipse lifecycle mapping metadata definition file is here [3].

When importing Maven project using "play2" packaging everything seems to
work: source generators
work, there is nothing in Eclipse workspace log, but after import there
is only ".project" file
with "maven2Builder" and "maven2Nature". No "javabuilder" and
"javanature" in ".project" file
and no ".classpath" file at all.

Is there possibility to debug M2Eclipse import process?

Current version 1.0.0-alpha6-SNAPSHOT deployed to Nexus Snapshot
repository so you can reproduce my problems.
Try importing of any of test projects [4], for example [5].

I have similar Maven plugin with "play" (without "2" suffix) packaging
[6] and with that plugin everything works as expected
(you can check with any of test projects [7], for example [8]).

[1] http://play2-maven-plugin.googlecode.com/svn/trunk/plugin
[2]
http://play2-maven-plugin.googlecode.com/svn/trunk/plugin/play2-maven-plugin/src/main/resources/META-INF/plexus/components.xml
[3]
http://play2-maven-plugin.googlecode.com/svn/trunk/plugin/play2-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
[4] http://play2-maven-plugin.googlecode.com/svn/trunk/test-projects/
[5]
http://play2-maven-plugin.googlecode.com/svn/trunk/test-projects/play21/java/helloworld/

[6]
http://maven-play-plugin.googlecode.com/svn/trunk/plugin/play-maven-plugin/
[7] http://maven-play-plugin.googlecode.com/svn/trunk/test-projects/
[8]
http://maven-play-plugin.googlecode.com/svn/trunk/test-projects/findbugs/

Regards
Grzegorz Slowikowski



Back to the top