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

2006-03-20 Thread Ruel Loehr
I have been asked for similar functionality to this.   I wrote a plugin which 
can grab a source jar from the repo and which then expands it into the src tree 
as a new module.  It then generates a pom file which includes the new module.  
If your interested in it, let me know and I will send you the source.

Ruel Loehr
JBoss QA
 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 20, 2006 10:16 AM
To: Maven Users List
Subject: Re: [m2] include sources from a source.jar in repository

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:

  your.group
  yourArtifact
  yourVersion
  jar
  source
  compile


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]
>
>

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



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

2006-03-20 Thread Wayne Fay
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:

  your.group
  yourArtifact
  yourVersion
  jar
  source
  compile


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]
>
>


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

2006-03-20 Thread andreas.ebbert-karroum
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]



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

2006-03-17 Thread andreas.ebbert-karroum
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/