升级到GlassFishV3.1

今天GlassFishV3.1发布了,从Oracle站点上下载Linux版本的sh文件,然后

sudo chmod +x ./glassfish-3.1-unix.sh 

sudo sh ./glassfish-3.1-unix.sh 

 

UBuntu上弹出向导,然后安装,update tool boostrap会安装失败,不知道原因,不过没关系,已经可以使用了

然后在自己的Maven工程中修改pom.xml文件如下:

 

 

<plugin> <groupId>org.glassfish.maven.plugin</groupId> <artifactId>maven-glassfish-plugin</artifactId> <version>2.1</version> <configuration> <glassfishDirectory>/home/chenshu/glassfish3</glassfishDirectory> <user>admin</user> <passwordFile>/home/chenshu/glassfish_password</passwordFile> <debug>true</debug> <droptables>true</droptables> <!--<terse>true</terse>--> <echo>true</echo> <domainDirectory>/home/chenshu/glassfish3/glassfish/domains</domainDirectory> <domain> <name>domain1</name> <adminPort>4848</adminPort> <httpPort>8080</httpPort> <httpsPort>8443</httpsPort> <iiopPort>3700</iiopPort> <jmsPort>7676</jmsPort> <reuse>false</reuse> </domain> <components> <component> <name>FuCaiWeb</name> <artifact>target/${project.build.finalName}.war</artifact> </component> </components> </configuration> </plugin> 

 

你可能感兴趣的:(升级到GlassFishV3.1)