|
50 | 50 | <!-- |
51 | 51 | Available DEB architectures: |
52 | 52 | all, amd64, arm64 |
53 | | -
|
54 | | - Available RPM architectures: |
55 | | - noarch, x86_64, aarch64 |
56 | 53 | --> |
57 | 54 | <deb.architecture>all</deb.architecture> |
58 | | - <rpm.architecture>noarch</rpm.architecture> |
59 | 55 |
|
60 | | - <!-- final name of the generated debian and rpm package --> |
| 56 | + <!-- final name of the generated debian package --> |
61 | 57 | <package.name>${artifactId}</package.name> |
62 | 58 |
|
63 | 59 | <!-- properties used for artifact upload on artifactory repository --> |
|
254 | 250 | </executions> |
255 | 251 | </plugin> |
256 | 252 |
|
257 | | - <plugin> |
258 | | - <groupId>org.codehaus.mojo</groupId> |
259 | | - <artifactId>rpm-maven-plugin</artifactId> |
260 | | - <version>2.3.0</version> |
261 | | - <executions> |
262 | | - <execution> |
263 | | - <id>generate-rpm</id> |
264 | | - <phase>package</phase> |
265 | | - <goals> |
266 | | - <goal>rpm</goal> |
267 | | - </goals> |
268 | | - <configuration> |
269 | | - <name>${package.name}</name> |
270 | | - <workarea>${basedir}/target/rpm</workarea> |
271 | | - <needarch>${rpm.architecture}</needarch> |
272 | | - <group>Applications/System</group> |
273 | | - <targetOS>linux</targetOS> |
274 | | - <summary>${summary}</summary> |
275 | | - <description>${long.description}</description> |
276 | | - <license>EPL 2.0 (https://www.eclipse.org/legal/epl-2.0/)</license> |
277 | | - |
278 | | - <projversion>${package.version}</projversion> |
279 | | - <release>${package.revision}</release> |
280 | | - |
281 | | - <requires> |
282 | | - <require>kura-core >= 6.0.0~, kura-core < 7.0.0~</require> |
283 | | - </requires> |
284 | | - |
285 | | - <mappings> |
286 | | - <!-- Repeate the 'mapping' schema multiple time if you want to |
287 | | - manage different files indipendentely, specifying for each one the |
288 | | - different parameters: it is usefull if different files require |
289 | | - different 'directory' (aka: different destination location) or |
290 | | - specific username, groupname and filemode --> |
291 | | - <mapping> |
292 | | - <directory>${addon.installation.dir}</directory> |
293 | | - <filemode>600</filemode> |
294 | | - <username>kurad</username> |
295 | | - <groupname>kurad</groupname> |
296 | | - <sources> |
297 | | - <!-- It is also possible to specify multiple times the |
298 | | - 'source' to include different files from different |
299 | | - locations, but with the same 'directory', 'filemode', |
300 | | - 'username' and 'groupname'--> |
301 | | - <source> |
302 | | - <location>${basedir}/target/input_files/${jar.name}_${project.version}.jar</location> |
303 | | - </source> |
304 | | - </sources> |
305 | | - </mapping> |
306 | | - |
307 | | - <!-- |
308 | | -
|
309 | | - If all the source file are managed in the same way, it is also possible to specify the path to a |
310 | | - directory to include all the files present in that |
311 | | -
|
312 | | - <mapping> |
313 | | - <directory>${addon.installation.dir}</directory> |
314 | | - <filemode>600</filemode> |
315 | | - <username>kurad</username> |
316 | | - <groupname>kurad</groupname> |
317 | | - <sources> |
318 | | - <source> |
319 | | - <location> |
320 | | - ${basedir}/target/input_files</location> |
321 | | - </source> |
322 | | - </sources> |
323 | | - </mapping> |
324 | | -
|
325 | | - --> |
326 | | - </mappings> |
327 | | - |
328 | | - <requires> |
329 | | - <require>kura</require> |
330 | | - </requires> |
331 | | - </configuration> |
332 | | - </execution> |
333 | | - </executions> |
334 | | - </plugin> |
335 | | - |
336 | 253 | </plugins> |
337 | 254 | </build> |
338 | 255 | </project> |
0 commit comments