zoukankan      html  css  js  c++  java
  • Maven中配置maven-compiler-plugin插件

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

    加载第三方包

    <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>
    

      

  • 相关阅读:
    053467
    053466
    053465
    NC201613 Jelly
    NC14608 after与迷宫
    NC14572 走出迷宫
    340. 通信线路
    1135. 新年好
    903. 昂贵的聘礼
    P5767 [NOI1997]最优乘车
  • 原文地址:https://www.cnblogs.com/JAYIT/p/6164105.html
Copyright © 2011-2022 走看看