You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "tmuerell (via GitHub)" <gi...@apache.org> on 2023/04/18 14:36:05 UTC

[GitHub] [maven-mvnd] tmuerell opened a new issue, #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

tmuerell opened a new issue, #840:
URL: https://github.com/apache/maven-mvnd/issues/840

   Hello and ❤️ to you for a very great piece of software!
   
   We are using it since a few days and it really works well for our use case, but we are discovering an issue which obviously seems to have issues resolving dependencies with variables:
   
   ```
   Failed to collect dependencies at at.compax.vn.interfaces:shop-interface:jar:49.0.0-SNAPSHOT -> at.compax.vn:commons:jar:49.0.0-SNAPSHOT -> com.mockrunner:mockrunner-all:jar:1.1.2 -> com.mockrunner:mockrunner-tag:jar:1.1.2 -> org.apache.struts:struts-taglib:jar:1.3.10 -> org.apache.struts:struts-core:jar:${pom.version}: Failed to read artifact descriptor for org.apache.struts:struts-core:jar:${pom.version}: The following artifacts could not be resolved: org.apache.struts:struts-core:pom:${pom.version} (absent): Could not transfer artifact org.apache.struts:struts-core:pom:${pom.version} from/to nexus
   ```
   
   We have already investigated that further and we have realized that this is happening where the pom.xml is not specifying a version, but inherit it from a parent pom:
   
   ```xml
   <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/maven-v4_0_0.xsd">
     <parent>
       <groupId>org.apache.struts</groupId>
       <artifactId>struts-parent</artifactId>
       <version>1.3.10</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.apache.struts</groupId>
     <artifactId>struts-taglib</artifactId>
     <packaging>jar</packaging>
     <name>Struts Taglib</name>
     <url>http://struts.apache.org</url>
   ```
   
   Is this a known issue or can this be resolved somehow?
   
   Thanks and best regards,
   
   Thorsten


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


[GitHub] [maven-mvnd] tmuerell closed issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

Posted by "tmuerell (via GitHub)" <gi...@apache.org>.
tmuerell closed issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}
URL: https://github.com/apache/maven-mvnd/issues/840


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


[GitHub] [maven-mvnd] ppalaga commented on issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

Posted by "ppalaga (via GitHub)" <gi...@apache.org>.
ppalaga commented on issue #840:
URL: https://github.com/apache/maven-mvnd/issues/840#issuecomment-1544228597

   @tmuerell it sounds like `pom.version` is supposed to be a built-in Maven property? I must say I never heart of such one. Could you perhaps try to replace it with a more standard `project.version` ?


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


[GitHub] [maven-mvnd] gnodet commented on issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

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

   The `pom.*` properties have been deprecated and are now unsupported in maven 4, see https://issues.apache.org/jira/browse/MNG-7244.


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


[GitHub] [maven-mvnd] tmuerell commented on issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

Posted by "tmuerell (via GitHub)" <gi...@apache.org>.
tmuerell commented on issue #840:
URL: https://github.com/apache/maven-mvnd/issues/840#issuecomment-1513256696

   Edit: 
   
   Version of mvnd is 
   
   ```
   Apache Maven Daemon (mvnd) 1.0-m6 linux-amd64 native client (47d4c6b9c399079d91312bb8ae35d1d76e7fd97a)
   Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jansi.linux.LinuxNativePty
   Apache Maven 4.0.0-alpha-5 (26d10a4bf9a2df75feef60da01d8706f2bf77a47)
   Maven home: /maven-mvnd-1.0-m6-m40-linux-amd64/mvn
   Java version: 1.8.0_362, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
   Default locale: en_US, platform encoding: UTF-8
   OS name: "linux", version: "5.4.0-100-generic", arch: "amd64", family: "unix"
   ```


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


[GitHub] [maven-mvnd] tmuerell commented on issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

Posted by "tmuerell (via GitHub)" <gi...@apache.org>.
tmuerell commented on issue #840:
URL: https://github.com/apache/maven-mvnd/issues/840#issuecomment-1513261573

   Ok, after investigating further it looks like this could be a maven 4.0.0-alpha6 problem, We are trying to switch to maven 3.9 to prove that.


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


[GitHub] [maven-mvnd] tmuerell commented on issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

Posted by "tmuerell (via GitHub)" <gi...@apache.org>.
tmuerell commented on issue #840:
URL: https://github.com/apache/maven-mvnd/issues/840#issuecomment-1548429454

   Ok, I think we can close this here, it's not related to `mvnd` at all, but I can foresee bigger to biggest issues when maven 4 will be released ;-) 


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


[GitHub] [maven-mvnd] gnodet commented on issue #840: Error resolving dependencies with variables and parent POMs - here: ${pom.version}

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

   @tmuerell do you have a reproducer ?


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