I fixed the last problem removing myProject inheritance from the company
pom.
Now I am stucked cause the release plugin is deploying the source artifact
two times and the second time Nexus give me a 400 cause it does not allow to
overwrite an artifact in the release repository, and it's right.
It install and then deploy the sources artifact two times.
Here is the execution for the source-plugin
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
And here is the log
[INFO] [INFO] [install:install {execution: default-install}]
[INFO] [INFO] Installing ..lcore-1.0.jar to ../lcore-1.0.jar
[INFO] [INFO] Installing ..lcore-1.0-sources.jar to ..lcore-1.0-sources.jar
[INFO] [INFO] Installing ..lcore-1.0-sources.jar to ..lcore-1.0-sources.jar
[INFO] [INFO] Installing ..lcore-1.0-javadoc.jar to ..lcore-1.0-javadoc.jar
[INFO] [INFO] [deploy:deploy {execution: default-deploy}]
[INFO] Uploading:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0.jar
[INFO] 4/70K
[INFO] 8/70K
...
[INFO] 70/70K
[INFO] 70K uploaded (lcore-1.0.jar)
[INFO] [INFO] Retrieving previous metadata from releases.company.it
[INFO] [INFO] repository metadata for: 'artifact lavazza.eshop:lcore' could
not be found on repository: releases.iconmedialab.it, so will be created
[INFO] [INFO] Uploading repository metadata for: 'artifact
lavazza.eshop:lcore'
[INFO] [INFO] Uploading project information for lcore 1.0
[INFO] Uploading:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
[INFO] 4/61K
...
[INFO] 61/61K
[INFO] 61K uploaded (lcore-1.0-sources.jar)
[INFO] Uploading:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar
[INFO] 4/61K
...
[INFO] 61/61K
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Error deploying artifact: Failed to transfer file:
http://10.10.20.128:8080/nexus/content/repositories/releases/../1.0/lcore-1.0-sources.jar.
Return code is: 400
--
Daniele Dellafiore
http://danieledellafiore.net