On 4/7/07, Benamin <[EMAIL PROTECTED]> wrote:
I successfully ran the Hello World example. Now, I am trying to add some
custom functionality to the hello world se. The functionality involves
adding in a new class inside the MyEndpoint.java file. This new class uses
a few custom packages. I can compile this class in its own file just fine,
but when I try to add it to MyEndpoint.java, and run mvn install, it says
the packages do not exist. Any ideas what I need to do to get ServiceMix to
recognize these packages? Basically, what I have added is
import somepackage.*;
import anotherpackage.*;
class MyClass { }
And mvn install balks on the import of the packages saying the package does
not exist. The packages are in jars which I have added to my classpath env
var.
You need to add the JARs to the pom.xml file in the dependencies
section. You will then have to places the JARs to the local Maven
repository so that Maven can locate them. Make sure that the JARs are
located in a directory that matches the groupId of the dependency.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/