On Tuesday 29 July 2008 02:24:10 Abhishek Sanoujam wrote:
-------------------------------8<---------------------------------------
> $ mvn exec:java -Dexec.mainClass=simpleproject.App
-------------------------------8<---------------------------------------
> plugin 'org.apache.maven.plugins:maven-exec-plugin' does not

Maven looks for org.apache.maven.plugins: if you don't specify a groupid for 
the plugin you want to execute.

-------------------------------8<---------------------------------------
> $ mvn org.codehaus.mojo:exec-maven-plugin:1.1:java
> -Dexec.mainClass=simpleproject.App
>
> The above works.
-------------------------------8<---------------------------------------

You need to add a plugin group to your settings.xml file. Go to your 
~/.m2/settings.xml and add the following there:

    <pluginGroups>
        <pluginGroup>org.codehaus.mojo</pluginGroup>
    </pluginGroups>

This tells Maven to look at org.codehaus.mojo: for plugins aswell.

Regards,
Magne

-- 
Magne Nordtveit <[EMAIL PROTECTED]>
Systems Engineer
Offshore Simulator Centre AS
http://www.offsimcentre.no

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to