community-maven.settings.xml 2.4 KB
Newer Older
1
2
3
4
5
6
7
8
9
<settings>
	<profiles>
		<profile>
			<!-- This profile uses the CI-Token to authenticate with the server, and is the default case -->
			<id>GitLab-Authenticate-With-Job-Token</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
10
11
12
13
14
				<repo.releases.id>community-maven-via-job-token</repo.releases.id>
				<publish.snapshots.id>community-maven-via-job-token</publish.snapshots.id>
				<publish.releases.id>community-maven-via-job-token</publish.releases.id>

				<repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url>
15
16
				<publish.snapshots.url>https://community.opengroup.org/api/v4/projects/90/packages/maven</publish.snapshots.url>
				<publish.releases.url>https://community.opengroup.org/api/v4/projects/90/packages/maven</publish.releases.url>
17
18
19
20
21
22
23
24
25
26
27
28
29
30
			</properties>
		</profile>

		<profile>
			<!-- This profile uses a personal token to authenticate, which is useful for local or manual runs. The
			     presence of the COMMUNITY_MAVEN_TOKEN variable triggers this and overrides the CI Token
			     based authentication -->
			<id>GitLab-Authenticate-With-Private-Token</id>
			<activation>
			<property>
				<name>env.COMMUNITY_MAVEN_TOKEN</name>
			</property>
			</activation>
			<properties>
31
32
33
34
35
				<repo.releases.id>community-maven-via-private-token</repo.releases.id>
				<publish.snapshots.id>community-maven-via-private-token</publish.snapshots.id>
				<publish.releases.id>community-maven-via-private-token</publish.releases.id>

				<repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url>
36
37
				<publish.snapshots.url>https://community.opengroup.org/api/v4/projects/90/packages/maven</publish.snapshots.url>
				<publish.releases.url>https://community.opengroup.org/api/v4/projects/90/packages/maven</publish.releases.url>
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
			</properties>
		</profile>
	</profiles>

	<servers>
		<server>
			<id>community-maven-via-job-token</id>
			<configuration>
				<httpHeaders>
					<property>
						<name>Job-Token</name>
						<value>${env.CI_JOB_TOKEN}</value>
					</property>
				</httpHeaders>
			</configuration>
		</server>

		<server>
			<id>community-maven-via-private-token</id>
			<configuration>
				<httpHeaders>
					<property>
						<name>Private-Token</name>
						<value>${env.COMMUNITY_MAVEN_TOKEN}</value>
					</property>
				</httpHeaders>
			</configuration>
		</server>
	</servers>
</settings>