全新的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):
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>