netbeans全新入门,正在编写地址簿教程。我可以毫无问题地运行该程序,但是当我构建时,我得到了以下错误。我还没有找到这个问题的任何可能的解决方案。
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project address-book: 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]发布于 2013-12-08 00:00:01
Maven如何知道要部署到哪台服务器,以及它位于何处?
它们都在pom.xml文件中。
有时,您必须找到pom.xml的父母才能找到它。
在Java教程中,当我构建项目hello1时,Maven找不到我的GlassFish服务器的位置。
我追踪到pom.xml的父母找到了C:\mine\tools_installation\glassfish4\docs\javaee-tutorial\examples\pom.xml(51):
然后我把它改成了<glassfish.home.prefix>c:/mine/tools_installation</glassfish.home.prefix>。
发布于 2013-12-04 04:24:50
容器配置目录c://glassfish 4/glassfish/domain不存在。
Maven / Cargo查找在pom.xml中定义的文件夹,但它不存在于您的计算机上。
I您需要更改的属性是,并且需要将其设置为您的GlassFish安装目录。
发布于 2014-12-22 21:04:00
因此,它会自动从父examples文件夹pom.xml中获取,而不是从您打开的示例中获取。因此,您应该从编辑pom.xml
YOUR_GLASSFISH_HOME\docs\javaee-tutorial\examples它认为这是示例pom.xml中的错误
https://stackoverflow.com/questions/20360767
复制相似问题