wild guess, maven release:perform -Darguments="-o"
this way, the actual maven build, after scm checkout, knows to turn off the download -D On 5/10/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
IIRC Andrew suggested that you download the code, build a local release yourself (called 2.0.4 [or something else], with no SNAPSHOT), and then use it to release your project. Maven does not all you to use *any* snapshot dependencies during a release. Feel free to submit a JIRA Enhancement to allow "non-runtime dependencies to be used during release" but I'm not sure how much traction you'll get with this proposal/modification. Wayne On 5/10/06, Dave Hoffer <[EMAIL PROTECTED]> wrote: > Andrew, > > This is an update to my last posting. > > I discovered that if I add another snapshot repository to my pom I can > now download 2.0-beta-4-SNAPSHOT and its dependencies. > > <pluginRepository> > <id>snapshots2</id> > <url>http://snapshots.maven.codehaus.org/maven2</url> > </pluginRepository> > > However I now get the same error that you described. > > [ERROR] BUILD ERROR > [INFO] > --------------------------------------------------------------------- > [INFO] Can't release project due to non released dependencies : > > org.apache.maven.plugins:maven-release-plugin:maven-plugin:2.0-beta-4-SN > APSHOT > > You said you rebuilt this right? Now I recall that someone in this mail > list said that it could be referenced directly from the snapshot repo. > > Is there some way in maven to tell it that this snapshot is okay and > release using it? After all it's not a runtime dependency. > > Any ideas? > > -dh > > > -----Original Message----- > From: Andrew Kreps [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 10, 2006 8:04 PM > To: Maven Users List > Subject: Re: why does my release fail? > > I'm also using the Release plugin 2.0-beta-4-SNAPSHOT code. I did > have to recompile it without the SNAPSHOT in the version name, since > the release plugin wouldn't allow me to generate an actual release > with SNAPSHOT plugin code. I got a good laugh out of that one. > > I can't explain why the release command worked once, but I can tell > you what's wrong with that command. The -o flag disables the > connection to the server, therefore the release plugin cannot download > the needed dependency. Also, the apache.org downtime never affected > the primary maven repository mirror, www.ibiblo.org. If you remove > the -o flag, the download should work properly. If it doesn't, you > should check your mirror configuration. > > This repository is running just fine: http://www.ibiblio.org/maven2/ > . > On 5/10/06, Dave Hoffer <[EMAIL PROTECTED]> wrote: > > Mvn -o release:prepare does not work it says that it is trying to > > download plexus-compiler-javac-1.6-SNAPSHOT.pom which it cannot do (I > > assume it is down). > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]