<dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.5.0</version> </dependency> 然后在build节点里增加maven-install-plugin的plugin ,如下所示: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> <executions> <execution> <id>install-ojdbc14</id> <phase>clean</phase> <configuration> <file>${project.basedir}/src/main/webapp/WEB-INF/lib/ojdbc14-10.2.0.5.0-20170917.jar</file> <repositoryLayout>default</repositoryLayout> <groupId>com.oracle</groupId> <artifactId>ojdbc14</artifactId> <version>10.2.0.5.0</version> <packaging>jar</packaging> <generatePom>true</generatePom> </configuration> <goals> <goal>install-file</goal> </goals> </execution> <execution> <id>install-freemarker</id> <phase>clean</phase> <configuration> <file>${project.basedir}/src/main/webapp/WEB-INF/lib/freemarker-null-2.3.19.jar</file> <repositoryLayout>default</repositoryLayout> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.19</version> <packaging>jar</packaging> <generatePom>true</generatePom> </configuration> <goals> <goal>install-file</goal> </goals> </execution> <execution> <id>install-org.artofsolving</id> <phase>clean</phase> <configuration> <file>${project.basedir}/src/main/webapp/WEB-INF/lib/jodconverter-3.0-beta-4-20170917.jar</file> <repositoryLayout>default</repositoryLayout> <groupId>org.artofsolving</groupId> <artifactId>jodconverter</artifactId> <version>3.0-beta-4</version> <packaging>jar</packaging> <generatePom>true</generatePom> </configuration> <goals> <goal>install-file</goal> </goals> </execution> </executions> </plugin>
maven彻底解决导入本地包打包没有打进去的问题 Maven彻底解决导入本地包打包没有打进去的问题
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.