dan tran a écrit :
add your vote to this jira http://jira.codehaus.org/browse/MNG-1682
in the mean while, have you tried setting your packaging extension as
jar?
Yes I do, but it does not work.
-D
On 9/27/06, Clement Escoffier <[EMAIL PROTECTED]> wrote:
Hello,
I am a strange problem with a plugin that I develop. This plugin do a
bytecode manipulation of java classes during the packaging of the
artifact. It works with "simple" project (non multi-module).
Nevertheless, when I use my plugin inside a multi-module project, Maven
does not use the good artifact handler. To trace the problem, I modify
the install-plugin to display some info after the installation. To check
the ArtifactHandler, I set the language to "foo" inside my plugin :
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>ipojo-bundle</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
</implementation>
<configuration>
<type>ipojo-bundle</type>
<includesDependencies>true</includesDependencies>
<language>foo</language>
<extension>jar</extension>
<addedToClasspath>true</addedToClasspath>
</configuration>
</component>
When I launch mvn clean install on the single project I have the
following result :
...
[INFO] [install:install]
[INFO] Installing
F:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
to
F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : foo
Artifact Handler Extension : jar
Artifact Handler Packaging : ipojo-bundle
So, it works in this case.
But when I launch mvn clean install on the multi module project, the I
have the following (strange) result :
[INFO] Installing
f:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.jar
to
F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-
0.6.0-SNAPSHOT.ipojo-bundle
Artifact Type : ipojo-bundle
Packaging : ipojo-bundle
Language : none
Artifact Handler Extension : ipojo-bundle
Artifact Handler Packaging : ipojo-bundle
So, I think that when used in multi-module Maven does not use the good
artifact handler. But how I can solve this problem ?
Thank you very much for all ideas
Clement Escoffier
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]