There's a few ways to do this, but I would... 1) check out the source at a known revision number. 2) check it into your own SCM. 3) modify the POM to have your own version number 4) mvn -DaltDeploymentRepository=<your own repo> -DupdateReleaseInfo=true deploy
The syntax for altDeploymentRepository is id::layout::url (layout is "default" 99.999% of the time). See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html You could alternatively go through the full release process, but that's unnecessary IMHO unless you are patching the original source and would require making more changes to the original pom. BTW, you mean "timestamped" snapshots, not "versioned" snapshots. All artifacts are versioned. I don't think Nexus can do what you're describing, but that's probably a better question for the Nexus list. Justin On 4/16/10 9:38 AM, James Russo wrote: > Hello, > > I have a project which has a dependency (jersey) on a -snapshot > version. The publisher does *not* publish versioned snapshots, so I can't > just override the dependency to use the version snapshot and then roll my own > release. > > What are my options for turning this dependency into a versioned snapshot? > I'm thinking about just downloading the source and changing the pom to deploy > it to my own nexus repo where it will create a versioned snapshot.. Will > requirement me to change repo path in pom and keep my own copy but this isn't > a bad thing. > > However, I was thinking if there was another way via proxy? Can I setup nexus > to proxy to the other repo and grab a snapshot and create a versioned > snapshot at that time? So I can use a versioned snapshot from my own repo, > but it really would have originated from the java repo as an unversioned > snapshot? The version information would be added at time of proxy? Is this > possible? > > thanks, > > -james > --------------------------------------------------------------------- > 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]
