Skip to content

Commit

Permalink
[MNG-5904] Remove the whole Ant Build
Browse files Browse the repository at this point in the history
Reduced minimum to build Maven itself to 3.0.5
related to Maven < 3.3.1 we have to use something
different than maven.home otherwise maven.home will
interfere with maven.home from the mvn script which
results in automatically activating the profile which
is used to create the distribution folder. Using the
different name distributionTargetFolder makes this safe.
  • Loading branch information
khmarbaise committed Dec 12, 2015
1 parent 62629c9 commit 20b7416
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Maven is available under the [Apache License, Version 2.0](http://www.apache.org
If you want to bootstrap Maven, you'll need:

- Java 1.7+
- Maven 3.3.1 or later
- Maven 3.0.5 or later

Run Maven, specifying a location into which the completed Maven distro should be installed:

```
mvn -Dmaven.home="$HOME/app/maven/apache-maven-3.4.x-SNAPSHOT" clean package
mvn -DdistributionTargetFolder="$HOME/app/maven/apache-maven-3.4.x-SNAPSHOT" clean package
```

Once the build completes, you should have a new Maven distro ready to roll in that directory!
4 changes: 2 additions & 2 deletions apache-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<id>create-distribution-in-folder</id>
<activation>
<property>
<name>maven.home</name>
<name>distributionTargetFolder</name>
</property>
</activation>
<build>
Expand All @@ -203,7 +203,7 @@
<finalName>./</finalName>
<appendAssemblyId>false</appendAssemblyId>
<attach>false</attach>
<outputDirectory>${maven.home}</outputDirectory>
<outputDirectory>${distributionTargetFolder}</outputDirectory>
<descriptors>
<descriptor>src/main/assembly/dir.xml</descriptor>
</descriptors>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<inceptionYear>2001</inceptionYear>

<properties>
<maven.version>3.3.1</maven.version>
<maven.version>3.0.5</maven.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<classWorldsVersion>2.5.2</classWorldsVersion>
Expand Down

0 comments on commit 20b7416

Please sign in to comment.