Projects setup using maven car-maven-plugin can be imported into Eclipse IDE, so that you can develop, test or debug them with GEP.
We start with the Geronimo sample application calculator and demonstrate how to import those appplications built with car-maven-plugin into eclipse IDE, and make them run on GEP.
mvn eclipse:eclipse
. See Maven Guide to using Eclipse with Maven 2.x for more information about this command.calculator-ear-2.1.2.ear
. This will create three projects in Eclipse: calculator-ear-2.1.2, calculator-ejb-2.1.2, calculator-war-2.1.2.\samples\tags\samples-parent-2.1.2\samples\calculator\calculator-ejb\src\main\java\org\apache\geronimo\samples\slsb\calculator
into the Eclipse package org.apache.geronimo.samples.slsb.calculator
for the calculator-ejb-2.1.2 project. This package should have been created for you during the import; if not, create it yourself prior to copying java files.org.apache.geronimo.samples.calculator
.\samples\tags\samples-parent-2.1.2\samples\calculator\calculator-war\src\main\java\org\apache\geronimo\samples\calculator\CalculatorServlet.java
into the package org.apache.geronimo.samples.calculator
.Now you can test and debug your applpication in Eclipse.
This turotial aims at importing existing Java EE artifacts into Eclipse. It does not work if you want your Java EE artifacts to build successfully in both maven and Eclipse.
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2013, The Apache Software Foundation, Licensed under ASL 2.0. |