Reputation: 54929
When I build my Spring Boot application using ./mvnw install
, it creates a folder named "target" that contains the output of the build.
I would prefer for that folder to be hidden on Linux (for example using the name ".target").
Is there a way to specify an alternate name for the Maven "target" folder?
Upvotes: 0
Views: 659
Reputation: 1307
The target folder is very important, ¿why you want to rename it? If isn't really necessary, in think that you shouldn't rename it.
I found 2 related posts (this and this). If it helpt to you, only add to your pom:
<build>
<directory>/yourDirectory/.target</directory>
</build>
You can put it into a profile too. Hope it has been helpful.
Upvotes: 1