Hi all - I've been stuck for a while trying to get an artifact injected by a plugin to apply to subsequent plugins/goals in a project.
I have a project which generates a web application. My use case here is the obfuscator plugin which I wrote, which creates a jar file called "<projectname>-small.jar". The plugin creates jar file using MavenProjectHelper.attachArtifact(). The plugin executes during the packaging phase, before the maven-war-plugin. The jar file is created successfully, and the call to attachArtifact() returns with no errors, but the maven-war-plugin does not "see" the jar file and therefore doesn't include it in the results. When I turn on debugging I can see maven-war-plugin copying the other project artifacts into target/<projectname>/WEB-INF/lib. Have I missed a step? I know I can explicitly configure maven-war-plugin to grab the new artifact, but I thought the point of "attachArtifact" was to inject the new artifact into the flow. Appreciate any insight into what I'm doing wrong... Thanks! -Richard --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org