How to use
- Use mvn-g with Group, Artifact, Version.
- Opening values for mvn-g: Group com.example; Artifact app; Version 1.0.0.
- Press Generate. mvn-g should show “<project>”.
- Keep the mvn-g lines that follow “<project>”.
- Comparison values for mvn-g: Group com.example; Artifact app; Version 1.0.0.
- Press Generate again. mvn-g should show “<project>”.
Formula / how it works
mvn-g opening press of Generate returned:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>app</artifactId>
<version>1.0.0</version>
</project>
mvn-g line “<project>”. mvn-g line “<modelVersion>4.0.0</modelVersion>”. mvn-g line “<groupId>com.example</groupId>”. mvn-g line “<artifactId>app</artifactId>”. mvn-g line “<version>1.0.0</version>”. mvn-g line “</project>”.
mvn-g comparison values Group com.example; Artifact app; Version 1.0.0 returned:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>app</artifactId>
<version>1.0.0</version>
</project>
mvn-g line “<project>”. mvn-g line “<modelVersion>4.0.0</modelVersion>”. mvn-g line “<groupId>com.example</groupId>”. mvn-g line “<artifactId>app</artifactId>”. mvn-g line “<version>1.0.0</version>”. mvn-g line “</project>”.
mvn-g mvn-g note 1: value “com.example” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “com.example” is what mvn-g turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-a note 2: value “app” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “app” is what mvn-a turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-v note 3: value “1.0.0” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “1.0.0” is what mvn-v turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-g note 4: value “com.example” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “com.example” is what mvn-g turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-a note 5: value “app” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “app” is what mvn-a turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-v note 6: value “1.0.0” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “1.0.0” is what mvn-v turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-g note 7: value “com.example” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “com.example” is what mvn-g turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-a note 8: value “app” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “app” is what mvn-a turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-v note 9: value “1.0.0” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “1.0.0” is what mvn-v turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-g note 10: value “com.example” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “com.example” is what mvn-g turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
mvn-g mvn-a note 11: value “app” is what Generate turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”, while “app” is what mvn-a turned into “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>ap”.
Worked examples
mvn-g opening run
Inputs: Group: com.example | Artifact: app | Version: 1.0.0
Set Group com.example; Artifact app; Version 1.0.0. Press Generate. Control mvn-g should include “<project>”.
Result: <project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>app</artifactId>
<version>1.0.0</version>
</project>
mvn-g opening transcript begins <project>.
mvn-g comparison run
Inputs: Group: com.example | Artifact: app | Version: 1.0.0
Set Group com.example; Artifact app; Version 1.0.0. Press Generate. Control mvn-g should include “<project>”.
Result: <project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>app</artifactId>
<version>1.0.0</version>
</project>
mvn-g comparison transcript begins <project>.
Use cases
- mvn-g check “<project>” before changing Group, Artifact, Version.
- mvn-g check “<project>” after the comparison edit.
- Copy the mvn-g box with Group com.example; Artifact app; Version 1.0.0.
- Retype Group com.example; Artifact app; Version 1.0.0 to see “<project>” from mvn-g again.
Tips & limitations
- mvn-g prints “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifactId> <version>1.0.0</version> </project>” for the opening values.
- mvn-g prints “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifactId> <version>1.0.0</version> </project>” for the comparison values.
- mvn-g labels: Group, Artifact, Version.
- mvn-g button text is Generate.
- mvn-g reminder 1: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 2: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 3: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 4: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 5: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 6: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 7: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 8: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 9: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 10: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 11: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 12: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 13: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 14: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 15: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
- mvn-g reminder 16: opening “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”; comparison “<project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifac”.
FAQ
What does mvn-g return first?
mvn-g after Group com.example; Artifact app; Version 1.0.0 returns <project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifactId> <version>1.0.0</version> </project>
What does mvn-g return second?
mvn-g after Group com.example; Artifact app; Version 1.0.0 returns <project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifactId> <version>1.0.0</version> </project>
Which mvn-g values produce the opening text?
Group: com.example | Artifact: app | Version: 1.0.0
Which mvn-g values produce the comparison text?
Group: com.example | Artifact: app | Version: 1.0.0
Where can I see the mvn-g characters?
Opening mvn-g text: <project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifactId> <version>1.0.0</version> </project>. Comparison mvn-g text: <project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifactId> <version>1.0.0</version> </project>.
What does mvn-g leave untouched?
mvn-g only changes Group, Artifact, Version. Opening evidence: <project> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>app</artifactId> <version>1.0.0</version> </project>.
Runs entirely in your browser; nothing is uploaded. Check the output before you rely on it in production code, data or security decisions.