Nope. That doesn't work.  These are separater sources that I got with
the download off the web.  They are not sources from my project.

Dave 

-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: September 19, 2007 03:09 PM
To: Maven Users List
Subject: Re: Maven install:install-file not working for sources

Remove the generatePom and see if that helps. The pom should be created
when the Jar is installed. The sources and javadocs do not write the
pom.

Also, if this is a project built by Maven, you can attach the sources
(and javadocs) to the build so they get automatically installed when
"mvn install" is called.

Wayne

On 9/19/07, Dave Rathnow <[EMAIL PROTECTED]> wrote:
> Could someone tell me how to install sources into the repository?  As 
> far as I can make out from the doc, the following command should work:
>
> mvn install:install-file -DgroupId=myGroupId-DartifactId=myArtifactId
> -Dfile=myArtifact-1.0-sources.jar -Dversion=1.0 -Dpackaging=jar 
> -DgeneratePom=true -Dclassifier=sources
>
> but it doesn't. It overrides the original artifact, in this case my 
> jar file.
>
> Dave.
>

---------------------------------------------------------------------
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]

Reply via email to