Browse Source

解决maven项目jre版本默认为1.5的问题

sunyj 9 years ago
parent
commit
fd7ea26f7d
1 changed files with 25 additions and 13 deletions
  1. 25 13
      search-console/pom.xml

+ 25 - 13
search-console/pom.xml

@@ -30,31 +30,31 @@
 			<groupId>org.springframework.data</groupId>
 			<artifactId>spring-data-jpa</artifactId>
 		</dependency>
-		
+
 		<!-- log4j -->
 		<dependency>
 			<groupId>log4j</groupId>
 			<artifactId>log4j</artifactId>
 		</dependency>
-		
+
 		<!-- fastjson -->
 		<dependency>
 			<groupId>com.alibaba</groupId>
 			<artifactId>fastjson</artifactId>
 		</dependency>
-		
+
 		<!-- search-api -->
 		<dependency>
 			<groupId>com.uas.search</groupId>
 			<artifactId>search-api</artifactId>
 		</dependency>
-		
+
 		<!-- dubbo -->
 		<dependency>
 			<groupId>com.alibaba</groupId>
 			<artifactId>dubbo</artifactId>
 		</dependency>
-		
+
 		<!-- zookeeper -->
 		<dependency>
 			<groupId>org.apache.zookeeper</groupId>
@@ -64,7 +64,7 @@
 			<groupId>com.github.sgroschupf</groupId>
 			<artifactId>zkclient</artifactId>
 		</dependency>
-		
+
 		<!-- lucene -->
 		<dependency>
 			<groupId>org.apache.lucene</groupId>
@@ -81,14 +81,14 @@
 			<artifactId>lucene-analyzers-common</artifactId>
 			<version>5.2.0</version>
 		</dependency>
-		
+
 		<!-- IKAnalyzer -->
 		<dependency>
 			<groupId>org.wltea.analyzer</groupId>
 			<artifactId>IKAnalyzer</artifactId>
 			<version>2012_v5</version>
 		</dependency>
-		
+
 		<!-- Lucene实时建索引时用于监听Oracle消息队列 -->
 		<dependency>
 			<groupId>org.oracle</groupId>
@@ -101,7 +101,7 @@
 			<artifactId>aqapi</artifactId>
 			<version>1.0</version>
 		</dependency>
-		
+
 		<!-- hibernate -->
 		<dependency>
 			<groupId>org.hibernate</groupId>
@@ -129,28 +129,40 @@
 			<groupId>org.hibernate</groupId>
 			<artifactId>hibernate-ehcache</artifactId>
 		</dependency>
-		
+
 		<!-- jdbc -->
 		<dependency>
 			<groupId>com.oracle</groupId>
 			<artifactId>ojdbc6</artifactId>
 		</dependency>
-		
+
 		<!-- dbcp -->
 		<dependency>
 			<groupId>commons-dbcp</groupId>
 			<artifactId>commons-dbcp</artifactId>
 		</dependency>
-		
+
 		<!-- platform-core -->
 		<dependency>
 			<groupId>com.uas.platform</groupId>
 			<artifactId>platform-core</artifactId>
 			<version>0.0.1-SNAPSHOT</version>
 		</dependency>
-		
+
 	</dependencies>
 	<build>
 		<finalName>search-console</finalName>
+
+		<!-- 解决maven项目jre版本默认为1.5的问题 -->
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.7</source>
+					<target>1.7</target>
+				</configuration>
+			</plugin>
+		</plugins>
 	</build>
 </project>