|
1 | | -<?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | | - <modelVersion>4.0.0</modelVersion> |
5 | | - |
6 | | - <groupId>org.lwjglb</groupId> |
7 | | - <artifactId>book</artifactId> |
8 | | - <version>1.0</version> |
9 | | - <packaging>pom</packaging> |
10 | | - |
11 | | - <build> |
12 | | - <plugins> |
13 | | - <plugin> |
14 | | - <groupId>org.apache.maven.plugins</groupId> |
15 | | - <artifactId>maven-enforcer-plugin</artifactId> |
16 | | - <version>${maven-enforcer-plugin.version}</version> |
17 | | - <executions> |
18 | | - <execution> |
19 | | - <id>enforce-maven</id> |
20 | | - <goals> |
21 | | - <goal>enforce</goal> |
22 | | - </goals> |
23 | | - <configuration> |
24 | | - <rules> |
25 | | - <requireMavenVersion> |
26 | | - <version>${maven.version}</version> |
27 | | - </requireMavenVersion> |
28 | | - </rules> |
29 | | - </configuration> |
30 | | - </execution> |
31 | | - </executions> |
32 | | - </plugin> |
33 | | - <plugin> |
34 | | - <groupId>org.apache.maven.plugins</groupId> |
35 | | - <artifactId>maven-compiler-plugin</artifactId> |
36 | | - <version>${maven-compiler-plugin.version}</version> |
37 | | - <configuration> |
38 | | - <source>${java.version}</source> |
39 | | - <target>${java.version}</target> |
40 | | - <showDeprecation>true</showDeprecation> |
41 | | - </configuration> |
42 | | - </plugin> |
43 | | - <plugin> |
44 | | - <groupId>org.apache.maven.plugins</groupId> |
45 | | - <artifactId>maven-dependency-plugin</artifactId> |
46 | | - <version>${maven-dependency-plugin.version}</version> |
47 | | - <executions> |
48 | | - <execution> |
49 | | - <id>copy-dependencies</id> |
50 | | - <phase>prepare-package</phase> |
51 | | - <goals> |
52 | | - <goal>copy-dependencies</goal> |
53 | | - </goals> |
54 | | - <configuration> |
55 | | - <outputDirectory>${project.build.directory}/lib</outputDirectory> |
56 | | - <overWriteReleases>false</overWriteReleases> |
57 | | - <overWriteSnapshots>false</overWriteSnapshots> |
58 | | - <overWriteIfNewer>true</overWriteIfNewer> |
59 | | - </configuration> |
60 | | - </execution> |
61 | | - </executions> |
62 | | - </plugin> |
63 | | - <plugin> |
64 | | - <groupId>org.apache.maven.plugins</groupId> |
65 | | - <artifactId>maven-resources-plugin</artifactId> |
66 | | - <version>${maven-resources-plugin.version}</version> |
67 | | - <executions> |
68 | | - <execution> |
69 | | - <id>copy-resources</id> |
70 | | - <phase>validate</phase> |
71 | | - <goals> |
72 | | - <goal>copy-resources</goal> |
73 | | - </goals> |
74 | | - <configuration> |
75 | | - <outputDirectory>${basedir}/target/resources</outputDirectory> |
76 | | - <resources> |
77 | | - <resource> |
78 | | - <directory>resources</directory> |
79 | | - <filtering>false</filtering> |
80 | | - </resource> |
81 | | - </resources> |
82 | | - </configuration> |
83 | | - </execution> |
84 | | - </executions> |
85 | | - </plugin> |
86 | | - <plugin> |
87 | | - <groupId>org.codehaus.mojo</groupId> |
88 | | - <artifactId>exec-maven-plugin</artifactId> |
89 | | - <version>${exec-maven-plugin.version}</version> |
90 | | - <configuration> |
91 | | - <mainClass>${main.class}</mainClass> |
92 | | - </configuration> |
93 | | - </plugin> |
94 | | - <plugin> |
95 | | - <groupId>org.apache.maven.plugins</groupId> |
96 | | - <artifactId>maven-jar-plugin</artifactId> |
97 | | - <version>${maven-jar-plugin.version}</version> |
98 | | - <configuration> |
99 | | - <archive> |
100 | | - <manifest> |
101 | | - <addClasspath>true</addClasspath> |
102 | | - <mainClass>${main.class}</mainClass> |
103 | | - <classpathPrefix>lib/</classpathPrefix> |
104 | | - <useUniqueVersions>false</useUniqueVersions> |
105 | | - </manifest> |
106 | | - <manifestEntries> |
107 | | - <Built-By>${built.by}</Built-By> |
108 | | - </manifestEntries> |
109 | | - </archive> |
110 | | - </configuration> |
111 | | - </plugin> |
112 | | - </plugins> |
113 | | - </build> |
114 | | - |
115 | | - <modules> |
116 | | - <module>chapter-01</module> |
117 | | - <module>chapter-02</module> |
118 | | - <module>chapter-03</module> |
119 | | - <module>chapter-04</module> |
120 | | - <module>chapter-05</module> |
121 | | - <module>chapter-06</module> |
122 | | - <module>chapter-07</module> |
123 | | - <module>chapter-08</module> |
124 | | - <module>chapter-09</module> |
125 | | - <module>chapter-10</module> |
126 | | - <module>chapter-11</module> |
127 | | - <module>chapter-12</module> |
128 | | - <module>chapter-13</module> |
129 | | - <module>chapter-14</module> |
130 | | - <module>chapter-15</module> |
131 | | - <module>chapter-16</module> |
132 | | - <module>chapter-17</module> |
133 | | - <module>chapter-18</module> |
134 | | - <module>chapter-19</module> |
135 | | - <module>chapter-20</module> |
136 | | - <module>chapter-21</module> |
137 | | - </modules> |
138 | | - |
139 | | - <properties> |
140 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
141 | | - <built.by>lwjglgamedev</built.by> |
142 | | - <main.class>org.lwjglb.game.Main</main.class> |
143 | | - <!-- Versions --> |
144 | | - <imgui-java.version>1.89.0</imgui-java.version> |
145 | | - <exec-maven-plugin.version>3.2.0</exec-maven-plugin.version> |
146 | | - <java.version>17</java.version> |
147 | | - <joml.version>1.10.8</joml.version> |
148 | | - <joml-primitives.version>1.10.4</joml-primitives.version> |
149 | | - <lwjgl.version>3.3.6</lwjgl.version> |
150 | | - <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version> |
151 | | - <maven-dependency-plugin.version>3.8.0</maven-dependency-plugin.version> |
152 | | - <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
153 | | - <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version> |
154 | | - <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version> |
155 | | - <tinylog.version>2.7.0</tinylog.version> |
156 | | - </properties> |
157 | | - |
158 | | - <profiles> |
159 | | - <profile> |
160 | | - <id>windows-profile</id> |
161 | | - <activation> |
162 | | - <os> |
163 | | - <family>Windows</family> |
164 | | - </os> |
165 | | - </activation> |
166 | | - <properties> |
167 | | - <native.target>natives-windows</native.target> |
168 | | - </properties> |
169 | | - </profile> |
170 | | - <profile> |
171 | | - <id>linux-profile</id> |
172 | | - <activation> |
173 | | - <os> |
174 | | - <family>Linux</family> |
175 | | - </os> |
176 | | - </activation> |
177 | | - <properties> |
178 | | - <native.target>natives-linux</native.target> |
179 | | - </properties> |
180 | | - </profile> |
181 | | - <profile> |
182 | | - <id>OSX-profile</id> |
183 | | - <activation> |
184 | | - <os> |
185 | | - <family>mac</family> |
186 | | - </os> |
187 | | - </activation> |
188 | | - <properties> |
189 | | - <native.target>natives-macos</native.target> |
190 | | - </properties> |
191 | | - </profile> |
192 | | - </profiles> |
193 | | -</project> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <groupId>org.lwjglb</groupId> |
| 7 | + <artifactId>book</artifactId> |
| 8 | + <version>1.0</version> |
| 9 | + <packaging>pom</packaging> |
| 10 | + |
| 11 | + <build> |
| 12 | + <plugins> |
| 13 | + <plugin> |
| 14 | + <groupId>org.apache.maven.plugins</groupId> |
| 15 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 16 | + <version>${maven-enforcer-plugin.version}</version> |
| 17 | + <executions> |
| 18 | + <execution> |
| 19 | + <id>enforce-maven</id> |
| 20 | + <goals> |
| 21 | + <goal>enforce</goal> |
| 22 | + </goals> |
| 23 | + <configuration> |
| 24 | + <rules> |
| 25 | + <requireMavenVersion> |
| 26 | + <version>${maven.version}</version> |
| 27 | + </requireMavenVersion> |
| 28 | + </rules> |
| 29 | + </configuration> |
| 30 | + </execution> |
| 31 | + </executions> |
| 32 | + </plugin> |
| 33 | + <plugin> |
| 34 | + <groupId>org.apache.maven.plugins</groupId> |
| 35 | + <artifactId>maven-compiler-plugin</artifactId> |
| 36 | + <version>${maven-compiler-plugin.version}</version> |
| 37 | + <configuration> |
| 38 | + <source>${java.version}</source> |
| 39 | + <target>${java.version}</target> |
| 40 | + <showDeprecation>true</showDeprecation> |
| 41 | + </configuration> |
| 42 | + </plugin> |
| 43 | + <plugin> |
| 44 | + <groupId>org.apache.maven.plugins</groupId> |
| 45 | + <artifactId>maven-dependency-plugin</artifactId> |
| 46 | + <version>${maven-dependency-plugin.version}</version> |
| 47 | + <executions> |
| 48 | + <execution> |
| 49 | + <id>copy-dependencies</id> |
| 50 | + <phase>prepare-package</phase> |
| 51 | + <goals> |
| 52 | + <goal>copy-dependencies</goal> |
| 53 | + </goals> |
| 54 | + <configuration> |
| 55 | + <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| 56 | + <overWriteReleases>false</overWriteReleases> |
| 57 | + <overWriteSnapshots>false</overWriteSnapshots> |
| 58 | + <overWriteIfNewer>true</overWriteIfNewer> |
| 59 | + </configuration> |
| 60 | + </execution> |
| 61 | + </executions> |
| 62 | + </plugin> |
| 63 | + <plugin> |
| 64 | + <groupId>org.apache.maven.plugins</groupId> |
| 65 | + <artifactId>maven-resources-plugin</artifactId> |
| 66 | + <version>${maven-resources-plugin.version}</version> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <id>copy-resources</id> |
| 70 | + <phase>validate</phase> |
| 71 | + <goals> |
| 72 | + <goal>copy-resources</goal> |
| 73 | + </goals> |
| 74 | + <configuration> |
| 75 | + <outputDirectory>${basedir}/target/resources</outputDirectory> |
| 76 | + <resources> |
| 77 | + <resource> |
| 78 | + <directory>resources</directory> |
| 79 | + <filtering>false</filtering> |
| 80 | + </resource> |
| 81 | + </resources> |
| 82 | + </configuration> |
| 83 | + </execution> |
| 84 | + </executions> |
| 85 | + </plugin> |
| 86 | + <plugin> |
| 87 | + <groupId>org.codehaus.mojo</groupId> |
| 88 | + <artifactId>exec-maven-plugin</artifactId> |
| 89 | + <version>${exec-maven-plugin.version}</version> |
| 90 | + <configuration> |
| 91 | + <mainClass>${main.class}</mainClass> |
| 92 | + </configuration> |
| 93 | + </plugin> |
| 94 | + <plugin> |
| 95 | + <groupId>org.apache.maven.plugins</groupId> |
| 96 | + <artifactId>maven-jar-plugin</artifactId> |
| 97 | + <version>${maven-jar-plugin.version}</version> |
| 98 | + <configuration> |
| 99 | + <archive> |
| 100 | + <manifest> |
| 101 | + <addClasspath>true</addClasspath> |
| 102 | + <mainClass>${main.class}</mainClass> |
| 103 | + <classpathPrefix>lib/</classpathPrefix> |
| 104 | + <useUniqueVersions>false</useUniqueVersions> |
| 105 | + </manifest> |
| 106 | + <manifestEntries> |
| 107 | + <Built-By>${built.by}</Built-By> |
| 108 | + </manifestEntries> |
| 109 | + </archive> |
| 110 | + </configuration> |
| 111 | + </plugin> |
| 112 | + </plugins> |
| 113 | + </build> |
| 114 | + |
| 115 | + <modules> |
| 116 | + <module>chapter-01</module> |
| 117 | + <module>chapter-02</module> |
| 118 | + <module>chapter-03</module> |
| 119 | + <module>chapter-04</module> |
| 120 | + <module>chapter-05</module> |
| 121 | + <module>chapter-06</module> |
| 122 | + <module>chapter-07</module> |
| 123 | + <module>chapter-08</module> |
| 124 | + <module>chapter-09</module> |
| 125 | + <module>chapter-10</module> |
| 126 | + <module>chapter-11</module> |
| 127 | + <module>chapter-12</module> |
| 128 | + <module>chapter-13</module> |
| 129 | + <module>chapter-14</module> |
| 130 | + <module>chapter-15</module> |
| 131 | + <module>chapter-16</module> |
| 132 | + <module>chapter-17</module> |
| 133 | + <module>chapter-18</module> |
| 134 | + <module>chapter-19</module> |
| 135 | + <module>chapter-20</module> |
| 136 | + <module>chapter-21</module> |
| 137 | + </modules> |
| 138 | + |
| 139 | + <properties> |
| 140 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 141 | + <built.by>lwjglgamedev</built.by> |
| 142 | + <main.class>org.lwjglb.game.Main</main.class> |
| 143 | + <!-- Versions --> |
| 144 | + <imgui-java.version>1.90.0</imgui-java.version> |
| 145 | + <exec-maven-plugin.version>3.2.0</exec-maven-plugin.version> |
| 146 | + <java.version>17</java.version> |
| 147 | + <joml.version>1.10.8</joml.version> |
| 148 | + <joml-primitives.version>1.10.4</joml-primitives.version> |
| 149 | + <lwjgl.version>3.3.6</lwjgl.version> |
| 150 | + <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version> |
| 151 | + <maven-dependency-plugin.version>3.8.0</maven-dependency-plugin.version> |
| 152 | + <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
| 153 | + <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version> |
| 154 | + <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version> |
| 155 | + <tinylog.version>2.7.0</tinylog.version> |
| 156 | + </properties> |
| 157 | + |
| 158 | + <profiles> |
| 159 | + <profile> |
| 160 | + <id>windows-profile</id> |
| 161 | + <activation> |
| 162 | + <os> |
| 163 | + <family>Windows</family> |
| 164 | + </os> |
| 165 | + </activation> |
| 166 | + <properties> |
| 167 | + <native.target>natives-windows</native.target> |
| 168 | + </properties> |
| 169 | + </profile> |
| 170 | + <profile> |
| 171 | + <id>linux-profile</id> |
| 172 | + <activation> |
| 173 | + <os> |
| 174 | + <family>Linux</family> |
| 175 | + </os> |
| 176 | + </activation> |
| 177 | + <properties> |
| 178 | + <native.target>natives-linux</native.target> |
| 179 | + </properties> |
| 180 | + </profile> |
| 181 | + <profile> |
| 182 | + <id>OSX-profile</id> |
| 183 | + <activation> |
| 184 | + <os> |
| 185 | + <family>mac</family> |
| 186 | + </os> |
| 187 | + </activation> |
| 188 | + <properties> |
| 189 | + <native.target>natives-macos</native.target> |
| 190 | + </properties> |
| 191 | + </profile> |
| 192 | + </profiles> |
| 193 | +</project> |
0 commit comments