-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
121 lines (121 loc) · 5.3 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>io.quarkus.workshop.super-heroes</groupId>
<artifactId>super-parent-root</artifactId>
<version>2.0</version>
<packaging>pom</packaging>
<name>Quarkus Workshop :: Super-Heroes :: R00T</name>
<properties>
<assembly-plugin.version>3.3.0</assembly-plugin.version>
</properties>
<modules>
<module>super-heroes/ui-super-heroes</module>
<module>super-heroes/load-super-heroes</module>
<module>super-heroes/rest-villains</module>
</modules>
<build>
<plugins>
<!-- We want to include a wrapper in the zip, and it should be for the
right version of Quarkus, not the one this build is running with.
We can invoke the quarkus maven plugin, but it won't let us overwrite,
so we need to do a bit of cleaning as part of the default lifecycle.-->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>tidy-generated-project</id>
<phase>prepare-package</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${project.build.directory}</directory>
<includes>temp-project/**</includes>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<!-- Now that we've cleared away old executions, let's make a project
so that we can copy its wrapper. -->
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>3.0.3.Final</version>
<executions>
<execution>
<id>get-wrapper</id>
<phase>prepare-package</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<projectGroupId>io.quarkus.workshop.super-heroes</projectGroupId>
<projectArtifactId>temp-project</projectArtifactId>
<noCode>true</noCode>
<outputDirectory>${project.build.directory}</outputDirectory>
<!-- Pass in a new project so it doesn't try and update this pom and make a mess-->
<project>
<groupId>temp</groupId>
<artifactId>org.acme</artifactId>
<version>2.0</version>
<packaging>pom</packaging>
<name>Throwaway project</name>
</project>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${assembly-plugin.version}</version>
<configuration>
<finalName>quarkus-super-heroes</finalName>
<appendAssemblyId>true</appendAssemblyId>
<runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
<attach>false</attach>
<descriptors>
<descriptor>assembly.xml</descriptor>
<descriptor>assembly-complete.xml</descriptor>
</descriptors>
<outputDirectory>dist</outputDirectory>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>complete</id>
<modules>
<module>super-heroes/extension-version</module>
<module>super-heroes/rest-villains</module>
<module>super-heroes/rest-heroes</module>
<module>super-heroes/rest-fights</module>
<module>super-heroes/event-statistics</module>
</modules>
</profile>
<profile>
<id>full</id>
<modules>
<module>docs</module>
</modules>
</profile>
</profiles>
</project>