You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2019/03/29 10:10:38 UTC

[maven] branch MNG-6071 updated (bac9901 -> a5a7785)

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a change to branch MNG-6071
in repository https://gitbox.apache.org/repos/asf/maven.git.


    omit bac9901  [MNG-6071] Normalize relative paths for working directory
     add 9f07b03  [MNG-6261] - using File apis to compare
     add e4e33f7  [MNG-6261] Relative parent POM resolution failing in 3.5.0 with complex multimodule builds
     add 732e7de  [MNG-6529] ProjectBuilder.build(List<Project> ...) honor request.isResolveDependency
     add c6bdafe  [MNG-5965] Parallel build multiplies work if multiple goals are given
     add 6c4c2e3  Change to keep only 5 artifacts on master and on branches only 1 artifact.
     add c7ab987  [MNG-6544] Replace CacheUtils#{eq,hash} with Objects
     add 71128cb  spelling: vertices
     add 9c94626  [MNG-6213] Validate scope in dependencyManagement
     add 391a111  [MNG-6526] Upgrade to Wagon 3.3.1
     add eab62f1  [MNG-6520] Update namespaces for maven-assembly to 2.0.0
     add 33e4f20  [MNG-6548] Lifecycle plugin version upgrades
     add d9facde  [MNG-6530] Introduce system property to disable global model cache
     add a939654  [MNG-6256] Surround parameter of echo command with double quotes
     add 8e5ecf0  fixed link (that goes to implementation in maven-core)
     add 375cd7b  [MNG-6559] Fix mailing list URL (#230)
     add fdf5d92  renamed variables for better understanding
     add 396291b  [MNG-6069] Migrate to non deprecated parts of Commons CLI (#153)
     add 2928dc6  refactoring: extracted initParent() method
     add 049b7a7  refactoring: reduced try/catch scope
     add ae1c32a  [MNG-6533] Test: ProjectBuildingException miss reference to MavenProject
     add 8b7055f  [MNG-6533] Prefer passing the interim project in ProjectBuildingResult
     add 27332cf  [MNG-6533] ProjectBuilder report ModelProblem instead of Exception
     add 24c762d  [MNG-6533] catch InvalidArtifactRTException runtime exception
     add bb3ec5d  [MNG-5995] Remove dependency to maven-compat (#185)
     add 7e3e545  [MNG-6573] Use Maven 3.6.0 for CI
     add 15c6471  [MNG-6558] ToolchainsBuildingResult event is not sent on EventSpy
     add b7249af  Revert [MNG-6069] Migrate to non deprecated parts of Commons CLI
     add 8f9075d  [MNG-6571] cache VersionRange instances, they are immutable
     add 6bd8bb9  [MNG-6571] forgot to put new instance in cache
     add 657fbb7  Revert "[MNG-6571] forgot to put new instance in cache"
     add 961746f  [MNG-6571] separate caches for create from spec and version
     add 4decfcf  [MNG-6591] Upgrade to Wagon 3.3.2
     add c674bcf  [MNG-6495] ModelResolver cannot be null
     add bd4a3a0  [MNG-6593] track input location for super-pom content
     add 9dd4732  Revert "[MNG-6548] Lifecycle plugin version upgrades"
     add 37676a2  [MNG-6599] use version from parent if necessary, like groupId
     add 4bec550  [MNG-6600] add inputlocation tracking for default lifecycle executions
     add 0b10fe7  [MNG-6597] add input location tracking for plugins configuration
     add 49c8f17  [MNG-6601] add input location tracking for m-site-p converted reports
     add f5a1374  [MNG-6572] use int or long instead of BigIntegers for little numbers in ComparableVersion
     add 0be2644  [MNG-6538]  Upgrade maven-resolver to 1.3.3
     add 5306cd0  [MNG-6506] [MNG-6543] Upgrade Plexus Classworlds to 2.6.0
     new a5a7785  [MNG-6071] Normalize relative paths for working directory

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (bac9901)
            \
             N -- N -- N   refs/heads/MNG-6071 (a5a7785)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CONTRIBUTING.md                                    |   4 +-
 Jenkinsfile                                        |  10 +-
 apache-maven/README.txt                            |   2 +-
 apache-maven/src/bin/mvn.cmd                       |   4 +-
 apache-maven/src/main/assembly/bin.xml             |   4 +-
 apache-maven/src/main/assembly/component.xml       |   4 +-
 apache-maven/src/main/assembly/dir.xml             |   4 +-
 apache-maven/src/main/assembly/src.xml             |   4 +-
 .../org/apache/maven/artifact/ArtifactUtils.java   |   2 +-
 .../artifact/versioning/ComparableVersion.java     | 227 ++++++++++--
 .../maven/artifact/versioning/VersionRange.java    |  33 +-
 .../artifact/versioning/ComparableVersionTest.java |  90 +++++
 .../artifact/versioning/VersionRangeTest.java      |  19 +
 .../apache/maven/bridge/MavenRepositorySystem.java | 100 +++++-
 .../internal/DefaultLifecyclePluginAnalyzer.java   |  22 +-
 .../multithreaded/ConcurrencyDependencyGraph.java  |   9 +-
 .../multithreaded/MultiThreadedBuilder.java        |  10 +-
 .../plugin/DefaultLifecycleBindingsInjector.java   |  14 +-
 .../java/org/apache/maven/plugin/CacheUtils.java   |  53 +--
 .../maven/project/DefaultProjectBuilder.java       | 382 ++++++++++++---------
 .../project/DefaultProjectBuildingHelper.java      |   6 +-
 .../org/apache/maven/project/ProjectSorter.java    |   2 +-
 .../internal/ConcurrencyDependencyGraphTest.java   |   2 +-
 .../apache/maven/project/ProjectBuilderTest.java   | 161 +++++++++
 .../resources/projects/artifactMissingVersion.xml  |  34 ++
 .../pom.xml => resources/projects/badPom.xml}      |  10 +-
 .../projects/basic-resolveDependencies.xml         |  15 +
 .../main/java/org/apache/maven/cli/MavenCli.java   |   6 +-
 .../java/org/apache/maven/cli/MavenCliTest.java    |  38 ++
 .../maven/model/building/DefaultModelBuilder.java  |   3 +-
 .../maven/model/building/FileModelSource.java      |  23 ++
 .../maven/model/building/ModelBuildingRequest.java |   4 +-
 .../maven/model/building/ModelProblemUtils.java    |   4 +
 .../model/plugin/DefaultReportingConverter.java    |  54 ++-
 .../model/superpom/DefaultSuperPomProvider.java    |  11 +-
 .../model/validation/DefaultModelValidator.java    |  10 +-
 maven-model-builder/src/site/apt/index.apt         |   4 +-
 .../maven/model/building/FileModelSourceTest.java  |  75 ++++
 .../validation/DefaultModelValidatorTest.java      |  10 +
 ...ier.xml => bad-dependency-management-scope.xml} |  38 +-
 maven-model/pom.xml                                |   1 +
 pom.xml                                            |  15 +-
 42 files changed, 1230 insertions(+), 293 deletions(-)
 create mode 100644 maven-core/src/test/resources/projects/artifactMissingVersion.xml
 copy maven-core/src/test/{projects/default-maven/cyclic-reference/pom.xml => resources/projects/badPom.xml} (53%)
 create mode 100644 maven-core/src/test/resources/projects/basic-resolveDependencies.xml
 create mode 100644 maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java
 copy maven-model-builder/src/test/resources/poms/validation/{bad-import-scope-classifier.xml => bad-dependency-management-scope.xml} (53%)


[maven] 01/01: [MNG-6071] Normalize relative paths for working directory

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MNG-6071
in repository https://gitbox.apache.org/repos/asf/maven.git

commit a5a77859c61017db40953e6792b6a34bdecf2e35
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Nov 12 22:39:48 2018 +0100

    [MNG-6071] Normalize relative paths for working directory
---
 maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
index b99783d..706050d 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
@@ -100,6 +100,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.io.PrintStream;
 import java.nio.file.Files;
+import java.nio.file.Paths;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
@@ -1630,7 +1631,7 @@ public class MavenCli
         }
         else
         {
-            return new File( workingDirectory, file.getPath() ).getAbsoluteFile();
+            return Paths.get( workingDirectory, file.getPath() ).normalize().toFile();
         }
     }