paulwong

          用MAVEN搭建JAVAEE5項(xiàng)目架構(gòu)

          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 閱讀(1343) 評(píng)論(0)  編輯  收藏 所屬分類: EJB3

          主站蜘蛛池模板: 巴青县| 田东县| 墨竹工卡县| 安平县| 黎城县| 会理县| 连南| 漳平市| 临桂县| 修文县| 米脂县| 洱源县| 昌江| 波密县| 耿马| 固阳县| 和林格尔县| 牟定县| 得荣县| 临高县| 南岸区| 临安市| 收藏| 贵阳市| 双辽市| 绥化市| 吴旗县| 海林市| 扎囊县| 鞍山市| 电白县| 南平市| 延安市| 汾西县| 新干县| 东安县| 湟源县| 张家川| 盐山县| 肥城市| 龙里县|