diff --git a/.gitignore b/.gitignore index 1a5d4e4566450762528436a6856e77c2fbacc062..99afcfa7563166dc7406c5583c37811a330aeb66 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ target/ .classpath .project .settings +.gitlab-ci-local # IDE .settings/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..620eae00f69a31b502207988db849767ccc6cbef --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +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 + diff --git a/.m2/settings.xml b/.m2/settings.xml new file mode 100644 index 0000000000000000000000000000000000000000..abba1366dc237c3438049f3b33b99559c738d12d --- /dev/null +++ b/.m2/settings.xml @@ -0,0 +1,55 @@ +<?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 diff --git a/src/main/java/de/ozgcloud/xtaClientLib/Main.java b/src/main/java/de/ozgcloud/xtaClientLib/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..9adb04289a3523cb5630fb0a99448620c67d6f40 --- /dev/null +++ b/src/main/java/de/ozgcloud/xtaClientLib/Main.java @@ -0,0 +1,9 @@ +package de.ozgcloud.xtaClientLib; + +public class Main { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } + +}