Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable in pom.xml not resolved #759

Closed
Dennis4b opened this issue Jan 17, 2020 · 2 comments
Closed

Variable in pom.xml not resolved #759

Dennis4b opened this issue Jan 17, 2020 · 2 comments
Milestone

Comments

@Dennis4b
Copy link
Contributor

I am trying to use an ivyDep (included via dependencies):
com.helger / ph-jaxb-pom / 1.0.3

In its pom.xml file at
https://github.com/phax/ph-jaxb-pom/blob/master/pom.xml

it has the following section near the bottom:

      <dependency>
        <groupId>org.glassfish.jaxb</groupId>
        <artifactId>jaxb-bom</artifactId>
        <version>${jaxb.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>

which gives:

--------------------------------------------
  org.glassfish.jaxb:jaxb-bom:${jaxb.version} 
	not found: /home/dennis/.ivy2/local/org.glassfish.jaxb/jaxb-bom/${jaxb.version}/ivys/ivy.xml
	not found: https://repo1.maven.org/maven2/org/glassfish/jaxb/jaxb-bom/${jaxb.version}/jaxb-bom-${jaxb.version}.pom
	download error: Caught java.net.URISyntaxException: Illegal character in path at index 84: https://oss.sonatype.org/content/repositories/releases/org/glassfish/jaxb/jaxb-bom/${jaxb.version}/jaxb-bom-${jaxb.version}.pom (Illegal character in path at index 84: https://oss.sonatype.org/content/repositories/releases/org/glassfish/jaxb/jaxb-bom/${jaxb.version}/jaxb-bom-${jaxb.version}.pom) while downloading https://oss.sonatype.org/content/repositories/releases/org/glassfish/jaxb/jaxb-bom/${jaxb.version}/jaxb-bom-${jaxb.version}.pom

I don't know enough about maven to say if the problem is in the (generated?) pom.xml file, or if mill should be able to resolve this.

Making my project directly depend on the latest version of org.glassfish.jaxb / jaxb.com (which is fetched succesfully) does not solve the problem as it will still try to fetch ${jaxb.version}.

@alexarchambault
Copy link
Collaborator

That seems to be an issue with coursier. I opened coursier/coursier#1503 for it, I have a fix underway.

@lihaoyi
Copy link
Member

lihaoyi commented Oct 14, 2024

@alexarchambault I assume we can close this now? Since the upstream fix landed a while back and we've been using recent versions of coursier

@lihaoyi lihaoyi closed this as completed Oct 14, 2024
@lefou lefou added this to the 0.9.7 milestone Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants