Java Maven程序集插件从目标下读取静态HTML文件

Java Maven程序集插件从目标下读取静态HTML文件,java,maven,web-applications,maven-plugin,maven-plugin-development,Java,Maven,Web Applications,Maven Plugin,Maven Plugin Development,我有一个项目在pom.xml上有maven汇编插件依赖项。它在包阶段运行。我开发了一个定制的maven插件,它在包阶段之前运行。我有一个web应用程序,它下面有src/main/webapp文件夹和html文件。我的maven程序集配置如下: <id>bin</id> <formats> <format>dir</format> <format>tar.gz</format> </f

我有一个项目在pom.xml上有maven汇编插件依赖项。它在包阶段运行。我开发了一个定制的maven插件,它在包阶段之前运行。我有一个web应用程序,它下面有src/main/webapp文件夹和html文件。我的maven程序集配置如下:

    <id>bin</id>
<formats>
    <format>dir</format>
    <format>tar.gz</format>
</formats>

<includeBaseDirectory>false</includeBaseDirectory>

<fileSets>
    <fileSet>
        <directory>src/main/webapp</directory>
        <outputDirectory>${ret}/wwwroot/teo</outputDirectory>
        <includes>
            <include>**/*.*</include>
        </includes>
        <excludes>
            <exclude>**/.idea/**</exclude>
        </excludes>
    </fileSet>
    <fileSet>
        <directory>target/generated-sources</directory>
        <outputDirectory>${ret}/wwwroot/teo</outputDirectory>
        <includes>
            <include>**/*.html</include>
        </includes>
    </fileSet>
</fileSets>
bin
迪尔
tar.gz
假的
src/main/webapp
${ret}/wwwroot/teo
**/*.*
**/.想法/**
目标/生成源
${ret}/wwwroot/teo
**/*.html
这不是我开发的项目,我也不熟悉maven汇编插件。我刚刚将我的自定义插件集成到该项目中。但是我应该找到maven assembly插件在目标文件夹下读取文件的位置?我将使用我的自定义maven插件更改其中的一些html文件,maven assembly插件将在其阶段扮演角色


目标文件夹下的html文件在哪里?除了maven程序集生成的文件夹外,似乎没有什么重要的东西,该插件是否删除原始文件夹?

目标/生成源通常是maven插件放置在生成过程中创建的源文件的位置。很可能在您的pom文件中还有其他插件将这些HTML文件放在那里。

我不完全确定您在问什么。html文件似乎来自目标/生成的源。这意味着肯定还有另一个Maven插件正在生成html文件。@您可以编写它作为一个答案,它是由resources插件修复的。