Skip to content

Commit 1a0718a

Browse files
committed
Add maven wrapper support.
1 parent 0e79448 commit 1a0718a

File tree

5 files changed

+505
-10
lines changed

5 files changed

+505
-10
lines changed

.mvn/extensions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extensions>
3+
<extension>
4+
<groupId>org.apache.maven.archetype</groupId>
5+
<artifactId>archetype-packaging</artifactId>
6+
<version>3.3.0</version>
7+
</extension>
8+
</extensions>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ mvnw.cmd clean install
1919
# Windows (cmd.exe)
2020
mvnw.cmd archetype:generate ^
2121
-DarchetypeCatalog=local ^
22-
-DarchetypeGroupId=org.tinystruct.archetype ^
22+
-DarchetypeGroupId=org.tinystruct ^
2323
-DarchetypeArtifactId=tinystruct-archetype ^
2424
-DarchetypeVersion=1.0.0 ^
2525
-DgroupId=com.mycompany ^
2626
-DartifactId=my-tiny-app ^
2727
-Dpackage=com.mycompany.app ^
28-
-Dtinystruct.version=1.7.10
28+
-Dtinystruct.version=1.7.11
2929
3030
# Unix / macOS
3131
./mvnw archetype:generate \
3232
-DarchetypeCatalog=local \
33-
-DarchetypeGroupId=org.tinystruct.archetype \
33+
-DarchetypeGroupId=org.tinystruct \
3434
-DarchetypeArtifactId=tinystruct-archetype \
3535
-DarchetypeVersion=1.0.0 \
3636
-DgroupId=com.mycompany \
3737
-DartifactId=my-tiny-app \
3838
-Dpackage=com.mycompany.app \
39-
-Dtinystruct.version=1.7.10
39+
-Dtinystruct.version=1.7.11
4040
```
4141

4242
3. Build the generated project:
@@ -49,7 +49,7 @@ mvnw.cmd clean package
4949
./mvnw clean package
5050
```
5151

52-
Adjust `tinystruct.version` if needed. The generated project includes a simple `Application` that extends `AbstractApplication` with a sample `hello` action.
52+
Adjust `tinystructVersion` if needed. The generated project includes a simple `Application` that extends `AbstractApplication` with a sample `hello` action.
5353

5454
## Notes
5555

@@ -68,7 +68,7 @@ mvnw.cmd test
6868
./mvnw test
6969
```
7070

71-
- If you plan to publish the archetype, set `tinystruct.version` to a released version and test generation in a clean directory.
71+
- If you plan to publish the archetype, set `tinystructVersion` to a released version and test generation in a clean directory.
7272
tinystruct Maven archetype
7373
# tinystruct Maven archetype
7474

@@ -87,13 +87,13 @@ mvn clean install
8787
```cmd
8888
mvn archetype:generate \
8989
-DarchetypeCatalog=local \
90-
-DarchetypeGroupId=org.tinystruct.archetype \
90+
-DarchetypeGroupId=org.tinystruct \
9191
-DarchetypeArtifactId=tinystruct-archetype \
9292
-DarchetypeVersion=1.0.0 \
9393
-DgroupId=com.mycompany \
9494
-DartifactId=my-tiny-app \
9595
-Dpackage=com.mycompany.app \
96-
-Dtinystruct.version=1.7.10
96+
-DtinystructVersion=1.7.11
9797
```
9898

9999
3. Build the generated project:
@@ -103,7 +103,7 @@ cd my-tiny-app
103103
mvn clean package
104104
```
105105

106-
Adjust `tinystruct.version` if needed. The generated project includes a simple `Application` that extends `AbstractApplication` with a sample `hello` action.
106+
Adjust `tinystructVersion` if needed. The generated project includes a simple `Application` that extends `AbstractApplication` with a sample `hello` action.
107107

108108
## Notes
109109

@@ -119,4 +119,4 @@ Adjust `tinystruct.version` if needed. The generated project includes a simple `
119119
mvn test
120120
```
121121

122-
- If you plan to publish the archetype, set `tinystruct.version` to a released version and test generation in a clean directory.
122+
- If you plan to publish the archetype, set `tinystructVersion` to a released version and test generation in a clean directory.

mvnw

Lines changed: 295 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)