maven构建在复制web应用资源时被终止,没有任何错误

xam8gpfp  于 2021-08-20  发布在  Java
关注(0)|答案(1)|浏览(314)

我正在尝试使用干净的安装进行maven构建。。一切都很顺利,但最终复制web应用程序资源以创建一场战争。。生成将在没有错误的情况下终止。有什么建议吗。
终止捕捉
终止快照2
在此处输入图像描述
编辑:这是我的pom.xml

<project xmlns="maven.apache.org/POM/4.0.0" xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:schemaLocation="maven.apache.org/POM/4.0.0 maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.mg.mc</groupId>
        <artifactId>Management-core</artifactId>
        <version>${releaseVersion}</version>
    </parent>
    <groupId>com.mg.mc</groupId>
    <artifactId>ManagementServices</artifactId>
    <packaging>war</packaging>
    <name>ManagementServices</name>
    <dependencies>
        <dependency>
            <groupId>com.mg.mc</groupId>
            <artifactId>ManagementExternalJaxb</artifactId>
        </dependency>
        <dependency>
            <groupId>com.mg.mc</groupId>
            <artifactId>ManagementJaxb</artifactId>
        </dependency>
        <dependency>
            <groupId>com.mg.mc</groupId>
            <artifactId>ManagementServiceApi</artifactId>
            <type>ejb</type>
        </dependency>
    </dependencies>
    <build>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.3</version>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.mg.mc</groupId>
                                    <artifactId>ManagementServices</artifactId>
                                    <version>${ManagementServices.customer.version}</version>
                                    <type>war</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>target/${releaseVersion}/war/</outputDirectory>
                                    <excludes>**/EnterpriseSharedResources*.jar, */EnterpriseInboundListeners.jar</excludes>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>3.3.1</version>
                <configuration>
                    <warSourceDirectory>target/${releaseVersion}/war/</warSourceDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
qxgroojn

qxgroojn1#

从文档中 unpack 会议的目标 maven-dependency-plugin 插件默认绑定到 process-sources 阶段。
那么,你能改变(或只是删除)的 <phase>process-resources</phase> 从插件配置

相关问题