You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthias Wessendorf <ma...@apache.org> on 2007/06/24 13:01:38 UTC

[maven-remote-resources-plugin] weird behavior on NOTICE and LICENSE files ?

Hi,

I used the maven-remote-resources-plugin in the past to add NOTICE and
LICENSE to regular JAR and:
a) source JAR
b) javadoc JAR

Now, running this command

mvn clean source:jar javadoc:jar install deploy
-DaltDeploymentRepository=matzew::default::file:FOLDER

on this POM ([1]) it doesn't work.

The source.jar is fine, but the javadoc.jar doesn't contain NOTICE/LICENSE.
Not sure, why it stopped working (I tried with the older alpha-2 and
the newest alpha-5)

Any ideas ?

Thanks,
Matthias


[1] http://tinyurl.com/2rvfuy
-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

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


Re: [maven-remote-resources-plugin] weird behavior on NOTICE and LICENSE files ?

Posted by Daniel Kulp <dk...@apache.org>.
Matthias,


On Sunday 24 June 2007 07:01, Matthias Wessendorf wrote:
> I used the maven-remote-resources-plugin in the past to add NOTICE and
> LICENSE to regular JAR and:
> a) source JAR
> b) javadoc JAR
>
> Now, running this command
>
> mvn clean source:jar javadoc:jar install deploy
> -DaltDeploymentRepository=matzew::default::file:FOLDER
>
> on this POM ([1]) it doesn't work.

Nope.  That wouldn't work.   The remote resources needs to run before the 
source:jar and javadoc:jar.    Couple ways to do that:

1) Try:
mvn clean compile source:jar javadoc:jar install deploy ......
The compile should cause the remote-resources to run.

2) Create a "deploy" profile or similar that adds the source:jar and 
javadoc:jar goals to the normal lifecycle and just use the profile.


> The source.jar is fine, but the javadoc.jar doesn't contain
> NOTICE/LICENSE. Not sure, why it stopped working (I tried with the
> older alpha-2 and the newest alpha-5)

Also double check the version of the javadoc plugin.  You need the latest 
one.   Earlier versions won't pick up the resources.

>
> Any ideas ?
>
> Thanks,
> Matthias
>
>
> [1] http://tinyurl.com/2rvfuy

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

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


Re: [maven-remote-resources-plugin] weird behavior on NOTICE and LICENSE files ?

Posted by Matthias Wessendorf <ma...@apache.org>.
> Daniel Kulp gave me some tips on this one.

I found the mail thread

http://mail-archives.apache.org/mod_mbox/incubator-general/200702.mbox/%3c200702220303.12944.daniel.kulp@iona.com%3e


-M

> -M
>
> On 6/24/07, Wendy Smoak <ws...@gmail.com> wrote:
> > On 6/24/07, Matthias Wessendorf <ma...@apache.org> wrote:
> >
> > > I used the maven-remote-resources-plugin in the past to add NOTICE and
> > > LICENSE to regular JAR and:
> > > a) source JAR
> > > b) javadoc JAR
> >
> > How?
> >
> > > Now, running this command
> > >
> > > mvn clean source:jar javadoc:jar install deploy
> > > -DaltDeploymentRepository=matzew::default::file:FOLDER
> > >
> > > on this POM ([1]) it doesn't work.
> >
> > Has it ever worked?  I don't think I've ever seen a -sources or
> > -javadoc jar that included LICENSE/NOTICE files.
> >
> > --
> > Wendy
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

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


Re: [maven-remote-resources-plugin] weird behavior on NOTICE and LICENSE files ?

Posted by Matthias Wessendorf <ma...@apache.org>.
that was a requirement for us (Trinidad) when, being under incubation.

Daniel Kulp gave me some tips on this one.

-M

On 6/24/07, Wendy Smoak <ws...@gmail.com> wrote:
> On 6/24/07, Matthias Wessendorf <ma...@apache.org> wrote:
>
> > I used the maven-remote-resources-plugin in the past to add NOTICE and
> > LICENSE to regular JAR and:
> > a) source JAR
> > b) javadoc JAR
>
> How?
>
> > Now, running this command
> >
> > mvn clean source:jar javadoc:jar install deploy
> > -DaltDeploymentRepository=matzew::default::file:FOLDER
> >
> > on this POM ([1]) it doesn't work.
>
> Has it ever worked?  I don't think I've ever seen a -sources or
> -javadoc jar that included LICENSE/NOTICE files.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

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


Re: [maven-remote-resources-plugin] weird behavior on NOTICE and LICENSE files ?

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/24/07, Matthias Wessendorf <ma...@apache.org> wrote:

> I used the maven-remote-resources-plugin in the past to add NOTICE and
> LICENSE to regular JAR and:
> a) source JAR
> b) javadoc JAR

How?

> Now, running this command
>
> mvn clean source:jar javadoc:jar install deploy
> -DaltDeploymentRepository=matzew::default::file:FOLDER
>
> on this POM ([1]) it doesn't work.

Has it ever worked?  I don't think I've ever seen a -sources or
-javadoc jar that included LICENSE/NOTICE files.

-- 
Wendy

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