You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by an...@nokia.com on 2006/03/17 17:50:17 UTC

[m2] include sources from a source.jar in repository

Hi,
 
how do I extract sources from a jar file in the repository into src/main/java prior to the build?
 
PS: if you want to get the "bigger picture", the question related to HOWTO-2 of problem described here:
http://www.mail-archive.com/users@maven.apache.org/msg37055.html
Andreas Ebbert-Karroum 
  Software Design Engineer - Nokia Networks Services / Middleware 
  phone: +49-211-94123928, fax: +49-211-94123838 
  Heltorfer Straße 1, 40472 Düsseldorf, Germany 


________________________________

This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. 

Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ 
________________________________



Re: [m2] include sources from a source.jar in repository

Posted by Wayne Fay <wa...@gmail.com>.
Realistically, I don't think this is something that you're ever going
to get "out of the box", and so you'll have to write your own plugin
for this specific functionality.

"Go get source code for a project from my repo and unzip into this
project" is just not a normal use case for Maven in my opinion.


Its possible that you could add a dependency like:
<dependency>
  <groupId>your.group</groupId>
  <artifactId>yourArtifact</artifactId>
  <version>yourVersion</version>
  <packaging>jar</packaging>
  <classifier>source</classifier>
  <scope>compile</scope>
</dependency>

And then perhaps somehow use the Assembly plugin to unjar the source
into your project. I would try this route. If it works, please report
back, but I'm not expecting much.

I would expect that this is more of a "fringe" use case for Maven in general.

Wayne


On 3/20/06, andreas.ebbert-karroum@nokia.com
<an...@nokia.com> wrote:
> Hi,
>
> No answers yet to this problem. Is it possible at all with the existing plugins?
>
>  _         __                _  _
> //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
>           `-        `
>   Andreas Ebbert-Karroum
>  Software Design Engineer - Nokia Networks Services / Middleware
>  phone: +49-211-94123928, fax: +49-211-9412-3838
>  Heltorfer Straße 1, 40472 Düsseldorf, Germany
>
>
>
> >-----Original Message-----
> >From: ext
> >users-return-42735-andreas.ebbert-karroum=nokia.com@maven.apach
> >e.org
> >[mailto:users-return-42735-andreas.ebbert-karroum=nokia.com@mav
> >en.apache.org]
> >Sent: 17 March, 2006 17:50
> >To: users@maven.apache.org
> >Subject: [m2] include sources from a source.jar in repository
> >
> >Hi,
> >
> >how do I extract sources from a jar file in the repository
> >into src/main/java prior to the build?
> >
> >PS: if you want to get the "bigger picture", the question
> >related to HOWTO-2 of problem described here:
> >http://www.mail-archive.com/users@maven.apache.org/msg37055.html
> >Andreas Ebbert-Karroum
> >  Software Design Engineer - Nokia Networks Services / Middleware
> >  phone: +49-211-94123928, fax: +49-211-94123838
> >  Heltorfer Straße 1, 40472 Düsseldorf, Germany
> >
>
> ----------------------------------------------------------------------
> This message is confidential. If you have received this message in error,
> please delete it from your system. You should not copy it for any purpose,
> or disclose its contents to any other person. Internet communications are
> not secure and therefore Nokia GmbH does not accept legal responsibility
> for the contents of this message as it has been transmitted over a public
> network. Thank you.
> Nokia GmbH, Nokia Networks is a German Company. Further information
> about the Company is available from its principal offices at
> Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the
> website at http://www.nokia.com/
> ----------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: [m2] include sources from a source.jar in repository

Posted by an...@nokia.com.
Hi,

No answers yet to this problem. Is it possible at all with the existing plugins?

 _         __                _  _
//\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
           `-        `
   Andreas Ebbert-Karroum
   Software Design Engineer - Nokia Networks Services / Middleware 
   phone: +49-211-94123928, fax: +49-211-9412-3838
   Heltorfer Straße 1, 40472 Düsseldorf, Germany 

 

>-----Original Message-----
>From: ext 
>users-return-42735-andreas.ebbert-karroum=nokia.com@maven.apach
>e.org 
>[mailto:users-return-42735-andreas.ebbert-karroum=nokia.com@mav
>en.apache.org] 
>Sent: 17 March, 2006 17:50
>To: users@maven.apache.org
>Subject: [m2] include sources from a source.jar in repository
>
>Hi,
> 
>how do I extract sources from a jar file in the repository 
>into src/main/java prior to the build?
> 
>PS: if you want to get the "bigger picture", the question 
>related to HOWTO-2 of problem described here:
>http://www.mail-archive.com/users@maven.apache.org/msg37055.html
>Andreas Ebbert-Karroum
>  Software Design Engineer - Nokia Networks Services / Middleware
>  phone: +49-211-94123928, fax: +49-211-94123838
>  Heltorfer Straße 1, 40472 Düsseldorf, Germany 
>

----------------------------------------------------------------------
This message is confidential. If you have received this message in error,
please delete it from your system. You should not copy it for any purpose,
or disclose its contents to any other person. Internet communications are
not secure and therefore Nokia GmbH does not accept legal responsibility
for the contents of this message as it has been transmitted over a public
network. Thank you.
Nokia GmbH, Nokia Networks is a German Company. Further information
about the Company is available from its principal offices at
Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the
website at http://www.nokia.com/
----------------------------------------------------------------------

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