You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Filipe Roque (Jira)" <ji...@apache.org> on 2024/10/20 10:10:00 UTC

[jira] [Created] (MNG-8333) duplicate-finder-maven starts to fail with 4.0.0-beta-5

Filipe Roque created MNG-8333:
---------------------------------

             Summary: duplicate-finder-maven starts to fail with 4.0.0-beta-5
                 Key: MNG-8333
                 URL: https://issues.apache.org/jira/browse/MNG-8333
             Project: Maven
          Issue Type: Bug
    Affects Versions: 4.0.0-beta-5
            Reporter: Filipe Roque


 
*pom.xml*
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>guava-duplicate-finder-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    
    <dependencies>
        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-test</artifactId>
            <version>5.7.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project> 
{code}
Apache Maven 4.0.0-beta-4 (697c543b4e3bbec1b99e9d4d1ee8e0302e748f09) works:
{code:bash}
❯ JAVA_HOME=/usr/lib/jvm/java-1.21.0-openjdk-amd64 /opt/maven/apache-maven-4.0.0-beta-4/bin/mvn -q org.basepom.maven:duplicate-finder-maven-plugin:2.0.1:check -Dduplicate-finder.failBuildInCaseOfDifferentContentConflict
{code}
 
Apache Maven 4.0.0-beta-5 (6e78fcf6f5e76422c0eb358cd11f0c231ecafbad) fails:
{code:bash}
❯ JAVA_HOME=/usr/lib/jvm/java-1.21.0-openjdk-amd64 /home/froque/Downloads/apache-maven-4.0.0-beta-5-bin/apache-maven-4.0.0-beta-5/bin/mvn org.basepom.maven:duplicate-finder-maven-plugin:2.0.1:check -Dduplicate-finder.failBuildInCaseOfDifferentContentConflict  
[WARNING] Unable to find the root directory. Create a .mvn directory in the root directory or add the root="true" attribute on the root project's model to identify it.
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------------------< org.example:guava-duplicate-finder-maven-plugin >------------------------------------
[INFO] Building guava-duplicate-finder-maven-plugin 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] ---------------------------------------------------------[ jar ]----------------------------------------------------------
[INFO] 
[INFO] --- duplicate-finder:2.0.1:check (default-cli) @ guava-duplicate-finder-maven-plugin ---
[INFO] Checking compile classpath
[INFO] Checking runtime classpath
[INFO] Checking test classpath
[WARNING] Found duplicate and different classes in [com.google.guava:guava:32.0.0-jre, com.google.guava:listenablefuture:1.0]:
[WARNING]   com.google.common.util.concurrent.ListenableFuture
[WARNING] Found duplicate classes/resources in test classpath.
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Total time:  0.888 s
[INFO] Finished at: 2024-10-20T11:01:27+01:00
[INFO] --------------------------------------------------------------------------------------------------------------------------
[ERROR] Failed to execute goal org.basepom.maven:duplicate-finder-maven-plugin:2.0.1:check (default-cli) on project guava-duplicate-finder-maven-plugin: Found duplicate classes/resources! -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{code}
I do not understand how  listenablefuture :1.0 entered the picture.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)