HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mvn generate-sources — Generate source code for a Maven project before the main compilation phase. This phase runs after `i

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandmavensourceclicodemvn generate-sourcesforgenerate

Problem

How to use the mvn generate-sources command: Generate source code for a Maven project before the main compilation phase. This phase runs after initialize and before process-sources. More information: <https://manned.org/mvn>.

Solution

mvn generate-sources — Generate source code for a Maven project before the main compilation phase. This phase runs after initialize and before process-sources. More information: <https://manned.org/mvn>.

Run all lifecycle phases up to generate-sources:
mvn generate-sources


Run the next phase to generate resources:
mvn generate-resources


Clean and regenerate sources:
mvn clean generate-sources

Code Snippets

Run all lifecycle phases up to `generate-sources`

mvn generate-sources

Run the next phase to generate resources

mvn generate-resources

Clean and regenerate sources

mvn clean generate-sources

Context

tldr-pages: common/mvn generate-sources

Revisions (0)

No revisions yet.