maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Call a custom plugin from another project
Date Tue, 04 Jun 2013 14:38:57 GMT
1. Please use a propper mail agent that does not strip the code from you
email

2. Try `mvn it.spaghettisource.plugin:pojo:1.0:log` as Maven does not know
where to look for your plugin


On 4 June 2013 15:30, alesky <alessandro.dottavio@gmail.com> wrote:

> Hi guys
>
> i'm try to implement my first plugin
>
> so i did just a plugin that print a log on the screen
>
> this is the code
>
>
> and this is the pom related to this plugin, from the pom generated from the
> plugin archetype i have just add the maven-plugin-plugin to add the prefix
> pojo to make same test
>
>
>
> finally i have configure my setting to register my group of plugin
>
>
>
> now my proble,:
> from the command line i can call with any problem my plugin
> mvn pojo:log
>
> but if i try to use it in another project it is not used!
>
> for example this is the pom of my test project
> and if i run on this project
> mvn process-sources i should aspect to see my output but the plugin is not
> used at all
>
> any advice of the reason  that the plugin work directly from command line
> and not if configured in the pom of another project?
>
> thanks
>
> this is the log of the pom project
>
>
> this is instead the plugin.xml generated by maven
>
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Call-a-custom-plugin-from-another-project-tp5758214.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message