You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bukama (via GitHub)" <gi...@apache.org> on 2026/06/06 10:23:45 UTC

Re: [PR] enable build with Maven 4 [maven-deploy-plugin]

Bukama commented on PR #655:
URL: https://github.com/apache/maven-deploy-plugin/pull/655#issuecomment-4638239463

   
   Looking at `deploy-attached-sources` and `deploy-default-packaging`
   
   
   Logs are from `deploy-attached-sources`
   
   Packaging is right into local repository
   
   ```
   [DEBUG] isUp2date: false (Destination D:\Github\Maven\maven-deploy-plugin\target\it\deploy-attached-sources\target\test-1.0-SNAPSHOT.jar not found.)
   [INFO] Building jar: D:\Github\Maven\maven-deploy-plugin\target\it\deploy-attached-sources\target\test-1.0-SNAPSHOT.jar
   ```
   
   
   But deploying does not pick the project path information when using 4.0.0-SNAPSHOT
   ```
   [INFO] --- deploy:3.1.5-SNAPSHOT:deploy-file (default-cli) @ test ---
   [DEBUG] Collector skip mode enabled: versionless (key function GACE)
   [DEBUG] Reading file model from org.codehaus.plexus:plexus-xml:3.0.1
   [DEBUG] Reading file model from org.codehaus.plexus:plexus-utils:4.0.2
   [DEBUG] Reading file model from org.codehaus.plexus:plexus:18
   [DEBUG] Reading file model from org.apache.maven.resolver:maven-resolver-util:1.9.27
   [DEBUG] Reading file model from org.junit:junit-bom:5.10.2
   [DEBUG] Reading file model from org.apache.maven.resolver:maven-resolver:1.9.27
   [DEBUG] Reading file model from org.apache.maven.resolver:maven-resolver-api:1.9.27
   [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=332800, ConflictMarker.markTime=56900, ConflictMarker.nodeCount=5, ConflictIdSorter.graphTime=184300, ConflictIdSorter.topsortTime=169300, ConflictIdSorter.conflictIdCount=5, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2401000, ConflictResolver.conflictItemCount=5, BfDependencyCollector.collectTime=49614500, BfDependencyCollector.transformTime=5093600}
   [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:jar:3.1.5-SNAPSHOT
   [DEBUG] +- org.codehaus.plexus:plexus-utils:jar:4.0.2 [compile]
   [DEBUG] +- org.codehaus.plexus:plexus-xml:jar:3.0.1 [compile]
   [DEBUG] \- org.apache.maven.resolver:maven-resolver-util:jar:1.9.27 [compile]
   [DEBUG]    \- org.apache.maven.resolver:maven-resolver-api:jar:1.9.27 [compile]
   [DEBUG]   Excluded: org.apache.maven.resolver:maven-resolver-util:jar:1.9.27
   [DEBUG]   Excluded: org.apache.maven.resolver:maven-resolver-api:jar:1.9.27
   [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT
   [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT
   [DEBUG]   Imported:  < maven.api
   [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT
   [DEBUG]   Included: org.apache.maven.plugins:maven-deploy-plugin:jar:3.1.5-SNAPSHOT
   [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:4.0.2
   [DEBUG]   Included: org.codehaus.plexus:plexus-xml:jar:3.0.1
   [DEBUG] Loading mojo org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT:deploy-file from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@5bc2b487]
   [DEBUG] Configuring mojo execution 'org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT:deploy-file:default-cli' with basic configurator -->
   [DEBUG]   (f) file = D:\target\-.jar
   [DEBUG]   (f) generatePom = true
   [DEBUG]   (f) javadoc = D:\target\--javadoc.jar
   [DEBUG]   (f) offline = false
   [DEBUG]   (f) pomFile = D:\pom.xml
   [DEBUG]   (f) repositoryId = remote-repository
   [DEBUG]   (f) retryFailedDeploymentCount = 1
   [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@526f6427
   [DEBUG]   (f) skip = false
   [DEBUG]   (f) sources = D:\target\--sources.jar
   [DEBUG]   (f) url = file:///target/repo
   [DEBUG] -- end configuration --
   ```
   
   and therefor fails.
   
   With Maven 3.9.16 the configuration is correct
   
   ```
   [INFO] --- deploy:3.1.5-SNAPSHOT:deploy-file (default-cli) @ test ---
   [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=417500, ConflictMarker.markTime=50900, ConflictMarker.nodeCount=5, ConflictIdSorter.graphTime=224200, ConflictIdSorter.topsortTime=237100, ConflictIdSorter.conflictIdCount=5, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=2037500, ConflictResolver.conflictItemCount=5, DfDependencyCollector.collectTime=54384700, DfDependencyCollector.transformTime=4312800}
   [DEBUG] org.apache.maven.plugins:maven-deploy-plugin:jar:3.1.5-SNAPSHOT
   [DEBUG]    org.codehaus.plexus:plexus-utils:jar:4.0.2:compile
   [DEBUG]    org.codehaus.plexus:plexus-xml:jar:3.0.1:compile
   [DEBUG]    org.apache.maven.resolver:maven-resolver-util:jar:1.9.27:compile
   [DEBUG]       org.apache.maven.resolver:maven-resolver-api:jar:1.9.27:compile
   [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT
   [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT
   [DEBUG]   Imported:  < maven.api
   [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT
   [DEBUG]   Included: org.apache.maven.plugins:maven-deploy-plugin:jar:3.1.5-SNAPSHOT
   [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:4.0.2
   [DEBUG]   Included: org.codehaus.plexus:plexus-xml:jar:3.0.1
   [DEBUG] Loading mojo org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT:deploy-file from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@5bc2b487]
   [DEBUG] Configuring mojo execution 'org.apache.maven.plugins:maven-deploy-plugin:3.1.5-SNAPSHOT:deploy-file:default-cli' with basic configurator -->
   [DEBUG]   (f) file = D:\Github\Maven\maven-deploy-plugin\target\it\deploy-attached-sources\target\test-1.0-SNAPSHOT.jar
   [DEBUG]   (f) generatePom = true
   [DEBUG]   (f) javadoc = D:\Github\Maven\maven-deploy-plugin\target\it\deploy-attached-sources\target\test-1.0-SNAPSHOT-javadoc.jar
   [DEBUG]   (f) offline = false
   [DEBUG]   (f) pomFile = D:\Github\Maven\maven-deploy-plugin\target\it\deploy-attached-sources\pom.xml
   [DEBUG]   (f) repositoryId = remote-repository
   [DEBUG]   (f) retryFailedDeploymentCount = 1
   [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@1416cf9f
   [DEBUG]   (f) skip = false
   [DEBUG]   (f) sources = D:\Github\Maven\maven-deploy-plugin\target\it\deploy-attached-sources\target\test-1.0-SNAPSHOT-sources.jar
   [DEBUG]   (f) url = file://D:\Github\Maven\maven-deploy-plugin\target\it\deploy-attached-sources/target/repo
   ```


-- 
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