Maven将独立Child项目(jar)的依赖项复制到父项目(war)WEB-INF / lib /?

时间:2016-12-20 16:24:00

标签: java spring maven plugins pom.xml

EAR 
|
|--WAR
|
|--Jar
<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.2</version>
        <configuration>
            <archive>
<!--        <manifestFile> -->
<!--        src/main/java/META-INF/MANIFEST.MF -->
<!--        </manifestFile> -->
            </archive>
        </configuration>
    </plugin>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
            <skipTests>true</skipTests>
        </configuration>
    </plugin>
</plugins>

以上代码将我的罐子复制到EAR - &gt; lib/runtime文件夹。我想进一步将jar的依赖关系移到war

0 个答案:

没有答案