Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
1
answers
16760
views
JAVA_HOME should point to a JDK not a JRE
If anyone can help me with this, it would mean a lot as I've seen similarly answered questions for windows but not many or Linux. I am running I am running Linux mint 20.2 (Uma). I have a problem where trying to run my maven project, I get the error ``` The JAVA_HOME environment variable is not defi...
If anyone can help me with this, it would mean a lot as I've seen similarly answered questions for windows but not many or Linux. I am running I am running Linux mint 20.2 (Uma).
I have a problem where trying to run my maven project, I get the error
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
I have since fully uninstalled java and maven and set up JDK17 and the JAVA_HOME
$ echo $JAVA_HOME
/usr/lib/jvm/jdk-17.0.2
Along with setting the profile
$ grep JAVA_HOME /etc/profile
JAVA_HOME=/usr/lib/jvm/jdk-17.0.2
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
And .bashrc
$ grep JAVA_HOME ~/.bashrc
JAVA_HOME=/usr/lib/jvm/jdk-17.0.2
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
I also found a .sh
file in the /etc/profile.d/
that was redirecting JAVA_HOME to the old JDK and have since deleted it.
But even after all of this the problem pressies, I don't know if something is still redirecting JAVA_HOME to the old JDK or I didn't set it up correctly, I also don't know where to look if something is redirecting it or if I have an alias for
since I'm not adept to Linux fully and I haven't used to this system in a while to backtrack my changes.
If anyone has any input on how to solve this problem, it would be greatly appreciated. Thank you all in advance.
SaltySwan
(11 rep)
Feb 19, 2022, 04:39 PM
• Last activity: Apr 10, 2025, 11:05 AM
0
votes
1
answers
57
views
Unable to extract some properties from Maven settings.xml using either xmllint or xmlstarlet
I have a Maven settings file at ~/.m2/settings.xml. I need to write some scripting that extracts the username and password from one of the server entries. I've tried using both "xmllint" and "xmlstarlet" using what I believe are the correct (different) command-line parameters for both of those. The...
I have a Maven settings file at ~/.m2/settings.xml. I need to write some scripting that extracts the username and password from one of the server entries.
I've tried using both "xmllint" and "xmlstarlet" using what I believe are the correct (different) command-line parameters for both of those. The result for both is just an empty string. There is no error, it just prints nothing.
This is an excerpt of ~/.m2/settings.xml:
central
...
...
...
This is working fine with Maven.
For xmllint, I'm trying the following:
xmllint --xpath 'string(//server[id="central"]/username/text())' ~/.m2/settings.xml
For xmlstarlet, it is this:
xmlstarlet sel -T -R -D -t -v "//settings/servers/server[id='central']/username/text()" ~/.m2/settings.xml
Those are slightly semantically different, but I've tried several variations. All of these just print an empty string.
David M. Karr
(1173 rep)
Sep 26, 2024, 08:58 PM
• Last activity: Sep 26, 2024, 09:09 PM
0
votes
0
answers
61
views
Why are four Jenkins build nodes suddenly having fatal problems finding things on the PATH?
In our overall organization, we run Jenkins 2.303.1 onprem. We run thousands of builds a day. The project I work on uses one Jenkins master and a set of about ten build nodes. We build a few hundred Maven/Java/Spring applications with similar architectures. In the build process, we have a "tools ima...
In our overall organization, we run Jenkins 2.303.1 onprem. We run thousands of builds a day. The project I work on uses one Jenkins master and a set of about ten build nodes. We build a few hundred Maven/Java/Spring applications with similar architectures.
In the build process, we have a "tools image" that contains java and mvn and some other tools.
Yesterday, we updated the build process to reference a newer version of the tools image that has some additional tools we need to use. A little later after we made that update, we noticed that there were now four build nodes where builds were all failing in the same way, with this approximate command line and output:
+ bash -o pipefail -c mvn -U -s ... -Duser.home=/ clean compile test-compile 2>&1 | tee mvn.out
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.
Note that this command is run by a "sh" pipeline step.
This error message comes from inside the "mvn" script. This error will occur if it finds that
$JAVA_HOME/bin/java
doesn't exist.
I then added several "sh" calls before this to show the following:
* which java
* which mvn
* ls -lt $JAVA_HOME/bin/java
On the "bad" nodes, the result from both of the first two commands was an empty string. That means that neither "java" nor "mvn" are found in the PATH, or they are not executable. On the "good" nodes, they print the expected location of the "java" and "mvn" executable.
The output from third command is this:
-rwxr-xr-x. 1 root root 12768 Oct 17 21:48 /opt/java/openjdk/bin/java
I also added the "env" output before this. It shows that "JAVA_HOME" is equal to "/opt/java/openjdk
", and that PATH has the bin directories of both the mvn and java distribution in the PATH.
This evidence shows multiple factors that just don't make sense together. The "mvn" script is clearly complaining that $JAVA_HOME/bin/java
does not exist, but the sh output clearly shows it does. The "which mvn
" output says that "mvn" is not found in the PATH, but the bash command line above is executing just "mvn" without an absolute path, so the only way it could get to it is from the PATH, and it clearly shows that it is finding it, otherwise that error message would not be printed from inside the "mvn" script.
I've tried to compare several aspects of the builds running on the "good" nodes with the ones running on the "bad" nodes. For instance, I copied the list of env vars from both and compared them, and there were no significant differences.
We tried restarting the bad build nodes. We tried purging the entire local docker cache and restarting docker. Neither of these steps made a difference.
I'm looking for any ideas of possible areas to explore to explain this problem. We've had several people staring at this for quite a while now, including one person who maintains the Jenkins build nodes, one person who maintains the tools image, and several others with considerable experience. We are all drawing a blank here.
David M. Karr
(1173 rep)
Jan 19, 2024, 09:09 PM
• Last activity: Jan 19, 2024, 09:30 PM
57
votes
4
answers
137141
views
apt-get update failed to fetch debian amd64 packages while building dockerfile from maven:3.5.2-jdk-8
Dockerfile: ``` FROM maven:3.5.2-jdk-8 RUN apt-get update && \ apt-get install -y python-dev python-pip RUN pip install awscli --upgrade ``` Build Logs: ``` Preparing build context archive… [==================================================>]3380/3380 files Done Sending build context to Docker daem...
Dockerfile:
FROM maven:3.5.2-jdk-8
RUN apt-get update && \
apt-get install -y python-dev python-pip
RUN pip install awscli --upgrade
Build Logs:
Preparing build context archive…
[==================================================>]3380/3380 files
Done
Sending build context to Docker daemon…
[==================================================>] 23.19MB
Done
Step 1/17 : FROM maven:3.5.2-jdk-8
---> d07bef19f01a
Step 2/17 : RUN apt-get update && apt-get install -y python-dev python-pip
---> Running in ebed1b8ce61e
Ign:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Ign:3 http://security.debian.org stretch/updates Release
Ign:4 http://deb.debian.org/debian stretch-updates InRelease
Ign:5 http://deb.debian.org/debian stretch Release
Ign:6 http://deb.debian.org/debian stretch-updates Release
Ign:7 http://deb.debian.org/debian stretch/main arm64 Packages
Ign:8 http://deb.debian.org/debian stretch/main all Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main arm64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main arm64 Packages
Ign:8 http://deb.debian.org/debian stretch/main all Packages
Ign:11 http://security.debian.org stretch/updates/main arm64 Packages
Ign:12 http://security.debian.org stretch/updates/main all Packages
Ign:11 http://security.debian.org stretch/updates/main arm64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main arm64 Packages
Ign:12 http://security.debian.org stretch/updates/main all Packages
Ign:11 http://security.debian.org stretch/updates/main arm64 Packages
Ign:12 http://security.debian.org stretch/updates/main all Packages
Ign:11 http://security.debian.org stretch/updates/main arm64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main arm64 Packages
Ign:12 http://security.debian.org stretch/updates/main all Packages
Ign:8 http://deb.debian.org/debian stretch/main all Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main arm64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main arm64 Packages
Ign:8 http://deb.debian.org/debian stretch/main all Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main arm64 Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:7 http://deb.debian.org/debian stretch/main arm64 Packages
Ign:8 http://deb.debian.org/debian stretch/main all Packages
Ign:11 http://security.debian.org stretch/updates/main arm64 Packages
Ign:9 http://deb.debian.org/debian stretch-updates/main arm64 Packages
Ign:12 http://security.debian.org stretch/updates/main all Packages
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Err:7 http://deb.debian.org/debian stretch/main arm64 Packages
404 Not Found
Ign:8 http://deb.debian.org/debian stretch/main all Packages
Err:9 http://deb.debian.org/debian stretch-updates/main arm64 Packages
404 Not Found
Ign:10 http://deb.debian.org/debian stretch-updates/main all Packages
Err:11 http://security.debian.org stretch/updates/main arm64 Packages
404 Not Found
Ign:12 http://security.debian.org stretch/updates/main all Packages
Reading package lists...
W: The repository 'http://security.debian.org stretch/updates Release' does not have a Release file.
W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
E: Failed to fetch http://security.debian.org/dists/stretch/updates/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-arm64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error response from daemon: The command '/bin/sh -c apt-get update && apt-get install -y python-dev python-pip' returned a non-zero code: 100
Failed to deploy ' Dockerfile: Dockerfile': Can't retrieve image ID from build stream
This Dockerfile used to build fine and has only recently started throwing this error
Nikhil Menghrajani
(683 rep)
Apr 24, 2023, 07:22 AM
• Last activity: Dec 26, 2023, 12:55 PM
6
votes
2
answers
6543
views
Tool for manipulating YAML files?
We want to implement a workflow that includes having YAML configuration files where we wish to change some of the contents before actually using them, and we are looking for a good command line tool to do this. This can be as simple as setting a target-specific value (like an URL) in an existing nod...
We want to implement a workflow that includes having YAML configuration files where we wish to change some of the contents before actually using them, and we are looking for a good command line tool to do this.
This can be as simple as setting a target-specific value (like an URL) in an existing node, but preferably would be able to add or modify whole blocks of the YAML file. In a perfect world, I would like something as powerful as the axis in XSLT.
We will use this with Maven in Docker files, where we prefer Debian-based images, but not a strict requirement.
Thorbjørn Ravn Andersen
(1064 rep)
Nov 4, 2019, 11:36 AM
• Last activity: Oct 18, 2023, 01:18 PM
1
votes
0
answers
462
views
How to package a Maven Java application for Debian?
I am trying to package a Java application that is built with Maven. I created the `debian/` folder with `mh_make` and I have been reading/watching the tutorials: * https://wiki.debian.org/Java/Packaging/Maven * https://wiki.debian.org/Java/MavenRepoHelper * https://wiki.debian.org/Java/Packaging * h...
I am trying to package a Java application that is built with Maven.
I created the
debian/
folder with mh_make
and I have been reading/watching the tutorials:
* https://wiki.debian.org/Java/Packaging/Maven
* https://wiki.debian.org/Java/MavenRepoHelper
* https://wiki.debian.org/Java/Packaging
* https://www.youtube.com/watch?v=p767bS_8C_o
* And more which I am forgetting now
The project structure is as follows:
- parent POM
- my_app submodule
- my_app_lib submodule (used exclusively by my_app)
- shared_lib submodule (used by my_app but may also be needed by other apps)
I am trying to create two deb packages, which will:
* Install my_app and its lib in /usr/share/my-app
(package 1)
* Install the shared lib in /usr/share/java
(package 2)
I am at the point where I have created part of package 1:
* Installed my app's main jar in /usr/share/my-app/my-app.jar
and its dependency lib jar /usr/share/my-app/lib/my-lib.jar
(via my-app.install
)
* Created a launch script /usr/share/my-app/bin/my-app
and symlinked it to /usr/bin
(via my-app.install
and my-app.links
)
In the POM I also set the main class and instructed Maven to add a classpath in the jar's manifest.
**My questions:**
1. How do I force the mh_*
scripts to **not** install the my_app
or my_app_lib
artifacts and POMs in the /usr/share/maven-repo
or /usr/share/java
dirs? My poms file for reference:
# The setup below does not work - my_app and my_app_lib are installed in /usr/share/maven-repo
pom.xml --ignore-pom
my_app/pom.xml --has-package-version --ignore-pom --no-usj-versionless --dest-jar=/usr/share/my_app/my_app.jar
my_app_lib/pom.xml --has-package-version --ignore-pom
lshared_lib/pom.xml --ignore
2. How do I set the lib/
prefix to the classpath generated by Maven? I have currently solved this by adding a lib/
in the POM but I would prefer to set it as part of the packaging process as it is a Debian-specific change.
3. How do I link the shared lib to my app? Currently, I am thinking:
- Install it as usual with another .poms
- Add dependency on the lib binary package to the my-app binary package
- Add a symlink between /usr/share/my-app/lib/shared-lib.jar
and /usr/share/java/shared-lib.jar
in my-app.links
Would that work? Can I build a second binary package from the same source package? Is this the correct way of doing this?
Slav
(111 rep)
May 2, 2023, 02:30 PM
• Last activity: May 2, 2023, 05:07 PM
1
votes
0
answers
317
views
What is this Java error about for maven on Ubuntu: package org.apache.http.client does not exist import org.apache.http.client.ClientProtocolExcepti?
I am using Java and Maven Project on Ubuntu but I am getting following error upon building Java code on NetBeans IDE: ```package org.apache.http.client does not exist import org.apache.http.client.ClientProtocolException;``` I have following on my Ubuntu: ``` sudo which java /usr/bin/java sudo echo...
I am using Java and Maven Project on Ubuntu but I am getting following error upon building Java code on NetBeans IDE:
org.apache.http.client does not exist import org.apache.http.client.ClientProtocolException;
I have following on my Ubuntu:
sudo which java
/usr/bin/java
sudo echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/>:/snap/bin
sudo mvn -version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.17, 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-58-generic", arch: "amd64", family: "unix"
sudo echo $JAVA_HOME
/usr/lib/jvm/java-1.11.0-openjdk-amd64
sudo java -version
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu220.04)
OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu220.04, mixed mode, sharing)
sudo javac -version
javac 11.0.17
which mvn
/usr/bin/mvn
Do I have to include the path of maven or else?
Question Edited to give clear picture:
ant -f /home/kamran/NetBeansProjects -Dnb.internal.action.name=build jar
init:
Deleting: /home/kamran/NetBeansProjects/build/built-jar.properties
deps-jar:
Updating property file: /home/kamran/NetBeansProjects/build/built-jar.properties
Compiling 89 source files to /home/kamran/NetBeansProjects/build/classes
/home/kamran/NetBeansProjects/Multichain API Demo for Students/src/main/java/multichain/command/builders/QueryBuilderCommon.java:14: error: package org.apache.http.client does not exist
import org.apache.http.client.ClientProtocolException;
/home/kamran/NetBeansProjects/Multichain API Demo for Students/src/main/java/multichain/command/builders/QueryBuilderCommon.java:15: error: package org.apache.http.client.methods does not exist
import org.apache.http.client.methods.HttpPost;
/home/kamran/NetBeansProjects/Multichain API Demo for Students/src/main/java/multichain/command/builders/QueryBuilderCommon.java:16: error: package org.apache.http.entity does not exist
import org.apache.http.entity.StringEntity;
/home/kamran/NetBeansProjects/Multichain API Demo for Students/src/main/java/multichain/command/builders/QueryBuilderCommon.java:17: error: package org.apache.http.impl.client does not exist
import org.apache.http.impl.client.CloseableHttpClient;
The error is on following class package import:
/*
* Copyright (C) 2017 Worldline, Inc.
*
* MultiChainJavaAPI code distributed under the GPLv3 license, see COPYING file.
* https://github.com/SimplyUb/MultiChainJavaAPI/blob/master/LICENSE
*
*/
package multichain.object.formatters;
import java.util.List;
import com.google.gson.GsonBuilder;
/**
* @author Ub - H. MARTEAU
* @version 2.1
*/
public class GsonFormatters {
protected static String formatJson(String[] values) {
final GsonBuilder builder = new GsonBuilder();
final Gson gson = builder.create();
return gson.toJson(values);
}
protected static String formatJson(List values) {
final GsonBuilder builder = new GsonBuilder();
final Gson gson = builder.create();
return gson.toJson(values);
}
protected static String formatJson(Object value) {
final GsonBuilder builder = new GsonBuilder();
final Gson gson = builder.create();
return gson.toJson(value);
}
protected static String formatJsonWithCustomBuilder(Object value, GsonBuilder builder) {
return builder.create().toJson(value);
}
}
My project directory listing is as follows and there is no build.xml as BUILD command is not successful.
.
./target
./target/httpcomponents-client-4.5.14-jar-with-dependencies.jar
./target/archive-tmp
./target/.plxarc
./target/maven-shared-archive-resources
./target/maven-shared-archive-resources/META-INF
./target/maven-shared-archive-resources/META-INF/DEPENDENCIES
./target/maven-shared-archive-resources/META-INF/LICENSE
./target/maven-shared-archive-resources/META-INF/NOTICE
./LICENSE
./pom.xml
./src
./src/main
./src/main/java
./src/main/java/multichain
./src/main/java/multichain/object
./src/main/java/multichain/object/StreamKey.java
./src/main/java/multichain/object/TransactionBase.java
./src/main/java/multichain/object/TransactionWallet.java
./src/main/java/multichain/object/KeyPairs.java
./src/main/java/multichain/object/BalanceAssetGeneral.java
./src/main/java/multichain/object/BalanceWalletTransaction.java
./src/main/java/multichain/object/TxOut.java
./src/main/java/multichain/object/Block.java
./src/main/java/multichain/object/BalanceAsset.java
./src/main/java/multichain/object/AddressBalanceCurrency.java
./src/main/java/multichain/object/MultiChainInfo.java
./src/main/java/multichain/object/BalanceAssetWalletTransaction.java
./src/main/java/multichain/object/TransactionRAWVin.java
./src/main/java/multichain/object/TransactionRAW.java
./src/main/java/multichain/object/TransactionDetail.java
./src/main/java/multichain/object/TransactionRAWVout.java
./src/main/java/multichain/object/TransactionWalletVin.java
./src/main/java/multichain/object/StreamKeyItem.java
./src/main/java/multichain/object/AssetWalletTransaction.java
./src/main/java/multichain/object/AddressBalanceAsset.java
./src/main/java/multichain/object/Address.java
./src/main/java/multichain/object/TransactionWalletVInfo.java
./src/main/java/multichain/object/Item.java
./src/main/java/multichain/object/PermissionDetailed.java
./src/main/java/multichain/object/SignedTransactionRAW.java
./src/main/java/multichain/object/AddressBalanceIssue.java
./src/main/java/multichain/object/MultiBalance.java
./src/main/java/multichain/object/Balance.java
./src/main/java/multichain/object/AddressInfo.java
./src/main/java/multichain/object/TransactionGeneral.java
./src/main/java/multichain/object/TransactionListElement.java
./src/main/java/multichain/object/Permission.java
./src/main/java/multichain/object/AddressBalance.java
./src/main/java/multichain/object/TransactionWalletVout.java
./src/main/java/multichain/object/Transaction.java
./src/main/java/multichain/object/ScriptPubKey.java
./src/main/java/multichain/object/queryobjects
./src/main/java/multichain/object/queryobjects/CustomParamString.java
./src/main/java/multichain/object/queryobjects/DataParamCreate.java
./src/main/java/multichain/object/queryobjects/ParamIssue.java
./src/main/java/multichain/object/queryobjects/RawStreamParam.java
./src/main/java/multichain/object/queryobjects/AssetQuantity.java
./src/main/java/multichain/object/queryobjects/AssetParams.java
./src/main/java/multichain/object/queryobjects/TxIdVout.java
./src/main/java/multichain/object/queryobjects/ParamIssueMore.java
./src/main/java/multichain/object/queryobjects/DataParamStreamItem.java
./src/main/java/multichain/object/queryobjects/DataParamHex.java
./src/main/java/multichain/object/queryobjects/DataParamIssueMore.java
./src/main/java/multichain/object/queryobjects/DataParam.java
./src/main/java/multichain/object/queryobjects/RawParam.java
./src/main/java/multichain/object/queryobjects/DataParamIssue.java
./src/main/java/multichain/object/StreamKeyInfo.java
./src/main/java/multichain/object/formatters
./src/main/java/multichain/object/formatters/GrantFormatter.java
./src/main/java/multichain/object/formatters/HexFormatter.java
./src/main/java/multichain/object/formatters/MultiChainInfoFormatter.java
./src/main/java/multichain/object/formatters/AddressFormatter.java
./src/main/java/multichain/object/formatters/TxOutFormatter.java
./src/main/java/multichain/object/formatters/TransactionFormatter.java
./src/main/java/multichain/object/formatters/WalletTransactionFormatter.java
./src/main/java/multichain/object/formatters/RAWTransactionFormatter.java
./src/main/java/multichain/object/formatters/BlockFormatter.java
./src/main/java/multichain/object/formatters/BalanceFormatter.java
./src/main/java/multichain/object/formatters/StreamFormatter.java
./src/main/java/multichain/object/formatters/CustomParamFormatter.java
./src/main/java/multichain/object/formatters/GsonFormatters.java
./src/main/java/multichain/object/Stream.java
./src/main/java/multichain/object/Create.java
./src/main/java/multichain/object/MultiChainRPCAnswer.java
./src/main/java/multichain/object/TransactionWalletDetailed.java
./src/main/java/multichain/object/ScriptSig.java
./src/main/java/multichain/TestClass.java
./src/main/java/multichain/command
./src/main/java/multichain/command/WalletTransactionCommand.java
./src/main/java/multichain/command/builders
./src/main/java/multichain/command/builders/QueryBuilderAddress.java
./src/main/java/multichain/command/builders/QueryBuilderRAWTransaction.java
./src/main/java/multichain/command/builders/QueryBuilderBlock.java
./src/main/java/multichain/command/builders/QueryBuilderMining.java
./src/main/java/multichain/command/builders/QueryBuilderIssue.java
./src/main/java/multichain/command/builders/QueryBuilderWalletTransaction.java
./src/main/java/multichain/command/builders/QueryBuilderMessaging.java
./src/main/java/multichain/command/builders/QueryBuilderChain.java
./src/main/java/multichain/command/builders/QueryBuilderBalance.java
./src/main/java/multichain/command/builders/QueryBuilderGrant.java
./src/main/java/multichain/command/builders/QueryBuilderCommon.java
./src/main/java/multichain/command/builders/QueryBuilderKey.java
./src/main/java/multichain/command/builders/QueryBuilderStream.java
./src/main/java/multichain/command/AddressCommand.java
./src/main/java/multichain/command/tools
./src/main/java/multichain/command/tools/MultichainTestParameter.java
./src/main/java/multichain/command/RuntimeParameters.java
./src/main/java/multichain/command/MultichainException.java
./src/test
./src/test/java
./src/test/java/multichain
./src/test/java/multichain/command
./src/test/java/multichain/command/AddressCommandTest.java
./src/test/java/multichain/command/TestConst.java
./Archi.png
./.gitignore
./README.md
./install.sh
./?
find: ‘build.xml’: No such file or directory
The output log of command from the install.sh of project:
$ mvn clean install -X
is displayed below:
Netbeans Java Ant Compilation Log
The pom.xml maybe its missing any artifact(s)?
4.0.0
com.multichainjavaapi
MultiChainJavaAPI
0.4.17-SNAPSHOT
UTF-8
1.8
3.1
3.1.3
4.3.6
2.8.1
1.10
4.1
scm:git:git://github.com/SimplyUb/MultiChainJavaAPI.git
scm:git:git@github.com/SimplyUb/MultiChainJavaAPI.git
https://github.com/SimplyUb/MultiChainJavaAPI
maven-compiler-plugin
${maven-compiler-plugin.version}
${java.version}
${java.version}
maven-assembly-plugin
package
single
jar-with-dependencies
org.apache.xmlrpc
xmlrpc-client
${xmlrpc-client.version}
org.apache.httpcomponents
httpclient
${httpclient.version}
com.google.code.gson
gson
${gson.version}
commons-codec
commons-codec
${commons-codec.version}
org.apache.commons
commons-collections4
${commons-collections4.version}
junit
junit
4.12
test
P_Z
(111 rep)
Jan 28, 2023, 11:42 AM
• Last activity: Feb 4, 2023, 04:19 AM
0
votes
0
answers
996
views
Alpine Linux java No such file or directory
when trying to install nodejs from a tar.gz and java, maven with sdkman on an alpine linux distro and running java or maven I get a message saying for java: > /root/.sdkman/candidates/java/current/bin/java: No such file or > directory. for mvn: > /root/.sdkman/candidates/maven/current/bin/mvn: exec:...
when trying to install nodejs from a tar.gz and java, maven with sdkman on an alpine linux distro and running java or maven I get a message saying for java:
> /root/.sdkman/candidates/java/current/bin/java: No such file or
> directory.
for mvn:
> /root/.sdkman/candidates/maven/current/bin/mvn: exec: line 238:
> /root/.sdkman/candidates/java/current/bin/java: not found .
I understand that it could be a compatibility issue since java is compiled with glibc and alpine is based on a glibc variant called musl-libc.
So, I wanted to know of a solution other than having to download the code for these components and recompiling them with compatibility for musl.
by the way, the architecture of the Alpine is x86_64. Thanks in advance.
Félix
(3 rep)
Jul 21, 2022, 03:56 PM
0
votes
1
answers
969
views
Which shell command returns Java's home path?
I'm aware of the *which* command but when I run it on Java, I get the following path: $ which java /bin/java What I'm looking for, I think, is the Java path I get when I run the following Maven command: $ mvn -version Apache Maven 3.6.3 Java version: 11.0.14.1, vendor: Ubuntu, runtime: /usr/lib/jvm/...
I'm aware of the *which* command but when I run it on Java, I get the following path:
$ which java
/bin/java
What I'm looking for, I think, is the Java path I get when I run the following Maven command:
$ mvn -version
Apache Maven 3.6.3
Java version: 11.0.14.1, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.13.0-1021-aws", arch: "amd64", family: "unix"
Isn't the latter (/usr/lib/jvm/java-11-openjdk-amd64) the correct Java home path?
If so, which command would directly return it?
Running the *java version* command doesn't return any paths.
Omar Shazly
(3 rep)
Apr 13, 2022, 02:23 PM
• Last activity: Apr 13, 2022, 02:35 PM
1
votes
2
answers
7313
views
libc6 Error while installing or upgrading with apt
I am currently using the following version of ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic On this machine I am trying to remove an existing maven plugin using ```sudo apt-get autoremove maven``` I am getting the following error: - Reading package lists... Done Building dep...
I am currently using the following version of ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
On this machine I am trying to remove an existing maven plugin using
apt-get autoremove maven
I am getting the following error: -
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1.4) but 2.27-3ubuntu1 is to be installed
libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.4) but 2.27-3ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Then I tried this as suggested
apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libllvm7
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libc6 libc6:i386
Suggested packages:
glibc-doc glibc-doc:i386 locales:i386
The following packages will be upgraded:
libc6 libc6:i386
2 upgraded, 0 newly installed, 0 to remove and 428 not upgraded.
9 not fully installed or removed.
Need to get 0 B/5,382 kB of archives.
After this operation, 19.5 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 197197 files and directories currently installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1.4_amd64.deb ...
De-configuring libc6:i386 (2.27-3ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.4_amd64.deb (--unpack):
new libc6:amd64 package pre-installation script subprocess returned error exit status 1
Preparing to unpack .../libc6_2.27-3ubuntu1.4_i386.deb ...
De-configuring libc6:amd64 (2.27-3ubuntu1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.4_i386.deb (--unpack):
new libc6:i386 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.27-3ubuntu1.4_amd64.deb
/var/cache/apt/archives/libc6_2.27-3ubuntu1.4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am novice to ubuntu and I dont know how to approach this. Please tell me how to tackle this.
Teja M
(13 rep)
Dec 20, 2020, 05:50 AM
• Last activity: Mar 24, 2022, 03:45 PM
0
votes
1
answers
610
views
CentOS 8 not seeing latest Maven package on repository
I'm using centos 8.3.2011 and after "yum install maven" I get maven-3.5.4-5.module_el8.0.0+39+6a9b6e22.noarch I'm trying to update on the latest version, but "yum update" is not seeing it :-( "yum -v repolist" shows repositories that have it. http://mirror.centos.plus.hr/centos/8.3.2011/AppStream/x8...
I'm using centos 8.3.2011 and after "yum install maven" I get
maven-3.5.4-5.module_el8.0.0+39+6a9b6e22.noarch
I'm trying to update on the latest version, but "yum update" is not seeing it :-(
"yum -v repolist" shows repositories that have it.
http://mirror.centos.plus.hr/centos/8.3.2011/AppStream/x86_64/os/Packages/
maven-3.5.4-5.module_el8.0.0+39+6a9b6e22.noarch <-- installed
maven-3.6.2-5.module_el8.3.0+397+dd71f484.noarch <-- I would like this version
"yum clean all" is not helping :-(
What I'm I doing wrong? Thanks!
fritz
(11 rep)
Mar 25, 2021, 09:33 AM
• Last activity: Mar 25, 2021, 10:44 AM
3
votes
1
answers
32802
views
How can I set DOCKER_HOST environment variable?
**docker** is installed and the service is active. But when I run a Maven build I get the error: [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.27.2:stop (stop-staled) on project egisso-db: Execution stop-staled of goal io.fabric8:docker-maven-plugin:0.27.2:stop failed: No given, no...
**docker** is installed and the service is active.
But when I run a Maven build I get the error:
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.27.2:stop (stop-staled) on project egisso-db: Execution stop-staled of goal io.fabric8:docker-maven-plugin:0.27.2:stop failed: No given, no DOCKER_HOST environment variable, no read/writable '/var/run/docker.sock' or '//./pipe/docker_engine' and no external provider like Docker machine configured -> [Help 1]
I've read some discussions where some people suggest values for this variable like
tcp://...
but I don't know where I can find its exact value.
I thought that docker info
would give some information, but no:
sudo docker info|grep tcp
Not sure whether its important, but I have to start the **service** using sudo
, but I can use the docker as **client** as normal user.
ka3ak
(1275 rep)
Feb 7, 2020, 09:50 AM
• Last activity: Mar 17, 2021, 04:05 AM
1
votes
1
answers
1055
views
Maven application runs alone but not with systemd
I am trying to run [Sphinx4-Http-server](https://github.com/jitsi/Sphinx4-HTTP-server) on RHEL. If I am in the directory `/home/alex/Sphinx4-HTTP-server` and run the command `/home/alex/apache-maven-3.6.1/bin/mvn exec:java -Dexec.mainClass="org.jitsi.sphinx4http.server.HttpServer"`, then the server...
I am trying to run [Sphinx4-Http-server](https://github.com/jitsi/Sphinx4-HTTP-server) on RHEL. If I am in the directory
/home/alex/Sphinx4-HTTP-server
and run the command /home/alex/apache-maven-3.6.1/bin/mvn exec:java -Dexec.mainClass="org.jitsi.sphinx4http.server.HttpServer"
, then the server will run. However, when I make a .service
file for the program (as shown below), I get a program error (specifically java.lang.ClassNotFoundException: "org.jitsi.sphinx4http.server.HttpServer"
). Using this file on Ubuntu works (with adjusted path names), and using similar .service
files for other programs on RHEL works. Why would the program run in the shell but not with systemd, even though the systemd file works on another system and similar systemd files work on the same system? How would I go about fixing it?
sphinx.service
:
[Service]
WorkingDirectory=/home/alex/Sphinx4-HTTP-server
ExecStart=/home/alex/apache-maven-3.6.1/bin/mvn exec:java -Dexec.mainClass="org.jitsi.sphinx4http.server.HttpServer"
Restart=always
StandardOutput=syslog
SyslogIdentifier=sphinx
User=alex
[Install]
WantedBy=multi-user.target
alexwho314
(27 rep)
May 8, 2019, 10:43 PM
• Last activity: Nov 18, 2019, 04:44 PM
2
votes
1
answers
3016
views
Transaction check error while installing maven on Centos7
I'm trying to install maven on Centos 7: [root@htm-psycho-401 htmpp]# yum install maven Loaded plugins: auto-update-debuginfo, fastestmirror Loading mirror speeds from cached hostfile * base: mirror.reconn.ru * epel: fedora-mirror01.rbc.ru * epel-debuginfo: fedora-mirror01.rbc.ru * extras: mirror.re...
I'm trying to install maven on Centos 7:
[root@htm-psycho-401 htmpp]# yum install maven
Loaded plugins: auto-update-debuginfo, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.reconn.ru
* epel: fedora-mirror01.rbc.ru
* epel-debuginfo: fedora-mirror01.rbc.ru
* extras: mirror.reconn.ru
* updates: mirror.corbina.net
Resolving Dependencies
--> Running transaction check
---> Package maven.noarch 0:3.0.5-17.el7 will be installed
--> Processing Dependency: java >= 1.5 for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: sisu-inject-plexus for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: sisu-inject-bean for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: plexus-utils for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: plexus-sec-dispatcher for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: plexus-interpolation for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: plexus-containers-component-annotations for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: plexus-cipher for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: objectweb-asm for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.sonatype.sisu:sisu-inject-plexus) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.sonatype.plexus:plexus-sec-dispatcher) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.sonatype.plexus:plexus-cipher) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.sonatype.aether:aether-util) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.sonatype.aether:aether-spi) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.sonatype.aether:aether-impl) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.sonatype.aether:aether-api) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.codehaus.plexus:plexus-utils) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.codehaus.plexus:plexus-interpolation) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.codehaus.plexus:plexus-container-default) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.codehaus.plexus:plexus-component-annotations) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.codehaus.plexus:plexus-classworlds) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(org.apache.maven.wagon:wagon-provider-api) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: mvn(commons-cli:commons-cli) for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: maven-wagon for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: java-devel for package: maven-3.0.5-17.el7.noarch
--> Processing Dependency: httpcomponents-core for package: maven-3.0.5-17.el7.noarch
... too long stuff ...
---> Package tomcat-servlet-3.0-api.noarch 0:7.0.76-8.el7_5 will be installed
---> Package xalan-j2.noarch 0:2.7.1-23.el7 will be installed
---> Package xml-commons-resolver.noarch 0:1.2-15.el7 will be installed
--> Running transaction check
---> Package easymock2.noarch 0:2.5.2-12.el7 will be installed
---> Package jboss-jaxrpc-1.1-api.noarch 0:1.0.1-7.el7 will be installed
--> Processing Dependency: jboss-servlet-3.0-api for package: jboss-jaxrpc-1.1-api-1.0.1-7.el7.noarch
---> Package jboss-transaction-1.1-api.noarch 0:1.0.1-8.el7 will be installed
---> Package qdox.noarch 0:1.12.1-10.el7 will be installed
---> Package regexp.noarch 0:1.5-13.el7 will be installed
--> Running transaction check
---> Package jboss-servlet-3.0-api.noarch 0:1.0.1-9.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================
Installing:
maven noarch 3.0.5-17.el7 base 1.3 M
Installing for dependencies:
aether-api noarch 1.13.1-13.el7 base 89 k
aether-connector-wagon noarch 1.13.1-13.el7 base 34 k
aether-impl noarch 1.13.1-13.el7 base 124 k
aether-spi noarch 1.13.1-13.el7 base 19 k
aether-util noarch 1.13.1-13.el7 base 119 k
aopalliance noarch 1.0-8.el7 base 11 k
apache-commons-cli noarch 1.2-13.el7 base 50 k
apache-commons-codec noarch 1.8-7.el7 base 223 k
apache-commons-io noarch 1:2.4-12.el7 base 189 k
apache-commons-lang noarch 2.6-15.el7 base 276 k
apache-commons-logging noarch 1.1.2-7.el7 base 78 k
apache-commons-net noarch 3.2-8.el7.centos base 261 k
apache-maven noarch 3.5.2-1.el7 epel-apache-maven 8.0 M
atinject noarch 1-13.20100611svn86.el7 base 13 k
avalon-framework noarch 4.3-10.el7 base 88 k
avalon-logkit noarch 2.1-14.el7 base 87 k
bcel noarch 5.2-18.el7 base 469 k
cal10n noarch 0.7.7-4.el7 base 36 k
cdi-api noarch 1.0-11.SP4.el7 base 41 k
cglib noarch 2.2-18.el7 base 255 k
easymock2 noarch 2.5.2-12.el7 base 92 k
felix-framework noarch 4.2.1-5.el7 base 481 k
geronimo-annotation noarch 1.0-15.el7 base 23 k
geronimo-jms noarch 1.1.1-19.el7 base 31 k
google-guice noarch 3.1.3-9.el7 base 385 k
guava noarch 13.0-6.el7 base 1.6 M
hamcrest noarch 1.3-6.el7 base 124 k
httpcomponents-client noarch 4.2.5-5.el7_0 base 425 k
httpcomponents-core noarch 4.2.4-6.el7 base 466 k
jakarta-commons-httpclient noarch 1:3.1-16.el7_0 base 241 k
java-1.8.0-openjdk x86_64 1:1.8.0.191.b12-1.el7_6 updates 254 k
java-1.8.0-openjdk-devel x86_64 1:1.8.0.191.b12-1.el7_6 updates 9.8 M
java-1.8.0-openjdk-headless x86_64 1:1.8.0.191.b12-1.el7_6 updates 32 M
javamail noarch 1.4.6-8.el7 base 758 k
javassist noarch 3.16.1-10.el7 base 627 k
jboss-ejb-3.1-api noarch 1.0.2-10.el7 base 54 k
jboss-el-2.2-api noarch 1.0.1-0.7.20120212git2fabd8.el7 base 44 k
jboss-interceptors-1.1-api noarch 1.0.2-0.9.20120319git49a904.el7 base 27 k
jboss-jaxrpc-1.1-api noarch 1.0.1-7.el7 base 44 k
jboss-servlet-3.0-api noarch 1.0.1-9.el7 base 82 k
jboss-transaction-1.1-api noarch 1.0.1-8.el7 base 40 k
jline noarch 1.0-8.el7 base 69 k
jsch noarch 0.1.50-5.el7 base 239 k
jsoup noarch 1.6.1-10.el7 base 263 k
junit noarch 4.11-8.el7 base 261 k
jzlib noarch 1.1.1-6.el7 base 72 k
log4j noarch 1.2.17-16.el7_4 base 444 k
maven-wagon noarch 2.4-3.el7 base 187 k
nekohtml noarch 1.9.14-13.el7 base 152 k
objectweb-asm noarch 3.3.1-9.el7 base 197 k
plexus-cipher noarch 1.7-5.el7 base 22 k
plexus-classworlds noarch 2.4.2-8.el7 base 54 k
plexus-component-api noarch 1.0-0.16.alpha15.el7 base 27 k
plexus-containers-component-annotations noarch 1.5.5-14.el7 base 11 k
plexus-containers-container-default noarch 1.5.5-14.el7 base 183 k
plexus-interactivity noarch 1.0-0.14.alpha6.el7 base 17 k
plexus-interpolation noarch 1.15-8.el7 base 57 k
plexus-sec-dispatcher noarch 1.4-13.el7 base 29 k
plexus-utils noarch 3.0.9-9.el7 base 225 k
qdox noarch 1.12.1-10.el7 base 170 k
regexp noarch 1.5-13.el7 base 47 k
sisu-inject-bean noarch 2.3.0-11.el7 base 181 k
sisu-inject-plexus noarch 2.3.0-11.el7 base 179 k
slf4j noarch 1.7.4-4.el7_4 base 170 k
tomcat-servlet-3.0-api noarch 7.0.76-8.el7_5 updates 211 k
xalan-j2 noarch 2.7.1-23.el7 base 1.9 M
xbean noarch 3.13-6.el7 base 376 k
xerces-j2 noarch 2.11.0-17.el7_0 base 1.1 M
xml-commons-apis noarch 1.4.01-16.el7 base 227 k
xml-commons-resolver noarch 1.2-15.el7 base 108 k
Transaction Summary
===============================================================================================================================================================
Install 1 Package (+70 Dependent packages)
Total size: 66 M
Installed size: 175 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction check error:
file /usr/share/java/plexus/plexus-cipher.jar conflicts between attempted installs of plexus-cipher-1.7-5.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/plexus/plexus-sec-dispatcher.jar conflicts between attempted installs of plexus-sec-dispatcher-1.4-13.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven-wagon/file.jar conflicts between attempted installs of maven-wagon-0:2.4-3.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven-wagon/provider-api.jar conflicts between attempted installs of maven-wagon-0:2.4-3.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /etc/m2.conf conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /etc/maven/settings.xml conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/bin/mvn conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/bin/mvnDebug conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/bin/mvnyjp conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-artifact.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-compat.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-core.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-embedder.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-model-builder.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-model.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-plugin-api.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-repository-metadata.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-settings-builder.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
file /usr/share/java/maven/maven-settings.jar conflicts between attempted installs of maven-3.0.5-17.el7.noarch and apache-maven-0:3.5.2-1.el7.noarch
Error Summary
-------------
How can I fix it, is it a bug in distribution?
stiv
(1691 rep)
Jan 3, 2019, 02:57 AM
• Last activity: Jan 3, 2019, 03:16 AM
-2
votes
1
answers
79
views
how to get lines which has a string in the form of groupid:artifactid:version from maven build output?
- I want only list of plugins from the output of mvn -B dependency:resolve-plugins - maven build out has many other things like Downloading , build success and many more lines which don't have plugin info. Input :- [INFO] Scanning for projects... [INFO] [INFO] antlr:antlr:jar:2.7.2 [INFO] backport-u...
- I want only list of plugins from the output of mvn -B dependency:resolve-plugins
- maven build out has many other things like Downloading , build success and many more lines which don't have plugin info.
Input :-
[INFO] Scanning for projects...
[INFO]
[INFO] antlr:antlr:jar:2.7.2
[INFO] backport-util-concurrent:backport-util-concurrent:jar:3.1
[INFO] ch.ethz.ganymed:ganymed-ssh2:jar:build210
[INFO] classworlds:classworlds:jar:1.1
[INFO] classworlds:classworlds:jar:1.1-alpha-2
[INFO] com.fasterxml.staxmate:staxmate:jar:2.2.1
[INFO] com.google.code.findbugs:jsr305:jar:2.0.1
[INFO] com.google.code.findbugs:jsr305:jar:3.0.1
[INFO] com.google.code.gson:gson:jar:2.2.2
[INFO] com.google.guava:guava:jar:14.0.1
[INFO] com.google.guava:guava:jar:18.0
[INFO] com.google.guava:guava:jar:19.0
[INFO] com.googlecode.javaewah:JavaEWAH:jar:0.7.9
[INFO] com.ibm.icu:icu4j:jar:58.1
[INFO] com.intellij:annotations:jar:9.0.4
[INFO] com.jcraft:jsch.agentproxy.core:jar:0.0.7
[INFO] com.jcraft:jsch.agentproxy.jsch:jar:0.0.7
[INFO] com.jcraft:jsch.agentproxy.sshagent:jar:0.0.7
[INFO] com.jcraft:jsch.agentproxy.usocket-jna:jar:0.0.7
[INFO] com.jcraft:jsch:jar:0.1.38
[INFO] com.jcraft:jsch:jar:0.1.49
[INFO] xpp3:xpp3_min:jar:1.1.4c
[INFO] de.smartics.maven.plugin:buildmetadata-maven-plugin:maven-plugin:1.6.1:runtime
[INFO] external.atlassian.jgitflow:jgitflow-maven-plugin:maven-plugin:1.0-m5.1:runtime
[INFO] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.8:runtime
[INFO] org.apache.maven.plugins:maven-assembly-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-clean-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:3.8.0:runtime
[INFO] org.apache.maven.plugins:maven-dependency-plugin:maven-plugin:3.1.1:runtime
[INFO] org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:3.0.0-M1:runtime
[INFO] org.apache.maven.plugins:maven-enforcer-plugin:maven-plugin:3.0.0-M2:runtime
[INFO] org.apache.maven.plugins:maven-install-plugin:maven-plugin:3.0.0-M1:runtime
[INFO] org.apache.maven.plugins:maven-jar-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:3.0.1:runtime
[INFO] org.apache.maven.plugins:maven-jxr-plugin:maven-plugin:3.0.0:runtime
[INFO] org.apache.maven.plugins:maven-project-info-reports-plugin:maven-plugin:3.0.0:runtime
[INFO] org.apache.maven.plugins:maven-release-plugin:maven-plugin:2.5.3:runtime
[INFO] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-site-plugin:maven-plugin:3.7.1:runtime
[INFO] org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.22.0:runtime
[INFO] org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:2.22.0:runtime
[INFO] org.apache.maven.plugins:maven-war-plugin:maven-plugin:3.2.2:runtime
[INFO] org.basepom.maven:duplicate-finder-maven-plugin:maven-plugin:1.3.0:runtime
[INFO] org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:3.0.0:runtime
[INFO] org.codehaus.mojo:exec-maven-plugin:maven-plugin:1.6.0:runtime
[INFO] org.codehaus.mojo:taglist-maven-plugin:maven-plugin:2.4:runtime
[INFO] org.codehaus.sonar-plugins:maven-report:maven-plugin:RELEASE:runtime
[INFO] org.jacoco:jacoco-maven-plugin:maven-plugin:0.8.1:runtime
[INFO] org.openclover:clover-maven-plugin:maven-plugin:4.3.1:runtime
[INFO] org.sonarsource.scanner.maven:sonar-maven-plugin:maven-plugin:3.5.0.1254:runtime
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ platform-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ platform-wo-framework-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ platform-wo-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-webapp-base-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-webapp-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-wo-app-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-wo-framework-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-wo-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-wo-webapp-parent ---
[INFO] --- maven-dependency-plugin:3.1.1:resolve-plugins (default-cli) @ store-wo-webservice-parent ---
[INFO] ------------------------------------------------------------------------
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] -------------------------------
[INFO] ----------------------------
[INFO] ----------------------------
[INFO] -------------------------
[INFO] ------------------------
[INFO] ------------------------
[INFO] ---------------------
[INFO] -------------------
[INFO] ------------------
[INFO] -----------------
[INFO] ---------------
[INFO] Apple Online Platform Parent POM [pom]
[INFO] Apple Online Platform Parent POM ................... SUCCESS [ 2.265 s]
[INFO] Apple Online Platform WebObjects Framework Parent POM [pom]
[INFO] Apple Online Platform WebObjects Framework Parent POM SUCCESS [ 0.717 s]
[INFO] Apple Online Platform WebObjects Parent POM [pom]
[INFO] Apple Online Platform WebObjects Parent POM ........ SUCCESS [ 0.759 s]
[INFO] BUILD SUCCESS
[INFO] Building Apple Online Platform Parent POM 2019.2-SNAPSHOT [1/3]
[INFO] Building Apple Online Platform WebObjects Framework Parent POM 2019.2-SNAPSHOT [3/3]
[INFO] Building Apple Online Platform WebObjects Parent POM 2019.2-SNAPSHOT [2/3]
[INFO] Building store-parent 2019.2-SNAPSHOT [1/8]
[INFO] Building store-webapp-base-parent 2019.2-SNAPSHOT [7/8]
[INFO] Building store-webapp-parent 2019.2-SNAPSHOT [8/8]
[INFO] Building store-wo-app-parent 2019.2-SNAPSHOT [3/8]
[INFO] Building store-wo-framework-parent 2019.2-SNAPSHOT [4/8]
[INFO] Building store-wo-parent 2019.2-SNAPSHOT [2/8]
[INFO] Building store-wo-webapp-parent 2019.2-SNAPSHOT [5/8]
[INFO] Building store-wo-webservice-parent 2019.2-SNAPSHOT [6/8]
[INFO] Finished at: 2018-11-13T16:39:27+05:30
[INFO] Finished at: 2018-11-15T18:46:42+05:30
[INFO] Reactor Build Order:
[INFO] Reactor Summary for Apple Online Platform Parent POM 2019.2-SNAPSHOT:
[INFO] Reactor Summary for store-parent 2019.2-SNAPSHOT:
[INFO] Scanning for projects...
[INFO] The following plugins have been resolved:
[INFO] Total time: 4.191 s
[INFO] Total time: 8.564 s
[INFO] store-parent [pom]
[INFO] store-parent ....................................... SUCCESS [ 2.245 s]
[INFO] store-webapp-base-parent [pom]
[INFO] store-webapp-base-parent ........................... SUCCESS [ 0.853 s]
[INFO] store-webapp-parent [pom]
[INFO] store-webapp-parent ................................ SUCCESS [ 0.807 s]
[INFO] store-wo-app-parent [pom]
[INFO] store-wo-app-parent ................................ SUCCESS [ 0.794 s]
[INFO] store-wo-framework-parent [pom]
[INFO] store-wo-framework-parent .......................... SUCCESS [ 0.767 s]
[INFO] store-wo-parent [pom]
[INFO] store-wo-parent .................................... SUCCESS [ 0.907 s]
[INFO] store-wo-webapp-parent [pom]
[INFO] store-wo-webapp-parent ............................. SUCCESS [ 0.836 s]
[INFO] store-wo-webservice-parent [pom]
[INFO] store-wo-webservice-parent ......................... SUCCESS [ 0.831 s]
startlinenumbertodelete=
grep -n "[INFO] The following plugins have been resolved:" | tail -1 | sed 's/^\([0-9]\+\):.*$/\1/'
Output :-
[INFO] antlr:antlr:jar:2.7.2
[INFO] backport-util-concurrent:backport-util-concurrent:jar:3.1
[INFO] ch.ethz.ganymed:ganymed-ssh2:jar:build210
[INFO] classworlds:classworlds:jar:1.1
[INFO] classworlds:classworlds:jar:1.1-alpha-2
[INFO] com.fasterxml.staxmate:staxmate:jar:2.2.1
[INFO] com.google.code.findbugs:jsr305:jar:2.0.1
[INFO] com.google.code.findbugs:jsr305:jar:3.0.1
[INFO] com.google.code.gson:gson:jar:2.2.2
[INFO] com.google.guava:guava:jar:14.0.1
[INFO] com.google.guava:guava:jar:18.0
[INFO] com.google.guava:guava:jar:19.0
[INFO] com.googlecode.javaewah:JavaEWAH:jar:0.7.9
[INFO] com.ibm.icu:icu4j:jar:58.1
[INFO] com.intellij:annotations:jar:9.0.4
[INFO] com.jcraft:jsch.agentproxy.core:jar:0.0.7
[INFO] com.jcraft:jsch.agentproxy.jsch:jar:0.0.7
[INFO] com.jcraft:jsch.agentproxy.sshagent:jar:0.0.7
[INFO] com.jcraft:jsch.agentproxy.usocket-jna:jar:0.0.7
[INFO] com.jcraft:jsch:jar:0.1.38
[INFO] com.jcraft:jsch:jar:0.1.49
[INFO] xpp3:xpp3_min:jar:1.1.4c
[INFO] de.smartics.maven.plugin:buildmetadata-maven-plugin:maven-plugin:1.6.1:runtime
[INFO] external.atlassian.jgitflow:jgitflow-maven-plugin:maven-plugin:1.0-m5.1:runtime
[INFO] org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.8:runtime
[INFO] org.apache.maven.plugins:maven-assembly-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-clean-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:3.8.0:runtime
[INFO] org.apache.maven.plugins:maven-dependency-plugin:maven-plugin:3.1.1:runtime
[INFO] org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:3.0.0-M1:runtime
[INFO] org.apache.maven.plugins:maven-enforcer-plugin:maven-plugin:3.0.0-M2:runtime
[INFO] org.apache.maven.plugins:maven-install-plugin:maven-plugin:3.0.0-M1:runtime
[INFO] org.apache.maven.plugins:maven-jar-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:3.0.1:runtime
[INFO] org.apache.maven.plugins:maven-jxr-plugin:maven-plugin:3.0.0:runtime
[INFO] org.apache.maven.plugins:maven-project-info-reports-plugin:maven-plugin:3.0.0:runtime
[INFO] org.apache.maven.plugins:maven-release-plugin:maven-plugin:2.5.3:runtime
[INFO] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:3.1.0:runtime
[INFO] org.apache.maven.plugins:maven-site-plugin:maven-plugin:3.7.1:runtime
[INFO] org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.22.0:runtime
[INFO] org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:2.22.0:runtime
[INFO] org.apache.maven.plugins:maven-war-plugin:maven-plugin:3.2.2:runtime
[INFO] org.basepom.maven:duplicate-finder-maven-plugin:maven-plugin:1.3.0:runtime
[INFO] org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:3.0.0:runtime
[INFO] org.codehaus.mojo:exec-maven-plugin:maven-plugin:1.6.0:runtime
[INFO] org.codehaus.mojo:taglist-maven-plugin:maven-plugin:2.4:runtime
[INFO] org.codehaus.sonar-plugins:maven-report:maven-plugin:RELEASE:runtime
[INFO] org.jacoco:jacoco-maven-plugin:maven-plugin:0.8.1:runtime
[INFO] org.openclover:clover-maven-plugin:maven-plugin:4.3.1:runtime
[INFO] org.sonarsource.scanner.maven:sonar-maven-plugin:maven-plugin:3.5.0.1254:runtime
Sugatur Deekshith S N
(383 rep)
Nov 15, 2018, 02:04 PM
• Last activity: Nov 15, 2018, 03:00 PM
1
votes
1
answers
691
views
How to disable stopping a bash script from executing after calling some command?
I am trying to create a bash script to deploy an application. Prior to deploying, the application must be built using maven. The problem is, once the maven build finishes, the next command is never called. It seems like maven issues some signal to terminate any further execution. E.g. in the followi...
I am trying to create a bash script to deploy an application. Prior to deploying, the application must be built using maven. The problem is, once the maven build finishes, the next command is never called. It seems like maven issues some signal to terminate any further execution.
E.g. in the following script, the
Hello world
is never written to standard output.
#!/bin/sh
exec mvn -DskipTests -Darguments=-DskipTests clean install
echo "Hello world"
Is there a way how to go around this limitation?
Andy
(121 rep)
Nov 3, 2018, 04:53 PM
• Last activity: Nov 3, 2018, 06:44 PM
1
votes
0
answers
730
views
Unable to run mvn clean install on macOS Sierra 10.12.6
I am using `maven-3.1.1` along with eclipse neon for RCP and `jdk-7`. I am running into the following issue - Error with Maven command: mvn clean install Problem running the Maven command because the process is 'null'. Is Maven installed correctly and located on your PATH? Running `mvn version` on t...
I am using
maven-3.1.1
along with eclipse neon for RCP and jdk-7
. I am running into the following issue -
Error with Maven command: mvn clean install
Problem running the Maven command because the process is 'null'. Is Maven installed correctly and located on your PATH?
Running mvn version
on terminal gives:
mvn -version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 10:22:22-0500)
Maven home: /Users/lnoob/apache-maven-3.1.1
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
echo
ing the PATH gives:
/Users/lnoob/.rvm/gems/ruby-2.3.1/bin:/Users/lnoob/.rvm/gems/ruby-2.3.1@global/bin:/Users/lnoob/.rvm/rubies/ruby-2.3.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS:/Users/lnoob/.rvm/bin:/Users/lnoob/apache-maven-3.1.1/bin
Any thoughts on what is going on?
linuxNoob
(113 rep)
Sep 5, 2018, 06:43 PM
• Last activity: Sep 5, 2018, 06:50 PM
1
votes
1
answers
1126
views
How to set global variable visible even for sudo commands?
I have installed Maven on Ubuntu 16.04 following [instructions][1]. I edited `/etc/environment`and added path to **maven/bin** folder to **$PATH** variable. Under my normal user everything works just fine, but when I try to run e.g. `sudo mvn test` it tells me that **mvn** is unknown command. Restar...
I have installed Maven on Ubuntu 16.04 following instructions .
I edited
/etc/environment
and added path to **maven/bin** folder to **$PATH** variable.
Under my normal user everything works just fine, but when I try to run e.g. sudo mvn test
it tells me that **mvn** is unknown command. Restart didn't help.
Error:
/bin/sh: 1: mvn: not found
I am also little perplexed by /bin/sh
piece - I am using bash.
So where should I put path to maven binary to make even sudo commands see it? Thank you.
lot
(113 rep)
Aug 8, 2018, 11:28 PM
• Last activity: Aug 9, 2018, 01:03 AM
5
votes
1
answers
4879
views
Getting "Could not create local repository" error when building Debian package
I am trying to build a debian package against Debian stretch. The `debian/rules` file is this: #!/usr/bin/make -f %: dh $@ override_dh_auto_build: mvn clean package When I build it using `pbuilder-buildpackage` I get this build error: mvn -e clean package [INFO] Error stacktraces are turned on. [ERR...
I am trying to build a debian package against Debian stretch. The
debian/rules
file is this:
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_build:
mvn clean package
When I build it using pbuilder-buildpackage
I get this build error:
mvn -e clean package
[INFO] Error stacktraces are turned on.
[ERROR] Could not create local repository at /nonexistent/.m2/repository -> [Help 1]
How do I resolve this error?
rlandster
(763 rep)
Jun 1, 2018, 07:00 PM
• Last activity: Jun 3, 2018, 01:31 AM
2
votes
2
answers
1628
views
Unable to locate the Javac Compiler in.ZKUI
I want install zkui on centos 7.1, But I have this error. [root@server-1 zkui]# mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building zkui 2.0-SNAPSHOT [INFO] ------------------------------------------...
I want install zkui on centos 7.1, But I have this error.
[root@server-1 zkui]# mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building zkui 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ zkui ---
[INFO] Deleting /root/zkui/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ zkui ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 29 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ zkui ---
[INFO] Compiling 20 source files to /root/zkui/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre/../lib/tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.680 s
[INFO] Finished at: 2018-01-02T08:17:00-05:00
[INFO] Final Memory: 11M/102M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project zkui: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre/../lib/tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Mvn version:
[root@server-1 zkui]# mvn -v
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T03:58:13-04:00)
Maven home: /usr/local/maven3
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-229.el7.x86_64", arch: "amd64", family: "unix"
Also my JAVA_HOME :
[root@server-1 zkui]# echo $JAVA_HOME
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre
pyramid13
(639 rep)
Jan 2, 2018, 10:16 AM
• Last activity: Jan 3, 2018, 05:09 AM
Showing page 1 of 20 total questions