maven 若干学习笔记

1、从项目路径设置dependency
<dependency>
    <groupId>xxx</groupId>
    <artifactId>xxx</artifactId>
    <version>xxx.xx</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/lib/xxx.jar</systemPath>
</dependency>


2、build设置jdk版本
<build>
<finalName>YYY</finalName>
<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>

猜你喜欢

转载自auzll.iteye.com/blog/1754925