Maven 3 and Cargo - "Plugin not found for prefix" cargo "

I just added the following code to my pom.xml (as stated in 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 get 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 would be appreciated.

+3
source share
2 answers

You must define pluginGroup in order to be able to use the abbreviation on the command line.

+5
source

Another solution is the full name of the plugin org.codehaus.cargo:cargo-maven2-plugininstead cargo.

Will be for you mvn clean verify org.codehaus.cargo:cargo-maven2-plugin:run

0
source

All Articles