Re: Error by running mvn package
Hi Mark, Many thanks. It runs. :-) Thomas ** Hi Thomas, Do you have the compiler plugin defined in your pom? At a minimum, you need to have this defined. * plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerArgument-verbose /compilerArgument source1.5/source target1.5/target /configuration /plugin* If you have a parent and child pom, you should have this in BOTH places. Regards, Mark Thomas Chang wrote: Hi all, I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run mvn oackage I got error as follow: E:\Projekte\TestSpringToplinkFaceletsTomahawk\src\main\java\wei\spring\jsf\test\ DeleteDataFromTable.java:[18,20] generics are not supported in -source 1.3 (try -source 1.5 to enable generics) ListUser userList = userDao.findAll(); Someone knows how can I fix it? Regrads Thomas - Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!
Re: Error by running mvn package
Hi Thomas, Do you have the compiler plugin defined in your pom? At a minimum, you need to have this defined. * plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration compilerArgument-verbose /compilerArgument source1.5/source target1.5/target /configuration /plugin* If you have a parent and child pom, you should have this in BOTH places. Regards, Mark Thomas Chang wrote: Hi all, I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run mvn oackage I got error as follow: E:\Projekte\TestSpringToplinkFaceletsTomahawk\src\main\java\wei\spring\jsf\test\ DeleteDataFromTable.java:[18,20] generics are not supported in -source 1.3 (try -source 1.5 to enable generics) ListUser userList = userDao.findAll(); Someone knows how can I fix it? Regrads Thomas - Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in running mvn
Hi, In the recent version (2.0.7) the boot directory is not in core. I just created the core directory and placed the boot inside it and everything works fine now.. Regards Sateesh Sebastien Arbogast wrote: My mistake. I just realized that I installed maven in /usr/local/maven-2.0.4and my M2_HOME variable is /usr/local/lib/maven- 2.0.4. That should be the problem. Sorry about that and thanks for your time. 2007/1/16, franz see [EMAIL PROTECTED]: Good day, Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar. Cheers, Franz Sebastien Arbogast wrote: I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a12626519 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in running mvn
I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8380081 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in running mvn
Good day, Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar. Cheers, Franz Sebastien Arbogast wrote: I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in running mvn
My mistake. I just realized that I installed maven in /usr/local/maven-2.0.4and my M2_HOME variable is /usr/local/lib/maven- 2.0.4. That should be the problem. Sorry about that and thanks for your time. 2007/1/16, franz see [EMAIL PROTECTED]: Good day, Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar. Cheers, Franz Sebastien Arbogast wrote: I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com
Re: Error in running mvn
you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj