|
|
@@ -31,6 +31,7 @@
|
|
|
<xmlgraphics.version>2.1</xmlgraphics.version>
|
|
|
<mail.version>1.4.7</mail.version>
|
|
|
<commons.lang.version>2.6</commons.lang.version>
|
|
|
+ <mysql.jdbc.version>5.1.47</mysql.jdbc.version>
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
@@ -83,11 +84,6 @@
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>${fastjson.version}</version>
|
|
|
</dependency>
|
|
|
- <dependency>
|
|
|
- <groupId>com.oracle</groupId>
|
|
|
- <artifactId>ojdbc6</artifactId>
|
|
|
- <version>${oracle.jdbc.version}</version>
|
|
|
- </dependency>
|
|
|
|
|
|
<!-- 打印报表 -->
|
|
|
<dependency>
|
|
|
@@ -423,6 +419,88 @@
|
|
|
</pluginManagement>
|
|
|
</build>
|
|
|
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>oracle</id>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.oracle</groupId>
|
|
|
+ <artifactId>ojdbc6</artifactId>
|
|
|
+ <version>${oracle.jdbc.version}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ <activation>
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>mysql</id>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>${mysql.jdbc.version}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <!-- mvn deploy -P docker -->
|
|
|
+ <id>saas-docker</id>
|
|
|
+ <properties>
|
|
|
+ <docker.repository>192.168.253.3:4000</docker.repository>
|
|
|
+ <docker.registry.name>saas</docker.registry.name>
|
|
|
+ </properties>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>${mysql.jdbc.version}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ <build>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <!-- Docker maven plugin -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
+ <artifactId>docker-maven-plugin</artifactId>
|
|
|
+ <version>1.0.0</version>
|
|
|
+ <configuration>
|
|
|
+ <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
|
|
+ <registryUrl>${docker.repository}</registryUrl>
|
|
|
+ <pushImage>true</pushImage>
|
|
|
+ <forceTags>true</forceTags>
|
|
|
+ <imageName>
|
|
|
+ ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
|
|
|
+ </imageName>
|
|
|
+ <imageTags>
|
|
|
+ <imageTag>latest</imageTag>
|
|
|
+ </imageTags>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <targetPath>/</targetPath>
|
|
|
+ <directory>${project.build.directory}</directory>
|
|
|
+ <include>${project.build.finalName}.jar</include>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>build-image</id>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>build</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <!-- Docker maven plugin -->
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
+
|
|
|
<distributionManagement>
|
|
|
<!-- 发布release仓库 -->
|
|
|
<repository>
|