You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "froque (via GitHub)" <gi...@apache.org> on 2025/02/17 16:03:43 UTC

[I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

froque opened a new issue, #104:
URL: https://github.com/apache/maven-clean-plugin/issues/104

   ### Affected version
   
   4.0.0-beta-1
   
   ### Bug description
   
   **pom.xml**
   ```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>maven-clean-4-demo</artifactId>
       <version>1.0-SNAPSHOT</version>
       <packaging>pom</packaging>
       <modules>
           <module>module1</module>
           <module>module2</module>
       </modules>
   
       <properties>
           <maven.compiler.source>17</maven.compiler.source>
           <maven.compiler.target>17</maven.compiler.target>
           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       </properties>
   
   </project>
   ```
   
   **module1/pom.xml**
   ```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>
       <parent>
           <groupId>org.example</groupId>
           <artifactId>maven-clean-4-demo</artifactId>
           <version>1.0-SNAPSHOT</version>
       </parent>
   
       <artifactId>module1</artifactId>
   
       <properties>
           <maven.compiler.source>17</maven.compiler.source>
           <maven.compiler.target>17</maven.compiler.target>
           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       </properties>
   
   </project>
   ```
   
   **module2/pom.xml**
   ```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>
       <parent>
           <groupId>org.example</groupId>
           <artifactId>maven-clean-4-demo</artifactId>
           <version>1.0-SNAPSHOT</version>
       </parent>
   
       <artifactId>module2</artifactId>
   
       <properties>
           <maven.compiler.source>17</maven.compiler.source>
           <maven.compiler.target>17</maven.compiler.target>
           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       </properties>
   
       <dependencies>
           <dependency>
               <groupId>org.example</groupId>
               <artifactId>module1</artifactId>
               <version>1.0-SNAPSHOT</version>
           </dependency>
       </dependencies>
   
   </project>
   ```
   
   ```
   ❯ /opt/maven/apache-maven-4.0.0-rc-2/bin/mvn -q org.apache.maven.plugins:maven-clean-plugin:3.4.0:clean
   ```
   
   ```
   ❯ /opt/maven/apache-maven-4.0.0-rc-2/bin/mvn -q org.apache.maven.plugins:maven-clean-plugin:4.0.0-beta-1:clean  
   [ERROR] Failed to execute goal on project module2: Could not resolve dependencies for project org.example:module2:jar:1.0-SNAPSHOT
   [ERROR] dependency: org.example:module1:jar:1.0-SNAPSHOT (compile)
   [ERROR] : The following artifacts could not be resolved: org.example:module1:jar:1.0-SNAPSHOT (absent)
   [ERROR] -> [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/DependencyResolutionException
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the command
   [ERROR]   mvn [args] -r
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on issue #104:
URL: https://github.com/apache/maven-clean-plugin/issues/104#issuecomment-2681022179

   It should be fixed by https://github.com/apache/maven/pull/2124


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on issue #104:
URL: https://github.com/apache/maven-clean-plugin/issues/104#issuecomment-2678303848

   The problem is the `maven-plugin-plugin` which generates a mojo descriptor with no `dependencyResolution`, but the mojo descriptor uses a default value of `runtime`.
   See https://the-asf.slack.com/archives/C7Q9JB404/p1739812351694469


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #104:
URL: https://github.com/apache/maven-clean-plugin/issues/104#issuecomment-2663690374

   Test in #105 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #104:
URL: https://github.com/apache/maven-clean-plugin/issues/104#issuecomment-2678733280

   https://github.com/apache/maven/pull/1559


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #104:
URL: https://github.com/apache/maven-clean-plugin/issues/104#issuecomment-2663635909

   I confirm .... 
   
   What I see in logs:
   
   for 3.4.0
   
   ```
   [DEBUG] Dependencies (collect): []
   [DEBUG] Dependencies (resolve): []
   ```
   
   and for 
   ```
   [DEBUG] Dependencies (collect): []
   [DEBUG] Dependencies (resolve): [runtime]
   ```
   
   I also put plugin version in project `pluginManagement`, tested with phase `clean`
   
   @gnodet @cstamas can you look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed issue #104: 4.0.0-beta-1 fails in multi module projects
URL: https://github.com/apache/maven-clean-plugin/issues/104


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 4.0.0-beta-1 fails in multi module projects [maven-clean-plugin]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #104:
URL: https://github.com/apache/maven-clean-plugin/issues/104#issuecomment-2678787605

   https://github.com/apache/maven-plugin-tools/pull/295


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org