Files
cheatsheet-tldr/tldr/mvn-generate-sources
2025-10-27 00:21:46 +00:00

23 lines
520 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`