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

          主站蜘蛛池模板: 银川市| 永嘉县| 辛集市| 开鲁县| 渭南市| 永善县| 郓城县| 四会市| 泰宁县| 陆良县| 永吉县| 丹棱县| 介休市| 蕉岭县| 称多县| 通许县| 北碚区| 峨眉山市| 鲜城| 策勒县| 沿河| 额敏县| 阿克| 察隅县| 简阳市| 巴林右旗| 辽源市| 贵州省| 台州市| 宁南县| 新巴尔虎左旗| 三明市| 樟树市| 财经| 奇台县| 万载县| 阳江市| 师宗县| 延长县| 长宁区| 宣威市|