描述:在NetBeans IDE 8.1中build工程Java EE7 dukes-forest时报如下所示错误
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project dukes-payment: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: Failed to create deployer with implementation class org.codehaus.cargo.container.glassfish.GlassFish4xInstalledLocalDeployer for the parameters (container [id = [glassfish4x]], deployer type [installed]). InvocationTargetException: The container configuration directory “c://glassfish4/glassfish/domains” does not exist. Please configure the container before attempting to perform any local deployment. Read more on: http://cargo.codehaus.org/Local+Configuration -> [Help 1]
注:例子中使用的是Java ee7中的example
解决方法:将glassfish4/docs/javaee-tutorial/examples下pom.xml文件的<glassfish.home.prefix>和<glassfish.home>两个属性值更改成自己的glassfish的安装目录,再重新build就好
本文描述了在NetBeans IDE 8.1中构建JavaEE7 dukes-forest项目时遇到的错误,并提供了详细的解决方案。主要是由于Cargo Maven插件无法创建部署器导致的问题,通过修改pom.xml文件中的glassfish安装目录来解决。
4943

被折叠的 条评论
为什么被折叠?



