mirror of https://github.com/apache/maven.git
[MNG-8328] Clean up assembly from Jansi remains and add JLine native libraries (#1839)
This commit is contained in:
parent
0cdb6c13fe
commit
b5a8a8a349
|
@ -162,13 +162,13 @@ under the License.
|
|||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>unpack-jansi-native</id>
|
||||
<id>unpack-jline-native</id>
|
||||
<goals>
|
||||
<goal>unpack-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<includeArtifactIds>jansi</includeArtifactIds>
|
||||
<includes>org/fusesource/jansi/internal/native/Windows/**</includes>
|
||||
<includeArtifactIds>jline-native</includeArtifactIds>
|
||||
<includes>org/jline/nativ/**</includes>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -72,10 +72,12 @@ under the License.
|
|||
<lineEnding>dos</lineEnding>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>target/dependency/org/fusesource/jansi/internal/native</directory>
|
||||
<outputDirectory>lib/jansi-native</outputDirectory>
|
||||
<directory>target/dependency/org/jline/nativ</directory>
|
||||
<outputDirectory>lib/jline-native</outputDirectory>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
<include>**/*.so</include>
|
||||
<include>**/*.jnilib</include>
|
||||
<include>**/*.dll</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
|
|
|
@ -218,7 +218,7 @@ exec "$JAVACMD" \
|
|||
"-Dclassworlds.conf=$CLASSWORLDS_CONF" \
|
||||
"-Dmaven.home=$MAVEN_HOME" \
|
||||
"-Dmaven.mainClass=$MAVEN_MAIN_CLASS" \
|
||||
"-Dlibrary.jansi.path=${MAVEN_HOME}/lib/jansi-native" \
|
||||
"-Dlibrary.jline.path=${MAVEN_HOME}/lib/jline-native" \
|
||||
"-Dmaven.multiModuleProjectDirectory=$MAVEN_PROJECTBASEDIR" \
|
||||
$LAUNCHER_CLASS \
|
||||
$MAVEN_ARGS \
|
||||
|
|
|
@ -214,7 +214,7 @@ if "%MAVEN_MAIN_CLASS%"=="" @set MAVEN_MAIN_CLASS=org.apache.maven.cling.MavenCl
|
|||
"-Dclassworlds.conf=%CLASSWORLDS_CONF%" ^
|
||||
"-Dmaven.home=%MAVEN_HOME%" ^
|
||||
"-Dmaven.mainClass=%MAVEN_MAIN_CLASS%" ^
|
||||
"-Dlibrary.jansi.path=%MAVEN_HOME%\lib\jansi-native" ^
|
||||
"-Dlibrary.jline.path=%MAVEN_HOME%\lib\jline-native" ^
|
||||
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
|
||||
%LAUNCHER_CLASS% ^
|
||||
%MAVEN_ARGS% ^
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
This directory contains Jansi native libraries extracted from Jansi JAR.
|
||||
|
||||
You can add your own build for platforms not natively supported by Jansi.
|
||||
See here [1] on how to compile for your platform and here [2] how libraries
|
||||
follow Jansi's directory and filename conventions.
|
||||
|
||||
[1] https://github.com/fusesource/jansi/tree/master/src/main/native
|
||||
[2] https://github.com/fusesource/jansi/blob/321a8ff71c731e10f4ea05c607860180276b2215/src/main/java/org/fusesource/jansi/internal/OSInfo.java
|
|
@ -0,0 +1,8 @@
|
|||
This directory contains JLine native libraries extracted from JLine JAR.
|
||||
|
||||
You can add your own build for platforms not natively supported by JLine.
|
||||
See here [1] on how to compile for your platform and here [2] how libraries
|
||||
follow JLine's directory and filename conventions.
|
||||
|
||||
[1] https://github.com/jline/jline3/tree/master/native
|
||||
[2] https://github.com/jline/jline3/blob/master/native/src/main/java/org/jline/nativ/OSInfo.java
|
Loading…
Reference in New Issue