Я использую "maven-remote-resources-plugin", чтобы поделиться ресурсомно прямо сейчас файл в папке "web-inf",Я знаю, что «web-inf» недоступен.
как мне поместить файл в папку src / main / webapp?
дочерний родительский POM введите описание изображения здесь
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.5</version>
<configuration>
<resourceBundles>
<resourceBundle>test:a-resources:${project.version}</resourceBundle>
</resourceBundles>
<outputdirectory>/</outputdirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
child A POM введите описание изображения здесь
<plugins>
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
<configuration>
<resourcesDirectory>${project.build.outputDirectory}</resourcesDirectory>
<includes>
<include>**/*.json</include>
</includes>
</configuration>
</plugin>
parent (веб-приложение)
src / main / webapp
child A (хранение html, js, css файла)
- страница--index.html
child B (файл класса java хранения)
--java.class