You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stefan Arentz <st...@gmail.com> on 2006/10/29 11:12:55 UTC

How do I use the 'short name' of a plugin?

I am working on a little hack, a plugin to 'run' a spring context.

The code is at:

 https://www.sateh.com/svn/stefan/polarrose-maven-spring-plugin/trunk/

And I execute it like:

 mvn com.polarrose.maven:maven-spring-plugin:run \
    -Dmaven-spring-plugin.contextPath=classpath:com/foo/applicationContext.xml

And this works fine. Great to just quickly test code (mostly things
that run as servers/services).

But, I would really like to be able to simply say

 mvn spring:run [options]

Just like the jetty:run plugin works.

How would that work? I have looked at the Jetty plugin and I cannot
find anything special in there they do to make the short name work.

Is this a matter of packaging? Versioning? Or is there a global plugin
registry that I need to use?

 S.

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


Re: How do I use the 'short name' of a plugin?

Posted by Edwin Punzalan <ep...@exist.com>.
That is correct.  More info can be found here: 
http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html


Tom Huybrechts wrote:
> You need to add a plugin group for com.polarrose.com in your 
> settings.xml.
>
> See
> http://codehaus.org/~jvanzyl/maven2/guides/plugin/guide-java-plugin-development.html 
>
>
> Tom
>
> On 10/29/06, Stefan Arentz <st...@gmail.com> wrote:
>>
>> I am working on a little hack, a plugin to 'run' a spring context.
>>
>> The code is at:
>>
>> https://www.sateh.com/svn/stefan/polarrose-maven-spring-plugin/trunk/
>>
>> And I execute it like:
>>
>> mvn com.polarrose.maven:maven-spring-plugin:run \
>>     -
>> Dmaven-spring-plugin.contextPath=classpath:com/foo/applicationContext.xml 
>>
>>
>> And this works fine. Great to just quickly test code (mostly things
>> that run as servers/services).
>>
>> But, I would really like to be able to simply say
>>
>> mvn spring:run [options]
>>
>> Just like the jetty:run plugin works.
>>
>> How would that work? I have looked at the Jetty plugin and I cannot
>> find anything special in there they do to make the short name work.
>>
>> Is this a matter of packaging? Versioning? Or is there a global plugin
>> registry that I need to use?
>>
>> S.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

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


Re: How do I use the 'short name' of a plugin?

Posted by Tom Huybrechts <to...@gmail.com>.
You need to add a plugin group for com.polarrose.com in your settings.xml.

See
http://codehaus.org/~jvanzyl/maven2/guides/plugin/guide-java-plugin-development.html

Tom

On 10/29/06, Stefan Arentz <st...@gmail.com> wrote:
>
> I am working on a little hack, a plugin to 'run' a spring context.
>
> The code is at:
>
> https://www.sateh.com/svn/stefan/polarrose-maven-spring-plugin/trunk/
>
> And I execute it like:
>
> mvn com.polarrose.maven:maven-spring-plugin:run \
>     -
> Dmaven-spring-plugin.contextPath=classpath:com/foo/applicationContext.xml
>
> And this works fine. Great to just quickly test code (mostly things
> that run as servers/services).
>
> But, I would really like to be able to simply say
>
> mvn spring:run [options]
>
> Just like the jetty:run plugin works.
>
> How would that work? I have looked at the Jetty plugin and I cannot
> find anything special in there they do to make the short name work.
>
> Is this a matter of packaging? Versioning? Or is there a global plugin
> registry that I need to use?
>
> S.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>