2022年3月31日 星期四

React打包排除

當React資料夾, 放在SpringBoot專案下面的時候

他在run Maven install的時候

整包會被複製到Target中

這樣整個操作過程會相當緩慢

如果要避免這個複製的動作可以在pom檔中build加入以下






<resources>

<resource>

<directory>src/main/resources</directory>

<excludes>

<exclude>react/**</exclude>

</excludes>

</resource>

</resources>

沒有留言:

張貼留言

invalid packging for parent POM com.xxxxxx:1.0SNAPSHOT must be "pom" but is "jar"

 出現在專案上面冒紅線, 並有紅字invalid packing...... 在本專案的原因是, 這裡有母子專案 有在子專案pom檔中聲明parent <parent> <artifactId> heima-leadnews-test </a...