Skip to content

Commit 189a7ce

Browse files
authored
build: skip the creation of the test repo when -Dquick is specified (kroxylicious#2942)
why: when testing the filter archetype, we create a maven repo containing the project's artefacts and its dependencies. this is time consuming. The quick profile should skip this step. Signed-off-by: Keith Wall <kwall@apache.org>
1 parent 41f8d75 commit 189a7ce

1 file changed

Lines changed: 21 additions & 27 deletions

File tree

  • kroxylicious-filter-archetype

kroxylicious-filter-archetype/pom.xml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -101,33 +101,6 @@
101101
</delimiters>
102102
</configuration>
103103
</plugin>
104-
<plugin>
105-
<groupId>org.apache.maven.plugins</groupId>
106-
<artifactId>maven-dependency-plugin</artifactId>
107-
<executions>
108-
<execution>
109-
<id>copy-deps</id>
110-
<phase>pre-integration-test</phase>
111-
<goals>
112-
<goal>copy-dependencies</goal>
113-
</goals>
114-
<configuration>
115-
<outputDirectory>${project.build.directory}/local-repo</outputDirectory>
116-
<copyPom>true</copyPom>
117-
<addParentPoms>true</addParentPoms>
118-
<useRepositoryLayout>true</useRepositoryLayout>
119-
</configuration>
120-
</execution>
121-
</executions>
122-
</plugin>
123-
<plugin>
124-
<groupId>org.apache.maven.plugins</groupId>
125-
<artifactId>maven-archetype-plugin</artifactId>
126-
<configuration>
127-
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
128-
<skip>${skipITs}</skip>
129-
</configuration>
130-
</plugin>
131104
</plugins>
132105
</build>
133106
<profiles>
@@ -144,6 +117,19 @@
144117
<groupId>org.apache.maven.plugins</groupId>
145118
<artifactId>maven-dependency-plugin</artifactId>
146119
<executions>
120+
<execution>
121+
<id>copy-deps</id>
122+
<phase>pre-integration-test</phase>
123+
<goals>
124+
<goal>copy-dependencies</goal>
125+
</goals>
126+
<configuration>
127+
<outputDirectory>${project.build.directory}/local-repo</outputDirectory>
128+
<copyPom>true</copyPom>
129+
<addParentPoms>true</addParentPoms>
130+
<useRepositoryLayout>true</useRepositoryLayout>
131+
</configuration>
132+
</execution>
147133
<execution>
148134
<id>analyze</id>
149135
<configuration>
@@ -175,6 +161,14 @@
175161
</execution>
176162
</executions>
177163
</plugin>
164+
<plugin>
165+
<groupId>org.apache.maven.plugins</groupId>
166+
<artifactId>maven-archetype-plugin</artifactId>
167+
<configuration>
168+
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
169+
<skip>${skipITs}</skip>
170+
</configuration>
171+
</plugin>
178172
</plugins>
179173
</build>
180174
</profile>

0 commit comments

Comments
 (0)