bright-stone-73692
01/21/2025, 3:30 PM-X
?bright-stone-73692
01/21/2025, 3:35 PMMAVEN_ARGS=-X
worked, but when I first tried MAVEN_OPTS
with pulumi up
it started deleting all resources 😄adamant-lawyer-19698
01/22/2025, 8:01 AMbright-stone-73692
01/22/2025, 8:59 AMadamant-lawyer-19698
01/22/2025, 9:00 AMbright-stone-73692
01/22/2025, 9:07 AMURL resource = Resources.getResource("values.properties");
Then I reference this class in my Pulumi app (module B), pulling it as a regular dependency:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>moduleA</artifactId>
</dependency>
and pulumi up
throws this:
Caused by: java.lang.IllegalArgumentException: resource values.properties not found.
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:218)
at com.google.common.io.Resources.getResource(Resources.java:196)
at packageA.ClassA.<clinit>(ClassA.java:39)
I tried a few things, like:
• copying this property to moduleB, under the same path
• enabling <addResourcesToClasspath>
for the exec-maven-plugin
• different values for <classpathScope>
• adding it explicitly to the class path by adding it to <additionalClasspathElements>
, confirmed with mvn -X
that it’s set
I don’t think it’s an issue with Pulumi itself, just exec-maven-plugin, but I wonder if Pulumi has to use it, or could it run the program from a jarbright-stone-73692
01/22/2025, 9:09 AMbright-stone-73692
01/22/2025, 9:12 AMbinary
option in Pulumi.yaml
bright-stone-73692
01/22/2025, 10:18 AMpulumi new java
doesn’t have the correct pom.xml for this