Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans build failure

Brand new to netbeans and working on the address-book tutorial. I am able to run the program without issues but when I build I get the following error. I have yet to find any possible solutions to the issue

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]
like image 271
user2692751 Avatar asked Dec 03 '13 20:12

user2692751


People also ask

How do I fix build failed error in Netbeans?

Solution to my problem: Remove MinGW and ALL of it's components, and also remove the folder x:\MinGW. Then install Cygwin, choose the packages you need, tutorial can be found on https://netbeans.org/community/releases/73/cpp-setup-instructions.html#cygwin or YouTube about which packages you need.


1 Answers

How does Maven know which server to deploy to and where is it located?

It's all in the pom.xml file.

Sometimes you will have to trace up the parents of the pom.xml to find it.

In the case of Java EE tutorial, when I was building project hello1, Maven couldn't find the location of my GlassFish server.

I traced up the parents of pom.xml to find C:\mine\tools_installation\glassfish4\docs\javaee-tutorial\examples\pom.xml(51):
<glassfish.home.prefix>c:/</glassfish.home.prefix>
Then I changed it to <glassfish.home.prefix>c:/mine/tools_installation</glassfish.home.prefix>.

like image 200
bop Avatar answered Oct 10 '22 21:10

bop