码迷,mamicode.com
首页 > 其他好文 > 详细

Maven中配置maven-compiler-plugin插件

时间:2016-12-12 15:05:54      阅读:1026      评论:0      收藏:0      [点我收藏+]

标签:gem   显示   第三方   ati   org   lib   client   rect   pat   

   这个插件就如同名字所显示的这样,用来编译源代码的。

加载第三方包

<dependency>
			<groupId>cn.eshore.bnet</groupId>
			<artifactId>UDBClient</artifactId>
			<version>1.0-SNAPSHOT</version>
			<scope>system</scope>
			<systemPath>${basedir}/lib/UDBClient-1.0-SNAPSHOT.jar</systemPath>
		</dependency>

  

<pluginManagement>
			<plugins>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<configuration>
						<source>1.7</source>
						<target>1.7</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>2.8</version>
					<configuration>
						<excludeScope>provided</excludeScope>
						<excludeTransitive>false</excludeTransitive>
						<includeScope>compile</includeScope>
						<outputDirectory>target/lib</outputDirectory>
					</configuration>
					<executions>
						<execution>
							<id>copy</id>
							<phase>package</phase>
							<goals>
								<goal>copy-dependencies</goal>
							</goals>
						</execution>
					</executions>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<version>2.4</version>
					<configuration>
						<excludes>
							<exclude>**/*.properties</exclude>
							<exclude>**/*.xml</exclude>
						</excludes>
					</configuration>

				</plugin>
			</plugins>
		</pluginManagement>

  

Maven中配置maven-compiler-plugin插件

标签:gem   显示   第三方   ati   org   lib   client   rect   pat   

原文地址:http://www.cnblogs.com/JAYIT/p/6164105.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!