|
@@ -12,56 +12,34 @@
|
|
|
<packaging>war</packaging>
|
|
<packaging>war</packaging>
|
|
|
<name>search-console Maven Webapp</name>
|
|
<name>search-console Maven Webapp</name>
|
|
|
<url>http://maven.apache.org</url>
|
|
<url>http://maven.apache.org</url>
|
|
|
- <profiles>
|
|
|
|
|
- <profile>
|
|
|
|
|
- <!-- 开发环境 -->
|
|
|
|
|
- <id>dev</id>
|
|
|
|
|
- <properties>
|
|
|
|
|
- <profile>dev</profile>
|
|
|
|
|
- </properties>
|
|
|
|
|
- <!-- 默认 -->
|
|
|
|
|
- <activation>
|
|
|
|
|
- <activeByDefault>true</activeByDefault>
|
|
|
|
|
- </activation>
|
|
|
|
|
- </profile>
|
|
|
|
|
- <profile>
|
|
|
|
|
- <!-- 测试环境 -->
|
|
|
|
|
- <id>test</id>
|
|
|
|
|
- <properties>
|
|
|
|
|
- <profile>test</profile>
|
|
|
|
|
- </properties>
|
|
|
|
|
- </profile>
|
|
|
|
|
- <profile>
|
|
|
|
|
- <!-- 生产环境 -->
|
|
|
|
|
- <id>prod</id>
|
|
|
|
|
- <properties>
|
|
|
|
|
- <profile>prod</profile>
|
|
|
|
|
- </properties>
|
|
|
|
|
- </profile>
|
|
|
|
|
- </profiles>
|
|
|
|
|
<dependencies>
|
|
<dependencies>
|
|
|
- <!-- spring-webmvc -->
|
|
|
|
|
|
|
+ <!-- spring boot -->
|
|
|
<dependency>
|
|
<dependency>
|
|
|
- <groupId>org.springframework</groupId>
|
|
|
|
|
- <artifactId>spring-webmvc</artifactId>
|
|
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
<dependency>
|
|
<dependency>
|
|
|
- <groupId>org.springframework</groupId>
|
|
|
|
|
- <artifactId>spring-tx</artifactId>
|
|
|
|
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
|
|
+ <artifactId>spring-cloud-starter-config</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
<dependency>
|
|
<dependency>
|
|
|
- <groupId>org.springframework</groupId>
|
|
|
|
|
- <artifactId>spring-context-support</artifactId>
|
|
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
<dependency>
|
|
<dependency>
|
|
|
- <groupId>org.springframework.data</groupId>
|
|
|
|
|
- <artifactId>spring-data-jpa</artifactId>
|
|
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-security</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
|
|
|
|
|
- <!-- log4j -->
|
|
|
|
|
<dependency>
|
|
<dependency>
|
|
|
- <groupId>log4j</groupId>
|
|
|
|
|
- <artifactId>log4j</artifactId>
|
|
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
+ <scope>test</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
|
+ <artifactId>spring-context-support</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- fastjson -->
|
|
<!-- fastjson -->
|
|
@@ -162,10 +140,10 @@
|
|
|
<artifactId>ojdbc6</artifactId>
|
|
<artifactId>ojdbc6</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
|
|
|
|
|
- <!-- dbcp -->
|
|
|
|
|
|
|
+ <!-- druid -->
|
|
|
<dependency>
|
|
<dependency>
|
|
|
- <groupId>commons-dbcp</groupId>
|
|
|
|
|
- <artifactId>commons-dbcp</artifactId>
|
|
|
|
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
|
|
+ <artifactId>druid</artifactId>
|
|
|
</dependency>
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- platform-core -->
|
|
<!-- platform-core -->
|
|
@@ -183,26 +161,19 @@
|
|
|
</dependency>
|
|
</dependency>
|
|
|
</dependencies>
|
|
</dependencies>
|
|
|
<build>
|
|
<build>
|
|
|
- <finalName>search-console</finalName>
|
|
|
|
|
- <!-- 受profile影响的目录 -->
|
|
|
|
|
- <resources>
|
|
|
|
|
- <resource>
|
|
|
|
|
- <directory>src/main/resources</directory>
|
|
|
|
|
- <filtering>true</filtering>
|
|
|
|
|
- </resource>
|
|
|
|
|
- </resources>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 解决maven项目jre版本默认为1.5的问题 -->
|
|
|
|
|
<plugins>
|
|
<plugins>
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.5.1</version>
|
|
|
|
|
<configuration>
|
|
<configuration>
|
|
|
<source>1.7</source>
|
|
<source>1.7</source>
|
|
|
<target>1.7</target>
|
|
<target>1.7</target>
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
</plugins>
|
|
|
</build>
|
|
</build>
|
|
|
</project>
|
|
</project>
|