paulwong

          用MAVEN搭建JAVAEE5項目架構

          Installation

          Step 1 (download):

          Download the file javaee5-maven-archetype-1.0.jar

          Step 2 (install in local repo):

          Run:

          mvn install:install-file -Dfile=javaee5-maven-archetype-1.0.jar -DgroupId=pl.piotrsorobka.maven -DartifactId=javaee5-maven-archetype -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true

          Using the archetype

          Run:

          mvn archetype:create -DarchetypeGroupId=pl.piotrsorobka.maven -DarchetypeArtifactId=javaee5-maven-archetype -DarchetypeVersion=1.0 -DgroupId=your.group.id -DartifactId=project-name

          Deploy on Glassfish

          Step 1:

          Set environment variable GLASSFISH_HOME, pointing to your Glassfish installation folder. Alternatively, point <glassfishDirectory></glassfishDirectory> in your main pom.xml to your Glassfish installation folder.

          Step 2:

          Inside your project main folder run:

          mvn clean install

          and after:

          mvn -f ear/pom.xml glassfish:deploy

          If your Glassfish settings are default it will deploy the ear.

          posted on 2011-11-25 00:34 paulwong 閱讀(1348) 評論(0)  編輯  收藏 所屬分類: EJB3

          主站蜘蛛池模板: 永福县| 黄大仙区| 临桂县| 顺昌县| 阿拉善右旗| 太仓市| 镇雄县| 安义县| 临朐县| 图木舒克市| 和平县| 杂多县| 达拉特旗| 霞浦县| 通州市| 闸北区| 阳信县| 南澳县| 兰考县| 会同县| 来凤县| 日照市| 辽源市| 广水市| 新蔡县| 湘乡市| 登封市| 日土县| 台江县| 陆丰市| 林口县| 若羌县| 化隆| 鄱阳县| 南溪县| 绥滨县| 梁平县| 房产| 当阳市| 门源| 洱源县|