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

The %%loadFromPOM seems to fail when importing BOMs #139

Open
kolban-google opened this issue Dec 24, 2022 · 2 comments
Open

The %%loadFromPOM seems to fail when importing BOMs #139

kolban-google opened this issue Dec 24, 2022 · 2 comments

Comments

@kolban-google
Copy link

I have a cell in my notebook which reads:

%%loadFromPOM

<dependency>
  <groupId>org.apache.beam</groupId>
  <artifactId>beam-sdks-java-core</artifactId>
  <version>2.43.0</version>
</dependency>

<dependency>
  <groupId>org.apache.beam</groupId>
  <artifactId>beam-runners-direct-java</artifactId>
  <version>2.43.0</version>
  <scope>runtime</scope>
</dependency>

<dependency>
  <groupId>org.slf4j</groupId>
  <artifactId>slf4j-api</artifactId>
  <version>2.0.6</version>
</dependency>

<dependency>
  <groupId>org.apache.beam</groupId>
  <artifactId>beam-sdks-java-io-google-cloud-platform</artifactId>
  <version>2.43.0</version>
</dependency>

When I try and run the cell, it fails with:

java.lang.RuntimeException: Exception occurred while running cell magic 'loadFromPOM': Error resolving '/tmp/ijava-ivy-11875170231687639704.xml'. [unresolved dependency: org.apache.beam#beam-sdks-java-io-google-cloud-platform;2.40.0: several problems occurred while resolving dependency: org.apache.beam#beam-sdks-java-io-google-cloud-platform;2.40.0 {compile=[compile(*), master(*)], runtime=[runtime(*)]}:
	several problems occurred while resolving dependency: com.google.cloud#libraries-bom;25.2.0 {}:
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-bom;0.173.0 {}:
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-billingbudgets-bom;2.1.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-billingbudgets-bom;2.1.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-bom;0.173.0 {}:
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-billingbudgets-bom;2.1.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-billingbudgets-bom;2.1.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2
	several problems occurred while resolving dependency: com.google.cloud#libraries-bom;25.2.0 {}:
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-bom;0.173.0 {}:
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-binary-authorization-bom;1.0.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-binary-authorization-bom;1.0.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-bom;0.173.0 {}:
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-binary-authorization-bom;1.0.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2
	several problems occurred while resolving dependency: com.google.cloud#google-cloud-binary-authorization-bom;1.0.9 {}:
	com.google.cloud#google-cloud-shared-config;1.3.2
	com.google.cloud#google-cloud-shared-config;1.3.2]
	at io.github.spencerpark.ijava.runtime.Magics.cellMagic(Magics.java:35)
	at .(#13:1)

My supposition is that the last dependency:

<dependency>
  <groupId>org.apache.beam</groupId>
  <artifactId>beam-sdks-java-io-google-cloud-platform</artifactId>
  <version>2.43.0</version>
</dependency>

Is trying to load a BOM POM and those may not be supported.

@jimmybow
Copy link

@mkitti
Copy link

mkitti commented Sep 28, 2023

I was able to fix this by updating Apache Ivy to 2.5.2.

frankfliu#3

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

3 participants