opendiffy/diffy

example is broken

Closed this issue · 1 comments

See below message. The jar is inside example/target not target.
What is the correct way to run the example?

bash-4.4# ./example/downstream.sh
Build primary, secondary, and candidate servers
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.sn126:example:jar:1.0.0-SNAPSHOT
[WARNING] 'parent.relativePath' of POM com.sn126:example:1.0.0-SNAPSHOT (/tmp/diffy/example/pom.xml) points at ai.diffy:diffy instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 11, column 13
[WARNING] 'dependencies.dependency.scope' for io.opentelemetry:opentelemetry-bom:pom must be one of [provided, compile, runtime, test, system] but is 'import'. @ line 65, column 20
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] -------------------------< com.sn126:example >--------------------------
[INFO] Building example 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /tmp/diffy/example/src/main/resources
[INFO] skip non existing resourceDirectory /tmp/diffy/example/src/main/resources
[INFO]
[INFO] --- scala-maven-plugin:4.5.4:compile (scala-compile-first) @ example ---
[INFO] compile in 0.0 s
[INFO] No sources to compile
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ example ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /tmp/diffy/example/src/test/resources
[INFO]
[INFO] --- scala-maven-plugin:4.5.4:testCompile (scala-test-compile) @ example ---
[INFO] compile in 0.0 s
[INFO] No sources to compile
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ example ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ example ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ example ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /tmp/diffy/example/target/example.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.7.RELEASE:repackage (repackage) @ example ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.457 s
[INFO] Finished at: 2023-01-20T05:05:11Z
[INFO] ------------------------------------------------------------------------
Deploy primary, secondary, and candidate servers
Error: Unable to access jarfile target/example.jar

This is now fixed in the latest master. Thanks for pointing it out. Please feel free to comment on this issue if you continue to face any problems.