And use the -DuniqueVersion=false - I'm all set!

Thanks Tim! 

-----Original Message-----
From: Tim Kettler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 15, 2007 10:50 AM
To: Maven Users List
Subject: Re: building and installing a source only jar

Hi,

try adding the classifier property:

mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
-Dclassifier=sources -Dpackaging=jar -Dversion=1.0-SNAPSHOT
-Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
-Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false

-Tim

EJ Ciramella schrieb:
> Yep, I found the source:jar plugin just moments after sending my
> original email.
> 
> The problem I have now is when I install to our internal remote
> repository using the following command, I have two problems:
> 
> mvn deploy:deploy-file -DgroupId=lty -DartifactId=lty-utils
> -Dpackaging=jar -Dversion=1.0-SNAPSHOT
> -Dfile=lty-utils-1.0-SNAPSHOT-sources.jar -DrepositoryId=central
> -Durl=file:\\build.corp.upromise.com\maven2 -Dgeneratepom=false 
> 
> 1 - It's changing the name of the jar file, I'd like to keep the name
as
> shown above:
> 
> Uploading:
>
file:\\build.corp.upromise.com\maven2/lty/lty-utils/1.0-SNAPSHOT/lty-uti
> ls-1.0-20070815.142846-2.jar
> 
> Why won't it keep "sources" in the name.
> 
> 2 - How do I control the version number at deploy time?
> 
> 
> We'd like to do something similar to what repo1 has/does where the
> sources are sitting next to the actual binary versions.
> 
> -----Original Message-----
> From: Maria Odea Ching [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 15, 2007 2:57 AM
> To: Maven Users List
> Subject: Re: building and installing a source only jar
> 
> EJ Ciramella wrote:
>> Is there any way to build a source only jar and install that to our
>> internal remote repository?
>>   
> 
> Try 'mvn source:jar install' for this, and..
> 
>>  
>> We're trying to get more modular with our builds and would like to
> still
>> allow eclipse users to hop to the source of a particular dependency.
>>  
>> Even after I'm able to build a source only jar, is there an easy way
> to
>> get that down loaded?
>>
>>   
> 
> 'mvn eclipse:eclipse -DdownloadSources=true'
> 
> 
> HTH,
> Deng
> 
> ---------------------------------------------------------------------
> 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]


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

Reply via email to