mirror of https://github.com/apache/maven.git
renamed tokens used during bootstrap to better understand their role
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@766862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
65ff7cb4e5
commit
07d018d78d
|
@ -8,7 +8,7 @@ You'll need:
|
||||||
|
|
||||||
First, give Ant a location into which the completed Maven distro should be installed:
|
First, give Ant a location into which the completed Maven distro should be installed:
|
||||||
|
|
||||||
export M2_HOME=$HOME/apps/maven/apache-maven-2.1-SNAPSHOT
|
export M2_HOME=$HOME/apps/maven/apache-maven-3.0-SNAPSHOT
|
||||||
|
|
||||||
Then, run Ant:
|
Then, run Ant:
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,9 @@ END SNIPPET: ant-bootstrap -->
|
||||||
<property name="maven.repo.update.policy" value="always"/>
|
<property name="maven.repo.update.policy" value="always"/>
|
||||||
-->
|
-->
|
||||||
<property name="maven.repo.update.policy" value="daily"/>
|
<property name="maven.repo.update.policy" value="daily"/>
|
||||||
|
|
||||||
<property name="maven.repo.system" value="don.t"/>
|
<property name="maven.repo.system" value="don.t"/>
|
||||||
|
|
||||||
<condition property="do.not.clean.local.repo">
|
<condition property="do.not.clean.local.repo">
|
||||||
<not>
|
<not>
|
||||||
<isset property="clean.local.repo"/>
|
<isset property="clean.local.repo"/>
|
||||||
|
@ -110,13 +110,13 @@ END SNIPPET: ant-bootstrap -->
|
||||||
<replacefilter token='@Component( role = RepositorySystem.class, hint = "default" )'
|
<replacefilter token='@Component( role = RepositorySystem.class, hint = "default" )'
|
||||||
value='@Component( role = RepositorySystem.class, hint = "${mercury-hint}" )'/>
|
value='@Component( role = RepositorySystem.class, hint = "${mercury-hint}" )'/>
|
||||||
</replace>
|
</replace>
|
||||||
|
|
||||||
<echo>maven.repo.system is ${maven.repo.system}, flip: legacy-hint=${legacy-hint}, mercury-hint=${mercury-hint}</echo>
|
<echo>maven.repo.system is ${maven.repo.system}, flip: legacy-hint=${legacy-hint}, mercury-hint=${mercury-hint}</echo>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="flip-default-repository-system" description="flips repository system impl">
|
<target name="flip-default-repository-system" description="flips repository system impl">
|
||||||
|
|
||||||
<condition property="legacy-hint" value="default">
|
<condition property="legacy-hint" value="default">
|
||||||
<equals arg1="${maven.repo.system}" arg2="legacy"/>
|
<equals arg1="${maven.repo.system}" arg2="legacy"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
@ -130,11 +130,11 @@ END SNIPPET: ant-bootstrap -->
|
||||||
<condition property="mercury-hint" value="default">
|
<condition property="mercury-hint" value="default">
|
||||||
<equals arg1="${maven.repo.system}" arg2="mercury"/>
|
<equals arg1="${maven.repo.system}" arg2="mercury"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<condition property="do.not.flip.repository" value="default">
|
<condition property="do.not.flip.repository" value="default">
|
||||||
<equals arg1="${maven.repo.system}" arg2="don.t"/>
|
<equals arg1="${maven.repo.system}" arg2="don.t"/>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<antcall target="flip-default-repository"/>
|
<antcall target="flip-default-repository"/>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
@ -143,8 +143,8 @@ END SNIPPET: ant-bootstrap -->
|
||||||
<property name="verbose" value="false"/>
|
<property name="verbose" value="false"/>
|
||||||
<!-- Pull the dependencies that Maven needs to build -->
|
<!-- Pull the dependencies that Maven needs to build -->
|
||||||
<copy file="pom.xml" tofile="dependencies.xml"/>
|
<copy file="pom.xml" tofile="dependencies.xml"/>
|
||||||
<replace file="${basedir}/dependencies.xml" token="<!--start-->" value="<!--"/>
|
<replace file="${basedir}/dependencies.xml" token="<!--bootstrap-start-comment-->" value="<!--"/>
|
||||||
<replace file="${basedir}/dependencies.xml" token="<!--end-->" value="-->"/>
|
<replace file="${basedir}/dependencies.xml" token="<!--bootstrap-end-comment-->" value="-->"/>
|
||||||
|
|
||||||
<mercury:local-repository location="${maven.repo.local}"/>
|
<mercury:local-repository location="${maven.repo.local}"/>
|
||||||
<mercury:remote-repository id="central" location="${maven.repo.central}" updatePolicy="${maven.repo.update.policy}"/>
|
<mercury:remote-repository id="central" location="${maven.repo.central}" updatePolicy="${maven.repo.update.policy}"/>
|
||||||
|
|
|
@ -78,8 +78,8 @@ END SNIPPET: ant-bootstrap -->
|
||||||
<property name="verbose" value="false"/>
|
<property name="verbose" value="false"/>
|
||||||
<!-- Pull the dependencies that Maven needs to build -->
|
<!-- Pull the dependencies that Maven needs to build -->
|
||||||
<copy file="pom.xml" tofile="dependencies.xml"/>
|
<copy file="pom.xml" tofile="dependencies.xml"/>
|
||||||
<replace file="${basedir}/dependencies.xml" token="<!--start-->" value="<!--"/>
|
<replace file="${basedir}/dependencies.xml" token="<!--bootstrap-start-comment-->" value="<!--"/>
|
||||||
<replace file="${basedir}/dependencies.xml" token="<!--end-->" value="-->"/>
|
<replace file="${basedir}/dependencies.xml" token="<!--bootstrap-end-comment-->" value="-->"/>
|
||||||
<artifact:pom file="${basedir}/dependencies.xml" id="pom"/>
|
<artifact:pom file="${basedir}/dependencies.xml" id="pom"/>
|
||||||
<artifact:dependencies pathId="pom.pathid" filesetId="pom.fileset" verbose="${verbose}" useScope="compile">
|
<artifact:dependencies pathId="pom.pathid" filesetId="pom.fileset" verbose="${verbose}" useScope="compile">
|
||||||
<localRepository path="${maven.repo.local}"/>
|
<localRepository path="${maven.repo.local}"/>
|
||||||
|
|
22
pom.xml
22
pom.xml
|
@ -182,13 +182,13 @@ under the License.
|
||||||
<jxpathVersion>1.3</jxpathVersion>
|
<jxpathVersion>1.3</jxpathVersion>
|
||||||
<staxVersion>1.0.1</staxVersion>
|
<staxVersion>1.0.1</staxVersion>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!--start-->
|
<!--bootstrap-start-comment-->
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<!--end-->
|
<!--bootstrap-end-comment-->
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Maven Modules -->
|
<!-- Maven Modules -->
|
||||||
<!--start-->
|
<!--bootstrap-start-comment-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven</groupId>
|
<groupId>org.apache.maven</groupId>
|
||||||
<artifactId>maven-mercury</artifactId>
|
<artifactId>maven-mercury</artifactId>
|
||||||
|
@ -254,7 +254,7 @@ under the License.
|
||||||
<artifactId>maven-compat</artifactId>
|
<artifactId>maven-compat</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--end-->
|
<!--bootstrap-end-comment-->
|
||||||
<!-- Plexus -->
|
<!-- Plexus -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
|
@ -453,19 +453,19 @@ under the License.
|
||||||
<artifactId>plexus-plugin-manager</artifactId>
|
<artifactId>plexus-plugin-manager</artifactId>
|
||||||
<version>${plexusPluginManagerVersion}</version>
|
<version>${plexusPluginManagerVersion}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--start-->
|
<!--bootstrap-start-comment-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>easymock</groupId>
|
<groupId>easymock</groupId>
|
||||||
<artifactId>easymock</artifactId>
|
<artifactId>easymock</artifactId>
|
||||||
<version>${easyMockVersion}</version>
|
<version>${easyMockVersion}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--end-->
|
<!--bootstrap-end-comment-->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<!--start-->
|
<!--bootstrap-start-comment-->
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
<!--end-->
|
<!--bootstrap-end-comment-->
|
||||||
<!--start-->
|
<!--bootstrap-start-comment-->
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
@ -474,7 +474,7 @@ under the License.
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<!--end-->
|
<!--bootstrap-end-comment-->
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
|
|
Loading…
Reference in New Issue