[ 
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

        

Reply via email to