Maven and the JOGL library?

前端 未结 7 1309
鱼传尺愫
鱼传尺愫 2020-12-02 10:18

I\'ve been studying Maven in my free time over the last several days but can\'t seem to figure out how to organize a project so that the JOGL libraries are used. I would pre

7条回答
  •  萌比男神i
    2020-12-02 10:46

    I don't know JOGL library but I have experience with Java3d, which has the same installation/build issues. There are two ways to achive this:

    • tell developers to install JOGL unassisted, then treat JOGL libraries as system dependencies like we do with Java3d

      
          javax.java3d
          j3dcore
          1.5.1
          system
          ${java.home}/lib/ext/j3dcore.jar
      
      
    • place all jars and system dependent libraries in own repository and create suitable poms for them

    If you strongly want to automate with Maven installation of JOGL you can try use maven-antrun-plugin or create own Maven plugin that handles installation (a good example is Cargo that downloads servers and unpack it).

    I consider to use first option - tell developers to install JOGL. In our case Java3d application is distributed by Java WebStart so for them installation of Java3d is fully automated by WebStart.

提交回复
热议问题