I have a problem, i need to debug a maven project using the mvndebug in fedora Linux, but the terminal does not recognize the mvndebug command.
Fedora's command line is case sensitive, and I believe the command is mvnDebug, with a capital D. Try that.
Does mvn work? If not, you need to sudo yum install maven2 to install it.
The maven debug tool is installed as part of maven's package (yum install maven). Note, however, it's called mvnDebug, with a capital D.
Related
When I use mvn spring-boot:run to run a Spring Boot project, I find if use the command in Cmd, it works. but if I use it in Git Bash, it can't work.
So I use java -version and mvn -v to view the Java and maven version.
java -version give me the same result, but mvn -v result is different, as the picture shows:
And when I see my java path, I'm sure it's C:\Program Files\Java\jdk1.8.0_151
So I want to know, why there are two Java paths in my PC when I use mvn -v?
Both the java executable and Maven by default use the JDK that is specified in the $JAVA_HOME environment variable.
You are executing java and Maven (mvn) in different environments (cmd.exe in one case and Git Bash in the other case), so the most likely explanation is that $JAVA_HOME is set to different JDKs in the respective environments.
You can check the content of $JAVA_HOME with echo $JAVA_HOME.
I'm must verify a maven local dependency into a python script. I succeed to do it on linux using this command (from this thread).
mvn dependency:get -Dartifact=g:a:v -o -DrepoUrl=file://~/.m2/repository
My problem is that I'm working with a team using Windows, Linux and Mac, under Windows I'm unable to execute this command, the repo path is the one from mvn configuration maybe the problem is coming from the way I'm calling it as parameter.
mvn dependency:get -Dartifact=g:a:v -o -DrepoUrl=file://C:\Users\user\.m2\repository
Is someone already use this command on Windows and have any hints to solve this problem ?
Thank you .
Finally I reached a solution.
I'm not sure to understand but on windows firstly I must run :
mvn dependency:get
before running :
mvn dependency:get -Dartifact=g:a:v -o
I think the problem about 'dependency plugin' is solved by the first command.
I am trying to install dataloader on my Linux machine.
https://github.com/forcedotcom/dataloader
There is a command line on third line:
$ mvn clean package -DskipTests
When I typed that in, I got this error:
The program 'mvn' can be found in the following packages:
* maven
* maven2
Try: sudo apt-get install <selected package>
I am not sure what to do.
Dataloader needs Maven. It's a dependency manager for Java.
Thus you have to install Maven before being able to use it.
Just run sudo apt-get update && sudo apt-get install maven2 and mvn will be available on your computer.
Maven documentation (for more up to date installation instructions) : https://maven.apache.org/install.html
Command line tools written in Ruby can be installed through RubyGems. Command line tools written in Node.js can be installed through NPM.
Does mvn offer similar functionality, or should I look to package systems like apt-get for installing Java command line tools?
I am trying to clean my Maven and I am getting this warning when I run mvn eclipse:eclipse -Dwtpversion=2.0
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Does any one have a clue on how to fix it?
I am on MacOS. Here is what I have configured for my eclipse:
There is a patch here, but it has not been applied to any release so far. :-( As a workaround you can create a symlink as described here.
The answer above works, but seems to be more than what's needed.
Minimally on OSX Lion, you may get by with:
cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
sudo mkdir -p jre/lib
cd jre/lib
sudo ln -s ../../../Classes/classes.jar rt.jar