|
|
@@ -115,10 +115,17 @@
|
|
|
<dependency>
|
|
|
<groupId>org.oracle</groupId>
|
|
|
<artifactId>oracle</artifactId>
|
|
|
- <version>1.0</version>
|
|
|
+ <version>1.0.0</version>
|
|
|
<scope>system</scope>
|
|
|
<systemPath>${project.basedir}/lib/ojdbc7.jar</systemPath>
|
|
|
</dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>druid</artifactId>
|
|
|
+ <version>1.0.26</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
@@ -126,8 +133,59 @@
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <!-- 指定SpringBoot程序的main函数入口类 -->
|
|
|
+ <mainClass>com.uas.eis.UasEisApplication</mainClass>
|
|
|
+ </configuration>
|
|
|
+
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+
|
|
|
+ <configuration>
|
|
|
+
|
|
|
+ <source>1.7</source>
|
|
|
+ <target>1.7</target>
|
|
|
+
|
|
|
+ <compilerArguments>
|
|
|
+ <!-- 打包本地jar包 -->
|
|
|
+ <extdirs>${project.basedir}/lib</extdirs>
|
|
|
+ </compilerArguments>
|
|
|
+ </configuration>
|
|
|
+
|
|
|
</plugin>
|
|
|
+
|
|
|
</plugins>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 打包所有jar包 -->
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>lib</directory>
|
|
|
+ <targetPath>BOOT-INF/lib/</targetPath>
|
|
|
+ <includes>
|
|
|
+ <include>**/*.jar</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+
|
|
|
+ <!-- 某些情况下,打包后运行不起来需要打开注释 -->
|
|
|
+ <!-- <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <targetPath>BOOT-INF/classes/</targetPath>
|
|
|
+ </resource> -->
|
|
|
+ </resources>
|
|
|
+
|
|
|
</build>
|
|
|
|
|
|
</project>
|