Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VOSpace INAF
vospace-parent
Commits
41b4cca2
Commit
41b4cca2
authored
Jul 20, 2021
by
Sonia Zorba
Browse files
Split parent pom from classes pom
parent
6881a44e
Pipeline
#2121
failed with stages
in 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
41b4cca2
...
...
@@ -8,10 +8,11 @@ build:
-
docker
image
:
maven:3.6.3-openjdk-14
script
:
-
mvn clean package
-Pbuild-jar
-
mvn clean package
artifacts
:
paths
:
-
target/vospace-parent*.jar
-
parent-pom.xml
-
pom.xml
expire_in
:
7 days
only
:
...
...
@@ -22,10 +23,10 @@ deploy:
tags
:
-
docker
script
:
-
mvn deploy:deploy-file
-Dfile=pom.xml
-
mvn
-f parent-pom.xml
deploy:deploy-file
-Dfile=
parent-
pom.xml
-DrepositoryId=ia2.snapshots
-DpomFile=pom.xml
-DpomFile=
parent-
pom.xml
-Durl=${IA2_MVN_REPO_SNAPSHOTS}
-
file=$(ls target/vospace-parent*.jar)
-
mvn deploy:deploy-file
...
...
parent-pom.xml
0 → 100644
View file @
41b4cca2
<?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/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
it.inaf.ia2
</groupId>
<artifactId>
vospace-parent
</artifactId>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.4.5
</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
14
</maven.compiler.source>
<maven.compiler.target>
14
</maven.compiler.target>
<zonky.postgres-binaries.version>
12.5.0
</zonky.postgres-binaries.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.postgresql
</groupId>
<artifactId>
postgresql
</artifactId>
<scope>
runtime
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<!-- Jackson-JAXB compatibility -->
<dependency>
<groupId>
com.fasterxml.jackson.module
</groupId>
<artifactId>
jackson-module-jaxb-annotations
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<scope>
runtime
</scope>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
<exclusions>
<exclusion>
<groupId>
org.junit.vintage
</groupId>
<artifactId>
junit-vintage-engine
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
it.oats.inaf
</groupId>
<artifactId>
vospace-datamodel
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<exclusions>
<!-- Transitive dependency excluded to avoid duplicated dependency issues.
We want to use always the version provided by Spring Boot -->
<exclusion>
<groupId>
com.fasterxml.jackson.module
</groupId>
<artifactId>
jackson-module-jaxb-annotations
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
it.inaf.ia2
</groupId>
<artifactId>
auth-lib
</artifactId>
<version>
2.0.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.mockito
</groupId>
<artifactId>
mockito-inline
</artifactId>
</dependency>
<!-- Embedded PostgreSQL: -->
<dependency>
<groupId>
com.opentable.components
</groupId>
<artifactId>
otj-pg-embedded
</artifactId>
<version>
0.13.3
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>
platform-linux
</id>
<activation>
<os>
<family>
unix
</family>
</os>
</activation>
<dependencies>
<dependency>
<groupId>
io.zonky.test.postgres
</groupId>
<artifactId>
embedded-postgres-binaries-linux-amd64
</artifactId>
<version>
${zonky.postgres-binaries.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>
platform-windows
</id>
<activation>
<os>
<family>
windows
</family>
</os>
</activation>
<dependencies>
<dependency>
<groupId>
io.zonky.test.postgres
</groupId>
<artifactId>
embedded-postgres-binaries-windows-amd64
</artifactId>
<version>
${zonky.postgres-binaries.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<repositories>
<repository>
<id>
ia2-snapshots
</id>
<name>
IA2 snapshot repository
</name>
<url>
http://repo.ia2.inaf.it/maven/repository/snapshots
</url>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.22.2
</version>
<configuration>
<trimStackTrace>
false
</trimStackTrace>
</configuration>
</plugin>
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.8.6
</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
\ No newline at end of file
pom.xml
View file @
41b4cca2
...
...
@@ -2,217 +2,12 @@
<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/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
it.inaf.ia2
</groupId>
<artifactId>
vospace-parent
</artifactId>
<artifactId>
vospace-parent
-classes
</artifactId>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.4.5
</version>
<relativePath/>
<!-- lookup parent from repository -->
<groupId>
it.inaf.ia2
</groupId>
<artifactId>
vospace-parent
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
14
</maven.compiler.source>
<maven.compiler.target>
14
</maven.compiler.target>
<zonky.postgres-binaries.version>
12.5.0
</zonky.postgres-binaries.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.postgresql
</groupId>
<artifactId>
postgresql
</artifactId>
<scope>
runtime
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<!-- Jackson-JAXB compatibility -->
<dependency>
<groupId>
com.fasterxml.jackson.module
</groupId>
<artifactId>
jackson-module-jaxb-annotations
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<scope>
runtime
</scope>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
<exclusions>
<exclusion>
<groupId>
org.junit.vintage
</groupId>
<artifactId>
junit-vintage-engine
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
it.oats.inaf
</groupId>
<artifactId>
vospace-datamodel
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<exclusions>
<!-- Transitive dependency excluded to avoid duplicated dependency issues.
We want to use always the version provided by Spring Boot -->
<exclusion>
<groupId>
com.fasterxml.jackson.module
</groupId>
<artifactId>
jackson-module-jaxb-annotations
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
it.inaf.ia2
</groupId>
<artifactId>
auth-lib
</artifactId>
<version>
2.0.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.mockito
</groupId>
<artifactId>
mockito-inline
</artifactId>
</dependency>
<!-- Embedded PostgreSQL: -->
<dependency>
<groupId>
com.opentable.components
</groupId>
<artifactId>
otj-pg-embedded
</artifactId>
<version>
0.13.3
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>
platform-linux
</id>
<activation>
<os>
<family>
unix
</family>
</os>
</activation>
<dependencies>
<dependency>
<groupId>
io.zonky.test.postgres
</groupId>
<artifactId>
embedded-postgres-binaries-linux-amd64
</artifactId>
<version>
${zonky.postgres-binaries.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>
platform-windows
</id>
<activation>
<os>
<family>
windows
</family>
</os>
</activation>
<dependencies>
<dependency>
<groupId>
io.zonky.test.postgres
</groupId>
<artifactId>
embedded-postgres-binaries-windows-amd64
</artifactId>
<version>
${zonky.postgres-binaries.version}
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</profile>
<profile>
<!-- packaging is 'pom' and classes would be ignored.
Jar file is generated triggering the build process by explicitly
executing these maven plugins -->
<id>
build-jar
</id>
<build>
<plugins>
<plugin>
<artifactId>
maven-compiler-plugin
</artifactId>
<executions>
<execution>
<phase>
compile
</phase>
<goals>
<goal>
compile
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
build-helper-maven-plugin
</artifactId>
<executions>
<execution>
<id>
attach-artifacts
</id>
<phase>
package
</phase>
<goals>
<goal>
attach-artifact
</goal>
</goals>
<configuration>
<sources>
<source>
src/main/java/**/*
</source>
</sources>
<artifacts>
<artifact>
<file>
target/${project.artifactId}-${project.version}.jar
</file>
<type>
jar
</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-jar-plugin
</artifactId>
<executions>
<execution>
<id>
default
</id>
<goals>
<goal>
jar
</goal>
</goals>
<phase>
package
</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>
<id>
ia2-snapshots
</id>
<name>
IA2 snapshot repository
</name>
<url>
http://repo.ia2.inaf.it/maven/repository/snapshots
</url>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.22.2
</version>
<configuration>
<trimStackTrace>
false
</trimStackTrace>
</configuration>
</plugin>
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.8.6
</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<packaging>
jar
</packaging>
</project>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment