I am having an issue on 2.0.9.  Basicallly, I have a custom plugin that has 
it's own packaging type and creates a file of it's own extension type.  This 
only happens if I run a reactor build.  If run maven in that project, it works 
correctly. For example,

<packaging>my-bundle</packaging>

will create artifactId-version.exe

However, with maven-2.0.9 it creates the file correcting in the target 
directory but it installs it and deploys it as artifactId-version.my-bundle.
Here is an example output:

[INFO] Installing 
C:\workspace\server\manager\project\bundle\target\project-1.0.0-SNAPSHOT.exe to 
C:\Documents and 
Settings\jason.chaffee\.m2\repository\com\foo\project\project\1.0.0-SNAPSHOT\project-1.0.0-SNAPSHOT.my-bundle

I wrote a similar plugin with a previous company and it worked fine.  That was 
on maven-2.0.7 though.

Here is my component.xml snippet?
<component-set>
  <components>
     ...
    <component>
      <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
      <role-hint>my-bundle</role-hint>
      
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
      <configuration>
        <extension>exe</extension>
        <type>my-bundle</type>
        <packaging>my-bundle</packaging>
        <language>java</language>
        <addedToClasspath>true</addedToClasspath>
      </configuration>
    </component>
  </components>
</component-set>

Does anyone have any ideas what could be happening here or have a good way to 
debug this?


Reply via email to