Skip to content

mvnup 4.0.0-rc-5 adds strange <pluginManagement> section that breaks the build #11606

@rschmitt

Description

@rschmitt

Affected version

4.0.0-rc-5

Bug description

I ran mvnup apply --model-version 4.1.0 on apache/httpcomponents-client@ee6ebee and it added the following to the root pom.xml for no clear reason:

   <build>
     <defaultGoal>clean verify</defaultGoal>
+
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-remote-resources-plugin</artifactId>
+          <version>3.0.0</version>
+        </plugin>
+      
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-shade-plugin</artifactId>
+          <version>3.5.0</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
     <plugins>
       <plugin>

The resulting build seems to just hang forever. Deleting the quoted section (or, more specifically, the maven-remote-resources-plugin) causes it to succeed.

Incidentally, I'm not a fan of the trailing whitespace inserted by the tool. Other than that, I can't really complain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions