[GitHub] [maven-mvnd] gnodet commented on issue #863: mvnd is incompatible with revision,versions-maven-plugin is 2.7

2023-07-04 Thread via GitHub


gnodet commented on issue #863:
URL: https://github.com/apache/maven-mvnd/issues/863#issuecomment-1619995156

   > I attached the working log file mvn.txt with maven and failing log file 
mvnd.txt with mvnd, but i am not sure the specific step to reproduce this issue
   > 
   > [mvn.txt](https://github.com/apache/maven-mvnd/files/11947522/mvn.txt) 
[mvnd.txt](https://github.com/apache/maven-mvnd/files/11947523/mvnd.txt)
   
   Did you use the same maven version of Maven ? mvnd comes with `m39` 
supporting Maven 3.9.x and `m40` supporting Maven 4.0.0-alpha-x.  Given the 
log, it sounds like it could be a different behaviour between those.  Can you 
maybe add the `-V` flag to both run to have the complete information ?


-- 
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-unsubscr...@maven.apache.org

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



[GitHub] [maven-mvnd] gnodet commented on issue #863: mvnd is incompatible with revision,versions-maven-plugin is 2.7

2023-07-03 Thread via GitHub


gnodet commented on issue #863:
URL: https://github.com/apache/maven-mvnd/issues/863#issuecomment-1617581782

   The output indicates that the build works correctly, what are you trying to 
show exactly ?
   Please provide:
* the working log with maven
* the failing log with mvnd
* a way to reproduce the problem



-- 
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-unsubscr...@maven.apache.org

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



[GitHub] [maven-mvnd] gnodet commented on issue #863: mvnd is incompatible with revision,versions-maven-plugin is 2.7

2023-07-03 Thread via GitHub


gnodet commented on issue #863:
URL: https://github.com/apache/maven-mvnd/issues/863#issuecomment-1617415247

   However, this is not a mvnd problem, the same happen with maven 3.9.2:
   ```
   ➜  mavend-test git:(master) ✗ ~/.sdkman/candidates/maven/3.9.2/bin/mvn -V 
install
   Apache Maven 3.9.2 (c9616018c7a021c1c39be70fb2843d6f5f9b8a1c)
   Maven home: /Users/gnodet/.sdkman/candidates/maven/3.9.2
   Java version: 1.8.0_362, vendor: BellSoft, runtime: 
/Users/gnodet/.sdkman/candidates/java/8.0.362-librca/jre
   Default locale: en_FR, platform encoding: UTF-8
   OS name: "mac os x", version: "13.4.1", arch: "aarch64", family: "mac"
   [INFO] Scanning for projects...
   [ERROR] [ERROR] Some problems were encountered while processing the POMs:
   [FATAL] Non-resolvable parent POM for org.example:module-1:${revision}: The 
following artifacts could not be resolved: 
org.example:mavend-test:pom:${revision} (absent): 
org.example:mavend-test:pom:${revision} was not found in 
https://repo.maven.apache.org/maven2 during a previous attempt. This failure 
was cached in the local repository and resolution is not reattempted until the 
update interval of central has elapsed or updates are forced and 
'parent.relativePath' points at wrong local POM @ line 5, column 13
@ 
   [ERROR] The build could not read 1 project -> [Help 1]
   [ERROR]   
   [ERROR]   The project org.example:module-1:${revision} 
(/Users/gnodet/Downloads/mavend-test/module-1/pom.xml) has 1 error
   [ERROR] Non-resolvable parent POM for org.example:module-1:${revision}: 
The following artifacts could not be resolved: 
org.example:mavend-test:pom:${revision} (absent): 
org.example:mavend-test:pom:${revision} was not found in 
https://repo.maven.apache.org/maven2 during a previous attempt. This failure 
was cached in the local repository and resolution is not reattempted until the 
update interval of central has elapsed or updates are forced and 
'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2]
   [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 full debug logging.
   [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/ProjectBuildingException
   [ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
   ```


-- 
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-unsubscr...@maven.apache.org

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



[GitHub] [maven-mvnd] gnodet commented on issue #863: mvnd is incompatible with revision,versions-maven-plugin is 2.7

2023-07-03 Thread via GitHub


gnodet commented on issue #863:
URL: https://github.com/apache/maven-mvnd/issues/863#issuecomment-1617410972

   And
   ```
   ➜  mavenTest 
~/work/git/mvnd/dist-m39/target/maven-mvnd-1.0-m7-SNAPSHOT-m39-darwin-aarch64/bin/mvnd
 -V install   
   Apache Maven Daemon (mvnd) 1.0-m7-SNAPSHOT darwin-aarch64 native client 
(e3a4bf86bfabfbe2147dcf5c77cdc6fc0a3fcfea)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty 
org.jline.terminal.impl.jansi.osx.OsXNativePty
   Apache Maven 3.9.3 (21122926829f1ead511c958d89bd2f672198ae9f)
   Maven home: 
/Users/gnodet/work/git/mvnd/dist-m39/target/maven-mvnd-1.0-m7-SNAPSHOT-m39-darwin-aarch64/mvn
   Java version: 1.8.0_362, vendor: BellSoft, runtime: 
/Users/gnodet/.sdkman/candidates/java/8.0.362-librca/jre
   Default locale: en_FR, platform encoding: UTF-8
   OS name: "mac os x", version: "13.4.1", arch: "aarch64", family: "mac"
   [INFO] Processing build on daemon abdbdc9a
   [INFO] Scanning for projects...
   [WARN] 
   [WARN] Some problems were encountered while building the effective model for 
test:mavenTest:jar:1.0-SNAPSHOT
   [WARN] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found 
duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ 
line 54, column 12
   [WARN] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found 
duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ 
line 89, column 12
   [WARN] 
   [WARN] It is highly recommended to fix these problems because they threaten 
the stability of your build.
   [WARN] 
   [WARN] For this reason, future Maven versions might no longer support 
building such malformed projects.
   [WARN] 
   [INFO] BuildTimeEventSpy is registered.
   [INFO] 
   [INFO] Using the SmartBuilder implementation with a thread count of 5
   [INFO] 
   [INFO] ---< test:mavenTest 
>---
   [INFO] Building mavenTest 1.0-SNAPSHOT
   [INFO]   from pom.xml
   [INFO] [ jar 
]-
   [INFO] 
   [INFO] --- antrun:3.1.0:run (First) @ mavenTest ---
   [WARN]  Parameter 'tasks' is deprecated: Use {@link #target} instead. For 
version 3.0.0, this parameter is only defined to break the build if
   you use it!
   [INFO] 

   [INFO] BUILD FAILURE
   [INFO] 

   [INFO] Total time:  0.252 s (Wall Clock)
   [INFO] Finished at: 2023-07-03T08:00:04+02:00
   [INFO] 

   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (First) on project 
mavenTest: You are using 'tasks' which has been removed from the 
maven-antrun-plugin. Please use 'target' and refer to the >>Major Version 
Upgrade to version 3.0.0<< on the plugin site. -> [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 full debug logging.
   [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/MojoFailureException
   ```
   
   and
   
   ```
   ➜  mavenTest 
~/work/git/mvnd/dist-m40/target/maven-mvnd-1.0-m7-SNAPSHOT-m40-darwin-aarch64/bin/mvnd
 -V clean install 
   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.
   Apache Maven Daemon (mvnd) 1.0-m7-SNAPSHOT darwin-aarch64 native client 
(e3a4bf86bfabfbe2147dcf5c77cdc6fc0a3fcfea)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty 
org.jline.terminal.impl.jansi.osx.OsXNativePty
   Apache Maven 4.0.0-alpha-7 (bf699a388cc04b8e4088226ba09a403b68de6b7b)
   Maven home: 
/Users/gnodet/work/git/mvnd/dist-m40/target/maven-mvnd-1.0-m7-SNAPSHOT-m40-darwin-aarch64/mvn
   Java version: 1.8.0_362, vendor: BellSoft, runtime: 
/Users/gnodet/.sdkman/candidates/java/8.0.362-librca/jre
   Default locale: en_FR, platform encoding: UTF-8
   OS name: "mac os x", version: "13.4.1", arch: "aarch64", family: "mac"
   [INFO] Processing build on daemon 3c7d035f
   [INFO] Scanning for projects...
   [ERROR] Some problems were encountered while processing the POMs
   [ERROR] The build could not read 1 project -> [Help 1]
   [ERROR]   
   [ERROR]   The project test:mavenTest:1.0-SNAPSHOT 
(/Users/gnodet/Downloads/mavenTest/pom.xml) has 2 errors
   [ERROR] 'build.plugins.plugin.(groupId:artifactId)' must be unique but 
found duplicate declaration of plugin 
org.apache.maven.plugins:maven-antrun-plugin @ line 54, column 12
   [ERROR] 'build.plugins.plugin.(groupId:artifactId)' must be unique but 
found duplicate declaration of plugin 

[GitHub] [maven-mvnd] gnodet commented on issue #863: mvnd is incompatible with revision,versions-maven-plugin is 2.7

2023-07-02 Thread via GitHub


gnodet commented on issue #863:
URL: https://github.com/apache/maven-mvnd/issues/863#issuecomment-1617407566

   Here's the output:
   ```
   ➜  mavenTest ~/.sdkman/candidates/maven/1.0-m6-m39-mvnd/bin/mvnd -V clean 
compile
   Apache Maven Daemon (mvnd) 1.0-m6 darwin-aarch64 native client 
(47d4c6b9c399079d91312bb8ae35d1d76e7fd97a)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty 
org.jline.terminal.impl.jansi.osx.OsXNativePty
   [INFO] Processing build on daemon 293e58cf
   [INFO] Scanning for projects...
   [WARN] 
   [WARN] Some problems were encountered while building the effective model for 
test:mavenTest:jar:1.0-SNAPSHOT
   [WARN] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found 
duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ 
line 54, column 12
   [WARN] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found 
duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ 
line 89, column 12
   [WARN] 
   [WARN] It is highly recommended to fix these problems because they threaten 
the stability of your build.
   [WARN] 
   [WARN] For this reason, future Maven versions might no longer support 
building such malformed projects.
   [WARN] 
   [INFO] BuildTimeEventSpy is registered.
   [INFO] 
   [INFO] Using the SmartBuilder implementation with a thread count of 5
   [INFO] 
   [INFO] ---< test:mavenTest 
>---
   [INFO] Building mavenTest 1.0-SNAPSHOT
   [INFO]   from pom.xml
   [INFO] [ jar 
]-
   [INFO] 
   [INFO] --- clean:3.2.0:clean (default-clean) @ mavenTest ---
   [INFO] Deleting /Users/gnodet/Downloads/mavenTest/target
   [INFO] 
   [INFO] --- antrun:1.3:run (First) @ mavenTest ---
   [INFO] Executing tasks
   [INFO] [stdout]  [echo] execution First
   [INFO] Executed tasks
   [INFO] 
   [INFO] --- antrun:1.3:run (file-creation) @ mavenTest ---
   [INFO] Executing tasks
   [INFO] [stdout]  [echo] Dummy Directory Creation
   [INFO] [stdout] [mkdir] Created dir: 
/Users/gnodet/Downloads/mavenTest/target/dummyDirectory
   [INFO] Executed tasks
   [INFO] 
   [INFO] --- antrun:1.3:run (Last) @ mavenTest ---
   [INFO] Executing tasks
   [INFO] [stdout]  [echo] execution Last
   [INFO] Executed tasks
   [INFO] 
   [INFO] --- compiler:2.0.2:compile (default) @ mavenTest ---
   [INFO] Compiling 1 source file to 
/Users/gnodet/Downloads/mavenTest/target/classes
   [INFO] 
   [INFO] --- assembly:2.2-beta-5:single (default) @ mavenTest ---
   [WARN] Parameter 'localRepository' is deprecated core expression; Avoid use 
of ArtifactRepository type. If you need access to local repository, switch to 
'${repositorySystemSession}' expression and get LRM from it instead.
   [INFO] Reading assembly descriptor: src/main/assembly/descriptor.xml
   [INFO] Building zip: 
/Users/gnodet/Downloads/mavenTest/target/mavenTest-1.0-SNAPSHOT-bin.zip
   [INFO] 
   [INFO] --- resources:3.3.0:resources (default-resources) @ mavenTest ---
   [WARN] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
   [INFO] skip non existing resourceDirectory 
/Users/gnodet/Downloads/mavenTest/src/main/resources
   [INFO] 
   [INFO] --- compiler:2.0.2:compile (default-compile) @ mavenTest ---
   [INFO] Nothing to compile - all classes are up to date
   [INFO] 

   [INFO] Average project wall time: 0.00s
   [INFO] Total concurrency: 20%
   [INFO] Bottleneck projects that decrease concurrency: (run build with 
-Dsmartbuilder.profiling=true for further details)
   [INFO]   - test:mavenTest:1.0-SNAPSHOT
   [INFO] 

   [INFO] BUILD SUCCESS
   [INFO] 

   [INFO] Total time:  0.245 s (Wall Clock)
   [INFO] Finished at: 2023-07-03T07:55:52+02:00
   [INFO] 

   ```
   
   and
   
   ```
   ➜  mavenTest ~/.sdkman/candidates/maven/1.0-m6-m40-mvnd/bin/mvnd -V clean 
compile
   Apache Maven Daemon (mvnd) 1.0-m6 darwin-aarch64 native client 
(47d4c6b9c399079d91312bb8ae35d1d76e7fd97a)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty 
org.jline.terminal.impl.jansi.osx.OsXNativePty
   [INFO] Processing build on daemon 731b167d
   [INFO] Scanning for projects...
   [ERROR] Some problems were encountered while processing the POMs
   [ERROR] The build could not read 1 project -> [Help 1]
   [ERROR]   
   [ERROR]   The project test:mavenTest:1.0-SNAPSHOT 
(/Users/gnodet/Downloads/mavenTest/pom.xml) has 2 errors
   [ERROR] 'build.plugins.plugin.(groupId:artifactId)' must be unique but 
found duplicate declaration of plugin 
org.apache.maven.plugins:maven-antrun-plugin @ line 54, column