Hi,
On 7/22/16 7:17 PM, Rajiv Jain wrote:
Hi
I have recently started to make contributions to the Apache Maven source code.
I would like to know that if I wish to build a maven project using my changes
how would I do this?
You can build Maven Core by using the following and let also the
distribution being copied to a particular directory like this:
mvn
-DdistributionTargetFolder=/Users/kama/tools/maven-test/apache-maven-3.4.0-SNAPSHOT
clean package
I have a particular folder for the test version which I build from Maven
core .
Now if I like to use the build Maven version I simply use it directly:
~/tools/maven-test/apache-maven-3.4.0-SNAPSHOT/bin/mvn clean package
So I use the build version here...
Apart from that if you are making changes to Maven Core you should
become familiar with the integration tests suite...
http://maven.apache.org/core-its/core-it-suite/
I am using a mac, and my current unmodified maven is pointing to the jre folder
to maven home.
>How can I point my modified changes to maven home?
>
Is this possible? What are the options?
What I don't understand is what you mean by "pointing to jre folder to
maven home" ?
You know that Maven needs a JDK and not an JRE ?
I simply call it directly or just add it to my Path. I have written some
scripts to change the Maven version I'm using via links:
which look like this:
#!/bin/bash
sudo rm /usr/share/maven
sudo ln -s /usr/share/java/apache-maven-3.3.9 /usr/share/maven
And the path /usr/shared/maven/bin is part of my PATH....
No M2_HOME, MAVEN_HOME set...
Kind regards.
Karl Heinz Marbaise
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]