[ 
http://jira.codehaus.org/browse/MOJO-1383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180364#action_180364
 ] 

Josh McFarlane commented on MOJO-1383:
--------------------------------------

Ok, for a quick reproduction, use the sample maven project:
mvn archetype:create \
  -DarchetypeGroupId=org.apache.maven.archetypes \
  -DgroupId=com.mycompany.app \
  -DartifactId=my-app

Then modify the pom.xml to include the following in the build section:
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>rpm-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>one</id>
            <goals>
              <goal>rpm</goal>
            </goals>
            <configuration>
              <name>my-app-a</name>
              <release>1</release>
              <group>foo</group>
              <copyright>foo</copyright>
              <prefix>/a</prefix>
              <mappings>
                <mapping>
                  <directory>/a</directory>
                  <artifact/>
                </mapping>
              </mappings>
            </configuration>
          </execution>
          <execution>
            <id>two</id>
            <goals>
              <goal>rpm</goal>
            </goals>
            <configuration>
              <name>my-app-b</name>
              <release>1</release>
              <group>foo</group>
              <copyright>foo</copyright>
              <prefix>/b</prefix>
              <mappings>
                <mapping>
                  <directory>/b</directory>
                  <artifact/>
                </mapping>
              </mappings>
            </configuration>
          </execution>
        </executions>
      </plugin>

This should produce two separate RPMs. Is there something I'm overlooking?

> Clear buildroot before copying files into folder
> ------------------------------------------------
>
>                 Key: MOJO-1383
>                 URL: http://jira.codehaus.org/browse/MOJO-1383
>             Project: Mojo
>          Issue Type: Bug
>          Components: rpm
>            Reporter: Josh McFarlane
>            Assignee: Brett Okken
>         Attachments: MOJO-1383.patch
>
>
> When you have multiple executions, the plugin does not clean out the 
> buildroot folder prior to copying anything in for executions. This means the 
> first execution will run fine, but any executions after that will fail due to 
> files that are in buildroot but not consumed by the current rpm spec.

-- 
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


Reply via email to