- 浏览: 43256 次
最新评论
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>
相关推荐
c3p0-0.9.5.2.jar mchange-commons-java-0.2.11.jar commons-logging-1.2.jar mysql-connector-java-5.1.43-bin.jar
Missing artifact com.oracle:ojdbc6:jar:11.2.0.1.0问题解决 ojdbc包pom.xml出错 <!-- oracle数据库驱动 --> <groupId>com.oracle</groupId> <artifactId>ojdbc6 <version>11.2.0.1.0 1.首先确定你...
下载之后再maven的bin目录下使用mvn命令:mvn install:install-file -Dfile=F:\apache-maven-3.5.3\mylib\olap4j-0.9.7.309-JS-3.jar -DgroupId=org.olap4j -DartifactId=olap4j-0.9.7.309-JS-3 -Dversion=0.9.7.309...
用于maven setting.xml文件丢失,eclipse集成maven插件.m2下无setting.xml文件需要配置的情况
下载之后再maven的bin目录下使用mvn命令:mvn install:install-file -Dfile=F:\apache-maven-3.5.3\mylib\olap4j-0.9.7.309-JS-3.jar -DgroupId=org.olap4j -DartifactId=olap4j-0.9.7.309-JS-3 -Dversion=0.9.7.309...
maven:用于推送pom.xml文件
maven详解,使用maven构建项目,pom.xml讲解,本地仓库,搭建nexus
安装maven并配置好后,使用mvn -v查看版本报错:当前目录下缺少pom.xml
通过mvn命令下载pom.xml中的jar包,命令写在了批处理文件里,同时包含了一个setting文件
maven的set.xml配置文件
Sortpom Maven插件 ... 如果xml元素未排序,则mvn sortpom:verify仅对当前pom.xml文件进行排序。 此目标在验证pom是否已排序时会忽略文本格式(例如缩进和换行符)。 用法 Sortpom插件将对pom元素重新排序,并在
解决 Maven 无法下载 fastdfs-client-java-1.29-SNAPSHOT 依赖,直接下载之后用maven命令...pom.xml 文件中写入: <groupId>org.csource <artifactId>fastdfs-client-java <version>1.29-SNAPSHOT </dependency>
mvn install:install-file -Dfile=文件路径\spire.pdf.free-2.2.2.jar -DgroupId=e-iceblue -DartifactId=spire.pdf.free -Dversion=2.2.2 -Dpackaging=jar mvn install:install-file -Dfile=文件路径\spire.xls....
poi-3.6-20091214.jar
该插件用于为JRebel生成rebel.xml配置文件。 需要Maven 3.0或更高版本(对于Maven 2.x项目,请使用JRebel Maven插件版本1.1.5)。 有关更多信息,请参阅以下JRebel文档: ://manuals.zeroturnaround....
一、在本地安装部分 jar 包 由于在 maven中心库中未找到jetty-server-8.1.8.jar 与 cos-26Dec2008.jar, 需要先使用如下命令将这两个 jar 包安装在本地 maven 库中 ...二、后续将会对 pom.xml 再做调整
mvn install:install-file -DgroupId=io.confluent -DartifactId=kafka-schema-registry-client -Dversion=6.2.2 -Dfile=/root/kafka-schema-registry-client-6.2.2.jar -Dpackaging=jar 官网下载地址 packages....
clickhouse 连接jar
mvn archetype:create -DgroupId=packageName -DartifactId=projectName 2. 创建Maven的Web项目: mvn archetype:create -DgroupId=packageName -DartifactId=webappName -...
Maven依赖:【bcprov-jdk15on-***.jar Maven依赖信息(可用于项目pom.xml).txt】 Gradle依赖:【bcprov-jdk15on-***.jar Gradle依赖信息(可用于项目build.gradle).txt】 源代码下载地址:【bcprov-jdk15on-***-...