|
66 | 66 | <junit.version>5.${junit.minor}.0</junit.version> |
67 | 67 | <junit.runner.version>1.${junit.minor}.0</junit.runner.version> |
68 | 68 |
|
69 | | - <releaseProfile>release-javacan</releaseProfile> |
70 | | - |
71 | | - <headers.target>${project.build.directory}/jni/${project.artifactId}</headers.target> |
72 | 69 | <javacan.architecture>x86_64</javacan.architecture> |
73 | 70 | <dockcross.architecture>x64</dockcross.architecture> |
| 71 | + |
| 72 | + <headers.target>${project.build.directory}/jni/${project.artifactId}</headers.target> |
74 | 73 | </properties> |
75 | 74 |
|
76 | 75 | <dependencyManagement> |
|
149 | 148 | </execution> |
150 | 149 | </executions> |
151 | 150 | </plugin> |
152 | | - <plugin> |
153 | | - <groupId>org.codehaus.mojo</groupId> |
154 | | - <artifactId>exec-maven-plugin</artifactId> |
155 | | - <version>1.6.0</version> |
156 | | - <configuration> |
157 | | - <workingDirectory>${project.basedir}</workingDirectory> |
158 | | - <executable>./compile-native.sh</executable> |
159 | | - </configuration> |
160 | | - <executions> |
161 | | - <execution> |
162 | | - <id>compile-native-default</id> |
163 | | - <phase>compile</phase> |
164 | | - <goals> |
165 | | - <goal>exec</goal> |
166 | | - </goals> |
167 | | - <configuration> |
168 | | - <arguments> |
169 | | - <argument>${java.home}</argument> |
170 | | - <argument>${project.artifactId}</argument> |
171 | | - <argument>${project.version}</argument> |
172 | | - <argument>${dockcross.architecture}</argument> |
173 | | - <argument>${javacan.architecture}</argument> |
174 | | - </arguments> |
175 | | - </configuration> |
176 | | - </execution> |
177 | | - </executions> |
178 | | - </plugin> |
179 | | - <plugin> |
180 | | - <groupId>org.apache.maven.plugins</groupId> |
181 | | - <artifactId>maven-jar-plugin</artifactId> |
182 | | - <version>3.1.2</version> |
183 | | - <executions> |
184 | | - <execution> |
185 | | - <id>native-default</id> |
186 | | - <phase>package</phase> |
187 | | - <goals> |
188 | | - <goal>jar</goal> |
189 | | - </goals> |
190 | | - <configuration> |
191 | | - <classifier>${javacan.architecture}</classifier> |
192 | | - <classesDirectory>${project.build.directory}/native/${javacan.architecture}</classesDirectory> |
193 | | - </configuration> |
194 | | - </execution> |
195 | | - </executions> |
196 | | - </plugin> |
197 | 151 | </plugins> |
198 | 152 | </pluginManagement> |
199 | 153 | <plugins> |
|
204 | 158 | <configuration> |
205 | 159 | <autoVersionSubmodules>true</autoVersionSubmodules> |
206 | 160 | <useReleaseProfile>false</useReleaseProfile> |
207 | | - <releaseProfiles>${releaseProfile}</releaseProfiles> |
| 161 | + <releaseProfiles>release-javacan</releaseProfiles> |
208 | 162 | <goals>deploy</goals> |
209 | | - <arguments>-P${releaseProfile},all-architectures,test</arguments> |
| 163 | + <arguments>-Prelease-javacan,all-architectures,test</arguments> |
210 | 164 | </configuration> |
211 | 165 | </plugin> |
212 | 166 | <plugin> |
|
361 | 315 | <activation> |
362 | 316 | <activeByDefault>true</activeByDefault> |
363 | 317 | </activation> |
364 | | - <properties> |
365 | | - <javacan.architecture>x86_64</javacan.architecture> |
366 | | - </properties> |
367 | 318 |
|
368 | 319 | <build> |
369 | 320 | <pluginManagement> |
370 | 321 | <plugins> |
| 322 | + <plugin> |
| 323 | + <groupId>org.codehaus.mojo</groupId> |
| 324 | + <artifactId>exec-maven-plugin</artifactId> |
| 325 | + <version>1.6.0</version> |
| 326 | + <configuration> |
| 327 | + <workingDirectory>${project.basedir}</workingDirectory> |
| 328 | + <executable>./compile-native.sh</executable> |
| 329 | + </configuration> |
| 330 | + <executions> |
| 331 | + <execution> |
| 332 | + <id>compile-native-${javacan.architecture}</id> |
| 333 | + <phase>compile</phase> |
| 334 | + <goals> |
| 335 | + <goal>exec</goal> |
| 336 | + </goals> |
| 337 | + <configuration> |
| 338 | + <arguments> |
| 339 | + <argument>${java.home}</argument> |
| 340 | + <argument>${project.artifactId}</argument> |
| 341 | + <argument>${project.version}</argument> |
| 342 | + <argument>${dockcross.architecture}</argument> |
| 343 | + <argument>${javacan.architecture}</argument> |
| 344 | + </arguments> |
| 345 | + </configuration> |
| 346 | + </execution> |
| 347 | + </executions> |
| 348 | + </plugin> |
371 | 349 | <plugin> |
372 | 350 | <groupId>org.apache.maven.plugins</groupId> |
373 | 351 | <artifactId>maven-jar-plugin</artifactId> |
374 | 352 | <executions> |
375 | 353 | <execution> |
376 | | - <id>native-x86_64</id> |
| 354 | + <id>native-${javacan.architecture}</id> |
377 | 355 | <phase>package</phase> |
378 | 356 | <goals> |
379 | 357 | <goal>jar</goal> |
380 | 358 | </goals> |
381 | 359 | <configuration> |
382 | | - <classifier>x86_64</classifier> |
383 | | - <classesDirectory>${project.build.directory}/native/x86_64</classesDirectory> |
| 360 | + <classifier>${javacan.architecture}</classifier> |
| 361 | + <classesDirectory>${project.build.directory}/native/${javacan.architecture}</classesDirectory> |
384 | 362 | </configuration> |
385 | 363 | </execution> |
386 | 364 | </executions> |
|
0 commit comments