|
86 | 86 | </profile> |
87 | 87 |
|
88 | 88 | <profile> |
89 | | - <!-- activate github profile when runned by github actions --> |
| 89 | + <!-- activate github profile when run by github actions --> |
90 | 90 | <id>github</id> |
91 | 91 | <activation> |
92 | 92 | <property> |
|
102 | 102 | </repositories> |
103 | 103 | </profile> |
104 | 104 |
|
105 | | - <!--profile> |
| 105 | + <profile> |
| 106 | + <!-- set gitlab.ext profile active when run by gitlab CI --> |
106 | 107 | <id>gitlab.ext</id> |
| 108 | + <activation> |
| 109 | + <property> |
| 110 | + <name>env.GITLAB_CI</name> |
| 111 | + <value>true</value> |
| 112 | + </property> |
| 113 | + </activation> |
107 | 114 | <repositories> |
108 | 115 | <repository> |
109 | 116 | <id>gitlab.ext.cyber.ee</id> |
110 | 117 | <url>https://gitlab.ext.cyber.ee/api/v4/projects/39/packages/maven</url> |
111 | 118 | </repository> |
112 | 119 | </repositories> |
113 | | - </profile--> |
| 120 | + |
| 121 | + <distributionManagement> |
| 122 | + <!-- env variables are available, when run by gitlab CI --> |
| 123 | + <repository> |
| 124 | + <id>gitlab.ext.cyber.ee</id> |
| 125 | + <url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url> |
| 126 | + </repository> |
| 127 | + <snapshotRepository> |
| 128 | + <id>gitlab.ext.cyber.ee</id> |
| 129 | + <url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url> |
| 130 | + </snapshotRepository> |
| 131 | + </distributionManagement> |
| 132 | + </profile> |
114 | 133 | </profiles> |
115 | 134 |
|
116 | 135 | <repositories> |
| 136 | + <!-- for local development, configure your settings.xml or activate one of profiles above--> |
117 | 137 | <!--repository> |
118 | 138 | <id>gitlab.ext.cyber.ee</id> |
119 | 139 | <url>https://gitlab.ext.cyber.ee/api/v4/projects/39/packages/maven</url> |
120 | 140 | </repository--> |
121 | | - <!--repository> |
122 | | - <id>github</id> |
123 | | - <url>https://maven.pkg.github.com/jann0k/cdoc2-java-ref-impl</url> |
124 | | - </repository--> |
125 | 141 | <!--repository> |
126 | 142 | <id>github</id> |
127 | 143 | <url>https://maven.pkg.github.com/open-eid/cdoc2-capsule-server</url> |
128 | 144 | </repository--> |
129 | 145 | </repositories> |
130 | 146 |
|
131 | | - |
132 | | - <!--distributionManagement> |
133 | | - <repository> |
134 | | - <id>github</id> |
135 | | - <name>GitHub jann0k Maven Packages</name> |
136 | | - <url>https://maven.pkg.github.com/jann0k/cdoc2-java-ref-impl</url> |
137 | | - </repository> |
138 | | -
|
139 | | - <snapshotRepository> |
140 | | - <id>github</id> |
141 | | - <name>GitHub jann0k Maven Packages</name> |
142 | | - <url>https://maven.pkg.github.com/jann0k/cdoc2-java-ref-impl</url> |
143 | | - </snapshotRepository> |
144 | | - </distributionManagement--> |
145 | | - |
146 | | - |
147 | | - <!--distributionManagement> |
148 | | - <repository> |
149 | | - <id>gitlab.ext.cyber.ee</id> |
150 | | - <url>https://gitlab.ext.cyber.ee/api/v4/projects/40/packages/maven</url> |
151 | | - </repository> |
152 | | -
|
153 | | - <snapshotRepository> |
154 | | - <id>gitlab.ext.cyber.ee</id> |
155 | | - <url>https://gitlab.ext.cyber.ee/api/v4/projects/40/packages/maven</url> |
156 | | - </snapshotRepository> |
157 | | - </distributionManagement--> |
158 | | - |
159 | 147 | <modules> |
160 | 148 | <module>cdoc2-schema</module> |
161 | 149 | <module>cdoc2-lib</module> |
|
0 commit comments