forked from fabric8io/fabric8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-bom.xml.vm
109 lines (74 loc) · 3.56 KB
/
custom-bom.xml.vm
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
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>${model.groupId}</groupId>
<artifactId>${model.artifactId}</artifactId>
<version>${model.version}</version>
<name>${model.name}</name>
<packaging>pom</packaging>
<description>Bill of material</description>
#if ($model.url)
<url>${model.url}</url>#end
#if ($model.licenses && !$model.licenses.isEmpty())
<licenses>#foreach($l in $model.licenses)
<license>
<name>${l.name}</name>
<url>${l.url}</url>
<distribution>${l.distribution}</distribution>
</license>#end
</licenses>
#end
#if ($model.scm)
<scm>
<connection>${model.scm.connection}</connection>
<developerConnection>${model.scm.developerConnection}</developerConnection>
<url>${model.scm.connection}</url>
<tag>${model.scm.tag}</tag>
</scm>
#end
#if ($model.developers && !$model.developers.isEmpty())
<developers>#foreach($d in $model.developers)
<developer>
<id>${d.id}</id>
<name>${d.name}</name>#if($d.email)
<email>${d.email}</email>#end#if($d.url)
<url>${d.url}</url>#end#if($d.organization)
<organization>${d.organization}</organization>#end#if($d.organizationUrl)
<organizationUrl>${d.organizationUrl}</organizationUrl>#end
</developer>#end
</developers>#end
<properties>#foreach($d in $model.dependencyManagement.dependencies)
<version.${d.groupId}.${d.artifactId}>${d.version}</version.${d.groupId}.${d.artifactId}>#end#foreach($p in $model.build.pluginManagement.plugins)
<version.${p.groupId}.${p.artifactId}>${p.version}</version.${p.groupId}.${p.artifactId}>#end
</properties>
<dependencyManagement>
<dependencies>#foreach($d in $model.dependencyManagement.dependencies)
<dependency>
<groupId>${d.groupId}</groupId>
<artifactId>${d.artifactId}</artifactId>
<version>#[[$]]#{version.${d.groupId}.${d.artifactId}}</version>#if( $d.type && $!d.type != '' && $!d.type != 'jar' && $!d.type != 'bundle')
<type>${d.type}</type>#end#if( $d.classifier && $!d.classifier != '' )
<classifier>${d.classifier}</classifier>#end#if( $d.exclusions && $d.exclusions.size() > 0 )
<exclusions>#foreach( $e in $d.exclusions )
<exclusion>
<groupId>${e.groupId}</groupId>
<artifactId>${e.artifactId}</artifactId>
</exclusion>#end
</exclusions>#end
</dependency>#end
</dependencies>
</dependencyManagement>
#if (!$model.build.pluginManagement.plugins.isEmpty())
<build>
<pluginManagement>
<plugins>#foreach($p in $model.build.pluginManagement.plugins)
<plugin>
<groupId>${p.groupId}</groupId>
<artifactId>${p.artifactId}</artifactId>
<version>#[[$]]#{version.${p.groupId}.${p.artifactId}}</version>
</plugin>#end
</plugins>
</pluginManagement>
</build>
#end
</project>