Struggling with installing czml-writer

Hi all,

I am new to OreCZML and far from being skilled with importing libraries…

I tried to thoroughly follow the procedure described here: Orekit / OreCZML · GitLab and tried to install it manually so downloaded the .jar, place it in my local project under ./lib/, added the dependency in my pom.xml, as shown on the picture below.

I then tried to run:

mvn install:install-file -Dfile=.\lib\cesiumlanguagewriter-3.0.0.jar -DgroupId=com.custom -DartifactId=czml-writer -Dversion=3.0.0 -Dpackaging=jar -DgeneratePom=true

But it keeps on failing…

I tried to find what I was doing wrong but since it is far from my field of expertise I failed…!

Is there anyone that could give me a hand?

Thank you very much in advance! :blush:

Hello @benoist , it seems the problem has already been assessed on this topic :

If it doesn’t solve you problem, let me know

Hi @Zudo,

Thank you very much for your swift reply! Unfortunately I checkede the topic you are mentioning but it did not really help.

The last thing I did was to try from the simplest configuration:

  1. I created a blank Java project using Maven, and copied the .jar file in my local repository (as shown below)
  2. Added the dependencies. I don’t why it does not like when I add the one mentioning czml-writer
  3. Run the command in the post you mention
mvn install:install-file -Dfile=.\lib\cesiumlanguagewriter-3.0.0.jar -DgroupId=com.custom -DartifactId=czml-writer -Dversion=3.0.0 -Dpackaging=jar -DgeneratePom=true

But I am getting the error below:

Okay, I see the problem now, the command you are launching :

mvn install:install-file -Dfile=.\lib\cesiumlanguagewriter-3.0.0.jar -DgroupId=com.custom -DartifactId=czml-writer -Dversion=3.0.0 -Dpackaging=jar -DgeneratePom=true

Is not adapted to your project, because you used the com.custom (that I know is written in the readme.md in the project, but is changed in the develop branch and need to be updated). It is actually my bad, you should use com.agi as you mentionned in your pom !

So the command should be :

mvn install:install-file -Dfile=.\lib\cesiumlanguagewriter-3.0.0.jar -DgroupId=com.agi -DartifactId=czml-writer -Dversion=3.0.0 -Dpackaging=jar -DgeneratePom=true

It should work

Hmm I’m not sure… it still does not work but I’m stuck with a “banned project” so I wonder if it is not part of the issue. And I did not find the right way to unban the project… I tried mvn clean and also to delete all the folders generated in C:\Users\...\.m2\repository\com\ but it does not help.

I also do not understand why the dependency is underscored as an error in the picture I sent in my previous message, I wondered if there was not an issue there too.

[DEBUG] Installing generated POM
[INFO] Installing C:\Users\...\test\test to C:\Users\...\.m2\repository\com\czml-writer\3\czml-writer-3
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping test
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.758 s
[INFO] Finished at: 2025-03-20T16:58:12+01:00
[INFO] ------------------------------------------------------------------------

Hi all,

Finally I managed to make it work, thank you for your support!!

It was actually the combination of two problems:

  1. the command mvn install didn’t like the relative path
  2. I had to add quotes on paths, version and groupId

My revised command is:
mvn install:install-file -Dfile="C:\Users\ [...] \cesiumlanguagewriter-3.0.0.jar" -DgroupId="com.agi" -DartifactId=czml-writer -Dversion="3.0.0" -Dpackaging=jar -DgeneratePom=true

1 Like