On 11/09/2012 13:09, Thorsten Scherler wrote:
[...]


Moreover, consider that when issuing 'mvn clean deploy' instead of 'mvn clean install', you will also upload the SNAPSHOT artifacts to ASF maven repository (Nexus): since 2.2.X does not have a configured Jenkins instance for this (like as C3), you still need to do this manually when you want to publish updated SNAPSHOT artifacts.


Trying to fix that ATM but since I switch my box a while ago I never came to setup the deploy to ASF preconditions. I am working on it now. I get ATM for the "deploy"

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project cocoon-22-archetype-block: Failed to deploy artifacts: Could not transfer artifact org.apache.cocoon:cocoon-22-archetype-block:jar:1.1.0-20120911.095051-2 from/to apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots): Failed to transfer file: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/cocoon-22-archetype-block-1.1.0-20120911.095051-2.jar. Return code is: 401 -> [Help 1]

Must be something with the credential setup.

Definitely: I've just been able to deploy the updated archetype (see detailed logs below).

It's probably a missing <server> element in ~/.m2/settings.xml for 'apache.snapshots.https' (see [1] for more details).

Cheers.

[1] http://incubator.apache.org/syncope/release-process.html#Apache_Maven


ilgrosso@mogano ~/work/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block $ mvn clean deploy
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building Cocoon 2.2 Archetype: Block 1.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ cocoon-22-archetype-block ---
[INFO] Deleting /home/ilgrosso/work/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-maven) @ cocoon-22-archetype-block ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cocoon-22-archetype-block ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ cocoon-22-archetype-block ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 16 resources
[INFO] Copying 2 resources to META-INF
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:compile (default-compile) @ cocoon-22-archetype-block ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ cocoon-22-archetype-block ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/ilgrosso/work/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/test/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5:testCompile (default-testCompile) @ cocoon-22-archetype-block ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @ cocoon-22-archetype-block ---
[INFO] Surefire report directory: /home/ilgrosso/work/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cocoon-22-archetype-block ---
[INFO] Building jar: /home/ilgrosso/work/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/target/cocoon-22-archetype-block-1.1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @ cocoon-22-archetype-block ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cocoon-22-archetype-block ---
[INFO] Installing /home/ilgrosso/work/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/target/cocoon-22-archetype-block-1.1.0-SNAPSHOT.jar to /home/ilgrosso/.m2/repository/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/cocoon-22-archetype-block-1.1.0-SNAPSHOT.jar
[INFO] Installing /home/ilgrosso/work/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/pom.xml to /home/ilgrosso/.m2/repository/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/cocoon-22-archetype-block-1.1.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ cocoon-22-archetype-block ---
Downloading: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/maven-metadata.xml
Downloaded: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/maven-metadata.xml (792 B at 0.3 KB/sec)
Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/cocoon-22-archetype-block-1.1.0-20120911.111302-2.jar
Uploaded: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/cocoon-22-archetype-block-1.1.0-20120911.111302-2.jar (30 KB at 13.8 KB/sec)
Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/cocoon-22-archetype-block-1.1.0-20120911.111302-2.pom
Uploaded: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/cocoon-22-archetype-block-1.1.0-20120911.111302-2.pom (2 KB at 0.7 KB/sec)
Downloading: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/maven-metadata.xml
Downloaded: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/maven-metadata.xml (302 B at 0.2 KB/sec)
Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/maven-metadata.xml
Uploaded: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/1.1.0-SNAPSHOT/maven-metadata.xml (792 B at 0.4 KB/sec)
Uploading: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/maven-metadata.xml
Uploaded: https://repository.apache.org/content/repositories/snapshots/org/apache/cocoon/cocoon-22-archetype-block/maven-metadata.xml (302 B at 0.1 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.804s
[INFO] Finished at: Tue Sep 11 13:13:13 CEST 2012
[INFO] Final Memory: 15M/490M
[INFO] ------------------------------------------------------------------------
-- 
Francesco Chicchiriccò

ASF Member, Apache Cocoon PMC and Apache Syncope PPMC Member
http://people.apache.org/~ilgrosso/