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, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> 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
> >[EMAIL PROTECTED]
> >e.org
> >[mailto:[EMAIL PROTECTED]
> >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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to