MVN pom.xml 文件 打包生成war和类-class.jar
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
??? xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
??? <modelVersion>4.0.0</modelVersion>
??? <groupId>MicroWagerSystem</groupId>
??? <artifactId>MicroWagerSystem</artifactId>
??? <version>trunk</version>
??? <packaging>war</packaging>
??? <properties>
??? ??? <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
??? ??? <project.glassfishDirectory>/home/javadev/glassfish3/glassfish</project.glassfishDirectory>
??? ??? <project.glassfish.user>admin</project.glassfish.user>
??? ??? <project.glassfish.password></project.glassfish.password>
??? ??? <project.glassfish.domain>domain1</project.glassfish.domain>
??? ??? <project.glassfish.adminPort>4848</project.glassfish.adminPort>
??? ??? <project.glassfish.httpPort>9090</project.glassfish.httpPort>
??? ??? <project.glassfish.httpsPort>8443</project.glassfish.httpsPort>
??? ??? <project.glassfish.passwordFile>/home/javadev/glassfish3/glassfish/domains/domain1/config/domain-passwords</project.glassfish.passwordFile>
??? </properties>
??? <dependencies>
??? ??? <dependency>
??? ??? ??? <groupId>org.apache.httpcomponents</groupId>
??? ??? ??? <artifactId>httpclient</artifactId>
??? ??? ??? <version>4.1.3</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? <artifactId>Router</artifactId>
??? ??? ??? <version>trunk</version>
??? ??? ??? <type>jar</type>
??? ??? ??? <scope>compile</scope>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? <artifactId>BizCommon</artifactId>
??? ??? ??? <type>jar</type>
??? ??? ??? <scope>compile</scope>
??? ??? ??? <version>trunk</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>org.springframework</groupId>
??? ??? ??? <artifactId>spring-core</artifactId>
??? ??? ??? <version>3.1.1.RELEASE</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>org.springframework</groupId>
??? ??? ??? <artifactId>spring-web</artifactId>
??? ??? ??? <version>3.1.1.RELEASE</version>
??? ??? </dependency>
??? ??? <!-- for debug -->
??? ??? <dependency>
??? ??? ??? <groupId>org.slf4j</groupId>
??? ??? ??? <artifactId>slf4j-api</artifactId>
??? ??? ??? <version>1.6.2</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>ch.qos.logback</groupId>
??? ??? ??? <artifactId>logback-classic</artifactId>
??? ??? ??? <version>1.0.0</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>org.springframework</groupId>
??? ??? ??? <artifactId>spring-aop</artifactId>
??? ??? ??? <version>3.1.1.RELEASE</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>org.springframework</groupId>
??? ??? ??? <artifactId>spring-asm</artifactId>
??? ??? ??? <version>3.1.1.RELEASE</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>org.aspectj</groupId>
??? ??? ??? <artifactId>aspectjweaver</artifactId>
??? ??? ??? <version>1.6.12</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>cglib</groupId>
??? ??? ??? <artifactId>cglib</artifactId>
??? ??? ??? <version>2.2.2</version>
??? ??? </dependency>
??? ??? <!-- if you are creating a deployable file like a war you need to add the
??? ??? ??? aspectjrt library -->
??? ??? <dependency>
??? ??? ??? <groupId>org.aspectj</groupId>
??? ??? ??? <artifactId>aspectjrt</artifactId>
??? ??? ??? <version>1.6.12</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>org.aspectj</groupId>
??? ??? ??? <artifactId>aspectjlib</artifactId>
??? ??? ??? <version>1.6.2</version>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? <artifactId>Notifier</artifactId>
??? ??? ??? <version>trunk</version>
??? ??? ??? <type>jar</type>
??? ??? ??? <classifier>classes</classifier>
??? ??? ??? <scope>compile</scope>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? <artifactId>GtechSender</artifactId>
??? ??? ??? <version>trunk</version>
??? ??? ??? <type>jar</type>
??? ??? ??? <classifier>classes</classifier>
??? ??? ??? <scope>compile</scope>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? <artifactId>Front</artifactId>
??? ??? ??? <version>trunk</version>
??? ??? ??? <type>jar</type>
??? ??? ??? <classifier>classes</classifier>
??? ??? ??? <scope>compile</scope>
??? ??? </dependency>
??? ??? <dependency>
??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? <artifactId>StateEngine</artifactId>
??? ??? ??? <version>trunk</version>
??? ??? ??? <type>jar</type>
??? ??? ??? <classifier>classes</classifier>
??? ??? ??? <scope>compile</scope>
??? ??? </dependency>
??? </dependencies>
??? <build>
??? ??? <finalName>MicroWagerSystem</finalName>
??? ??? <resources>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/main/java</directory>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/main/resource</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? ??? <include>**/*.properties</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/keno/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/slto/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/pck3/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/trax/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/loto/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/pk4b/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/sync/keno/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/sync/slto/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/sync/pck3/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/sync/trax/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/sync/loto/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? ??? <resource>
??? ??? ??? ??? <directory>src/sync/pk4b/java</directory>
??? ??? ??? ??? <includes>
??? ??? ??? ??? ??? <include>**/*.xml</include>
??? ??? ??? ??? </includes>
??? ??? ??? </resource>
??? ??? </resources>
??? ??? <plugins>
??? ??? ??? <plugin>
??? ??? ??? ??? <groupId>org.codehaus.mojo</groupId>
??? ??? ??? ??? <artifactId>build-helper-maven-plugin</artifactId>
??? ??? ??? ??? <version>1.5</version>
??? ??? ??? ??? <executions>
??? ??? ??? ??? ??? <execution>
??? ??? ??? ??? ??? ??? <phase>generate-sources</phase>
??? ??? ??? ??? ??? ??? <goals>
??? ??? ??? ??? ??? ??? ??? <goal>add-source</goal>
??? ??? ??? ??? ??? ??? </goals>
??? ??? ??? ??? ??? ??? <configuration>
??? ??? ??? ??? ??? ??? ??? <sources>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/main/java</source>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/gens/java</source>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/keno/java</source>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/slto/java</source>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/trax/java</source>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/pk4b/java</source>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/pck3/java</source>
??? ??? ??? ??? ??? ??? ??? ??? <source>src/loto/java</source>
??? ??? ??? ??? ??? ??? ??? </sources>
??? ??? ??? ??? ??? ??? </configuration>
??? ??? ??? ??? ??? </execution>
??? ??? ??? ??? </executions>
??? ??? ??? </plugin>
??? ??? ??? <plugin>
??? ??? ??? ??? <groupId>org.apache.maven.plugins</groupId>
??? ??? ??? ??? <artifactId>maven-compiler-plugin</artifactId>
??? ??? ??? ??? <configuration>
??? ??? ??? ??? ??? <source>1.6</source>
??? ??? ??? ??? ??? <target>1.6</target>
??? ??? ??? ??? ??? <encoding>utf-8</encoding>
??? ??? ??? ??? ??? <sources>
??? ??? ??? ??? ??? ??? <source>src/main/java</source>
??? ??? ??? ??? ??? ??? <source>src/main/resource</source>
??? ??? ??? ??? ??? ??? <source>src/keno/java</source>
??? ??? ??? ??? ??? ??? <source>src/slto/java</source>
??? ??? ??? ??? ??? ??? <source>src/pck3/java</source>
??? ??? ??? ??? ??? ??? <source>src/trax/java</source>
??? ??? ??? ??? ??? ??? <source>src/loto/java</source>
??? ??? ??? ??? ??? ??? <source>src/pk4b/java</source>
??? ??? ??? ??? ??? ??? <source>src/sync/keno/java</source>
??? ??? ??? ??? ??? ??? <source>src/sync/slto/java</source>
??? ??? ??? ??? ??? ??? <source>src/sync/pck3/java</source>
??? ??? ??? ??? ??? ??? <source>src/sync/trax/java</source>
??? ??? ??? ??? ??? ??? <source>src/sync/loto/java</source>
??? ??? ??? ??? ??? ??? <source>src/sync/pk4b/java</source>
??? ??? ??? ??? ??? </sources>
??? ??? ??? ??? </configuration>
??? ??? ??? </plugin>
??? ??? ??? <plugin>
??? ??? ??? ??? <groupId>org.apache.maven.plugins</groupId>
??? ??? ??? ??? <artifactId>maven-war-plugin</artifactId>
??? ??? ??? ??? <configuration>
??? ??? ??? ??? ??? <webResources>
??? ??? ??? ??? ??? ??? <resource>
??? ??? ??? ??? ??? ??? ??? <directory>WebContent</directory>
??? ??? ??? ??? ??? ??? </resource>
??? ??? ??? ??? ??? </webResources>
??? ??? ??? ??? ??? <attachClasses>true</attachClasses>
??? ??? ??? ??? </configuration>
??? ??? ??? </plugin>
??? ??? ??? <plugin>
??? ??? ??? ??? <groupId>org.glassfish.maven.plugin</groupId>
??? ??? ??? ??? <artifactId>maven-glassfish-plugin</artifactId>
??? ??? ??? ??? <version>2.1</version>
??? ??? ??? ??? <configuration>
??? ??? ??? ??? ??? <user>${project.glassfish.user}</user>
??? ??? ??? ??? ??? <adminPassword>${project.glassfish.password}</adminPassword>
??? ??? ??? ??? ??? <glassfishDirectory>${project.glassfishDirectory}</glassfishDirectory>
??? ??? ??? ??? ??? <passwordFile>${project.glassfish.passwordFile}</passwordFile>
??? ??? ??? ??? ??? <autoCreate>true</autoCreate>
??? ??? ??? ??? ??? <debug>true</debug>
??? ??? ??? ??? ??? <echo>false</echo>
??? ??? ??? ??? ??? <terse>true</terse>
??? ??? ??? ??? ??? <components>
??? ??? ??? ??? ??? ??? <component>
??? ??? ??? ??? ??? ??? ??? <name>${project.build.finalName}</name>
??? ??? ??? ??? ??? ??? ??? <artifact>${project.build.directory}/${project.build.finalName}.war</artifact>
??? ??? ??? ??? ??? ??? </component>
??? ??? ??? ??? ??? </components>
??? ??? ??? ??? ??? <domain>
??? ??? ??? ??? ??? ??? <name>${project.glassfish.domain}</name>
??? ??? ??? ??? ??? ??? <adminPort>${project.glassfish.adminPort}</adminPort>
??? ??? ??? ??? ??? ??? <httpPort>${project.glassfish.httpPort}</httpPort>
??? ??? ??? ??? ??? ??? <httpsPort>${project.glassfish.httpsPort}</httpsPort>
??? ??? ??? ??? ??? </domain>
??? ??? ??? ??? </configuration>
??? ??? ??? </plugin>
??? ??? ??? <plugin>
??? ??? ??? ??? <groupId>org.codehaus.mojo</groupId>
??? ??? ??? ??? <artifactId>aspectj-maven-plugin</artifactId>
??? ??? ??? ??? <version>1.4</version>
??? ??? ??? ??? <configuration>
??? ??? ??? ??? ??? <aspectDirectory>src/main/aspectj</aspectDirectory>
??? ??? ??? ??? </configuration>
??? ??? ??? ??? <executions>
??? ??? ??? ??? ??? <execution>
??? ??? ??? ??? ??? ??? <goals>
??? ??? ??? ??? ??? ??? ??? <goal>compile</goal>?????? <!-- use this goal to weave all your main classes -->
??? ??? ??? ??? ??? ??? ??? <goal>test-compile</goal>? <!-- use this goal to weave all your test classes -->
??? ??? ??? ??? ??? ??? </goals>
??? ??? ??? ??? ??? </execution>
??? ??? ??? ??? </executions>
??? ??? ??? </plugin>
??? ??? </plugins>
??? </build>
??? <dependencyManagement>
??? ??? <dependencies>
??? ??? ??? <dependency>
??? ??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? ??? <artifactId>Front</artifactId>
??? ??? ??? ??? <version>trunk</version>
??? ??? ??? ??? <type>jar</type>
??? ??? ??? ??? <classifier>classes</classifier>
??? ??? ??? ??? <scope>compile</scope>
??? ??? ??? </dependency>
??? ??? ??? <dependency>
??? ??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? ??? <artifactId>Notifier</artifactId>
??? ??? ??? ??? <version>trunk</version>
??? ??? ??? ??? <type>jar</type>
??? ??? ??? ??? <classifier>classes</classifier>
??? ??? ??? ??? <scope>compile</scope>
??? ??? ??? </dependency>
??? ??? ??? <dependency>
??? ??? ??? ??? <groupId>com.joyveb.lottery</groupId>
??? ??? ??? ??? <artifactId>GtechSender</artifactId>
??? ??? ??? ??? <version>trunk</version>
??? ??? ??? ??? <type>jar</type>
??? ??? ??? ??? <classifier>classes</classifier>
??? ??? ??? ??? <scope>compile</scope>
??? ??? ??? </dependency>
??? ??? </dependencies>
??? </dependencyManagement>
</project>