mirror of
https://github.com/apache/maven.git
synced 2025-02-06 10:09:04 +00:00
an 'id' to use MavenProject instead. In some parts of the code a DAG is constructed using a version-less key, and in the api what the id should be is unspecified. This could result in NPE's (it does!) because the code in plexus-utils assumes a known id (vertex in the DAG) is supplied. So, moved the project.getId() calls outside of ReactorManager into the ReactorManager, so that there's just one place where the decision is made on how to generate an id (DAG vertex label) from a project. This centralizes that knowledge for increased maintainability and reduced chances on NPE's. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@279334 13f79535-47bb-0310-9956-ffa450edef68
------------------------------------------------------------------------------- Bootstrapping Maven ------------------------------------------------------------------------------- Set the environment variable M2_HOME pointing to the dir where you want Maven2 installed. NOTE: presently, the directory {M2_HOME}/bin must be in your path: set PATH=%PATH%;%M2_HOME%\bin or export PATH=$PATH:$M2_HOME/bin You can set the parameters passed to the Java VM when running Maven2 bootstrap, setting the environment variable MAVEN_OPTS, e.g. e.g. to run in offline mode, set MAVEN_OPTS=-o Then run m2-bootstrap-all.bat (in Windows) or m2-bootstrap-all.sh (in Unix) NOTE: You must run these instructions from this directory! If you are behind a firewall, you will need to let the bootstrap process know. To do this, create a file at ~/.m2/settings.xml and paste in the XML below, substituting your settings for those provided. You can safely skip the username, password and nonProxyHost elements if they are not relevant to you. <settings> <proxies> <proxy> <active>true</active> <protocol>http</protocol> <host>proxy.somewhere.com</host> <port>8080</port> <username>proxyuser</username> <password>somepassword</password> <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts> </proxy> </proxies> </settings>
Description
Languages
Java
99.6%
Shell
0.2%
Batchfile
0.1%