[ 
https://issues.apache.org/jira/browse/MDEPLOY-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575543#comment-14575543
 ] 

Kyle Holohan edited comment on MDEPLOY-196 at 6/6/15 3:20 AM:
--------------------------------------------------------------

I was able to achieve this by:

https://github.com/kholohan/maven-plugins/commit/65083030785f91600224666da3d943e6f5981de7

However,  was getting the following exception when attempting to add this entry 
to target/test-classes/unit/deploy-file-test/plugin-config.xml for testing:

org.codehaus.plexus.component.configurator.ComponentConfigurationException: 
Error loading class 'org.apache.maven.plugin.deploy.License'
        at 
org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:170)
        at 
org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
        at 
org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
        at 
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
        at 
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent(AbstractComponentConfigurator.java:54)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:217)
        at 
org.apache.maven.plugin.testing.AbstractMojoTestCase.lookupMojo(AbstractMojoTestCase.java:133)
        at 
org.apache.maven.plugin.deploy.DeployFileMojoTest.testDeployTestEnvironment(DeployFileMojoTest.java:65)
Caused by: java.lang.ClassNotFoundException: 
org.apache.maven.plugin.deploy.License
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at 
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
        at 
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
        at 
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at 
org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:158)
        ... 29 more





was (Author: kholohan):
I was able to achieve this by:

https://github.com/kholohan/maven-plugins/commit/65083030785f91600224666da3d943e6f5981de7

> As a user,  I would like to be to specify the licenses for a generated 
> default pom
> ----------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-196
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-196
>             Project: Maven Deploy Plugin
>          Issue Type: Story
>            Reporter: Kyle Holohan
>
> It would be nice to be able to specify the licenses that we want to include 
> in the generated pom file.  Something along the lines of this:
>       <plugin>
>         <artifactId>maven-install-plugin</artifactId>
>         <configuration>
>           <groupId>org.apache.maven.test</groupId>
>           <artifactId>maven-install-file-test</artifactId>
>           <version>1.0-SNAPSHOT</version>
>           <packaging>jar</packaging>
>           
> <file>${basedir}/target/test-classes/unit/install-file-basic-test/target/maven-install-test-1.0-SNAPSHOT.jar
>           </file>
>           <localRepository>${localRepository}</localRepository>
>           <licenses>
>               <license>
>                 <name>Apache License, Version 2.0</name>
>                 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
>               </license>
>           </licenses>
>         </configuration>
>       </plugin>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to