Maven does not see the SNAPSHOT installed/deployed.  Just deploy the SNAPSHOT to the SNAPSHOTS repo and try again.

Alex

On Feb 8, 2008 11:28 AM, Pierre-Arnaud Marcelot <pa@marcelot.net> wrote:
Hi,

I'm trying to release the shared projects version 0.9.8, but I get an error in the middle of the process.

I'm following the instructions on these pages : http://cwiki.apache.org/DIRxDEV/guide-to-directory-releases.html & http://svn.apache.org/viewvc/directory/shared/releases

I've set up everything in my settings.xml file.

I'm working on this branch https://svn.apache.org/repos/asf/directory/shared/branches/0.9.8/

As the 9-SNAPSHOT is not deployed, I had to choose 8 for the version of the parent pom.

The "mvn -Prelease -DdryRun=true release:prepare" command works well and ends with a "Build Successful"

But the the "mvn -Prelease release:prepare" command ends on a "Build Error" (of course, I've run the "mvn release:clean" command between the 2 others).

Here is the log:
MacBook-Pro:shared 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] Searching repository for plugin with prefix: 'release'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Directory Shared
[INFO]    task-segment: [release:prepare] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: /Users/pajbam/release/shared
[INFO] Checking dependencies and plugins for snapshots ...
What is the release version for "Apache Directory Shared"? (org.apache.directory.shared:shared-parent) 0.9.8: :
What is the release version for "Apache Directory ASN.1 Shared"? (org.apache.directory.shared:shared-asn1) 0.9.8: :
What is the release version for "Apache Directory Protocol Ldap Shared Constants"? (org.apache.directory.shared:shared-ldap-constants) 0.9.8: :
What is the release version for "Apache Directory Protocol Ldap Shared"? (org.apache.directory.shared:shared-ldap) 0.9.8: :
What is the release version for "Apache Directory JNDI Shared"? (org.apache.directory.shared:shared-ldap-jndi) 0.9.8: :
What is the release version for "Apache Directory MINA ASN.1 Codec Shared"? (org.apache.directory.shared:shared-asn1-codec) 0.9.8: :
What is the release version for "Apache Directory Protocol Ldap Converters"? (org.apache.directory.shared:shared-converter) 0.9.8: :
What is SCM release tag or label for "Apache Directory Shared"? (org.apache.directory.shared:shared-parent) shared-parent-0.9.8: : 0.9.8
What is the new development version for "Apache Directory Shared"? (org.apache.directory.shared:shared-parent) 0.9.9-SNAPSHOT: :
What is the new development version for "Apache Directory ASN.1 Shared"? (org.apache.directory.shared:shared-asn1) 0.9.9-SNAPSHOT: :
What is the new development version for "Apache Directory Protocol Ldap Shared Constants"? (org.apache.directory.shared:shared-ldap-constants) 0.9.9-SNAPSHOT: :
What is the new development version for "Apache Directory Protocol Ldap Shared"? (org.apache.directory.shared:shared-ldap) 0.9.9-SNAPSHOT: :
What is the new development version for "Apache Directory JNDI Shared"? (org.apache.directory.shared:shared-ldap-jndi) 0.9.9-SNAPSHOT: :
What is the new development version for "Apache Directory MINA ASN.1 Codec Shared"? (org.apache.directory.shared:shared-asn1-codec) 0.9.9-SNAPSHOT: :
What is the new development version for "Apache Directory Protocol Ldap Converters"? (org.apache.directory.shared:shared-converter) 0.9.9-SNAPSHOT: :
[INFO] Transforming 'Apache Directory Shared'...
[INFO] Transforming 'Apache Directory ASN.1 Shared'...
[INFO] Transforming 'Apache Directory Protocol Ldap Shared Constants'...
[INFO] Transforming 'Apache Directory Protocol Ldap Shared'...
[INFO] Updating shared-asn1 to 0.9.8
[INFO] Ignoring artifact version update for expression: ${pom.version}
[INFO] Updating shared-ldap-constants to 0.9.8
[INFO] Ignoring artifact version update for expression: ${pom.version}
[INFO] Transforming 'Apache Directory JNDI Shared'...
[INFO] Transforming 'Apache Directory MINA ASN.1 Codec Shared'...
[INFO] Updating shared-asn1 to 0.9.8
[INFO] Ignoring artifact version update for expression: ${pom.version}
[INFO] Transforming 'Apache Directory Protocol Ldap Converters'...
[INFO] Updating shared-ldap to 0.9.8
[INFO] Ignoring artifact version update for expression: ${pom.version}
[INFO] Not generating release POMs
[INFO] Executing goals 'clean verify'...
[INFO] Executing: mvn clean verify --no-plugin-updates -P release,release
    [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: [clean, verify]
    [INFO] ------------------------------------------------------------------------
    [INFO] [clean:clean]
    [INFO] Deleting directory /Users/pajbam/release/shared/target
    [INFO] Deleting directory /Users/pajbam/release/shared/target/classes
    [INFO] Deleting directory /Users/pajbam/release/shared/target/test-classes
    [INFO] Deleting directory /Users/pajbam/release/shared/target/site
    [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
    [INFO] Setting property: velocimacro.messages.on => 'false'.
    [INFO] Setting property: resource.loader => 'classpath'.
    [INFO] Setting property: resource.manager.logwhenfound => 'false'.
    [INFO] [remote-resources:process {execution: default}]
    [INFO] [site:attach-descriptor]
    [INFO] Preparing source:jar
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [INFO] No goals needed for project - skipping
    [INFO] [source:jar {execution: attach-sources}]
    [INFO] Preparing javadoc:jar
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Apache Directory Shared
    [INFO] ------------------------------------------------------------------------
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [INFO] No goals needed for project - skipping
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Apache Directory ASN.1 Shared
    [INFO] ------------------------------------------------------------------------
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [INFO] No goals needed for project - skipping
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Apache Directory Protocol Ldap Shared Constants
    [INFO] ------------------------------------------------------------------------
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [INFO] No goals needed for project - skipping
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Apache Directory Protocol Ldap Shared
    [INFO] ------------------------------------------------------------------------
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
    Downloading: http://repo1.maven.org/maven2/org/apache/directory/shared/shared-asn1/0.9.8/shared-asn1-0.9.8.jar
    Downloading: http://repo1.maven.org/maven2/org/apache/directory/shared/shared-ldap-constants/0.9.8/shared-ldap-constants-0.9.8.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
   
    Missing:
    ----------
    1) org.apache.directory.shared:shared-asn1:jar:0.9.8
   
      Try downloading the file manually from the project website.
   
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.apache.directory.shared -DartifactId=shared-asn1 -Dversion=0.9.8 -Dpackaging=jar -Dfile=/path/to/file
   
      Alternatively, if you host your own repository you can deploy the file there:
          mvn deploy:deploy-file -DgroupId=org.apache.directory.shared -DartifactId=shared-asn1 -Dversion=0.9.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
   
      Path to dependency:
          1) org.apache.directory.shared:shared-ldap:jar:0.9.8
          2) org.apache.directory.shared:shared-asn1:jar:0.9.8
   
    2) org.apache.directory.shared:shared-ldap-constants:jar:0.9.8
   
      Try downloading the file manually from the project website.
   
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.apache.directory.shared -DartifactId=shared-ldap-constants -Dversion=0.9.8 -Dpackaging=jar -Dfile=/path/to/file
   
      Alternatively, if you host your own repository you can deploy the file there:
          mvn deploy:deploy-file -DgroupId=org.apache.directory.shared -DartifactId=shared-ldap-constants -Dversion=0.9.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
   
      Path to dependency:
          1) org.apache.directory.shared:shared-ldap:jar:0.9.8
          2) org.apache.directory.shared:shared-ldap-constants:jar:0.9.8
   
    ----------
    2 required artifacts are missing.
   
    for artifact:
      org.apache.directory.shared:shared-ldap:jar:0.9.8
   
    from the specified remote repositories:
      central (http://repo1.maven.org/maven2),
      apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
   
   
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 4 seconds
    [INFO] Finished at: Fri Feb 08 17:16:50 CET 2008
    [INFO] Final Memory: 13M/24M
    [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: 24 seconds
[INFO] Finished at: Fri Feb 08 17:16:50 CET 2008
[INFO] Final Memory: 5M/8M
[INFO] ------------------------------------------------------------------------

What can I do to make it work ?

Thanks.
Pierre-Arnaud