Skip to content

Incoherent behaviour with doc of spring-boot:run mojo when dealing with target/classes #1479

@tdemande

Description

@tdemande

Documentation about the run mojo of the spring-boot plugin (http://docs.spring.io/spring-boot/docs/1.1.5.RELEASE/maven-plugin/run-mojo.html), for the addResources parameter, states that resources will be included twice if the parameter is set to true ("Since resources will be added directly, and via the target/classes folder they will appear twice if ClassLoader.getResources() is called."). In practice, resources present both in their source directory and in target/classes will have their target/classes file deleted (see https://github.com/spring-projects/spring-boot/blob/master/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RunMojo.java#L263).

I can understand the need for removal of target/classes content (although this is a bit disturbing), but then it should be stated explicitly in the parameter description.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions