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>
    

      

  • 相关阅读:
    为网站添加图标和收藏夹图标
    常用css入门
    利用反射动态创建对象
    如何用实现.NET的插件机制
    设计模式(18)-Command Pattern
    C#中调用API
    判断一个string是否可以为数字
    080709 阴
    7月9日 多云
    080710 闷热闷热
  • 原文地址:https://www.cnblogs.com/JAYIT/p/6164105.html
Copyright © 2011-2022 走看看