Commit c25b0a4e authored by Christos Tranoris's avatar Christos Tranoris
Browse files

fix pom

parent 6840f975
Loading
Loading
Loading
Loading
+36 −1
Changes for pom.xml: 36 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -16,15 +16,50 @@
    <version>1.0.0-SNAPSHOT</version>
    <name>Chronos</name>
    <description>Reservation and Scheduling Service for ETSI OSL</description>
	<organization>
		<name>OpenSlice by ETSI</name>
		<url>https://osl.etsi.org</url>
	</organization>


    <properties>
        <java.version>17</java.version>
        <springdoc-openapi.version>2.7.0</springdoc-openapi.version>
        <archunit.version>1.3.0</archunit.version>
        <testcontainers.version>1.21.4</testcontainers.version>
        <org.etsi.osl.model.tmf.version>1.5.0-SNAPSHOT</org.etsi.osl.model.tmf.version>
        <org.etsi.osl.model.tmf.version>2.0.0-SNAPSHOT</org.etsi.osl.model.tmf.version>
    </properties>

	<repositories>
		<repository>
			<!-- Deliberately a different server id than distributionManagement below.
			     This group's Maven registry on labs.etsi.org is public/anonymous-read
			     (verified: GET on it returns 200 with no credentials). ci_settings.xml
			     only defines a server entry for "gitlab-maven", scoped to the
			     distributionManagement repo below via ${CI_JOB_TOKEN} — a token valid
			     only on the GitLab instance running the build. Sharing one server id
			     between both repos used to work because CI ran on labs.etsi.org itself,
			     so that token happened to be valid there too; forked onto another
			     GitLab instance, sending that instance's job token to labs.etsi.org gets
			     a 401 (GitLab tries to validate the foreign token instead of falling
			     back to anonymous). Giving this repo its own, unmatched id keeps the
			     request anonymous regardless of which instance the build runs on. -->
			<id>etsi-osl-maven</id>
			<url>https://labs.etsi.org/rep/api/v4/groups/260/-/packages/maven</url>
		</repository>
	</repositories>
	<distributionManagement>
		<repository>
			<id>gitlab-maven</id>
			<url>${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven</url>
		</repository>
		<snapshotRepository>
			<id>gitlab-maven</id>
			<url>${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven</url>
		</snapshotRepository>
	</distributionManagement>
	
	
    <dependencyManagement>
        <dependencies>
            <dependency>