I am more comfortable writing a specific plugin to do this because we
want to introduce custom tags in the pom and assembly wouldn't allow us
to do.
If it can be done through code, it would be perfect !
 

-----Original Message-----
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 16, 2007 12:10 AM
To: Maven Users List
Subject: Re: 0-Snapshot numbering for classifiers

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.ht
ml

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to