Why would the release plugin try to deploy a sources jar twice? It fails
the second time of course. Here is my pom...
<build>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.0.4</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
...
And here is the build log.
*[15:23:04]:* [INFO] [INFO] Building jar:
/home/teamcity/buildAgent/work/60d48b063cb8abd4/target/checkout/target/iss-test-commons-1.0-javadoc.jar
*[15:23:04]:* [INFO] [INFO] [install:install]
*[15:23:04]:* [INFO] [INFO] Installing
/home/teamcity/buildAgent/work/60d48b063cb8abd4/target/checkout/target/iss-test-commons-1.0.jar
to
/home/teamcity/.m2/repository/com/issinc/iss-test-commons/1.0/iss-test-commons-1.0.jar
*[15:23:04]:* [INFO] [INFO] Installing
/home/teamcity/buildAgent/work/60d48b063cb8abd4/target/checkout/target/iss-test-commons-1.0-sources.jar
to
/home/teamcity/.m2/repository/com/issinc/iss-test-commons/1.0/iss-test-commons-1.0-sources.jar
*[15:23:04]:* [INFO] [INFO] Installing
/home/teamcity/buildAgent/work/60d48b063cb8abd4/target/checkout/target/iss-test-commons-1.0-sources.jar
to
/home/teamcity/.m2/repository/com/issinc/iss-test-commons/1.0/iss-test-commons-1.0-sources.jar
*[15:23:04]:* [INFO] [INFO] Installing
/home/teamcity/buildAgent/work/60d48b063cb8abd4/target/checkout/target/iss-test-commons-1.0-javadoc.jar
to
/home/teamcity/.m2/repository/com/issinc/iss-test-commons/1.0/iss-test-commons-1.0-javadoc.jar
*[15:23:04]:* [INFO] [INFO] [deploy:deploy]
*[15:23:04]:* [INFO] Uploading:
http://cm:80/artifactory/internal-releases/com/issinc/iss-test-commons/1.0/iss-test-commons-1.0.jar
*[15:23:04]:* [INFO] 11K uploaded (iss-test-commons-1.0.jar)
*[15:23:04]:* [INFO] [INFO] Retrieving previous metadata from releases
*[15:23:04]:* [INFO] [INFO] repository metadata for: 'artifact
com.issinc:iss-test-commons' could not be found on repository: releases, so
will be created
*[15:23:04]:* [INFO] [INFO] Uploading repository metadata for: 'artifact
com.issinc:iss-test-commons'
*[15:23:05]:* [INFO] [INFO] Uploading project information for
iss-test-commons 1.0
*[15:23:07]:* [INFO] Uploading:
http://cm:80/artifactory/internal-releases/com/issinc/iss-test-commons/1.0/iss-test-commons-1.0-sources.jar
*[15:23:07]:* [INFO] 11K uploaded (iss-test-commons-1.0-sources.jar)
*[15:23:07]:* [INFO] Uploading:
http://cm:80/artifactory/internal-releases/com/issinc/iss-test-commons/1.0/iss-test-commons-1.0-sources.jar
*[15:23:07]:* [INFO] [INFO]
------------------------------------------------------------------------
*[15:23:07]:* [INFO] [ERROR] BUILD ERROR
*[15:23:07]:* [INFO] [INFO]
------------------------------------------------------------------------
-Dave