Skip to content

Commit a0477e0

Browse files
committed
✨ Prevent installation and deployment of sample artifacts
Sample projects and compositing pom.xml files don't need to be installed or deployed to the maven repos, so we now exclude them from these steps.
1 parent 30af93f commit a0477e0

7 files changed

Lines changed: 119 additions & 1 deletion

File tree

fluentforms/examples/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@
1111
<name>FluentForms Examples</name>
1212
<description>Various examples of using the Fluent Forms APIs.</description>
1313

14+
<build>
15+
<!-- This project is an example project, so we don't need to install or deploy it. -->
16+
<plugins>
17+
<plugin>
18+
<artifactId>maven-install-plugin</artifactId>
19+
<configuration>
20+
<skip>true</skip>
21+
</configuration>
22+
</plugin>
23+
<plugin>
24+
<groupId>org.apache.maven.plugins</groupId>
25+
<artifactId>maven-deploy-plugin</artifactId>
26+
<configuration>
27+
<skip>true</skip>
28+
</configuration>
29+
</plugin>
30+
</plugins>
31+
</build>
32+
1433
<dependencies>
1534
<dependency>
1635
<groupId>org.osgi</groupId>

pom.xml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,28 @@
99
<description>Fluent Forms Spring Boot Starter Projects</description>
1010

1111
<modules>
12-
<!-- Top Leve projects -->
12+
<!-- Top Level projects -->
1313
<module>fluentforms</module>
1414
<module>rest-services</module>
1515
<module>spring</module>
1616
</modules>
17+
18+
<build>
19+
<!-- This project is a compositing project, so we don't need to install or deploy it. -->
20+
<plugins>
21+
<plugin>
22+
<artifactId>maven-install-plugin</artifactId>
23+
<configuration>
24+
<skip>true</skip>
25+
</configuration>
26+
</plugin>
27+
<plugin>
28+
<groupId>org.apache.maven.plugins</groupId>
29+
<artifactId>maven-deploy-plugin</artifactId>
30+
<configuration>
31+
<skip>true</skip>
32+
</configuration>
33+
</plugin>
34+
</plugins>
35+
</build>
1736
</project>

rest-services/it.tests/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,25 @@
3838
<maven.compiler.release>17</maven.compiler.release>
3939
</properties>
4040

41+
<build>
42+
<!-- This project is just integration tests, so we don't need to isntall or deploy it. -->
43+
<plugins>
44+
<plugin>
45+
<artifactId>maven-install-plugin</artifactId>
46+
<configuration>
47+
<skip>true</skip>
48+
</configuration>
49+
</plugin>
50+
<plugin>
51+
<groupId>org.apache.maven.plugins</groupId>
52+
<artifactId>maven-deploy-plugin</artifactId>
53+
<configuration>
54+
<skip>true</skip>
55+
</configuration>
56+
</plugin>
57+
</plugins>
58+
</build>
59+
4160
<dependencies>
4261
<!-- <dependency>
4362
<groupId>org.glassfish.jersey.core</groupId>

spring/fluentforms-sample-cli-app/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@
5050
<groupId>org.springframework.boot</groupId>
5151
<artifactId>spring-boot-maven-plugin</artifactId>
5252
</plugin>
53+
<!-- This project is an example project, so we don't need to install or deploy it. -->
54+
<plugin>
55+
<artifactId>maven-install-plugin</artifactId>
56+
<configuration>
57+
<skip>true</skip>
58+
</configuration>
59+
</plugin>
60+
<plugin>
61+
<groupId>org.apache.maven.plugins</groupId>
62+
<artifactId>maven-deploy-plugin</artifactId>
63+
<configuration>
64+
<skip>true</skip>
65+
</configuration>
66+
</plugin>
5367
</plugins>
5468
</build>
5569

spring/fluentforms-sample-web-jersey-app/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@
123123
<groupId>io.github.git-commit-id</groupId>
124124
<artifactId>git-commit-id-maven-plugin</artifactId>
125125
</plugin>
126+
<!-- This project is an example project, so we don't need to install or deploy it. -->
127+
<plugin>
128+
<artifactId>maven-install-plugin</artifactId>
129+
<configuration>
130+
<skip>true</skip>
131+
</configuration>
132+
</plugin>
133+
<plugin>
134+
<groupId>org.apache.maven.plugins</groupId>
135+
<artifactId>maven-deploy-plugin</artifactId>
136+
<configuration>
137+
<skip>true</skip>
138+
</configuration>
139+
</plugin>
126140
</plugins>
127141
<resources>
128142
<resource>

spring/fluentforms-sample-webmvc-app/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,20 @@
128128
<groupId>io.github.git-commit-id</groupId>
129129
<artifactId>git-commit-id-maven-plugin</artifactId>
130130
</plugin>
131+
<!-- This project is an example project, so we don't need to install or deploy it. -->
132+
<plugin>
133+
<artifactId>maven-install-plugin</artifactId>
134+
<configuration>
135+
<skip>true</skip>
136+
</configuration>
137+
</plugin>
138+
<plugin>
139+
<groupId>org.apache.maven.plugins</groupId>
140+
<artifactId>maven-deploy-plugin</artifactId>
141+
<configuration>
142+
<skip>true</skip>
143+
</configuration>
144+
</plugin>
131145
</plugins>
132146
<resources>
133147
<resource>

spring/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,23 @@
1919
<module>fluentforms-jersey-spring-boot-starter</module>
2020
<module>fluentforms-sample-web-jersey-app</module>
2121
</modules>
22+
23+
<build>
24+
<!-- This project is a compositing project, so we don't need to install or deploy it. -->
25+
<plugins>
26+
<plugin>
27+
<artifactId>maven-install-plugin</artifactId>
28+
<configuration>
29+
<skip>true</skip>
30+
</configuration>
31+
</plugin>
32+
<plugin>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-deploy-plugin</artifactId>
35+
<configuration>
36+
<skip>true</skip>
37+
</configuration>
38+
</plugin>
39+
</plugins>
40+
</build>
2241
</project>

0 commit comments

Comments
 (0)