Netbeans构建失败

 mobiledu2502901837 发布于 2023-02-13 09:57

全新的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]

bop.. 13

Maven如何知道要部署到哪个服务器以及它位于何处?

这都在pom.xml文件中.

有时您需要追踪其父母pom.xml才能找到它.

在Java EE教程的情况下,当我构建项目时hello1,Maven无法找到我的GlassFish服务器的位置.

我跟踪了父母的pom.xml发现 然后我把它改成了 .C:\mine\tools_installation\glassfish4\docs\javaee-tutorial\examples\pom.xml(51):
c:/
c:/mine/tools_installation

1 个回答
  • Maven如何知道要部署到哪个服务器以及它位于何处?

    这都在pom.xml文件中.

    有时您需要追踪其父母pom.xml才能找到它.

    在Java EE教程的情况下,当我构建项目时hello1,Maven无法找到我的GlassFish服务器的位置.

    我跟踪了父母的pom.xml发现 然后我把它改成了 .C:\mine\tools_installation\glassfish4\docs\javaee-tutorial\examples\pom.xml(51):
    <glassfish.home.prefix>c:/</glassfish.home.prefix>
    <glassfish.home.prefix>c:/mine/tools_installation</glassfish.home.prefix>

    2023-02-13 10:03 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有