And yes I have seen the usual links.
This is what I've done so far:
+ Set up an eclipse that has all the pluggins.
+ Downloaded the MULE 2.0 RC 2 distro
+ Unpacked the stuff under src
Ok, then what? Run "mvn eclipse:eclipse"? Where shall I run this from?
There is no *.pom anywhere in sight.
Any help is appreciated.
--
View this message in context: http://www.nabble.com/How-to-build-Mule-2.0-RC-2-tp15216040p15216040.html
Sent from the Mule - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
I see ... we don't ship the POMs with the source in the distro, thus
you'll have a hard time compiling the source from the distro directly.
Then again, why would you do so? You can attach the source to the
individual libs from the distribution in Eclipse.
To compile from source I'd suggest checking out the proper source from
https://svn.codehaus.org/mule/tags/mule-2.0.0-RC2/ and building from
there - it has the proper POMs.
If you're adventurous, you could also write a script to extract the POMs
from the mule jar files in the distro...
-dirk
The reason I wanted to do this is that I hit a brick wall trying to compile
my app for MULE 2.0 RC 2. This is what I did before:
+ Downloaded MULE 2.0 RC 2 distro.
+ Went to my directory, with the pom inspired by the examples/hello
+ Did an "mvn eclipse:eclipse", everything went well.
+ Did an "mvn" but got a "class file has wrong version 49.0, should be 48.0"
So I said, ok, maybe I can't do this with my j2sdk1.4.2_13, let's switch to
jdk1.5.0_07. After an "mvn clean", "mvn eclipse:eclipse" and "mvn". This
time it went ok, but when I tried to run it I got:
--> Wrapper Started as Console
Launching a JVM...
java.lang.UnsupportedClassVersionError: org/mule/modules/boot/MuleBootstrap
(Uns
upported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
One last try I said, let's try the generic hello example. I got the exact
same behaviour as described above. My MULE_HOME is set to the correct
distro, and same with my java.
I'm assuming if I build everything myself this won't happen?? Am I the only
one with this problem?
Again, any light shed is appreciated. Thanks..
jamh wrote:
>
> I have looked hard at all the posts, all the mule documentation, etc...
> Is there a document that describes the steps to build this under eclipse?
>
> And yes I have seen the usual links.
>
> This is what I've done so far:
>
> + Set up an eclipse that has all the pluggins.
>
> + Downloaded the MULE 2.0 RC 2 distro
>
> + Unpacked the stuff under src
>
> Ok, then what? Run "mvn eclipse:eclipse"? Where shall I run this from?
> There is no *.pom anywhere in sight.
>
> Any help is appreciated.
>
--
View this message in context: http://www.nabble.com/How-to-build-Mule-2.0-RC-2-tp15216040p15231886.html
Stupid oracle, added a java 1.4 path before others. Problem solved.
jamh wrote:
>
> I have looked hard at all the posts, all the mule documentation, etc...
> Is there a document that describes the steps to build this under eclipse?
>
> And yes I have seen the usual links.
>
> This is what I've done so far:
>
> + Set up an eclipse that has all the pluggins.
>
> + Downloaded the MULE 2.0 RC 2 distro
>
> + Unpacked the stuff under src
>
> Ok, then what? Run "mvn eclipse:eclipse"? Where shall I run this from?
> There is no *.pom anywhere in sight.
>
> Any help is appreciated.
>
--
View this message in context: http://www.nabble.com/How-to-build-Mule-2.0-RC-2-tp15216040p15232396.html
I just checked the release notes and noticed that they don't list JDK
1.5 as a prerequisite for using Mule 2.x. I think I'll better add this now.
The current Java source (compile) compatability policy is documented
here: http://mule.mulesource.org/display/MULECDEV/Building+from+Source
-dirk
--
View this message in context: http://www.nabble.com/How-to-build-Mule-2.0-RC-2-tp15216040p15273460.html
Sent from the Mule - User mailing list archive at Nabble.com.
Let me ask this general question then.
Is there a series of established steps that will take me from the mule
source to having an example running. I am looking for something like this:
1. Prerequisites: JDK 1.5, maven, source from svn://http... [ and not from
the source download since it's missing the poms], and more environmental
setups [ I still don't understand which third party jars are needed, or
where I need to put them ].
2. Run mvn eclipse:eclipse
3. Run mvn source:jar
4. Run mvn javadoc:jar
5. Run mvn install -D[ what exactly? ]
6. Go the examples directory and run hello.bat or whatever.
Where I am now is nowhere. I have downloaded the source from the
repository, and successfully ran mvn eclipse:eclipse. If I import into
eclipse, I have tons of errors. If I try mvn install, I get errors like
"package javax.xml.namespace does not exist". I tried copying the opt jars
from the mule 2.0 RC2 distro into a libs and pointing CLASSPATH to it, but
to no avail.
I know that RC2 is in beta, but I'm sure some of you have an environment
working with it. Can you enlighten us a bit?
--
View this message in context: http://www.nabble.com/How-to-build-Mule-2.0-RC-2-tp15216040p15276041.html
Andrew Perepelytsya wrote:
>
> Have you ever built a maven 2 project?
>
>
--
View this message in context: http://www.nabble.com/How-to-build-Mule-2.0-RC-2-tp15216040p15277938.html