maven.apache.org (#2702)

* maven.apache.org

* rename to xyz.tea

* use strip-components

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Andrew 2023-07-31 01:33:38 +03:00 committed by GitHub
parent 5d3823a908
commit bbcb3c796d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,23 @@
distributable:
url: https://archive.apache.org/dist/maven/maven-{{version.major}}/{{version}}/binaries/apache-maven-{{version}}-bin.tar.gz
strip-components: 1
versions:
github: apache/maven
strip: /^maven-/
warnings:
- vendored
dependencies:
openjdk.org: '*'
build:
script:
- rm bin/*.cmd
- mkdir -p {{prefix}}
- mv ./* {{prefix}}/
provides:
- bin/mvn
- bin/mvnDebug
- bin/mvnyjp
test:
script:
- mvn -version | grep {{version}}
- mvn compile -Duser.home=./

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>xyz.tea</groupId>
<artifactId>maven-test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View file

@ -0,0 +1,6 @@
package xyz.tea;
public class MavenTest {
public static void main(String[] args) {
System.out.println("Testing Maven with Tea.xyz!");
}
}