You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steve Shucker <ss...@vmsinfo.com> on 2007/01/04 20:08:32 UTC
maven not configuring plexus artifacthandler
I've created a custom packaging type for jnlp webstarts so my build
process will jar up the client application then generate a jnlp and
package the whole thing into a war. The packaging works great, but I'm
having trouble with the ArtifactHandler. It doesn't seem to be reading
that component. I've gone in with a debugger and found that all the
properties of the handler are null. This is important because I'm using
cobertura and the cobertura plugin throws an exception if the artifact
handler's language isn't java. Any idea why the ArtifactHandler isn't
being initialized? (Yes, I have extensions enabled in my pom.)
-Steve
Here's my META-INF/plexus/components.xml
<component-set>
<components>
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>webstart</role-hint>
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
<configuration>
<phases>
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
<compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
<test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
<package>vms:maven-vms-plugin:jnlp</package>
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
</phases>
</configuration>
</component>
<!-- This mapping doesn't appear to be working, but it's correct -->
<!-- That's why cobertura doesn't work on webstarts - must know
language=java -->
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>webstart</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<language>java</language>
<extension>war</extension>
<type>webstart</type>
<packaging>war</packaging>
<addedToClasspath>true</addedToClasspath>
</configuration>
</component>
</components>
</component-set>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org