标签:
添加本地jar包的依赖
<dependency> <groupId>com.qlk.tool</groupId> <artifactId>ojdbc1</artifactId> <version>3.2.8</version> <scope>system</scope> <systemPath>${project.basedir}/lib/ojdbc6.jar</systemPath> </dependency>
编译包含
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <archive> <addMavenDescriptor>false</addMavenDescriptor> </archive> <webResources> <resource> <directory>src/main/resources/${package.environment}</directory> <targetPath>WEB-INF/classes</targetPath> <filtering>true</filtering> </resource> <resource> <directory>${project.basedir}/lib</directory> <targetPath>WEB-INF/lib</targetPath> <includes> <include>**/*.jar</include> </includes> </resource> </webResources> <packagingExcludes><!-- 排除多余配置文件 --> WEB-INF/classes/develop/**, WEB-INF/classes/prerelease/**, WEB-INF/classes/product/** </packagingExcludes> <warSourceExcludes> WEB-INF/classes/develop/**, WEB-INF/classes/prerelease/**, WEB-INF/classes/product/** </warSourceExcludes> </configuration> </plugin> </plugins>
标签:
原文地址:http://www.cnblogs.com/alphago-1/p/5614022.html