Why are you writing code to do this? You should be installing the sources via the source plugin:
mvn source:jar Or assembly plugin: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html Eric On 6/15/07, niraj <[EMAIL PROTECTED]> wrote:
To be more specific, I am installing the app.jar through normal mvn deploy and the sources.jar through a custom pojo, as its not sources, but some other project files, and the code for that is: Artifact artifact = m_artifactFactory.createArtifactWithClassifier(m_groupId, m_artifactId, m_version, "jar", jarType); try { deployer.deploy(file, artifact, m_project.getDistributionManagementArtifactRepository(), m_localRepository); } catch (ArtifactDeploymentException e) { throw new MojoExecutionException(e.getMessage(), e); } While downloading, I am just adding the classifier element, jarType in the dependency tag. It works for versioned jars, not for snapshots. I am using mvn 2. -- View this message in context: http://www.nabble.com/0-Snapshot-numbering-for-classifiers-tf3927571s177.html#a11138790 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Eric Redmond http://www.sonatype.com