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

          主站蜘蛛池模板: 清远市| 临漳县| 大埔区| 蒲城县| 兴文县| 望谟县| 青岛市| 井研县| 鸡泽县| 太康县| 福泉市| 阿合奇县| 肥城市| 彭山县| 四会市| 太康县| 新乡县| 常德市| 将乐县| 当阳市| 涟水县| 河北省| 临洮县| 陇西县| 深圳市| 五台县| 自贡市| 江源县| 子洲县| 武义县| 吴旗县| 彰武县| 东莞市| 克拉玛依市| 左贡县| 台东县| 静乐县| 宣城市| 岳阳县| 巫溪县| 连城县|