Since the convention in Maven is larger than the configuration
we may run into the problem that the configuration file we write cannot be exported or valid.
<!-- Configure resources in build to prevent our resource export from failing-->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>
Read More:
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- [Solved] Error:Maven Resources Compiler: Maven project configuration required for module ‘XX‘ isn‘t available
- [Solved] the resource is not on the build path of a java project
- [Solved] MVN Build Project Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] Read the resources resource and convert it to file error: java.io.filenotfoundexception
- [Solved] Error:maven-resources-production:ruoyi-ywjs: java.lang.NegativeArraySizeException
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid
- Springboot Project Error: Failed to execute goal org.apache.maven.plugins
- Maven Project Right-Click -update project Error [How to Solve]
- try-with-resource automatically closes the resources of the AutoClosable interface
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- How to Solve Spring Boot Maven Build Error
- Idea Error 404: The project ssmbuild is unavailable/the target resource cannot be found
- IDEA Create maven project error: Error running‘[org.apache.maven.pluginsmaven-archetype-pluginRELEASE
- [Solved] Maven Project Packaging Error: Unable to find main class
- [Maven] maven filtering OTS parsing error incorrect file size in WOFF head [Two Methods to Solve]
- Executing Maven command error: Java_HOME is not defined correctly executing maven
- [Solved] Maven Project Error: error in opening zip file