<div dir="ltr">Hi Alip,<div><br></div><div>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.</div><div>So hopefully someone else on the list will be able to help.</div>
<div><br></div><div>On the other hand, did you check the artifact(s) ID, in the pom.xml that get generated.</div><div><br></div><div>Good luck,</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Feb 7, 2014 at 5:40 AM, Alip <span dir="ltr"><<a href="mailto:alip.pashaei@gmail.com" target="_blank">alip.pashaei@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I am new in maven project development. For a web application I would like to<br>
use vtk library dependency. I only need to use vtk io and filter classes<br>
(not visualization tools).<br>
I use the following settings to package vtk for maven:<br>
<br>
CMAKE_BUILD_TYPE:STRING=Release<br>
CMAKE_INSTALL_PREFIX:PATH=../mvn-staging-install<br>
VTK_WRAP_JAVA:BOOL=ON<br>
and<br>
option(VTK_JAVA_INSTALL "Use the Java rules to build the native<br>
libraries." ON)<br>
<br>
With this setting, vtk package is generated successfully in the install<br>
directory. I can load package in the Eclipse IDE as maven project and run as<br>
"maven install" and it compiles with the message of successful build.<br>
<br>
I added the dependency below inside my project pom:<br>
<br>
<dependency><br>
<groupId>kitware.community</groupId><br>
<artifactId>vtk</artifactId><br>
<version>6.1</version><br>
</dependency><br>
<br>
Now my project can not find vtk package giving the following error:<br>
<br>
Project 'test1' is missing required Java project: 'vtk''.<br>
<br>
<br>
<br>
what is missing here to do? vtk folder shows up in maven dependencies. I<br>
already linked another maven project similarly and it worked fine.<br>
<br>
webapplication works perfectly when I set -Djava.library.path variable, then<br>
I think there is not problem with vtk installation.<br>
<br>
I am with: Mac osx 10.9.1, javaSE 1.7.0_51, eclipse kepler 4.3, vtk 6.1 of<br>
course.<br>
<br>
thanks in advance<br>
<br>
Alip<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/maven-build-missing-Java-project-vtk-tp5725801.html" target="_blank">http://vtk.1045678.n5.nabble.com/maven-build-missing-Java-project-vtk-tp5725801.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>