3 Star 1 Fork 3

zhangjiangnan/cmppserverDemo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pom.xml 5.93 KB
一键复制 编辑 原始数据 按行查看 历史
zhangjiangnan 提交于 2020-06-30 14:21 . fix
<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">
<properties>
<MainClass>com.aspire.nm.component.cmppserverDemo.Main</MainClass>
<springframework.version>4.1.7.RELEASE</springframework.version>
<version>1.0.0</version>
</properties>
<modelVersion>4.0.0</modelVersion>
<groupId>com.aspire.nm.component</groupId>
<artifactId>cmppserverDemo</artifactId>
<packaging>jar</packaging>
<version>${version}</version>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>net.oschina.dajiangnan</groupId>
<artifactId>cmppserver</artifactId>
<version>1.0.9</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
<resource>
<directory>src/main/resource</directory>
<!--资源文件不编译-->
<filtering>false</filtering>
<targetPath>${project.build.directory}/classes</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<version>1.2.1</version>
</plugin>
<!-- 设置源文件编码方式 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- 资源文件的编码问题
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.3</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>-->
<!-- 编译打包时跳过单元测试
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>-->
<!-- 拷贝依赖的jar包到lib目录
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
<excludeScope>provided</excludeScope>
</configuration>
</execution>
</executions>
</plugin>-->
<!-- jar包启动类-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix></classpathPrefix>
<mainClass>${MainClass}</mainClass>
<!-- 解决snapshop问题 -->
<useUniqueVersions>false</useUniqueVersions>
</manifest>
<!-- 添加classpath缺少的内容-->
<manifestEntries>
<Class-Path>../cfg/</Class-Path>
</manifestEntries>
</archive>
<excludes>
<exclude>config/json/*.json</exclude>
<exclude>config/properties/*.properties</exclude>
<exclude>config/properties/cmppserver/*.cmppserver</exclude>
<exclude>log4j.properties</exclude>
<exclude>log4j.properties_nolog</exclude>
<exclude>keyword.txt</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/package.xml</descriptor>
</descriptors>
<!-- jar-with-dependencies是assembly预先写好的一个,组装描述引用(assembly descriptor)
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs> -->
</configuration>
</plugin>
</plugins>
</build>
<!-- deploy to server
<distributionManagement>
<repository>
<id>nexus</id>
<name>nexus Releases</name>
<url>http://218.206.69.193:8081/nexus/content/repositories/aspire-wap/</url>
</repository>
<snapshotRepository>
<id>nexus</id>
<name>nexus Snapshots</name>
<url>http://218.206.69.193:8081/nexus/content/repositories/aspire-wap-snapshot/</url>
</snapshotRepository>
</distributionManagement>
-->
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dajiangnan/cmppserverDemo.git
git@gitee.com:dajiangnan/cmppserverDemo.git
dajiangnan
cmppserverDemo
cmppserverDemo
master

搜索帮助