Maven War覆盖创建没有扩展名的文件

时间:2013-07-12 08:58:29

标签: java spring maven war overlays

为了我的项目的需要,我需要使用maven-war-plugin(War Overlays)。 我创建了主战应用程序和另一个包含模块特定内容的战争应用程序。

当我在Eclipse中运行应用程序时,我可以看到第二个应用程序与第一个应用程序合并,但文件没有扩展名,并且在每个文件夹中只有一个文件。

如果我打开其他文件夹 - 那里有适当的文件(JavaScript,类,......)

这是一个例子(而不是我得到的类文件): after merge

这是我的配置:

<build>
<finalName>com.objectverse</finalName>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.4</version>
    <configuration>
      <overlays>
        <overlay>
          <groupId>com.objectverse</groupId>
          <artifactId>com.objectverse.tcs.news</artifactId>
        </overlay>
        <overlay>
          <!-- empty groupId/artifactId represents the current build -->
        </overlay>
      </overlays>
    </configuration>
  </plugin>
</plugins>

我需要做什么才能将其他war项目中的文件复制到我的主应用程序中?

此致  博

0 个答案:

没有答案
相关问题