标签: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