Hi,

which puzzles me is that you don't have an entry either for /opt/.. or
/usr/share/maven/bin in your PATH variable...(checked in the env.lst)..

Are you using the same user for calling Maven in both cases?

Because the following does not show any user:

>>>>> mvn install:install-file -Durl=file://repo
>>>>> -Dfile=/usr/java/jdk1.8.0_261-amd64/lib/javax.xml.bind.jar
>>>>> -DgroupId=lib
>>>>> -DartifactId=bind -Dpackaging=jar -Dversion=1.0

while:
>>> raivo@Hydra:~/teamengine$ mvn -version
>>> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)

in contradiction does.


Please test to add /opt/apache-maven-3.6.3/bin to your PATH or use the
absolute path explicitly (/opt/apache-maven-3.6.3/bin/mvn ...) and retry
to call the install-file goal.

The part you have sent me:

/usr/share/maven/lib/guice.jar

shows that this is the installed version of Maven via Ubuntu.

Please check the hash

shasum -a 256 /usr/share/maven/lib/guice.jar

and compare that output with

shasum -a 256 /opt/apache-maven-3.6.3/lib/guice-4.2.1-no_aop.jar

I bet they are different.

Kind regards
Karl Heinz Marbaise
On 10.11.22 21:22, Raivo Rebane wrote:
Hi

I send You all wanted

Raivo

On 10.11.22 21:36, Karl Heinz Marbaise wrote:
Hi,

so there is a difference between the output you have posted:

> Maven home: /opt/apache-maven-3.6.3

and the output in the error:

>>> (file:/usr/share/maven/lib/guice.jar) to method

Can you make a "ls -al /opt/apache-maven-3.6.3/lib" and "ls -la
/usr/share/maven/lib/"...

Also can you check if you have set an environment variable which starts
with "M" (something like M2_HOME?? or alike?

Kind regards
Karl Heinz Marbaise

On 10.11.22 20:21, Raivo Rebane wrote:
Hi

To me seems it is Apache Maven.

raivo@Hydra:~/teamengine$ mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache-maven-3.6.3
Java version: 11.0.16, vendor: Ubuntu, runtime:
/usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-52-generic", arch: "amd64", family:
"unix"

Am I right ?

Regards

Raivo


On 10.11.22 20:23, Karl Heinz Marbaise wrote:

Hi,

On 10.11.22 15:58, Raivo Rebane wrote:
Hello

My Maven deploy fails :

mvn install:install-file -Durl=file://repo
-Dfile=/usr/java/jdk1.8.0_261-amd64/lib/javax.xml.bind.jar
-DgroupId=lib
-DartifactId=bind -Dpackaging=jar -Dversion=1.0

and gives error :

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
com.google.inject.internal.cglib.core.$ReflectUtils$1
(file:/usr/share/maven/lib/guice.jar) to method
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further
illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future
release

This output looks strange, because the output of the file
"guice.jar" is
an indication that you are not using Apache Maven. It looks like you
are
using a repackaged variant of Apache Maven... which causes issues.

First I would suggest to show what: "mvn --version" prints out... and
can you please post that here?



Tests [pom]
[WARNING] Error injecting:
org.apache.maven.wagon.providers.http.HttpWagon$__sisu20
java.lang.ExceptionInInitializerError
     at javax.crypto.Cipher.getInstance (Cipher.java:540)
     at sun.security.ssl.JsseJce.getCipher (JsseJce.java:190)
     at sun.security.ssl.SSLCipher.isTransformationAvailable
(SSLCipher.java:509)
     at sun.security.ssl.SSLCipher.<init> (SSLCipher.java:498)
     at sun.security.ssl.SSLCipher.<clinit> (SSLCipher.java:81)
     at sun.security.ssl.CipherSuite.<clinit> (CipherSuite.java:65)
     at
sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuites
(SSLContextImpl.java:348)
     at sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>
(SSLContextImpl.java:580)
     at java.lang.Class.forName0 (Native Method)
     at java.lang.Class.forName (Class.java:315)

What I do wrong ? And what is the true way of deply ?


This looks also very strange...

Kind regards
Karl Heinz Marbaise





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Mit freundlichem Gruß
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung      Tel.: +49 (0) 2405 / 415 893
Inhaber Dipl.Ing.(FH) Karl Heinz Marbaise  USt.IdNr: DE191347579
Hauptstrasse 177
52146 Würselen                             https://www.soebes.de


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to