Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven 3 and Cargo - 'No plugin found for prefix 'cargo''

I have just added the following code to my pom.xml (as specified on here) :

<build>
    <plugins>

        <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <version>1.1.1</version>
            <configuration>
                <container>
                    <containerId>tomcat7x</containerId>
                    <zipUrlInstaller>
                        <url>http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.12/bin/apache-tomcat-7.0.12.zip</url>
                    </zipUrlInstaller>
                </container>
            </configuration>
        </plugin>
    </plugins>
</build>

However, when I run mvn clean verify cargo:run I am getting the following :

No plugin found for prefix 'cargo' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]

Any help will be appreciated.

like image 488
Andrew Avatar asked Jun 11 '11 11:06

Andrew


2 Answers

You have to define the pluginGroup to be able to use the abbreviation on command line.

like image 71
khmarbaise Avatar answered Sep 18 '22 14:09

khmarbaise


Another solution is specify full plugin name org.codehaus.cargo:cargo-maven2-plugin instead cargo.

For you will be mvn clean verify org.codehaus.cargo:cargo-maven2-plugin:run

like image 40
BioQwer Avatar answered Sep 20 '22 14:09

BioQwer