Run a 'mvn source:jar install', it should automatically find the source-jar 
and deploy it along with the real jar.


On Friday 11 May 2007 10:07, StÄle Undheim wrote:
> When I do maven install on a project, the jar for it is compiled and
> placed in my local repository, however the accompanying source jar is
> not created and added. Is there any way in which I can easily install a
> source jar for the project I am in?
>
> The only way I know off now, is 2 steps:
> 1. mvn source:jar
> 2. mvn install:install-file -Dfile=.. -DartifactId=.. -DgroupId=..
> -Dpackaging=.. -Dversion=.. -Dclassifier=sources
>
> Even though all the parameters can be easily figured out from the
> pom.xml, I have to repeat them on the command line. I just want mvn
> install to also install source jars, or for there to be an
> install:source kinda target.

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
BĂ€ckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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

Reply via email to