[
http://jira.codehaus.org/browse/MJBOSSPACK-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Gier closed MJBOSSPACK-32.
-------------------------------
Resolution: Fixed
> Add ability to attach generated .sar to the project, even if classifier is
> not specifed
> ---------------------------------------------------------------------------------------
>
> Key: MJBOSSPACK-32
> URL: http://jira.codehaus.org/browse/MJBOSSPACK-32
> Project: Maven 2.x JBoss Packaging Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Reporter: Elias Ross
> Assignee: Paul Gier
> Fix For: 2.1.1
>
> Attachments: patch.diff
>
>
> I have an artifact that's primarily a .sar file but is used by other projects
> as a .jar dependency. Thus I have the following configuration:
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.example</groupId>
> <artifactId>foo-proj</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>jar</packaging>
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>jboss-packaging-maven-plugin</artifactId>
> <version>2.1</version>
> <executions>
> <execution>
> <goals>
> <goal>sar</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <primaryArtifact>false</primaryArtifact>
> <excludeAll>true</excludeAll>
> </configuration>
> </plugin>
> </plugins>
> </build>
> However, this does not "install" the plugin, e.g. by calling "mvn install"
> you get:
> [INFO] [jar:jar]
> [INFO] Building jar:
> c:\src\workspace\foo\proj\target\foo-proj-1.0-SNAPSHOT.jar
> [INFO] [jboss-packaging:sar {execution: add-package}]
> [INFO] Assembling JBoss packaging foo-proj in
> c:\src\workspace\foo\proj\target\foo-proj-1.0-SNAPSHOT
> [INFO] Building jar:
> c:\src\workspace\foo\proj\target\foo-proj-1.0-SNAPSHOT.sar
> [INFO] [install:install]
> [INFO] Installing c:\src\workspace\foo\proj\target\foo-proj-1.0-SNAPSHOT.jar
> to ...
> To attach, you can obviously include the "classifier" but I don't see the
> need for this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email