微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Maven 3和Cargo-\'找不到前缀\'cargo\'的插件

如何解决Maven 3和Cargo-\'找不到前缀\'cargo\'的插件

|| 我刚刚将以下代码添加到我的pom.xml中(如此处指定):
<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>
但是,当我运行
mvn clean verify cargo:run
时,我得到以下信息:
No plugin found for prefix \'cargo\' in the current project and in the plugin groups [org.apache.maven.plugins,org.codehaus.mojo]
任何帮助将不胜感激。     

解决方法

        您必须定义pluginGroup才能在命令行上使用缩写。     ,        另一个解决方案是指定完整的插件名称“ 3”而不是“ 4”。 因为你将是
mvn clean verify org.codehaus.cargo:cargo-maven2-plugin:run
    

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。