You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benson Margulies (JIRA)" <ji...@codehaus.org> on 2010/10/27 21:51:05 UTC
[jira] Created: (MASSEMBLY-518) Select which output formats by
profile
Select which output formats by profile
--------------------------------------
Key: MASSEMBLY-518
URL: http://jira.codehaus.org/browse/MASSEMBLY-518
Project: Maven 2.x Assembly Plugin
Issue Type: New Feature
Affects Versions: 2.2
Reporter: Benson Margulies
When debugging an assembly descriptor, it sure would be nice to be able to just make the '.dir' and not any other formats specified. Yea, I can use a temporary XML comment, but wouldn't it be nice to control these from a POM profile somehow?
--
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
[jira] (MASSEMBLY-518) Select which output formats by profile
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MASSEMBLY-518.
-------------------------------------
Resolution: Not A Bug
> Select which output formats by profile
> --------------------------------------
>
> Key: MASSEMBLY-518
> URL: https://jira.codehaus.org/browse/MASSEMBLY-518
> Project: Maven 2.x Assembly Plugin
> Issue Type: New Feature
> Affects Versions: 2.2
> Reporter: Benson Margulies
>
> When debugging an assembly descriptor, it sure would be nice to be able to just make the '.dir' and not any other formats specified. Yea, I can use a temporary XML comment, but wouldn't it be nice to control these from a POM profile somehow?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MASSEMBLY-518) Select which output formats by profile
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312879#comment-312879 ]
Dennis Lundberg commented on MASSEMBLY-518:
-------------------------------------------
I've done something like this locally when debugging.
Here are some snippets from my configuration.
Do you think this would work for you?
If so I'll add a bit of documentation for it to the plugin site.
{code:xml}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>my-shared-assembly-descriptor</descriptorRef>
</descriptorRefs>
<formats>
<format>dir</format>
</formats>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<formats>
<format>zip</format>
</formats>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
{code}
Note that the "release" profile is a profile that is activated automatically during a release. This "resets" the formats back to non-debug mode.
> Select which output formats by profile
> --------------------------------------
>
> Key: MASSEMBLY-518
> URL: https://jira.codehaus.org/browse/MASSEMBLY-518
> Project: Maven 2.x Assembly Plugin
> Issue Type: New Feature
> Affects Versions: 2.2
> Reporter: Benson Margulies
>
> When debugging an assembly descriptor, it sure would be nice to be able to just make the '.dir' and not any other formats specified. Yea, I can use a temporary XML comment, but wouldn't it be nice to control these from a POM profile somehow?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MASSEMBLY-518) Select which output formats by profile
Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MASSEMBLY-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312882#comment-312882 ]
Benson Margulies commented on MASSEMBLY-518:
--------------------------------------------
How embarassing. I implemented this and forgot to close out this JIRA.
> Select which output formats by profile
> --------------------------------------
>
> Key: MASSEMBLY-518
> URL: https://jira.codehaus.org/browse/MASSEMBLY-518
> Project: Maven 2.x Assembly Plugin
> Issue Type: New Feature
> Affects Versions: 2.2
> Reporter: Benson Margulies
>
> When debugging an assembly descriptor, it sure would be nice to be able to just make the '.dir' and not any other formats specified. Yea, I can use a temporary XML comment, but wouldn't it be nice to control these from a POM profile somehow?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira