You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Akbarr <ak...@gmail.com> on 2006/10/04 18:24:35 UTC

Installing snapshot sources

Hi all,

I'd like to create a jar with the sources of my project every time a install
is executed, ie, to install the .java sources always together to the .class
binaries. I've looked at the configuration of maven-install-plugin and I
don't see such a choice. Anyone knows how can I do that?

Thanks in advance,

[Akbarr]

Re: Installing snapshot sources

Posted by Johannes Schneider <jo...@familieschneider.info>.
Okay, got it. I simply added "-DperformRelease=true" as JDK argument. 
Everything works fine now. Thanks.


Johannes Schneider

Johannes Schneider wrote:
> This is not always possible. I have a build server here (TeamCity) that 
> automatically installs the latests snapshot of Spring RCP. But of course 
> I also want to have the sources installed to. Since the build server 
> always checks out the latest pom.xml from the repository I can't modify it.
> Any ideas?
> 
> 
> Thanks,
> 
> Johannes Schneider
> 
> Tom Huybrechts wrote:
>> Add the maven-source-plugin to the package phase.
>> See http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html
>>
>> On 10/4/06, Akbarr <ak...@gmail.com> wrote:
>>>
>>> Hi all,
>>>
>>> I'd like to create a jar with the sources of my project every time a
>>> install
>>> is executed, ie, to install the .java sources always together to the
>>> .class
>>> binaries. I've looked at the configuration of maven-install-plugin and I
>>> don't see such a choice. Anyone knows how can I do that?
>>>
>>> Thanks in advance,
>>>
>>> [Akbarr]
>>>
>>>
>>
> 

-- 
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

+49 7072 9229972
johannes@familieschneider.info
http://www.johannes-schneider.info

Re: Installing snapshot sources

Posted by Johannes Schneider <jo...@familieschneider.info>.
This is not always possible. I have a build server here (TeamCity) that 
automatically installs the latests snapshot of Spring RCP. But of course 
I also want to have the sources installed to. Since the build server 
always checks out the latest pom.xml from the repository I can't modify it.
Any ideas?


Thanks,

Johannes Schneider

Tom Huybrechts wrote:
> Add the maven-source-plugin to the package phase.
> See http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html
> 
> On 10/4/06, Akbarr <ak...@gmail.com> wrote:
>>
>> Hi all,
>>
>> I'd like to create a jar with the sources of my project every time a
>> install
>> is executed, ie, to install the .java sources always together to the
>> .class
>> binaries. I've looked at the configuration of maven-install-plugin and I
>> don't see such a choice. Anyone knows how can I do that?
>>
>> Thanks in advance,
>>
>> [Akbarr]
>>
>>
> 

-- 
Johannes Schneider
Im Lindenwasen 15
72810 Gomaringen

+49 7072 9229972
johannes@familieschneider.info
http://www.johannes-schneider.info

Re: Installing snapshot sources

Posted by Tom Huybrechts <to...@gmail.com>.
Add the maven-source-plugin to the package phase.
See http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html

On 10/4/06, Akbarr <ak...@gmail.com> wrote:
>
> Hi all,
>
> I'd like to create a jar with the sources of my project every time a
> install
> is executed, ie, to install the .java sources always together to the
> .class
> binaries. I've looked at the configuration of maven-install-plugin and I
> don't see such a choice. Anyone knows how can I do that?
>
> Thanks in advance,
>
> [Akbarr]
>
>