On Sat, 20 Aug 2011 04:30:49 -0700 (PDT)
Villemos <[email protected]> wrote:

> 
> I think the merge syntax was right.
> 
Yes but still, this is not the best way to do it ;) As I coded the
stuff, IMHO you have to declare a unique entry to merge same license
(the first one is the license to keep, and rest of licenses are to
merge...).

> I found the problem; The configuration was set under 'execution'.
> When I set it earlier, it works. And the <useMissingFile> tag is not
> enough; it needs a 'true' value. The configuration below works for me.*

Arch sorry not to have seen this :( So at the end no problem for you ;)
> 
>                       <plugin>
>                               <groupId>org.codehaus.mojo</groupId>
>                               <artifactId>license-maven-plugin</artifactId>
>                               <configuration>
>                                       <useMissingFile>true</useMissingFile>
>                                       <licenseMerges>
>                                               <licenseMerge>The
> Apache Software License, Version 2.0|Apache 2</licenseMerge>
>                                               <licenseMerge>The
> Apache Software License, Version 2.0|Apache License</licenseMerge>
>                                               <licenseMerge>The
> Apache Software License, Version 2.0|Apache License, Version
> 2.0</licenseMerge> </licenseMerges>
>                               </configuration>
>                               <executions>
>                                       <execution>
>                                               <id>add-third-party</id>
>                                               <goals>
>                                                       
> <goal>add-third-party</goal>
>                                               </goals>
>                                       </execution>
>                               </executions>
>                       </plugin>
> 
> 
> 
> 
> 
> Tony Chemit wrote:
> > 
> > On Sat, 20 Aug 2011 01:12:54 -0700 (PDT)
> > Villemos <[email protected]> wrote:
> > 
> >> 
> >> I cannot get this plugin to work.
> >> 
> >> I have added the following to my POMs build section:
> >> 
> >> 
> >>            <plugin>
> >>         <groupId>org.codehaus.mojo</groupId>
> >>         <artifactId>license-maven-plugin</artifactId>
> >>         <version>1.0-beta-3</version>
> >>         <executions>        
> >>           <execution>
> >>           
> >>            <configuration>
> >>                    <useMissingFile/>
> >>                     <missingFile>TEST.txt</missingFile>
> >>                    <licenseMerges>
> >>                   <licenseMerge>The Apache Software License,
> >> Version 2.0|Apache 2</licenseMerge>
> >>                   <licenseMerge>The Apache Software License,
> >> Version 2.0|Apache License</licenseMerge>
> >>                   <licenseMerge>The Apache Software License,
> >> Version 2.0|Apache License, Version 2.0</licenseMerge>
> >>                 </licenseMerges>
> >>            </configuration>
> >>           
> >>             <id>add-third-party</id>
> >>             <goals>
> >>               <goal>add-third-party</goal>
> >>             </goals>
> >>           </execution>
> >>         </executions>
> >>   
> >>       </plugin>
> >> 
> >> I run the 'mvn license:add-third-party'.
> >> 
> >> The THIRD-PARTY.txt license file is generated, but it neither
> >> creates the THIRD-PARTY.properties file as expected, nor does it
> >> merge the licenses as specified.
> >> 
> >> What am I doing wrong?
> >> 
> > Can you send me a little project to check the problem (just the pom
> > for example)
> > 
> > Just know that the third party missing file will be created only if
> > there is at least a dependency in your project without license
> > information.
> > 
> > For the merge of license what I see in your pom does not look
> > quite correct, 
> > 
> > you should use this syntax :
> > 
> > <licenseMerges>
> >                   <licenseMerge>The Apache Software License, Version
> > 2.0|Apache 2|Apache License|Apache License, Version
> > 2.0</licenseMerge> </licenseMerges>
> > 
> > you can have a look to this pom which use this [1] (with a
> > licenseMerge search ;)
> > 
> > Hope it helps you.
> > 
> > 
> > [1] http://svn.nuiton.org/svn/mavenpom/trunk/pom.xml
> > 
> > 
> >> 
> >> 
> >> 
> >> 
> >> Farrukh Najmi wrote:
> >> > 
> >> > 
> >> > First, Thanks to Tony for his help on my earlier questions.
> >> > 
> >> > I am now trying to use "license:add-third-party -DuseMissingFile"
> >> > goal on my project to geenerate the THIRD-PARTY.properties
> >> > pointed to by the missingFile property. No such file gets
> >> > created any where in my directory tree.
> >> > 
> >> > After much trial and error I found that I must define this
> >> > property in the plugin configuration and command line setting as
> >> > instructed in the following page does not work:
> >> > 
> >> >
> >> http://mojo.codehaus.org/license-maven-plugin/examples/example-thirdparty.html
> >> > 
> >> > Is this a known issue? Perhaps the doc should be fixed?
> >> > 
> >> > -- 
> >> > Regards,
> >> > Farrukh Najmi
> >> > 
> >> > Web: http://www.wellfleetsoftware.com
> >> > 
> >> > 
> >> > 
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe from this list, please visit:
> >> > 
> >> >     http://xircles.codehaus.org/manage_email
> >> > 
> >> > 
> >> > 
> >> > 
> >> 
> > 
> > 
> > 
> > -- 
> > Tony Chemit
> > --------------------
> > tél: +33 (0) 2 40 50 29 28
> > email: [email protected]
> > http://www.codelutin.com
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> > 
> >     http://xircles.codehaus.org/manage_email
> > 
> > 
> > 
> > 
> 



-- 
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
email: [email protected]
http://www.codelutin.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to