我在这里使用 maven-dependency-plugin* 找到了答案 *
在 pom.xml中
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.1</version> <executions><execution> <id>copy-model</id> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>jline</groupId> <artifactId>jline</artifactId> <version>2.10</version> <type>jar</type> </artifactItem> <artifactItems> <outputDirectory>../../resources/lib</outputDirectory> </configuration></execution> </executions> </plugin> <plugins> <build>
并在 assembly.xml中
<fileSet> <directory>../../resources/lib</directory> <outputDirectory>${HOME}/lib/module1</outputDirectory> <directoryMode>755</directoryMode> <fileMode>644</fileMode> <includes> <include>jline-*</include> </includes> </fileSet>
jline-0.9.94``dependencySet与任何其他依赖项一样包含在中。我希望这有帮助。:)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)