mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-18 09:22:47 +00:00
Split daemon module into daemon and dist #130
This commit is contained in:
22
.github/workflows/verify.yaml
vendored
22
.github/workflows/verify.yaml
vendored
@@ -29,6 +29,9 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Set VERSION env var
|
||||||
|
run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: setup-graalvm-ce
|
- name: setup-graalvm-ce
|
||||||
uses: DeLaGuardo/setup-graalvm@3
|
uses: DeLaGuardo/setup-graalvm@3
|
||||||
with:
|
with:
|
||||||
@@ -50,13 +53,13 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: daemon-test-logs-linux
|
name: daemon-test-logs-linux
|
||||||
path: daemon/target/maven-distro/daemon
|
path: dist/target/mvnd-${{ env.VERSION }}-linux-amd64/daemon
|
||||||
|
|
||||||
- name: Upload mvnd.zip
|
- name: Upload mvnd.zip
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: mvnd-linux-amd64.zip
|
name: mvnd-linux-amd64.zip
|
||||||
path: daemon/target/maven-distro/mvnd-*.zip
|
path: dist/target/mvnd-*.zip
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
@@ -97,6 +100,10 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Set VERSION env var
|
||||||
|
shell: bash
|
||||||
|
run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Skip tests when releasing from a tag
|
- name: Skip tests when releasing from a tag
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -113,13 +120,13 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: daemon-test-logs-windows
|
name: daemon-test-logs-windows
|
||||||
path: daemon/target/maven-distro/daemon
|
path: dist/target/mvnd-${{ env.VERSION }}-windows-amd64/daemon
|
||||||
|
|
||||||
- name: Upload mvnd.zip
|
- name: Upload mvnd.zip
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: mvnd-windows-amd64.zip
|
name: mvnd-windows-amd64.zip
|
||||||
path: daemon/target/maven-distro/mvnd-*.zip
|
path: dist/target/mvnd-*.zip
|
||||||
|
|
||||||
darwin:
|
darwin:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
@@ -127,6 +134,9 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Set VERSION env var
|
||||||
|
run: echo "VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: setup-graalvm-ce
|
- name: setup-graalvm-ce
|
||||||
uses: DeLaGuardo/setup-graalvm@3
|
uses: DeLaGuardo/setup-graalvm@3
|
||||||
with:
|
with:
|
||||||
@@ -148,13 +158,13 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: daemon-test-logs-darwin
|
name: daemon-test-logs-darwin
|
||||||
path: daemon/target/maven-distro/daemon
|
path: dist/target/mvnd-${{ env.VERSION }}-darwin-amd64/daemon
|
||||||
|
|
||||||
- name: Upload mvnd.zip
|
- name: Upload mvnd.zip
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: mvnd-darwin-amd64.zip
|
name: mvnd-darwin-amd64.zip
|
||||||
path: daemon/target/maven-distro/mvnd-*.zip
|
path: dist/target/mvnd-*.zip
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
@@ -41,10 +41,6 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.jboss.fuse.mvnd</groupId>
|
|
||||||
<artifactId>mvnd-client</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-embedder</artifactId>
|
<artifactId>maven-embedder</artifactId>
|
||||||
@@ -96,23 +92,6 @@
|
|||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-failsafe-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>integration-test</goal>
|
|
||||||
<goal>verify</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<mvnd.home>${project.basedir}/target/maven-distro/mvnd-${project.version}-${os.detected.name}-${os.detected.arch}</mvnd.home>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.takari.maven.plugins</groupId>
|
<groupId>io.takari.maven.plugins</groupId>
|
||||||
<artifactId>takari-lifecycle-plugin</artifactId>
|
<artifactId>takari-lifecycle-plugin</artifactId>
|
||||||
@@ -125,22 +104,6 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>ca.vanzyl.provisio.maven.plugins</groupId>
|
|
||||||
<artifactId>provisio-maven-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>maven-distro</id>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>provision</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}/maven-distro/mvnd-${project.version}-${os.detected.name}-${os.detected.arch}</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
65
dist/pom.xml
vendored
Normal file
65
dist/pom.xml
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
<!--
|
||||||
|
|
||||||
|
Copyright 2019 the original author or authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.jboss.fuse.mvnd</groupId>
|
||||||
|
<artifactId>mvnd</artifactId>
|
||||||
|
<version>0.0.9-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>mvnd-dist</artifactId>
|
||||||
|
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
<name>Maven Daemon Distribution</name>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss.fuse.mvnd</groupId>
|
||||||
|
<artifactId>mvnd-client</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss.fuse.mvnd</groupId>
|
||||||
|
<artifactId>mvnd-daemon</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>ca.vanzyl.provisio.maven.plugins</groupId>
|
||||||
|
<artifactId>provisio-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>maven-distro</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>provision</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/mvnd-${project.version}-${os.detected.name}-${os.detected.arch}</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
@@ -32,7 +32,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.target>11</maven.compiler.target>
|
<maven.compiler.target>11</maven.compiler.target>
|
||||||
<maven.compiler.source>11</maven.compiler.source>
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
<mvnd.home>${project.basedir}/../daemon/target/maven-distro/mvnd-${project.version}-${os.detected.name}-${os.detected.arch}</mvnd.home>
|
<mvnd.home>${project.basedir}/../dist/target/mvnd-${project.version}-${os.detected.name}-${os.detected.arch}</mvnd.home>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -48,17 +48,8 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jboss.fuse.mvnd</groupId>
|
<groupId>org.jboss.fuse.mvnd</groupId>
|
||||||
<artifactId>mvnd-daemon</artifactId>
|
<artifactId>mvnd-dist</artifactId>
|
||||||
<scope>test</scope>
|
<type>pom</type>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jboss.fuse.mvnd</groupId>
|
|
||||||
<artifactId>mvnd-common</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jboss.fuse.mvnd</groupId>
|
|
||||||
<artifactId>mvnd-client</artifactId>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package org.jboss.fuse.mvnd.dist;
|
package org.jboss.fuse.mvnd.it;
|
||||||
|
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
7
pom.xml
7
pom.xml
@@ -68,6 +68,7 @@
|
|||||||
<module>common</module>
|
<module>common</module>
|
||||||
<module>client</module>
|
<module>client</module>
|
||||||
<module>daemon</module>
|
<module>daemon</module>
|
||||||
|
<module>dist</module>
|
||||||
<module>integration-tests</module>
|
<module>integration-tests</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
@@ -168,6 +169,12 @@
|
|||||||
<artifactId>mvnd-common</artifactId>
|
<artifactId>mvnd-common</artifactId>
|
||||||
<version>0.0.9-SNAPSHOT</version>
|
<version>0.0.9-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss.fuse.mvnd</groupId>
|
||||||
|
<artifactId>mvnd-dist</artifactId>
|
||||||
|
<type>pom</type>
|
||||||
|
<version>0.0.9-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jboss.fuse.mvnd</groupId>
|
<groupId>org.jboss.fuse.mvnd</groupId>
|
||||||
<artifactId>mvnd-daemon</artifactId>
|
<artifactId>mvnd-daemon</artifactId>
|
||||||
|
Reference in New Issue
Block a user