123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <parent>
- <groupId>com.primeton.damp</groupId>
- <artifactId>damp-server</artifactId>
- <version>7.0.0</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>boot</artifactId>
- <packaging>jar</packaging>
- <dependencies>
- <dependency>
- <groupId>com.primeton.damp</groupId>
- <artifactId>core</artifactId>
- <version>${damp.version}</version>
- <exclusions>
- <exclusion>
- <artifactId>commons-io</artifactId>
- <groupId>commons-io</groupId>
- </exclusion>
- <exclusion>
- <artifactId>springfox-swagger2</artifactId>
- <groupId>io.springfox</groupId>
- </exclusion>
- <exclusion>
- <artifactId>springfox-swagger-ui</artifactId>
- <groupId>io.springfox</groupId>
- </exclusion>
- <exclusion>
- <artifactId>guava</artifactId>
- <groupId>com.google.guava</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.primeton.damp</groupId>
- <artifactId>damp</artifactId>
- <version>${damp.version}</version>
- </dependency>
- <dependency>
- <groupId>org.mybatis.generator</groupId>
- <artifactId>mybatis-generator-core</artifactId>
- <version>${mybatis-generator.version}</version>
- </dependency>
- <dependency>
- <groupId>tk.mybatis</groupId>
- <artifactId>mapper-generator</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>org.jasig.cas.client</groupId>
- <artifactId>cas-client-core</artifactId>
- <version>3.5.0</version>
- </dependency>
- </dependencies>
- <build>
- <finalName>dampServer-${project.version}</finalName>
- <plugins>
- <!-- 打包插件 -->
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <includeSystemScope>true</includeSystemScope>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- <configuration>
- <mainClass>com.primeton.damp.Application</mainClass>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${java.version}</source>
- <!-- 指定JDK编译版本 -->
- <target>${java.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <descriptors>
- <descriptor>${project.basedir}/src/main/assembly/assembly.xml</descriptor>
- </descriptors>
- <finalName>Primeton_DQMS${project.version}_Server</finalName>
- <archive>
- <manifest>
- <mainClass/>
- </manifest>
- </archive>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.8</version>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <exportAntProperties>true</exportAntProperties>
- <propertyPrefix>damp</propertyPrefix>
- <tasks>
- <echo message="rm dist directory" />
- <!-- 删除指定目录下的所有文件和目录,包括指定目录-->
- <delete includeEmptyDirs="true">
- <fileset dir="${project.build.directory}/dist"/>
- </delete>
- <echo message="mkdir dist directory" />
- <mkdir dir="${project.build.directory}/dist"/>
- <echo message="copy maven dependencies" />
- <exec executable="mvn">
- <arg line=" dependency:copy-dependencies "/>
- </exec>
- <tar longfile="gnu"
- destfile="${project.build.directory}/dist/${project.build.finalName}-bin.tar.gz" compression="gzip">
- <tarfileset dir="${project.build.directory}/dependency" filemode="755" dirmode="755" prefix="${project.build.finalName}/lib">
- <include name="*.jar"/>
- </tarfileset>
- <tarfileset dir="${project.basedir}/src/main/scripts" filemode="755" dirmode="755" prefix="${project.build.finalName}" >
- <include name="*.sh"/>
- </tarfileset>
- <tarfileset dir="${project.basedir}/src/main/scripts" filemode="755" dirmode="755" prefix="${project.build.finalName}">
- <include name="*.bat"/>
- </tarfileset>
- <tarfileset dir="${project.basedir}/src/main/resources" filemode="755" dirmode="755" prefix="${project.build.finalName}/conf">
- </tarfileset>
- <tarfileset dir="${project.basedir}/../manual/resourceTemplate" filemode="755" dirmode="755" prefix="${project.build.finalName}/resourceTemplate">
- </tarfileset>
- <tarfileset dir="${project.basedir}/../manual/dataCheck" filemode="755" dirmode="755" prefix="${project.build.finalName}/dataCheck">
- </tarfileset>
- </tar>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|