diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-20 15:56:37 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-20 15:56:37 -0600 |
| commit | a399a38ca5abb8dbab7776b90bea5333e14582ed (patch) | |
| tree | c012896200cfad0c7378d36d7699134157eeca15 /spec/fixtures/java | |
| parent | 703fdd64133163f6d8072f9917298e2b5db6b1e8 (diff) | |
Upload maven package to GL repo for testing
Diffstat (limited to 'spec/fixtures/java')
| -rw-r--r-- | spec/fixtures/java/custom-maven-settings.xml | 2 | ||||
| -rw-r--r-- | spec/fixtures/java/example/pom.xml | 38 | ||||
| -rw-r--r-- | spec/fixtures/java/example/settings.xml | 15 |
3 files changed, 54 insertions, 1 deletions
diff --git a/spec/fixtures/java/custom-maven-settings.xml b/spec/fixtures/java/custom-maven-settings.xml index 4fa5d16..b7dbb1c 100644 --- a/spec/fixtures/java/custom-maven-settings.xml +++ b/spec/fixtures/java/custom-maven-settings.xml @@ -8,7 +8,7 @@ <repositories> <repository> <id>gitlab-maven</id> - <url>https://gitlab.com/api/v4/projects/17523603/packages/maven</url> + <url>https://gitlab.com/api/v4/projects/6130122/packages/maven</url> </repository> </repositories> </profile> diff --git a/spec/fixtures/java/example/pom.xml b/spec/fixtures/java/example/pom.xml new file mode 100644 index 0000000..30d9b03 --- /dev/null +++ b/spec/fixtures/java/example/pom.xml @@ -0,0 +1,38 @@ +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>com.gitlab.secure</groupId> + <artifactId>example</artifactId> + <packaging>jar</packaging> + <version>1.0</version> + <name>example</name> + <url>http://maven.apache.org</url> + <licenses> + <license> + <name>MIT</name> + </license> + </licenses> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> + <repositories> + <repository> + <id>gitlab-maven</id> + <url>https://gitlab.com/api/v4/projects/6130122/packages/maven</url> + </repository> + </repositories> + <distributionManagement> + <repository> + <id>gitlab-maven</id> + <url>https://gitlab.com/api/v4/projects/6130122/packages/maven</url> + </repository> + <snapshotRepository> + <id>gitlab-maven</id> + <url>https://gitlab.com/api/v4/projects/6130122/packages/maven</url> + </snapshotRepository> + </distributionManagement> +</project> diff --git a/spec/fixtures/java/example/settings.xml b/spec/fixtures/java/example/settings.xml new file mode 100644 index 0000000..e84b931 --- /dev/null +++ b/spec/fixtures/java/example/settings.xml @@ -0,0 +1,15 @@ +<settings> + <servers> + <server> + <id>gitlab-maven</id> + <configuration> + <httpHeaders> + <property> + <name>Job-Token</name> + <value>${env.CI_JOB_TOKEN}</value> + </property> + </httpHeaders> + </configuration> + </server> + </servers> +</settings> |
