Netbeans build failure
glassfish, maven, netbeans
Solution
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>`.
Problem
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] ```