I followed everything... Here's my settings.xml file: ==================================================== <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Sample for settings.xml configuration to use to release Apache Directory Studio --> <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <!-- Server configuration for 'people.apache.org' --> <server> <id>apache.releases</id> <username>pamarcelot</username> <!-- Authentication can be done via private key or password. Uncomment the line corresponding to your authentication method. --> <!--<privateKey>/Users/pajbam/.ssh/id_dsa</privateKey>--> <password>***********</password> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> <!-- My latest permission problems when deploying solved the following configuration addition, see also http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.htmlquite in the middle of the page "If you are deploying from Unix or have Cygwin ..." - I needed the configuration in contradiction what the doc says ... --> <configuration> <sshExecutable>ssh</sshExecutable> <scpExecutable>scp</scpExecutable> </configuration> </server> </servers> <profiles> <!-- Profile for to use for the release --> <profile> <id>release</id> <properties> <!-- Configuration for artifacts signature --> <gpg.passphrase>**********</gpg.passphrase> <!-- If you want to use another key than the default one, uncomment the following line. --> <!--<gpg.keyname>keyname</gpg.keyname>--> <!-- Configuration for jars signature --> <jarsign.keystore>/Users/pajbam/Development/Apache/Documents/keystore</jarsign.keystore> <jarsign.alias>studio</jarsign.alias> <jarsign.storepass>*******</jarsign.storepass> <!-- This is an alternative URL for a deployment repository when doing a release mvn release:perform -Prelease --> <!--<release.altDeploymentRepository>-DaltDeploymentRepository=test.release::default::file:///Users/pajbam/Development/Apache/FakeRepository/</release.altDeploymentRepository>--> <!-- This is the URL built distributions (*.tar.gz and *.zip) of the studio will be deployed. --> <!--<studio.dist.url>file:///Users/pajbam/Development/Apache/FakeRepository/</studio.dist.url>--> <!-- This is the URL built sites of the studio will be copied to --> <!--<distributionManagement.site.url>file:///Users/pajbam/Development/Apache/FakeRepository/</distributionManagement.site.url>--> </properties> </profile> <!-- Profile for Windows --> <!--<profile> <id>win32</id> </profile>--> <!-- Profile for Mac OS X --> <!--<profile> <id>macosx</id> </profile>--> <!-- Profile for Linux x86 --> <!--<profile> <id>linux-x86</id> </profile>--> <!-- Profile for x86_64 --> <!--<profile> <id>linux-x86_64</id> </profile>--> <!-- Profile for Linux PPC --> <!--<profile> <id>linux-ppc</id> </profile>--> </profiles> <!-- We need to activate these OS specific profiles, so all the distributions are generated and deployed to the repository. --> <activeProfiles><!-- <activeProfile>win32</activeProfile> <activeProfile>macosx</activeProfile> <activeProfile>linux-x86</activeProfile> <activeProfile>linux-x86_64</activeProfile> <activeProfile>linux-ppc</activeProfile>--> </activeProfiles> </settings> ==================================================== Looking at the apache-5.pom file, looks like the release server as been changed since apache-4.pom... apache-5.pom: ============== <repository> <id>apache.releases.https</id> <name>Apache Release Distribution Repository</name> <url>https://repository.apache.org/service/local/staging/deploy/maven2 </url> </repository> ============== apache-4.pom: <repository> <id>apache.releases</id> <name>Apache Release Distribution Repository</name> <url>scp:// people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository </url> </repository> Thanks, Pierre-Arnaud On Tue, Apr 7, 2009 at 11:00 AM, Felix Knecht <[email protected]> wrote: > It looks like your deploying to the wrong repository, IMO this should go to > people.apache.org and not to > repository.apache.org. > > Do you have set something like > > <profile> > <id>release</id> > <properties> > <gpg.passphrase></gpg.passphrase> > > > <release.altDeploymentRepository>-DaltDeploymentRepository=apache.release::default::scpexe:// > people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository > </release.altDeploymentRepository> > </properties> > </profile> > > in your .m2/settings.xml and you are using the -Prelease profile? > See also > http://cwiki.apache.org/confluence/display/DIRxDEV/Guide+to+Directory+Releases > > Felix > > Pierre-Arnaud Marcelot schrieb: > > Thanks Felix, > > > > Looks like it worked this time. > > > > I still got the issue at the first shot. > > > > I waited a bit... then svn up.... and finally re-run the command with > > -Dresume option and it seems it worked... > > > > Now I have another problem... :) :( :( :( > > > > [INFO] [INFO] [install:install] > > [INFO] [INFO] Installing > > > /Users/pajbam/Development/Apache/Release_1.4.0/shared-trunk/target/checkout/target/pom-transformed.xml > > to > > > /Users/pajbam/.m2/repository/org/apache/directory/shared/shared-parent/0.9.14/shared-parent-0.9.14.pom > > [INFO] [INFO] Installing > > > /Users/pajbam/Development/Apache/Release_1.4.0/shared-trunk/target/checkout/target/shared-parent-0.9.14.pom.asc > > to > > > /Users/pajbam/.m2/repository/org/apache/directory/shared/shared-parent/0.9.14/shared-parent-0.9.14.pom.asc > > [INFO] [INFO] [deploy:deploy] > > [INFO] Uploading: > > > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/directory/shared/shared-parent/0.9.14/shared-parent-0.9.14.pom > > [INFO] 4/7K > > [INFO] 7/7K > > [INFO] [INFO] > > ------------------------------------------------------------------------ > > [INFO] [ERROR] BUILD ERROR > > [INFO] [INFO] > > ------------------------------------------------------------------------ > > [INFO] [INFO] Error deploying artifact: Failed to transfer file: > > > https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/directory/shared/shared-parent/0.9.14/shared-parent-0.9.14.pom > . > > Return code is: 401 > > [INFO] > > [INFO] [INFO] > > ------------------------------------------------------------------------ > > [INFO] [INFO] For more information, run Maven with the -e switch > > [INFO] [INFO] > > ------------------------------------------------------------------------ > > [INFO] [INFO] Total time: 11 seconds > > [INFO] [INFO] Finished at: Tue Apr 07 10:53:30 CEST 2009 > > [INFO] [INFO] Final Memory: 28M/50M > > [INFO] [INFO] > > ------------------------------------------------------------------------ > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Maven execution failed, exit code: '1' > > > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] For more information, run Maven with the -e switch > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 55 seconds > > [INFO] Finished at: Tue Apr 07 10:53:30 CEST 2009 > > [INFO] Final Memory: 11M/21M > > [INFO] > > ------------------------------------------------------------------------ > > > > Regards, > > P-A > > > > On Tue, Apr 7, 2009 at 10:49 AM, Felix Knecht <[email protected] > > <mailto:[email protected]>> wrote: > > > > I don't have an idea so far, but as I managed it lately for the > > skins module I could give it a try ... > > > > Felix > > > > Pierre-Arnaud Marcelot schrieb: > > > Hi Guys, > > > > > > Once again I have some issues using the release plugin to release > > shared. > > > > > > Here's my Maven output: > > > MacBookPro:shared-trunk pajbam$ mvn -Prelease release:prepare > > > [INFO] Scanning for projects... > > > [INFO] Reactor build order: > > > [INFO] Apache Directory Shared > > > [INFO] Apache Directory ASN.1 Shared > > > [INFO] Apache Directory Protocol Ldap Shared Constants > > > [INFO] Apache Directory Protocol Ldap Shared > > > [INFO] Apache Directory JNDI Shared > > > [INFO] Apache Directory MINA ASN.1 Codec Shared > > > [INFO] Apache Directory Protocol Ldap Converters > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] Building Apache Directory Shared > > > [INFO] task-segment: [release:prepare] (aggregator-style) > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > > > > [...] > > > > > > [INFO] [INFO] > > > [INFO] [INFO] > > > [INFO] [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] [INFO] Reactor Summary: > > > [INFO] [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] [INFO] Apache Directory Shared > ............................... > > > SUCCESS [31.207s] > > > [INFO] [INFO] Apache Directory ASN.1 Shared > ......................... > > > SUCCESS [8.090s] > > > [INFO] [INFO] Apache Directory Protocol Ldap Shared Constants > ....... > > > SUCCESS [2.553s] > > > [INFO] [INFO] Apache Directory Protocol Ldap Shared > ................. > > > SUCCESS [1:03.631s] > > > [INFO] [INFO] Apache Directory JNDI Shared > .......................... > > > SUCCESS [2.208s] > > > [INFO] [INFO] Apache Directory MINA ASN.1 Codec Shared > .............. > > > SUCCESS [2.302s] > > > [INFO] [INFO] Apache Directory Protocol Ldap Converters > ............. > > > SUCCESS [3.700s] > > > [INFO] [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] [INFO] BUILD SUCCESSFUL > > > [INFO] [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] [INFO] Total time: 1 minute 54 seconds > > > [INFO] [INFO] Finished at: Tue Apr 07 10:26:54 CEST 2009 > > > [INFO] [INFO] Final Memory: 35M/63M > > > [INFO] [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] Checking in modified POMs... > > > [INFO] Executing: /bin/sh -c cd > > > /Users/pajbam/Development/Apache/Release_1.4.0/shared-trunk && svn > > > --non-interactive commit --file /tmp/maven-scm-342570281.commit > > > --targets /tmp/maven-scm-35142-targets > > > [INFO] Working directory: > > > /Users/pajbam/Development/Apache/Release_1.4.0/shared-trunk > > > [INFO] Tagging release with the label 0.9.14... > > > [INFO] Executing: /bin/sh -c cd > > > /Users/pajbam/Development/Apache/Release_1.4.0/shared-trunk && svn > > > --non-interactive copy --file /tmp/maven-scm-1418570103.commit . > > > https://svn.apache.org/repos/asf/directory/shared/tags/0.9.14 > > > [INFO] Working directory: > > > /Users/pajbam/Development/Apache/Release_1.4.0/shared-trunk > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > [ERROR] BUILD FAILURE > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] Unable to tag SCM > > > Provider message: > > > The svn tag command failed. > > > Command output: > > > svn: The specified baseline is not the latest baseline, so it may > > not be > > > checked out. > > > > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] For more information, run Maven with the -e switch > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > [INFO] Total time: 3 minutes 47 seconds > > > [INFO] Finished at: Tue Apr 07 10:27:28 CEST 2009 > > > [INFO] Final Memory: 12M/23M > > > [INFO] > > > > > > ------------------------------------------------------------------------ > > > > > > > > > If anyone has a clue what to do... > > > > > > Thanks, > > > Pierre-Arnaud > > > > > > PS: > > > <rant> > > > Grr.... Why is the Maven release plugin always giving us > headaches > > > when releasing??? > > > </rant> > > > > > > > > >
