[jbossts-issues] [JBoss JIRA] (JBTM-1895) restat-bridge:jar is not uploaded during release

Paul Robinson (JIRA) jira-events at lists.jboss.org
Mon Aug 26 09:55:26 EDT 2013

     [ https://issues.jboss.org/browse/JBTM-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Robinson updated JBTM-1895:

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/jbosstm/narayana/pull/410

> restat-bridge:jar is not uploaded during release
> ------------------------------------------------
>                 Key: JBTM-1895
>                 URL: https://issues.jboss.org/browse/JBTM-1895
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Build System
>            Reporter: Paul Robinson
>            Assignee: Paul Robinson
>             Fix For: 5.0.0.M5
> Marking which jars are uploaded to Nexus during release is a two step process (unfortunately). You need to add both of the following bits of XML to the pom associated with the jar. 
> The following ensures that the artefact is installed in the local maven repo when we do CI. This allows us to test the same set of artefacts that will be released. We needed this as we were finding out too late (after release) that we had dependencies on internal artefacts that we did not want to release.
> {code}
>       <profile>
>           <id>release</id>
>           <build>
>               <plugins>
>                 <plugin>
>                   <groupId>org.apache.maven.plugins</groupId>
>                   <artifactId>maven-install-plugin</artifactId>
>                   <executions>
>                     <execution>
>                       <id>default-install</id>
>                       <phase>install</phase>
>                     </execution>
>                   </executions>
>                   <inherited>false</inherited>
>                 </plugin>
>               </plugins>
>           </build>
>       </profile>
> {code}
> The following ensures that the artefact is uploaded to Nexus when the release is done.
> {code}
>       <plugin>
>         <inherited>false</inherited>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-deploy-plugin</artifactId>
>         <configuration>
>           <skip>false</skip>
>         </configuration>
>       </plugin>
> {code}
> We could probably move both plugins into the release profile as this is now enabled in build-release-packages.xml when we do the release. 
> I've checked the current code base for all occurrences of this error and no more exist. In-case you are interested, I used the following, rather crude script:
> {code}
> #!/bin/bash
> RELEASE_PROFILES=$(find . -name pom.xml | xargs grep "<id>release</id>" | awk -F ':' '{ print $1 }')
> 	FOUND=$(grep maven-deploy-plugin $POM)
> 	if [ "$FOUND" == "" ]; then
> 		echo $POM
> 	fi
> done
> {code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the jbossts-issues mailing list