[vtkusers] maven build missing Java project "vtk"
Sebastien Jourdain
sebastien.jourdain at kitware.com
Fri Feb 7 11:23:00 EST 2014
Hi Alip,
I took care of the VTK side for generating a maven package, but my
knowledge in setting up the dependency in maven is pretty thin.
So hopefully someone else on the list will be able to help.
On the other hand, did you check the artifact(s) ID, in the pom.xml that
get generated.
Good luck,
Seb
On Fri, Feb 7, 2014 at 5:40 AM, Alip <alip.pashaei at gmail.com> wrote:
> Hi
>
> I am new in maven project development. For a web application I would like
> to
> use vtk library dependency. I only need to use vtk io and filter classes
> (not visualization tools).
> I use the following settings to package vtk for maven:
>
> CMAKE_BUILD_TYPE:STRING=Release
> CMAKE_INSTALL_PREFIX:PATH=../mvn-staging-install
> VTK_WRAP_JAVA:BOOL=ON
> and
> option(VTK_JAVA_INSTALL "Use the Java rules to build the native
> libraries." ON)
>
> With this setting, vtk package is generated successfully in the install
> directory. I can load package in the Eclipse IDE as maven project and run
> as
> "maven install" and it compiles with the message of successful build.
>
> I added the dependency below inside my project pom:
>
> <dependency>
> <groupId>kitware.community</groupId>
> <artifactId>vtk</artifactId>
> <version>6.1</version>
> </dependency>
>
> Now my project can not find vtk package giving the following error:
>
> Project 'test1' is missing required Java project: 'vtk''.
>
>
>
> what is missing here to do? vtk folder shows up in maven dependencies. I
> already linked another maven project similarly and it worked fine.
>
> webapplication works perfectly when I set -Djava.library.path variable,
> then
> I think there is not problem with vtk installation.
>
> I am with: Mac osx 10.9.1, javaSE 1.7.0_51, eclipse kepler 4.3, vtk 6.1 of
> course.
>
> thanks in advance
>
> Alip
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/maven-build-missing-Java-project-vtk-tp5725801.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140207/43131ead/attachment.html>
More information about the vtkusers
mailing list