123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?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>
- <artifactId>jnpf-workflow</artifactId>
- <groupId>com.jnpf</groupId>
- <version>1.0.0-RELEASE</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <packaging>jar</packaging>
- <artifactId>jnpf-workflow-admin</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-validation</artifactId>
- </dependency>
- <dependency>
- <groupId>com.mysql</groupId>
- <artifactId>mysql-connector-j</artifactId>
- </dependency>
- <!-- Oracle-->
- <dependency>
- <groupId>com.oracle.database.jdbc</groupId>
- <artifactId>ojdbc8</artifactId>
- </dependency>
- <dependency>
- <groupId>com.oracle.database.nls</groupId>
- <artifactId>orai18n</artifactId>
- </dependency>
- <!-- dm -->
- <dependency>
- <groupId>com.dameng</groupId>
- <artifactId>DmJdbcDriver18</artifactId>
- </dependency>
- <!-- sqlserver -->
- <dependency>
- <groupId>com.microsoft.sqlserver</groupId>
- <artifactId>mssql-jdbc</artifactId>
- </dependency>
- <!--PostGre-->
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- </dependency>
- <!--GaussDB-->
- <!--<dependency>
- <groupId>org.opengauss</groupId>
- <artifactId>opengauss-jdbc</artifactId>
- </dependency>-->
- <!--HighgoDB-->
- <!--<dependency>
- <groupId>com.highgo</groupId>
- <artifactId>hgdb-pgjdbc</artifactId>
- </dependency>-->
- </dependencies>
- <profiles>
- <profile>
- <id>flowable</id>
- <activation>
- <jdk>[,]</jdk>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.jnpf</groupId>
- <artifactId>jnpf-workflow-flowable${jnpf.workflow.core.jdk.version}</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
- </profile>
- <!--<profile>
- <id>activiti</id>
- <dependencies>
- <dependency>
- <groupId>com.jnpf</groupId>
- <artifactId>jnpf-workflow-activiti</artifactId>
- <version>1.0.0-RELEASE</version>
- </dependency>
- </dependencies>
- </profile>-->
- <profile>
- <!--JAR包加密-->
- <id>encrypted</id>
- <activation>
- <jdk>[,]</jdk>
- </activation>
- <build>
- <plugins>
- <!--安装加密打包插件-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <executions>
- <execution>
- <id>install-core</id>
- <phase>clean</phase>
- <configuration>
- <file>${project.basedir}/../allatori/class-winter-core-${class-winter-maven-plugin.version}.jar</file>
- <repositoryLayout>default</repositoryLayout>
- <groupId>com.idea-aedi</groupId>
- <artifactId>class-winter-core</artifactId>
- <version>${class-winter-maven-plugin.version}</version>
- <packaging>jar</packaging>
- <generatePom>true</generatePom>
- </configuration>
- <goals>
- <goal>install-file</goal>
- </goals>
- </execution>
- <execution>
- <id>install-maven</id>
- <phase>clean</phase>
- <configuration>
- <file>${project.basedir}/../allatori/class-winter-maven-plugin-${class-winter-maven-plugin.version}.jar</file>
- <repositoryLayout>default</repositoryLayout>
- <groupId>com.idea-aedi</groupId>
- <artifactId>class-winter-maven-plugin</artifactId>
- <version>${class-winter-maven-plugin.version}</version>
- <packaging>jar</packaging>
- <generatePom>false</generatePom>
- <pomFile>${project.basedir}/../allatori/class-winter-maven-plugin-pom.xml</pomFile>
- </configuration>
- <goals>
- <goal>install-file</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!--复制驱动包-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>clean</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <includeGroupIds>com.jnpf</includeGroupIds>
- <includeArtifactIds>jnpf-workflow-common${jnpf.workflow.core.jdk.version}</includeArtifactIds>
- <outputDirectory>${project.build.directory}/copylib</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.idea-aedi</groupId>
- <artifactId>class-winter-maven-plugin</artifactId>
- <!-- 相关配置 -->
- <configuration>
- <!--设置不存在的包表示此项目不加密-->
- <includePrefix>jnpf.noexists</includePrefix>
- <!--直接覆盖原文件-->
- <finalName>${project.build.finalName}</finalName>
- <!--项目中包含的已经加密的包-->
- <alreadyProtectedLibs>jnpf-workflow-common${jnpf.workflow.core.jdk.version}-${project.version}.jar,jnpf-workflow-flowable${jnpf.workflow.core.jdk.version}-${project.version}.jar</alreadyProtectedLibs>
- <!--检查启动参数-->
- <jvmArgCheck>-XX:+DisableAttachMechanism</jvmArgCheck>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>class-winter</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <mainClass>jnpf.JnpfFlowableApplication</mainClass>
- <layout>ZIP</layout>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|