You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2017/03/05 18:37:04 UTC

[1/4] maven git commit: [MNG-6179] Remove WARNING about prerequisites usage [Forced Update!]

Repository: maven
Updated Branches:
  refs/heads/MNG-6170 16f69fcb9 -> 28bb897a1 (forced update)


[MNG-6179] Remove WARNING about prerequisites usage


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/748551d0
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/748551d0
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/748551d0

Branch: refs/heads/MNG-6170
Commit: 748551d0274cc2eebfb2f976536d18277e564584
Parents: 529e8a6
Author: Karl Heinz Marbaise <kh...@apache.org>
Authored: Fri Feb 24 22:49:21 2017 +0100
Committer: Karl Heinz Marbaise <kh...@apache.org>
Committed: Wed Mar 1 20:05:45 2017 +0100

----------------------------------------------------------------------
 pom.xml | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/748551d0/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index a085ffa..ba06feb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,13 +149,6 @@ under the License.
     </contributor>
   </contributors>
 
-  <!-- This marked as deprecated for Maven 3.X. This is checked by maven-enforcer-plugin -->
-  <!--  https://issues.apache.org/jira/browse/MNG-4840 -->
-  <!--  https://issues.apache.org/jira/browse/MNG-5297 -->
-  <prerequisites>
-    <maven>${maven.version}</maven>
-  </prerequisites>
-
   <!--bootstrap-start-comment-->
   <dependencyManagement>
     <!--bootstrap-end-comment-->


[3/4] maven git commit: Merge branch 'MNG-6181'

Posted by kh...@apache.org.
Merge branch 'MNG-6181'


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/862c84a5
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/862c84a5
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/862c84a5

Branch: refs/heads/MNG-6170
Commit: 862c84a52b9ae9b88bc9a6cfa256852532d02a9a
Parents: 748551d e0da20a
Author: rfscholte <rf...@apache.org>
Authored: Sun Mar 5 17:32:00 2017 +0100
Committer: rfscholte <rf...@apache.org>
Committed: Sun Mar 5 17:32:00 2017 +0100

----------------------------------------------------------------------
 apache-maven/src/conf/logging/simplelogger.properties | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[4/4] maven git commit: [MNG-6170] NPE in cases using Multithreaded -T X versions:set -DnewVersion=1.0-SNAPSHOT o In some cases the code will return a null which should not be scheduled.

Posted by kh...@apache.org.
[MNG-6170] NPE in cases using Multithreaded -T X versions:set
-DnewVersion=1.0-SNAPSHOT
 o In some cases the code will return a null which should
   not be scheduled.


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/28bb897a
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/28bb897a
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/28bb897a

Branch: refs/heads/MNG-6170
Commit: 28bb897a1edbcf94e4b17a1b98880171f611bc59
Parents: 862c84a
Author: Karl Heinz Marbaise <kh...@apache.org>
Authored: Sun Feb 12 12:59:25 2017 +0100
Committer: Karl Heinz Marbaise <kh...@apache.org>
Committed: Sun Mar 5 19:36:50 2017 +0100

----------------------------------------------------------------------
 .../multithreaded/MultiThreadedBuilder.java     | 29 +++++++++++---------
 1 file changed, 16 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/28bb897a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
index f0fa2ac..880410e 100644
--- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
+++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/MultiThreadedBuilder.java
@@ -51,8 +51,7 @@ import org.codehaus.plexus.logging.Logger;
  * will always result in a sequential build, regardless of the thread count.
  *
  * @since 3.0
- * @author Kristian Rosenvold
- *         Builds one or more lifecycles for a full module
+ * @author Kristian Rosenvold Builds one or more lifecycles for a full module
  *         <p/>
  *         NOTE: This class is not part of any public api and can be changed or deleted without prior notice.
  */
@@ -67,7 +66,6 @@ public class MultiThreadedBuilder
     @Requirement
     private LifecycleModuleBuilder lifecycleModuleBuilder;
 
-
     public MultiThreadedBuilder()
     {
     }
@@ -142,15 +140,20 @@ public class MultiThreadedBuilder
                 {
                     break;
                 }
-                final List<MavenProject> newItemsThatCanBeBuilt =
-                    analyzer.markAsFinished( projectBuild.getProject() );
-                for ( MavenProject mavenProject : newItemsThatCanBeBuilt )
+
+                // MNG-6170: Only schedule other modules from reactor if we have more modules to build than one. 
+                if ( analyzer.getNumberOfBuilds() > 1 )
                 {
-                    ProjectSegment scheduledDependent = projectBuildList.get( mavenProject );
-                    logger.debug( "Scheduling: " + scheduledDependent );
-                    Callable<ProjectSegment> cb =
-                        createBuildCallable( rootSession, scheduledDependent, reactorContext, taskSegment, muxer );
-                    service.submit( cb );
+                    final List<MavenProject> newItemsThatCanBeBuilt =
+                        analyzer.markAsFinished( projectBuild.getProject() );
+                    for ( MavenProject mavenProject : newItemsThatCanBeBuilt )
+                    {
+                        ProjectSegment scheduledDependent = projectBuildList.get( mavenProject );
+                        logger.debug( "Scheduling: " + scheduledDependent );
+                        Callable<ProjectSegment> cb =
+                            createBuildCallable( rootSession, scheduledDependent, reactorContext, taskSegment, muxer );
+                        service.submit( cb );
+                    }
                 }
             }
             catch ( InterruptedException e )
@@ -160,13 +163,13 @@ public class MultiThreadedBuilder
             }
             catch ( ExecutionException e )
             {
-                // TODO MNG-5766 changes likely made this redundant 
+                // TODO MNG-5766 changes likely made this redundant
                 rootSession.getResult().addException( e );
                 break;
             }
         }
 
-        // cancel outstanding builds (if any)  - this can happen if an exception is thrown in above block
+        // cancel outstanding builds (if any) - this can happen if an exception is thrown in above block
 
         Future<ProjectSegment> unprocessed;
         while ( ( unprocessed = service.poll() ) != null )


[2/4] maven git commit: [MNG-6181] HttpClient produces a lot of noise at debug loglevel

Posted by kh...@apache.org.
[MNG-6181] HttpClient produces a lot of noise at debug loglevel

Turn off httpclient logging by default, which restores logging from previous Maven versions


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/e0da20a1
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/e0da20a1
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/e0da20a1

Branch: refs/heads/MNG-6170
Commit: e0da20a1f801aeda0cd74495834c637c3a207478
Parents: 0b9a30f
Author: rfscholte <rf...@apache.org>
Authored: Sun Mar 5 15:30:27 2017 +0100
Committer: rfscholte <rf...@apache.org>
Committed: Sun Mar 5 15:30:27 2017 +0100

----------------------------------------------------------------------
 apache-maven/src/conf/logging/simplelogger.properties | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/e0da20a1/apache-maven/src/conf/logging/simplelogger.properties
----------------------------------------------------------------------
diff --git a/apache-maven/src/conf/logging/simplelogger.properties b/apache-maven/src/conf/logging/simplelogger.properties
index 859ff72..eb3d049 100644
--- a/apache-maven/src/conf/logging/simplelogger.properties
+++ b/apache-maven/src/conf/logging/simplelogger.properties
@@ -22,4 +22,10 @@ org.slf4j.simpleLogger.showLogName=false
 org.slf4j.simpleLogger.logFile=System.out
 org.slf4j.simpleLogger.levelInBrackets=true
 org.slf4j.simpleLogger.log.Sisu=info
-org.slf4j.simpleLogger.warnLevelString=WARNING
\ No newline at end of file
+org.slf4j.simpleLogger.warnLevelString=WARNING
+
+# MNG-6181: mvn -X also prints all debug logging from http-client
+# Be aware that the shaded packages are used
+# org.apache.http -> org.apache.maven.wagon.providers.http.httpclient
+org.slf4j.simpleLogger.log.org.apache.maven.wagon.providers.http.httpclient=off
+org.slf4j.simpleLogger.log.org.apache.maven.wagon.providers.http.httpclient.wire=off
\ No newline at end of file