Re: Maven Deploy fails

2022-11-13 Thread Delany
Not a Maven issue, but if you didn't install the JDK then you'll have to add it with `sudo update-alternatives --install` If the JAVA_HOME env var is set Maven will use that instead. Delany On Mon, 14 Nov 2022 at 09:29, Raivo Rebane wrote: > Hi > > raivo@Hydra:~/teamengine$ sudo update-alternati

Re: Maven Deploy fails

2022-11-13 Thread Raivo Rebane
Hi raivo@Hydra:~/teamengine$ sudo update-alternatives --list java /usr/lib/jvm/java-11-openjdk-amd64/bin/java So, it gives only one alternative But : raivo@Hydra:~/teamengine$ ll /usr/java total 16 drwxr-xr-x  4 root root 4096 nov    8 17:25 ./ drwxr-xr-x 15 root root 4096 aug   16  2020 ../ dr

Re: Maven Deploy fails

2022-11-13 Thread Arnaud bourree
Hi, On Linux, the command: sudo update-alternative --list java List all installed jre/jdk and show the selected version. sudo upgrade-alternative --config To select an other version Arnaud Le dim. 13 nov. 2022, 15:20, Raivo Rebane a écrit : > Hi > > I tried as described in link You send me, bu

Re: Maven Deploy fails

2022-11-13 Thread Raivo Rebane
Hi I tried as described in link You send me, but I got error : Preparing to unpack .../openjdk-8-jre-headless_8u342-b07-0ubuntu1~20.04_amd64.deb ... Unpacking openjdk-8-jre-headless:amd64 (8u342-b07-0ubuntu1~20.04) ... dpkg: error processing archive /var/cache/apt/archives/openjdk-8-jre-headl

Re: Maven Deploy fails

2022-11-12 Thread Sylwester Lachiewicz
Please check one of available tutorials like https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-22-04 Java 11 is good. You Just need an SDK and not only JRE. Sylwester sob., 12 lis 2022 o 15:36 Raivo Rebane napisał(a): > > Hi > > Sorry for late answer, but I

Re: Maven Deploy fails

2022-11-12 Thread Raivo Rebane
Hi Sorry for late answer, but I feel yesterday and today moning yourself sick and thought, that I got COVID. But now I feel better. I set environment variables and deploy starts to work. But compiling doesnot. It gives me : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-comp

Re: Maven Deploy fails

2022-11-11 Thread Karl Heinz Marbaise
Hi, On 11.11.22 08:40, e...@zusammenkunft.net wrote: Hello, I think the /usr/bin/mvn (i.e. "not in path") and /usr/share/maven/ points to a non-pristine distribution shipped Maven (Debian?). The distro we are talking about is Ubuntu.. I would start with using an upstream Maven distribution

Re: Maven Deploy fails

2022-11-10 Thread ecki
Hello, I think the /usr/bin/mvn (i.e. "not in path") and /usr/share/maven/ points to a non-pristine distribution shipped Maven (Debian?). I would start with using an upstream Maven distribution archive to make sure its no packaging error. )And also use a supported JDK by fixin PATH and JAVA_HOME

Re: Maven Deploy fails

2022-11-10 Thread Karl Heinz Marbaise
/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

Re: Maven Deploy fails

2022-11-10 Thread Karl Heinz Marbaise
t 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

Re: Maven Deploy fails

2022-11-10 Thread Raivo Rebane
TF-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

Re: Maven Deploy fails

2022-11-10 Thread Karl Heinz Marbaise
ch: "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.

Re: Maven Deploy fails

2022-11-10 Thread Raivo Rebane
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 insta

Re: Maven Deploy fails

2022-11-10 Thread Karl Heinz Marbaise
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

Re: Re: Maven Deploy fails

2022-11-10 Thread Greg Chabala
On Thu, Nov 10, 2022 at 11:51 AM Raivo Rebane wrote: > What is the right command ? > Official guide: https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html Some concrete examples: https://gist.github.com/chabala/9127256 As far as what you're doing though, installing javax.xml.bin

RE: Re: Maven Deploy fails

2022-11-10 Thread Raivo Rebane
ory. > There is no url parameter. > > Arnaud > Le jeu. 10 nov. 2022, 15:58, Raivo Rebane a écrit : > > > Hello > > > > My Maven deploy fails : > > > > mvn install:install-file -Durl=file://repo > > -Dfile=/usr/java/jdk1.8.0_261-amd64/lib/javax.xml

Re: Maven Deploy fails

2022-11-10 Thread Arnaud bourree
Hi You install in local repository, you dont deploy to nexus/artefactory repository. There is no url parameter. Arnaud Le jeu. 10 nov. 2022, 15:58, Raivo Rebane a écrit : > Hello > > My Maven deploy fails : > > mvn install:install-file -Durl=file://repo > -Dfile=/usr/java/

Maven Deploy fails

2022-11-10 Thread Raivo Rebane
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