123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <?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">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>com.jnpf</groupId>
- <artifactId>jnpf-datareport-univer-core</artifactId>
- <version>5.2.0-RELEASE</version>
- </parent>
- <artifactId>jnpf-datareport-univer-common</artifactId>
- <dependencies>
- <dependency>
- <groupId>com.jnpf</groupId>
- <artifactId>jnpf-common-database</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.jnpf</groupId>
- <artifactId>jnpf-common-swagger</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.jnpf</groupId>
- <artifactId>jnpf-common-file</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi</artifactId>
- <version>${poi.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi-ooxml-full</artifactId>
- <version>${poi.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi-ooxml</artifactId>
- <version>${poi.version}</version>
- </dependency>
- <dependency>
- <groupId>com.jnpf</groupId>
- <artifactId>jnpf-datareport-univer-model</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>encrypted</id>
- <activation>
- <jdk>[,]</jdk>
- </activation>
- <build>
- <plugins>
- <!--复制驱动包, 供后续加密使用-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <includeGroupIds>com.jnpf,org.apache.poi,cn.dev33,cn.hutool,org.apache.poi,org.springframework,org.apache.tomcat.embed</includeGroupIds>
- <includeArtifactIds>jnpf-common-core,poi,sa-token-core,hutool-all,poi-ooxml,spring-web,tomcat-embed-core</includeArtifactIds>
- <outputDirectory>${project.build.directory}/copylib</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!--复制allatori配置重写配置中的包路径-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-and-filter-allatori-config</id>
- <phase>package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}</outputDirectory>
- <resources>
- <resource>
- <directory>${project.basedir}/../allatori</directory>
- <includes>
- <include>allatori.xml</include>
- </includes>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!--Jar混淆-->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>run-allatori</id>
- <phase>package</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <executable>java</executable>
- <arguments>
- <argument>-Xms128m</argument>
- <argument>-Xmx512m</argument>
- <argument>-jar</argument>
- <!-- Copy allatori.jar to 'allatori' directory to use the commented line -->
- <argument>${project.basedir}/../allatori/allatori.jar</argument>
- <!-- <argument>${basedir}/allatori/allatori.jar</argument> -->
- <argument>${project.build.directory}/allatori.xml</argument>
- </arguments>
- </configuration>
- </plugin>
- <!--Jar加密-->
- <plugin>
- <groupId>com.idea-aedi</groupId>
- <artifactId>class-winter-maven-plugin</artifactId>
- <!-- 相关配置 -->
- <configuration>
- <!--需要处理的包名-->
- <includePrefix>jnpf</includePrefix>
- <!--直接覆盖原文件-->
- <finalName>${build.finalName}</finalName>
- <!--编译中依赖的第三方包路径-->
- <supportFile>${project.build.directory}/copylib</supportFile>
- <!--检查启动参数-->
- <jvmArgCheck>-XX:+DisableAttachMechanism</jvmArgCheck>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>class-winter</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|