【问题标题】:maven tomcat plugin keeps growing war when using snapshot version使用快照版本时,maven tomcat插件不断增长
【发布时间】:2014-05-08 14:46:24
【问题描述】:

下面的 pom.xml 摘录显示了导致项目的结构 不断增长的战争档案:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
     ...
    </parent>
    <artifactId>...</artifactId>
    <packaging>war</packaging>
    <name>...</name>
    <description>...</description>
    <dependencies>
        <!-- ...-->
        <dependency>
            <artifactId>...</artifactId>
            <groupId>${project.groupId}</groupId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <!-- tomcat deployment -->
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <url>...</url>
                    <server>...</server>
                    <path>...</path>
                    <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

war 包含的 jar 文件与本地 maven 存储库具有时间戳的快照版本一样多。

如何才能将其简化为当前版本?

我在以下位置找到了解决方法:

使用另一个 maven 插件删除多余的时间戳快照版本 jars

我已经在https://issues.apache.org/jira/browse/MTOMCAT-268提交了错误报告

【问题讨论】:

    标签: maven-tomcat-plugin


    【解决方案1】:

    这个问题已经被一些巫毒教解决了。很奇怪

    【讨论】:

    • 换言之题外话->无法再重现的问题?
    • 是的——这似乎是唯一已知的案例。它真的发生了,我能够让它消失。我不知道怎么了。我应该删除该问题还是干脆不回答,以防其他人有同样的问题? - 是否有关于这种情况的元讨论?
    • 你最好调查一下 Meta,我知道关闭问题的密切原因,我还没有遇到过你的情况。问候。
    猜你喜欢
    • 2018-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-06
    • 1970-01-01
    • 2011-10-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多