[maven] branch MNG-6012-Missing-Profile-At-End updated (acd9490 -> 241f460)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[maven] branch MNG-6012-Missing-Profile-At-End updated (acd9490 -> 241f460)

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

khmarbaise pushed a change to branch MNG-6012-Missing-Profile-At-End
in repository https://gitbox.apache.org/repos/asf/maven.git.


 discard acd9490  Added logger output
 discard 1b49d6e  First step to implement --fail-level warn, --fail-level error
 discard 3912ece  [MNG-6012] Missing profile is only notified at the end of a run  o Introduced new command line option --fail-on-missing-profiles    which will fail the build immediately.  o Print WARNING at the beginning and at the end of the output.
 discard f2a3d53  [MNG-4645] Move central repo definition out of Maven's core so it can be more easily changed [MNG-6054] Removal of super pom plugin management.
 discard ba79b50  [MNG-5971] Imported dependencies should be available to inheritance processing
 discard 5798953  [MNG-5971] Imported dependencies should be available to inheritance processing
 discard d5a2a09  [MNG-6075] Increase the model validation level to the next minor level version.
 discard 843d0ad  [MNG-6075] Increase the model validation level to the next minor level version.
 discard c4ada0f  [MNG-6073] Addition of a core extension point to the model builder supporting model finalization.
 discard 02eee0e  [MNG-6073] Addition of a core extension point to the model builder supporting model finalization. [MNG-3825] Dependencies with classifier should not always require a version.
 discard 3b6daf2  [MNG-6073] Addition of a core extension point to the model builder supporting model finalization. [MNG-3825] Dependencies with classifier should not always require a version.
 discard 1ff5a8f  [MNG-6073] Addition of a core extension point to the model builer supporting model finalization. [MNG-3825] Dependencies with classifier should not always require a version.
 discard b825eed  [MNG-4645] Move central repo definition out of Maven's core so it can be more easily changed [MNG-6070] [REGRESSION] Profile activation based on a property does not work correctly
 discard be9002b  updated code to match MessageBuilder API change
 discard 5da49bd  [MNG-6012] Missing profile is only notified at the end of a run  o Introduced new command line option --fail-on-missing-profiles    which will fail the build immediately.  o Print WARNING at the beginning and at the end of the output.
 discard f907ecb  [MNG-6055] Move the release profile out of Maven's core so it can be more easily changed.
 discard 0e1679f  [MNG-6055] Move the release profile out of Maven's core so it can be more easily changed.
 discard 22a5473  [MNG-4645] Move central repo definition out of Maven's core so it can be more easily changed.
 discard a7b1e99  [MNG-5968] Default plugin version updates.
 discard 899275b  [MNG-4645] Move central repo definition out of Maven's core so it can be more easily changed [MNG-6054] Removal of super pom plugin management.
 discard 6a59ee9  [MNG-4645] Move central repo definition out of Maven's core so it can be more easily changed
 discard 71d760f  [MNG-6054] Removal of super pom plugin management.
 discard 1f5bfe1  [MNG-3507] use new maven-shared-utils styled messages API
 discard bad71a9  [MNG-5967] Dependency updates.
 discard 6c7d147  [MNG-3507] ANSI Color logging for improved output visibility.
 discard a25dab8  [MNG-3507] ANSI Color logging for improved output visibility.
 discard 7af2bbb  [MNG-6049] Add behavior to filter resolved version ranges of an artifact
 discard 3701657  [MNG-3507] removed unused code
 discard f76eca3  [MNG-3507] use AnsiUtils API to use colors consistently
 discard ef057cd  [MNG-3507] added color to Maven execution output messages
 discard ab4a870  [MNG-5227] The 'optional' flag of a dependency should be manageable.
 discard c207f7d  [MNG-3507] added color to Maven execution output messages
 discard 67a4c4d  [MNG-3507] added color to Maven execution output messages
 discard b41b9cb  o Updated to remove errors reported by Checkstyle.
 discard 8e1d124  [MNG-3507] keep green for success: INFO in blue (DEBUG is cyan)
 discard 31cc202  [MNG-5971] Imported dependencies should be available to inheritance processing
 discard 6122106  [MNG-6041] Option -l does not disables the colorized output.
 discard 23ed598  [MNG-5227] The 'optional' flag of a dependency should be manageable.
 discard 5b14d62  [MNG-6037] add support for Gossip slf4j provider Submitted by: Jason Dillon Applied with modifications since general Maven color support was extracted from logging in MNG-3507 this closes #81
 discard 03a3b2e  [MNG-3507] added color to Maven execution output messages
 discard 0496f92  Update Maven Dependency Plugin in Super POM to 2.10
 discard b873334  [MNG-5951] add an option to avoid path addition to inherited URLs
 discard 5d66bfb  fixed site generation
 discard 731e4c2  [MNG-5567] Zip files are not included in classpaths at all
 discard d65777d  [MNG-2478] add filtered resource directories to super POM
 discard ad292de  o Updated to use the try-with-resources statement.
 discard 0328fe5  [MNG-5968] Default plugin version updates.
 discard 820edfd  [MNG-4345] [regression] Plugin executions contributed by default lifecycle mapping execute after other plugin executions bound to the same phase
 discard dbc2203  [MNG-4345] [regression] Plugin executions contributed by default lifecycle mapping execute after other plugin executions bound to the same phase"
 discard c07443d  [MNG-5984] Maven core extension resolution ignores repositories from activeByDefault profiles in settings.xml
 discard af0ce8c  [MNG-2478] add filtered resource directories to super POM
 discard f3c003f  [MNG-5971] Imported dependencies should be available to inheritance processing
 discard 73b86aa  [MNG-5971] Imported dependencies should be available to inheritance processing
 discard 83492ab  [MNG-5971] Imported dependencies should be available to inheritance processing
 discard be49e87  [MNG-5971] Imported dependencies should be available to inheritance processing
 discard f2e3f9e  [MNG-5968] Default plugin version updates.
 discard 6d311f8  o Updated 'DefaultSettingsDecrypter' to allow configuration to be set programmatically.
 discard 52f9e8f  [MNG-5968] Default plugin version updates.
 discard b29529f  [MNG-5968] Default plugin version updates.
 discard 31054a9  [MNG-1577] dependencyManagement does not work for transitive dependencies
 discard 17f0f2b  [MNG-4463] Version ranges cannot be used for artifacts with 'import' scope
 discard c34f33b  o Updated to make the 'JavaDependencyContextRefiner' part of the dependency   graph transformer lost in commit 3916201b985c281a2b073b9b764bbb554584f5a7.
 discard 5fe1a34  o Updated to make the 'JavaDependencyContextRefiner' part of the dependency   graph transformer lost in commit 3916201b985c281a2b073b9b764bbb554584f5a7.
 discard 2cd4710  [MNG-5227] The 'optional' flag of a dependency should be manageable.
 discard 07cbcf9  [MNG-5940] Change the maven-source-plugin jar goal into jar-no-fork in Maven Super POM
 discard 4d21afd  o Updated to get rid of some Javadoc warnings.
 discard 5490639  [MNG-5968] Default plugin version updates.
 discard e217987  [MNG-5968] Default plugin version updates.
 discard 5f519f4  [MNG-5359] Declared execution in PluginMgmt gets bound to lifecycle (regression)
 discard 729ff15  [MNG-5359] Declared execution in PluginMgmt gets bound to lifecycle (regression)
 discard 09125bd  [MNG-5359] Declared execution in PluginMgmt gets bound to lifecycle (regression)
 discard 5e8e3fd  [MNG-5359] Declared execution in PluginMgmt gets bound to lifecycle (regression)
 discard c2f5cc3  [MNG-5359] Declared execution in PluginMgmt gets bound to lifecycle (regression)
 discard f70546e  [MNG-5359] Declared execution in PluginMgmt gets bound to lifecycle (regression)
 discard 1e41c82  [MNG-5359] Declared execution in PluginMgmt gets bound to lifecycle (regression)
 discard bf5ec0a  [MNG-5868] Adding serval times the same artifact via MavenProjectHelper (attachArtifact) does not produce a failure
 discard 65f33f6  [MNG-5868] Adding serval times the same artifact via MavenProjectHelper (attachArtifact) does not produce a failure
 discard d7929ae  Revert "[MNG-5868] Adding serval times the same artifact via MavenProjectHelper (attachArtifact) does not produce a failure"
 discard 208cff2  [MNG-5868] Adding serval times the same artifact via MavenProjectHelper (attachArtifact) does not produce a failure
 discard a09f813  Updated to ensure collections are immutable consistently.
 discard 84aa00e  [MNG-5904] Remove the whole Ant Build 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.
 discard 16a2545  [MNG-2199] Support version ranges in parent elements
 discard d5fa09f  [MNG-5904] Remove the whole Ant Build
     add fef1462  [MNG-6362] - Adding CONTRIBUTING, README.md pull_request_template for GitHub.
     add 0dbdda8  Add .factorypath from m2e to .gitignore
     add ef41c0e  updated model version to latest 1.1.0
     add 9c118d3  [MNG-6363] - Remove secret thread configuration property from code
     add 97e8a2b  because it is so more convenient to have this quick guide here when you are using a console to build maven and do not want to open some web link
     add 5beb347  Fix missing/improper use of @link
     add 8e0efaa  [MNG-6386] ${project.baseUri} is not a valid URI (according to RFC 3986)
     add 9abfc88  [MNG-5756] Java home output in mvn -v is misleading
     add 14365ba  [MNG-6403] Artifact#VERSION_FILE_PATTERN does not escape period between date and time
     add 9021d66  Move ArtifactUtilsTest and friends from maven-compat to maven-artifact
     add 3c3a590  [MNG-6382][MNG-6372] upgraded Jansi to 1.17.1
     add 454a4e7  [MNG-6411] Improve readability of project list returned when --resume-from option value is invalid
     add 39fdaad  added "Run ITs" prefix to IT stage names
     add 864d180  [MNG-6410] Add groupId to --resume-from suggestion if artifactId is not unique in reactor
     add 7fde626  simplified Jenkinsfile: avoid copy/paste
     add 6cb5db1  magnify a bit this line :-)
     add f1ed22d  Build core with JDK8 due to 'Received fatal alert: protocol_version' when downloading https://www.apache.org/licenses/LICENSE-2.0.txt
     add 5f8ee6d  [MNG-6423] Upgrade to Wagon 3.1.0
     add 3af07f8  [MNG-6364] run Core ITs also with Java 9
     add 29e9b50  [MNG-6344] Upgrade Guice to 4.2.0
     add 5b4e173  [MNG-5940] Change the maven-source-plugin jar goal into jar-no-fork in Maven Super POM
     add 1edded0  [maven-release-plugin] prepare release maven-3.5.4
     add 1efd571  [maven-release-plugin] prepare for next development iteration
     add bf0bd63  Master is now on 3.6.0-SNAPSHOT
     add 5f526ab  [INFRA-16467] move components documentation out of CMS space
     add a2b800d  update doap
     add 3d3c068  [MNG-6424] - Upgrade plexus-interpolation to 1.25
     add 5514aa7  Set https.protocols when running with JDK 7
     add a97b03a  Set https.protocols when running with JDK 7
     add 0e1cc11  Set https.protocols when running with JDK 7
     add 870d696  Set https.protocols when running with JDK 7
     add 6f41a82  reorganised dependency graph: group consumer vs build modules
     add 72dca39  Replace org.apache.commons.lang3.Validate#notNull with java.util.Objects#requireNonNull
     add 768e01c  [MNGSITE-339] Broken link: Mailing lists
     add 2ac9c4a  minor grammar fixes
     add e56fe97  [MNG-6449] - Upgrade parent to 32
     add 396f49d  [MGN-6383] - ProjectBuilder unnecessarily rebuilds modules with ci-friendly versions  o Thanks to Christoph Kunze for offering the fix.
     add f567471  improved documentation
     add 1f83d50  fixed typo + little javadoc improvements
     add d0f1efa  fixed dependency schema: model-builder depends on artifact
     add f87ba98  [MNG-6467] - Remove plugin definition from pom file which is inherited
     add 0627522  Update Jenkins build to use Maven 3.5.4 (#179)
     add e0db90a  [MNG-6473] Update Mockito to 2.21.0 (#181)
     add 01f098e  [MNG-6475] Remove unused Guava dependencies
     add 8bc3c20  [MNG-6311] Implement class-level ModelCache in DefaultProjectBuilder to solve slow pom resolutions
     add 10388b3  [MNG-6478] upgraded parent to 33 for sha512 checksum on release
     add ce6cc5d  [MNG-6414] Add more Apache license header patterns to skip downloading Apache license
     add 2e8e09f  [MNG-5951] add an option to avoid path addition to inherited URLs
     add 532eb24  [MNG-6358] indented code for better understanding
     add ed8bc6b  [MNG-6358] improved licenses sources for inclusion
     add 91fa89e  [MNG-6479] Upgrade XMLUnit to 2.2.1 (#183)
     add c3dfa0f  [MNG-6480] get non-Apache license from local resource
     add 421164e  Excluded the license files cause they do not contain a license of themselfs.
     add 7c1e712  [MNG-6415] Project Artifacts Cache does not retain the order of classpath entries.
     add ca45efd  [MNG-6486] Upgrade to Wagon 3.2.0
     add 2786490  Fixed typo in exception logging LegacyRepositorySystem
     add 44826ab  [MNG-6164] Collections inconsistently immutable
     add 0345cd1  [MNG-6489] Upgrade Maven Resolver to 1.3.0
     add 13a0a5f  [MNG-6491] upgraded commons-lang3 to fix tests failure with JDK 10/11
     add 6e619a1  [MNG-6496] Upgrade Maven Resolver to 1.3.1
     add 42c77a7  Repair Jenkins job - add a full path to workspace when run on Windows
     add 23f5c88  [MNG-6391] - Printout version of last built module in reactor build
     add e4b53d3  [MNG-6490] Maven shall not fail reporting circular dependency when the dependency is a classified secondary artifact
     add ba74b96  [MNG-6492] - Minor improvement on Array construction, conversion performance
     add 6688d76  [MNG-6497] - Upgrade guava / guice
     add 97c98ec  [maven-release-plugin] prepare release maven-3.6.0
     add 6e376d4  [maven-release-plugin] prepare for next development iteration
     add b5014bf  removed extra # in generated content
     add 0ee5dfb  Updated DOAP for Maven Core Release 3.6.0
     new 241f460  WIP - [MNG-6012] Missing profile is only notified at the end of a run  o Introduced new command line option --fail-on-missing-profiles    which will fail the build immediately.  o Print WARNING at the beginning and at the end of the output.

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   (acd9490)
            \
             N -- N -- N   refs/heads/MNG-6012-Missing-Profile-At-End (241f460)

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:
 .github/pull_request_template.md                   |  30 ++
 CONTRIBUTING.md                                    |  92 +++++
 Jenkinsfile                                        | 139 +++----
 README.md                                          |  93 ++++-
 apache-maven/pom.xml                               |  38 +-
 apache-maven/src/conf/settings.xml                 |  48 +--
 .../main/appended-resources/META-INF/LICENSE.vm    |  63 ++-
 .../main/appended-resources/licenses/CDDL-1.0.txt  | 384 +++++++++++++++++
 .../main/appended-resources/licenses/EPL-1.0.txt   | 210 ++++++++++
 .../src/main/appended-resources/licenses/MIT.txt   |  14 +
 doap_Maven.rdf                                     |  26 +-
 .../internal/DefaultVersionRangeResultFilter.java  |  45 --
 .../internal/VersionRangeResultFilter.java         |  45 --
 .../internal/DefaultVersionRangeResolverTest.java  | 455 ---------------------
 .../apache/maven/its/mng-3092/maven-metadata.xml   | 104 -----
 maven-artifact/pom.xml                             |   2 +-
 .../java/org/apache/maven/artifact/Artifact.java   |   2 +-
 .../maven/artifact/handler/ArtifactHandler.java    |  16 +
 .../apache/maven/artifact/ArtifactUtilsTest.java   |   2 +
 .../apache/maven/artifact/DefaultArtifactTest.java |   0
 .../artifact/handler/ArtifactHandlerMock.java      |   0
 maven-builder-support/pom.xml                      |   9 +-
 .../java/org/apache/maven/building/FileSource.java |   5 +-
 .../java/org/apache/maven/building/UrlSource.java  |   5 +-
 maven-compat/pom.xml                               |   2 +-
 .../java/org/apache/maven/project/ModelUtils.java  |   6 +-
 .../AbstractStringBasedModelInterpolator.java      |   2 +-
 .../maven/repository/MetadataResolutionResult.java |  27 +-
 .../repository/legacy/LegacyRepositorySystem.java  |   4 +-
 .../metadata/DefaultClasspathTransformation.java   |   2 +-
 .../AbstractArtifactComponentTestCase.java         |   5 +-
 .../project/EmptyLifecyclePluginAnalyzer.java      |  27 +-
 .../resources/inheritance-repo/t06/p0/p1/pom.xml   |   2 +
 .../test/resources/inheritance-repo/t06/p0/pom.xml |   2 +
 .../maven/project/AbstractMavenProjectTestCase.xml |   2 +-
 maven-core/pom.xml                                 |   6 +-
 .../repository/LegacyLocalRepositoryManager.java   |   4 +-
 .../metadata/io/DefaultMetadataReader.java         |   8 +-
 .../apache/maven/bridge/MavenRepositorySystem.java |  33 +-
 .../maven/classrealm/DefaultClassRealmManager.java |   8 +-
 .../internal/DefaultBeanConfigurator.java          |   6 +-
 .../org/apache/maven/execution/BuildSummary.java   |   5 +-
 .../execution/DefaultMavenExecutionRequest.java    |  10 +-
 .../DefaultMavenExecutionRequestPopulator.java     |  67 ++-
 .../maven/execution/MavenExecutionRequest.java     |   1 -
 .../apache/maven/graph/DefaultGraphBuilder.java    |  19 +-
 .../maven/graph/DefaultProjectDependencyGraph.java |   6 +-
 .../graph/FilteredProjectDependencyGraph.java      |   4 +-
 .../maven/lifecycle/LifeCyclePluginAnalyzer.java   |  13 +-
 .../apache/maven/lifecycle/LifecycleExecutor.java  |  20 +-
 .../LifecycleMappingNotFoundException.java         |  45 --
 .../maven/lifecycle/LifecyclePluginAnalyzer.java   |  59 ---
 .../internal/DefaultLifecyclePluginAnalyzer.java   |  63 ---
 .../plugin/DefaultLifecycleBindingsInjector.java   |  40 +-
 .../maven/plugin/DefaultExtensionRealmCache.java   |   4 +-
 .../maven/plugin/DefaultPluginArtifactsCache.java  |   5 +-
 .../maven/plugin/DefaultPluginRealmCache.java      |   5 +-
 .../plugin/internal/DefaultMavenPluginManager.java |  13 +-
 .../maven/project/DefaultMavenProjectHelper.java   |  13 +-
 .../project/DefaultModelBuildingListener.java      |   9 +-
 .../maven/project/DefaultProjectBuilder.java       |  22 +-
 .../project/DefaultProjectBuildingRequest.java     |   4 +-
 .../maven/project/DefaultProjectRealmCache.java    |   4 +-
 .../org/apache/maven/project/MavenProject.java     |  45 +-
 .../apache/maven/project/MavenProjectHelper.java   |   2 +-
 .../apache/maven/project/ProjectModelResolver.java |   5 +-
 .../apache/maven/project/ReactorModelCache.java    |   8 +-
 .../artifact/DefaultProjectArtifactsCache.java     |  10 +-
 .../maven/project/artifact/ProjectArtifact.java    |   7 +-
 .../apache/maven/repository/RepositorySystem.java  |  15 -
 .../org/apache/maven/settings/SettingsUtils.java   |   2 +-
 .../toolchain/DefaultToolchainManagerPrivate.java  |   2 +-
 .../toolchain/io/DefaultToolchainsReader.java      |   8 +-
 .../META-INF/plexus/artifact-handlers.xml          |  13 -
 .../main/resources/META-INF/plexus/components.xml  |   6 +-
 .../resources/META-INF/plexus/default-bindings.xml |  98 ++---
 maven-core/src/site/apt/artifact-handlers.apt      |  15 +-
 maven-core/src/site/apt/index.apt                  |   2 +-
 .../lifecycle/EmptyLifecyclePluginAnalyzer.java    |  25 +-
 .../lifecycle/LifecycleExecutorSubModulesTest.java |   4 +-
 ...rStub.java => LifeCyclePluginAnalyzerStub.java} |  30 +-
 .../lifecycle/internal/stub/MojoExecutorStub.java  |   5 +-
 .../project/AbstractMavenProjectTestCase.java      |  15 +-
 .../apache/maven/project/PomConstructionTest.java  |  81 ++--
 .../artifact/DefaultMavenMetadataCacheTest.java    |  36 +-
 .../artifact/DefaultProjectArtifactsCacheTest.java |  72 ++++
 .../maven/project/harness/PomTestWrapper.java      |   6 +-
 .../maven/repository/TestRepositorySystem.java     |  10 +-
 .../pom.xml                                        |   0
 .../maven/project/AbstractMavenProjectTestCase.xml |   2 +-
 .../apache/maven/project/PomConstructionTest.xml   |   2 +-
 maven-embedder/pom.xml                             |  51 +--
 .../org/apache/maven/cli/CLIReportingUtils.java    |   7 +-
 .../java/org/apache/maven/cli/CleanArgument.java   |   2 +-
 .../main/java/org/apache/maven/cli/MavenCli.java   |  51 ++-
 .../maven/cli/event/ExecutionEventLogger.java      |  42 +-
 .../cli/logging/impl/gossip/ColorRenderer.java     | 122 ------
 .../logging/impl/gossip/GossipConfiguration.java   |  63 ---
 .../META-INF/com.planet57.gossip/config.properties |  30 --
 .../META-INF/maven/slf4j-configuration.properties  |   1 -
 maven-model-builder/pom.xml                        |  20 +-
 .../maven/model/building/DefaultModelBuilder.java  | 241 +----------
 .../model/building/DefaultModelBuilderFactory.java |   7 +-
 .../model/building/DefaultModelBuildingResult.java |  34 +-
 .../building/DefaultModelProblemCollector.java     |   8 +-
 .../maven/model/building/ModelBuildingRequest.java |  14 +-
 .../maven/model/building/ModelBuildingResult.java  |  12 -
 .../apache/maven/model/building/ModelCacheTag.java |   2 -
 .../apache/maven/model/building/ModelProblem.java  |   2 -
 .../building/ModelProblemCollectorRequest.java     |   7 +-
 .../DefaultDependencyManagementImporter.java       |  10 -
 .../maven/model/finalization/ModelFinalizer.java   |  44 --
 .../AbstractStringBasedModelInterpolator.java      |   4 +-
 .../StringSearchModelInterpolator.java             |   3 +-
 .../apache/maven/model/io/DefaultModelReader.java  |   8 +-
 .../apache/maven/model/io/DefaultModelWriter.java  |  14 +-
 .../DefaultDependencyManagementInjector.java       |   7 +
 .../model/validation/DefaultModelValidator.java    |  22 +-
 .../resources/org/apache/maven/model/pom-4.0.0.xml |  57 ++-
 maven-model-builder/src/site/apt/index.apt         |   2 -
 .../DefaultInheritanceAssemblerTest.java           |  66 ++-
 .../activation/AbstractProfileActivatorTest.java   |   5 +-
 .../validation/DefaultModelValidatorTest.java      |  45 +-
 .../inheritance/plugin-configuration-expected.xml  |   2 +-
 .../raw-model/self-referencing-classifier.xml      |  28 +-
 maven-model/pom.xml                                |   6 +-
 .../org/apache/maven/model/merge/ModelMerger.java  |   4 +-
 maven-model/src/main/mdo/maven.mdo                 | 100 ++++-
 maven-plugin-api/pom.xml                           |   2 +-
 maven-repository-metadata/pom.xml                  |   2 +-
 maven-resolver-provider/pom.xml                    |  36 +-
 .../internal/DefaultArtifactDescriptorReader.java  |  39 +-
 .../repository/internal/DefaultModelResolver.java  |   4 +-
 .../internal/DefaultVersionRangeResolver.java      |  30 +-
 .../internal/DefaultVersionResolver.java           |  30 +-
 .../internal/MavenRepositorySystemUtils.java       |   5 +-
 .../repository/internal/RelocatedArtifact.java     |   4 +-
 maven-settings-builder/pom.xml                     |   6 +-
 .../settings/crypto/DefaultSettingsDecrypter.java  |  10 -
 .../maven/settings/io/DefaultSettingsReader.java   |   8 +-
 .../maven/settings/io/DefaultSettingsWriter.java   |  14 +-
 maven-settings/pom.xml                             |   2 +-
 maven-settings/src/main/mdo/settings.mdo           |   4 -
 maven-settings/src/site/apt/index.apt              |   2 +-
 maven-slf4j-provider/pom.xml                       |   2 +-
 pom.xml                                            |  58 ++-
 src/site/resources/images/maven-deps.png           | Bin 69010 -> 104566 bytes
 src/site/xdoc/index.xml                            |  58 +--
 src/site/xdoc/maven-deps.odg                       | Bin 18600 -> 19887 bytes
 149 files changed, 1943 insertions(+), 2446 deletions(-)
 create mode 100644 .github/pull_request_template.md
 create mode 100644 CONTRIBUTING.md
 create mode 100644 apache-maven/src/main/appended-resources/licenses/CDDL-1.0.txt
 create mode 100644 apache-maven/src/main/appended-resources/licenses/EPL-1.0.txt
 create mode 100644 apache-maven/src/main/appended-resources/licenses/MIT.txt
 delete mode 100644 maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResultFilter.java
 delete mode 100644 maven-aether-provider/src/main/java/org/apache/maven/repository/internal/VersionRangeResultFilter.java
 delete mode 100644 maven-aether-provider/src/test/java/org/apache/maven/repository/internal/DefaultVersionRangeResolverTest.java
 delete mode 100644 maven-aether-provider/src/test/resources/repo/org/apache/maven/its/mng-3092/maven-metadata.xml
 rename {maven-compat => maven-artifact}/src/test/java/org/apache/maven/artifact/ArtifactUtilsTest.java (93%)
 rename {maven-compat => maven-artifact}/src/test/java/org/apache/maven/artifact/DefaultArtifactTest.java (100%)
 rename {maven-compat => maven-artifact}/src/test/java/org/apache/maven/artifact/handler/ArtifactHandlerMock.java (100%)
 copy maven-embedder/src/main/java/org/apache/maven/cli/transfer/QuietMavenTransferListener.java => maven-core/src/main/java/org/apache/maven/lifecycle/LifeCyclePluginAnalyzer.java (76%)
 delete mode 100644 maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleMappingNotFoundException.java
 delete mode 100644 maven-core/src/main/java/org/apache/maven/lifecycle/LifecyclePluginAnalyzer.java
 rename maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/{LifecyclePluginAnalyzerStub.java => LifeCyclePluginAnalyzerStub.java} (73%)
 create mode 100644 maven-core/src/test/java/org/apache/maven/project/artifact/DefaultProjectArtifactsCacheTest.java
 rename maven-core/src/test/resources-project-builder/{baseurl-interpolation => baseuri-interpolation}/pom.xml (100%)
 delete mode 100644 maven-embedder/src/main/java/org/apache/maven/cli/logging/impl/gossip/ColorRenderer.java
 delete mode 100644 maven-embedder/src/main/java/org/apache/maven/cli/logging/impl/gossip/GossipConfiguration.java
 delete mode 100644 maven-embedder/src/main/resources/META-INF/com.planet57.gossip/config.properties
 delete mode 100644 maven-model-builder/src/main/java/org/apache/maven/model/finalization/ModelFinalizer.java
 copy maven-embedder/src/examples/simple-project/pom.xml => maven-model-builder/src/test/resources/poms/validation/raw-model/self-referencing-classifier.xml (63%)

Reply | Threaded
Open this post in threaded view
|

[maven] 01/01: WIP - [MNG-6012] Missing profile is only notified at the end of a run o Introduced new command line option --fail-on-missing-profiles which will fail the build immediately. o Print WARNING at the beginning and at the end of the output.

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

khmarbaise pushed a commit to branch MNG-6012-Missing-Profile-At-End
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 241f460086b07b59581d9868add70fb93f9546c8
Author: Karl Heinz Marbaise <[hidden email]>
AuthorDate: Sat Jul 16 13:13:54 2016 +0200

    WIP - [MNG-6012] Missing profile is only notified at the end of a run
     o Introduced new command line option --fail-on-missing-profiles
       which will fail the build immediately.
     o Print WARNING at the beginning and at the end of the output.
---
 apache-maven/pom.xml                               | 11 +++++++
 .../execution/DefaultMavenExecutionRequest.java    | 36 ++++++++++++++++++++--
 .../maven/execution/MavenExecutionRequest.java     | 36 ++++++++++++++++++++++
 .../main/java/org/apache/maven/cli/CLIManager.java |  3 ++
 .../apache/maven/monitor/logging/DefaultLog.java   |  3 ++
 5 files changed, 86 insertions(+), 3 deletions(-)

diff --git a/apache-maven/pom.xml b/apache-maven/pom.xml
index f371d94..94a1f3f 100644
--- a/apache-maven/pom.xml
+++ b/apache-maven/pom.xml
@@ -123,6 +123,17 @@ under the License.
       </plugins>
     </pluginManagement>
     <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-remote-resources-plugin</artifactId>
+          <version>1.5</version>
+          <executions>
+            <execution>
+              <id>process-resource-bundles</id>
+              <phase>U</phase>
+            </execution>
+          </executions>
+        </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
diff --git a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java
index 4a039eb..fc36b39 100644
--- a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java
+++ b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java
@@ -163,8 +163,11 @@ public class DefaultMavenExecutionRequest
 
     private Map<String, Object> data;
 
+    private FailLevel failLevel;
+
     public DefaultMavenExecutionRequest()
     {
+        this.failLevel = FailLevel.ERROR;
     }
 
     public static MavenExecutionRequest copy( MavenExecutionRequest original )
@@ -186,8 +189,8 @@ public class DefaultMavenExecutionRequest
         copy.setGlobalSettingsFile( original.getGlobalSettingsFile() );
         copy.setUserToolchainsFile( original.getUserToolchainsFile() );
         copy.setGlobalToolchainsFile( original.getGlobalToolchainsFile() );
-        copy.setBaseDirectory( ( original.getBaseDirectory() != null ) ? new File( original.getBaseDirectory() )
-                                                                       : null );
+        copy.setBaseDirectory(
+            ( original.getBaseDirectory() != null ) ? new File( original.getBaseDirectory() ) : null );
         copy.setGoals( original.getGoals() );
         copy.setRecursive( original.isRecursive() );
         copy.setPom( original.getPom() );
@@ -670,7 +673,9 @@ public class DefaultMavenExecutionRequest
         return useReactor;
     }
 
-    /** @deprecated use {@link #setPom(File)} */
+    /**
+     * @deprecated use {@link #setPom(File)}
+     */
     @Deprecated
     public MavenExecutionRequest setPomFile( String pomFilename )
     {
@@ -1283,4 +1288,29 @@ public class DefaultMavenExecutionRequest
 
         return data;
     }
+
+    @Override
+    public boolean isFailLevelWARN()
+    {
+        return this.failLevel.equals( FailLevel.WARN );
+    }
+
+    @Override
+    public boolean isFailLevelERROR()
+    {
+        return this.failLevel.equals( FailLevel.ERROR );
+    }
+
+    @Override
+    public FailLevel getFailLevel()
+    {
+        return this.failLevel;
+    }
+
+    @Override
+    public MavenExecutionRequest setFailLevel( FailLevel failLevel )
+    {
+        this.failLevel = failLevel;
+        return this;
+    }
 }
diff --git a/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java b/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java
index d006a43..1550c78 100644
--- a/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java
+++ b/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java
@@ -92,6 +92,16 @@ public interface MavenExecutionRequest
 
     String CHECKSUM_POLICY_WARN = ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN;
 
+    public enum FailLevel {
+        /**
+         * The default level on which Maven will fail the build.
+         */
+        ERROR,
+        /**
+         * In case of warnings fail the build.
+         */
+        WARN
+    }
     // ----------------------------------------------------------------------
     //
     // ----------------------------------------------------------------------
@@ -442,4 +452,30 @@ public interface MavenExecutionRequest
      * @since 3.3.0
      */
     Map<String, Object> getData();
+    
+    /**
+     * @return the current {@link FailLevel}
+     * @since 3.4.0
+     */
+    FailLevel getFailLevel();
+
+    /**
+     * Set the fail level to one of {@link FailLevel}.
+     * @param The FailLevel.
+     * @return {@link MavenExecutionRequest}
+     * @since 3.4.0
+     */
+    MavenExecutionRequest setFailLevel( FailLevel failLevel );
+
+    /**
+     * check if FailLevel is {@code WARN}.
+     * @return true if {@link FailLevel} is {@code WARN}.
+     */
+    boolean isFailLevelWARN();
+    /**
+     * check if FailLevel is {@code ERROR}.
+     * @return true if {@link FailLevel} is {@code ERROR}.
+     */
+    boolean isFailLevelERROR();
+    
 }
diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java b/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java
index a9038bf..8cdc548 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java
@@ -80,6 +80,8 @@ public class CLIManager
     public static final String FAIL_AT_END = "fae";
 
     public static final String FAIL_NEVER = "fn";
+    
+    public static final String FAIL_LEVEL = "fl";
 
     public static final String RESUME_FROM = "rf";
 
@@ -140,6 +142,7 @@ public class CLIManager
         options.addOption( OptionBuilder.withLongOpt( "threads" ).hasArg().withDescription( "Thread count, for instance 2.0C where C is core multiplied" ).create( THREADS ) );
         options.addOption( OptionBuilder.withLongOpt( "legacy-local-repository" ).withDescription( "Use Maven 2 Legacy Local Repository behaviour, ie no use of _remote.repositories. Can also be activated by using -Dmaven.legacyLocalRepo=true" ).create( LEGACY_LOCAL_REPOSITORY ) );
         options.addOption( OptionBuilder.withLongOpt( "builder" ).hasArg().withDescription( "The id of the build strategy to use" ).create( BUILDER ) );
+        options.addOption( OptionBuilder.withLongOpt( "fail-level" ).hasArg().withDescription( "Fail the build if XXXX" ).create( FAIL_LEVEL ) );
 
         // Adding this back in for compatibility with the verifier that hard codes this option.
         options.addOption( OptionBuilder.withLongOpt( "no-plugin-registry" ).withDescription( "Ineffective, only kept for backward compatibility" ).create( "npr" ) );
diff --git a/maven-plugin-api/src/main/java/org/apache/maven/monitor/logging/DefaultLog.java b/maven-plugin-api/src/main/java/org/apache/maven/monitor/logging/DefaultLog.java
index 4fee2e2..8820562 100644
--- a/maven-plugin-api/src/main/java/org/apache/maven/monitor/logging/DefaultLog.java
+++ b/maven-plugin-api/src/main/java/org/apache/maven/monitor/logging/DefaultLog.java
@@ -81,16 +81,19 @@ public class DefaultLog
     public void warn( CharSequence content )
     {
         logger.warn( toString( content ) );
+        logger.warn( " **** " );
     }
 
     public void warn( CharSequence content, Throwable error )
     {
         logger.warn( toString( content ), error );
+        logger.warn( " **** " );
     }
 
     public void warn( Throwable error )
     {
         logger.warn( "", error );
+        logger.warn( " **** " );
     }
 
     public void error( CharSequence content )