As described here:
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

You can execute the mojo with:
mvn groupID:artifactID:version:goal

In this case, it should be something like (not sure about the goal,
check the plugin sources or documentation):
mvn com.atlassian.maven.plugins:maven-licenses-plugin:1.0-SNAPSHOT:list

Wayne

On Mon, Oct 6, 2008 at 9:51 AM, bshepherd <[EMAIL PROTECTED]> wrote:
>
> Thanks, I was able to build the plugin by pointing to the repo you listed. I
> have verified that the plugin was installed into my local repository. I am
> not sure how to run it. I tried:
>
> mvn licenses:list
>
> and got
> [INFO] Searching repository for plugin with prefix: 'licenses'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not
> exist or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-licenses-plugin' does not exist or no valid
> version
>  could be found
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
> The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not exist
> or no valid version could be found
>        at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
>        at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
>        at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
>        ... 14 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Oct 06 10:43:29 MDT 2008
> [INFO] Final Memory: 6M/11M
> [INFO]
> ------------------------------------------------------------------------
>
>
> I have place the following in my Reporting section of the pom
>
>            <plugin>
>                <groupId>com.atlassian.maven.plugins</groupId>
>                <artifactId>maven-licenses-plugin</artifactId>
>                <version>1.0-SNAPSHOT</version>
>            </plugin>
>
> Is there something else I need to do?
>
>
> justinedelson wrote:
>>
>> It's in the Atlassian public repo:
>> https://maven.atlassian.com/repository/public/
>>
>> -----Original Message-----
>> From: bshepherd [mailto:[EMAIL PROTECTED]
>> Sent: Monday, October 06, 2008 8:51 AM
>> To: users@maven.apache.org
>> Subject: Re: Dependency licenses
>>
>>
>> I found out that here at work we can not checkout from other companies
>> svn.
>> So I followed all the links and downloaded the files manually. However,
>> there is a dependency on a parent pom that is not in the checkout url
>> link.
>> Therefore I can not  seem to build. Any ideas?
>>
>> Downloading:
>> http://coors.casper.local/nexus/content/groups/public/com/atlassian/pom/
>> atlassian-public-pom/14/atlassian-public-pom-14.pom
>> ------------------------------------------------------------------------
>> [ERROR]FATAL ERROR
>> ------------------------------------------------------------------------
>> Error building POM (may not be this project's POM).
>>
>>
>> Project ID:
>> com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
>> HOT
>>
>> Reason: Cannot find parent: com.atlassian.pom:atlassian-public-pom for
>> project:
>> com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
>> HOT
>> for project
>> com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
>> HOT
>>
>>
>>
>> Wayne Fay wrote:
>>>
>>> The reply from James @ Atlassian provided the SVN trunk url:
>>> https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven-lic
>>> enses-plugin/trunk/
>>>
>>> I haven't done it, but I imagine you can check out the code and
>>> build/install/use it pretty easily.
>>>
>>> Wayne
>>>
>>> On Fri, Oct 3, 2008 at 11:47 AM, bshepherd <[EMAIL PROTECTED]>
>> wrote:
>>>>
>>>> I can follow the link in my browser, but how do you check out the
>>>> code so I can build it. It sounds exactly what I need.
>>>> Thanks
>>>>
>>>>
>>>> Keith Bonawitz-2 wrote:
>>>>>
>>>>> Is there a way to create an assembly that includes a license file
>>>>> for each dependency (including transitive dependencies)?
>>>>>
>>>>> Thanks,
>>>>> Keith
>>>>>
>>>>> --------------------------------------------------------------------
>>>>> - To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Dependency-licenses-tp17040644p19803517.html
>>>> Sent from the Maven - Users mailing list archive at Nabble.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]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dependency-licenses-tp17040644p19837323.html
>> Sent from the Maven - Users mailing list archive at Nabble.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]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Dependency-licenses-tp17040644p19841785.html
> Sent from the Maven - Users mailing list archive at Nabble.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]

Reply via email to