[ https://issues.apache.org/jira/browse/MNG-7165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17362537#comment-17362537 ]
Konrad Windszus commented on MNG-7165: -------------------------------------- 3.8.1 works fine without any warnings. > Maven does not start if there is no Jansi native library available > ------------------------------------------------------------------ > > Key: MNG-7165 > URL: https://issues.apache.org/jira/browse/MNG-7165 > Project: Maven > Issue Type: Bug > Affects Versions: 4.0.0-alpha-1 > Reporter: Michael Osipov > Assignee: Robert Scholte > Priority: Blocker > Fix For: 4.0.0, 4.0.0-alpha-1 > > > Compiled Maven from 5c45b3fe22d8ec4270b2cf1016581b8927d2913d and started on: > {noformat} > $ uname -a > HP-UX deblndw0 B.11.31 U ia64 HP-UX > $ java -version > java version "1.8.0.21-hp-ux" > Java(TM) SE Runtime Environment (build 1.8.0.21-hp-ux-b1) > Java HotSpot(TM) Server VM (build 25.21-b1, mixed mode) > {noformat} > with following result: > {noformat} > $ ~/apache-maven-4.0.0-alpha-1-SNAPSHOT/bin/mvn > --------------------------------------------------- > constituent[0]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/conf/logging/ > constituent[1]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-embedder-4.0.0-alpha-1-SNAPSHOT.jar > constituent[2]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-settings-4.0.0-alpha-1-SNAPSHOT.jar > constituent[3]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-settings-builder-4.0.0-alpha-1-SNAPSHOT.jar > constituent[4]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-plugin-api-4.0.0-alpha-1-SNAPSHOT.jar > constituent[5]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-model-4.0.0-alpha-1-SNAPSHOT.jar > constituent[6]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-model-builder-4.0.0-alpha-1-SNAPSHOT.jar > constituent[7]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-builder-support-4.0.0-alpha-1-SNAPSHOT.jar > constituent[8]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-api-1.7.0.jar > constituent[9]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-util-1.7.0.jar > constituent[10]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-shared-utils-3.3.4.jar > constituent[11]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/commons-io-2.6.jar > constituent[12]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-slf4j-wrapper-4.0.0-alpha-1-SNAPSHOT.jar > constituent[13]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/guice-4.2.3-no_aop.jar > constituent[14]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/guava-30.1-jre.jar > constituent[15]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/failureaccess-1.0.1.jar > constituent[16]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/javax.inject-1.jar > constituent[17]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/jsr250-api-1.0.jar > constituent[18]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/plexus-utils-3.3.0.jar > constituent[19]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/plexus-sec-dispatcher-1.4.jar > constituent[20]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/slf4j-api-1.7.30.jar > constituent[21]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/commons-lang3-3.8.1.jar > constituent[22]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-core-4.0.0-alpha-1-SNAPSHOT.jar > constituent[23]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-repository-metadata-4.0.0-alpha-1-SNAPSHOT.jar > constituent[24]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-artifact-4.0.0-alpha-1-SNAPSHOT.jar > constituent[25]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-model-transform-4.0.0-alpha-1-SNAPSHOT.jar > constituent[26]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-provider-4.0.0-alpha-1-SNAPSHOT.jar > constituent[27]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-impl-1.7.0.jar > constituent[28]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-named-locks-1.7.0.jar > constituent[29]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/javax.annotation-api-1.3.2.jar > constituent[30]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-spi-1.7.0.jar > constituent[31]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/org.eclipse.sisu.inject-0.3.4.jar > constituent[32]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-compat-4.0.0-alpha-1-SNAPSHOT.jar > constituent[33]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/plexus-interpolation-1.26.jar > constituent[34]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/plexus-component-annotations-2.1.0.jar > constituent[35]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/wagon-provider-api-3.4.3.jar > constituent[36]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/org.eclipse.sisu.plexus-0.3.4.jar > constituent[37]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/commons-cli-1.4.jar > constituent[38]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/wagon-http-3.4.3-shaded.jar > constituent[39]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/jcl-over-slf4j-1.7.30.jar > constituent[40]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/wagon-file-3.4.3.jar > constituent[41]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-connector-basic-1.7.0.jar > constituent[42]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-resolver-transport-wagon-1.7.0.jar > constituent[43]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/maven-slf4j-provider-4.0.0-alpha-1-SNAPSHOT.jar > constituent[44]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/jansi-2.2.0.jar > constituent[45]: > file:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/plexus-cipher-1.8.jar > --------------------------------------------------- > Exception in thread "main" java.lang.ExceptionInInitializerError > at org.fusesource.jansi.AnsiConsole.ansiStream(AnsiConsole.java:239) > at org.fusesource.jansi.AnsiConsole.initStreams(AnsiConsole.java:542) > at > org.fusesource.jansi.AnsiConsole.systemInstall(AnsiConsole.java:496) > at > org.apache.maven.shared.utils.logging.MessageUtils.systemInstall(MessageUtils.java:67) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:200) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:566) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) > Caused by: java.lang.RuntimeException: Unable to load jansi native library > at > org.fusesource.jansi.internal.JansiLoader.initialize(JansiLoader.java:62) > at org.fusesource.jansi.internal.CLibrary.<clinit>(CLibrary.java:30) > ... 13 more > Caused by: java.lang.Exception: No native library found for os.name=HPUX, > os.arch=ia64_32, > paths=[/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/jansi-native/HPUX/ia64_32:/net/home/osipovmi/apache-maven-4.0.0-alpha-1-SNAPSHOT/lib/jansi-native:/opt/oracle/product/19.0.0/client_1/lib:/usr/lib] > at > org.fusesource.jansi.internal.JansiLoader.loadJansiNativeLibrary(JansiLoader.java:333) > at > org.fusesource.jansi.internal.JansiLoader.initialize(JansiLoader.java:60) > ... 14 more > {noformat} > This makes Maven unusable if Jansi native is not available. This behavior is > unacceptable for a portable application. -- This message was sent by Atlassian Jira (v8.3.4#803005)