Skip to content

Commit e78d49c

Browse files
authored
fix: support maven-archetype-plugin 3.3.1+ (#1267)
* fix: support maven-archetype-plugin 3.3.1+ * fix: update grovy to 4.0.x * fix: update archetype plugin version in GH workflows
1 parent 52b86fa commit e78d49c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/maven-deploy-cm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# Create new project
7373
- name: Create new project with the archetype
7474
run: |
75-
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
75+
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate \
7676
-D archetypeGroupId=com.adobe.aem \
7777
-D archetypeArtifactId=aem-project-archetype \
7878
-D archetypeVersion=${ARCHETYPE_VERSION} \

.github/workflows/maven-sdk-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Create new project
6868
- name: Create new project with the archetype
6969
run: |
70-
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
70+
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate \
7171
-D archetypeGroupId=com.adobe.aem \
7272
-D archetypeArtifactId=aem-project-archetype \
7373
-D archetypeVersion=${ARCHETYPE_VERSION} \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ To generate a project, adjust the following command line to your needs:
5353
* Lookup the list of available properties to see if there's more you want to adjust.
5454

5555
```
56-
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
56+
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.3.1:generate \
5757
-D archetypeGroupId=com.adobe.aem \
5858
-D archetypeArtifactId=aem-project-archetype \
5959
-D archetypeVersion=52\
@@ -62,7 +62,7 @@ mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
6262
-D groupId="com.mysite"
6363
```
6464

65-
**Note**: Make sure you use at least 3.1.0+ of maven-archetype-plugin ([#400](https://github.com/adobe/aem-project-archetype/issues/400))
65+
**Note**: Make sure you use at least 3.3.1+ of maven-archetype-plugin ([#400](https://github.com/adobe/aem-project-archetype/issues/400))
6666

6767
**Note**: To run above command with older versions, you have to use the old `archetypeGroupId`: `-D archetypeGroupId=com.adobe.granite.archetype`
6868

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
</developers>
4949

5050
<properties>
51-
<maven.archetype.version>3.2.1</maven.archetype.version>
51+
<maven.archetype.version>3.3.1</maven.archetype.version>
52+
<groovy.version>4.0.22</groovy.version>
5253
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5354
</properties>
5455

@@ -106,10 +107,9 @@
106107
</executions>
107108
<dependencies>
108109
<dependency>
109-
<groupId>org.codehaus.groovy</groupId>
110-
<artifactId>groovy-all</artifactId>
111-
<version>3.0.24</version>
112-
<type>pom</type> <!-- required JUST since Groovy 2.5.0 -->
110+
<groupId>org.apache.groovy</groupId>
111+
<artifactId>groovy</artifactId>
112+
<version>${groovy.version}</version>
113113
</dependency>
114114
</dependencies>
115115
</plugin>

src/main/resources/META-INF/archetype-post-generate.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import static groovy.io.FileType.*
2-
import groovy.util.XmlSlurper
2+
import groovy.xml.XmlSlurper
33
import java.nio.file.Path
44
import java.util.regex.Pattern
55

0 commit comments

Comments
 (0)