What maven dependencies should I use?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

What maven dependencies should I use?

fredand44
Hello guys!
I have been working for a project on and off under almost 15 years. I recently upgraded to java 3D 1.6. But I have never found out what maven dependencies I should use to be able to download the liberies one need. I installed the following libs local but I would love to get them from a online repo. Is there such repo with these libs:
-j3dcore
-j3dutils
-vecmath
-jogamp-fat

The names might be wrong, but for java3D development I guess the needed libs must be published some where.
Thanks in advance for any help.
/Fredrik
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

philjord
Hi,
Unfortunately Java3D 1.6 never got to the point of having mavenistation formally included, and due to a major contributor pulling out of github when Microsoft took over, it looks like the pull requests are broken now.

The easiest thing to do is to use the scijava fork of Java3D which is up to date but also has the maven pom.xml file setup

https://github.com/scijava/java3d-core
https://github.com/scijava/java3d-utils
https://github.com/scijava/vecmath


 
Here is a discussion of the mavenisation work.
http://forum.jogamp.org/Java-3D-Use-Maven-to-build-and-publish-Maven-artifacts-td4035555.html

Sorry this isn't easier, I haven't yet published the Java3D 1.7 artifacts to maven, but I should do so, then there would be that option as well.
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

fredand44
This post was updated on .
Hello,
Thanks for your quick reply!
Correct me if I am wrong but when I change to these dependencies I also need to change the import statements since all classes seems to have change package names. Is that correct?

At a quick glance it looks like one need to change:

import javax.media.j3d
...to...
import org.scijava.java3d

Best regards
Fredrik
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

gouessej
Administrator
We aren't responsible for this fork. If you use Java3D 1.7, you'll have to modify the import clauses anyway as we can't go on using "javax". You can build Java3D 1.7 with Maven.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

fredand44
This post was updated on .
Hello,
Thanks for your fast reply.
If I then get it right the best thing is to use the latest java3D which is 1.7.
Could you help me find out what the corresponding/eqvivalent dependencies I then need to core, utils and vecmath in maven? (I also used to have a dependency to jogamp-fat, but I frankly do not know if I need it, hopefully not)

Edit: correct me if I am wrong but I guess that "jogamp-fat" (the name might be wrong or change) is needed as the 3D viewer?
So I guess that I really need to know that dependencie as well.
Best regards
Fredrik
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

fredand44
In reply to this post by gouessej
Hello
Are you sure there is a 1.7 in mvnrepository.com?
I can only find version 1.6 for eg:
https://mvnrepository.com/artifact/org.scijava/vecmath/1.6.0-scijava-2

https://mvnrepository.com/artifact/org.scijava/j3dcore/1.6.0-scijava-2

Best regards
Fredrik
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

gouessej
Administrator
You can build Java3D 1.7 with Maven, it doesn't mean that Java3D 1.7 is available on Maven Central (it's not available yet).

I explained how to configure Java3D here:
http://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back/
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

philjord
Fredrik,
I'm working to get the 1.7.0pre2 up to maven central now, but I need to add HiDP mouse support first. So it might take me a few days yet.

Sorry,
Phil.
Reply | Threaded
Open this post in threaded view
|

Re: What maven dependencies should I use?

fredand44
Hello, that would be amazing! But please take your time. Best regards Fredrik