You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ståle Undheim <st...@staale.org> on 2007/05/11 10:07:01 UTC

How to install source jars

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.


Re: How to install source jars

Posted by Maria Odea Ching <oc...@exist.com>.
I think this was already discussed a few days ago,

Pls. see the thread, "How to deploy source jar generated by source 
plug-in into repository when running mvn deploy?" :)

-Deng

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.
>
>   
> ------------------------------------------------------------------------
>
> !DSPAM:602,46442499110541032652825!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to install source jars

Posted by Roland Asmann <Ro...@cfc.at>.
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: Roland.Asmann@cfc.at
Web: www.cfc.at

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to install source jars

Posted by Stephane Nicoll <st...@gmail.com>.
I already replied to this yesterday. Search the list please.

On 5/11/07, Ståle Undheim <st...@staale.org> 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.
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org