You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jason Chaffee <ja...@zilliontv.tv> on 2009/01/30 22:18:53 UTC

Custom plugin and custom extension issue

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.  For example,

<packaging>my-bundle</packaging>

will create artifactId-version.exe

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

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?


RE: Custom plugin and custom extension issue

Posted by Jason Chaffee <ja...@zilliontv.tv>.
BTW, this only happens with recursive builds.  If only build that particular project, then everything installs/deploys properly.

-----Original Message-----
From: Jason Chaffee [mailto:jason.chaffee@zilliontv.tv]
Sent: Friday, January 30, 2009 1:19 PM
To: users@maven.apache.org
Subject: Custom plugin and custom extension issue

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.  For example,

<packaging>my-bundle</packaging>

will create artifactId-version.exe

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

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?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org