我希望将有角度的/ dist文件夹内容复制到我的spring boot应用程序的/ static文件夹中。但是,该插件仅在/ static中创建一个新目录。
现在我的情况是这样的:
static
|_ angular-app
|_ index.html
|_ styles.css
|_ js.js
我想实现这一目标:
static //Angular files copied straight to static, no new folder needed
|_ index.html
|_ styles.css
|_ js.js
我希望如何使用插件实现该目标?我正在寻找这样的东西:
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<noNewDirectory>true<noNewDirectory>
<outputDirectory>${basedir}/src/main/resources/static</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../angular-spring-integration/dist</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
怎么办?