Skip to content
Snippets Groups Projects
Commit cbe731ff authored by Jörg Bolay's avatar Jörg Bolay
Browse files

KOP-2329 settings.xml und gitlab ci file kopiert und dem Projekt hinzugefügt

parent 7353e131
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ target/ ...@@ -2,6 +2,7 @@ target/
.classpath .classpath
.project .project
.settings .settings
.gitlab-ci-local
# IDE # IDE
.settings/ .settings/
......
image: dimage-base-release.repo-ex.zcdi.dataport.de/sdks/maven:3.9.2-java-21
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
- target/
package:
stage: deploy
script:
- mvn $MAVEN_CLI_OPTS package
artifacts:
paths:
- target/*.jar
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<localRepository>.m2/repository</localRepository>
<servers>
<server>
<id>artifactory</id>
<username>${env.Artifactory_REPO_USER}</username>
<password>${env.Artifactory_REPO_PASS}</password>
</server>
<server>
<id>artifactory-snapshots</id>
<username>${env.Artifactory_REPO_USER}</username>
<password>${env.Artifactory_REPO_PASS}</password>
</server>
</servers>
<profiles>
<profile>
<id>local-build</id>
<repositories>
<repository>
<id>artifactory</id>
<name>artifactory</name>
<url>${env.DATAPORT_ARTIFACTORY_URL}</url>
</repository>
<repository>
<id>artifactory-snapshots</id>
<name>artifactory-snapshots</name>
<url>${env.DATAPORT_ARTIFACTORY_URL}</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>local-build</activeProfile>
</activeProfiles>
<proxies>
<proxy>
<id>dataport-proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>10.65.108.2</host>
<port>${env.DATAPORT_PROXY_PORT}</port>
<nonProxyHosts>localhost,127.0.0.1,*.dataport.de</nonProxyHosts>
</proxy>
<proxy>
<id>dataport-gitlab-proxy</id>
<active>false</active>
<protocol>http</protocol>
<host>${env.DATAPORT_PROXY}</host>
<port>${env.DATAPORT_PROXY_PORT}</port>
<nonProxyHosts>localhost,127.0.0.1,*.dataport.de</nonProxyHosts>
</proxy>
</proxies>
</settings>
\ No newline at end of file
package de.ozgcloud.xtaClientLib;
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment