Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread Wayne Fay
On 3/24/08, simon <[EMAIL PROTECTED]> wrote: > +1, good idea to add this to the FAQ. Thanks Simon. Posted as MNG-3481. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread simon
On Mon, 2008-03-24 at 09:22 -0500, Wayne Fay wrote: > We need to put an entry in the FAQ: > > Q: My project compiles in Eclipse and not Maven. Why is Maven broken? > A: Eclipse has its own compiler (JDT) that does things differently > than Maven (which uses your JDK's javac). Try compiling your p

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread Wayne Fay
We need to put an entry in the FAQ: Q: My project compiles in Eclipse and not Maven. Why is Maven broken? A: Eclipse has its own compiler (JDT) that does things differently than Maven (which uses your JDK's javac). Try compiling your project with javac from the JDK and specifying your dependencies

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread Avi Laviad
hi, i think i found the problem. i tried to compile the .java file with javac and it failed (in eclipse it was successful). when i make some change at the .java file and javac worked well then maven worked well also. thanks for your help. Avi. On Mon, Mar 24, 2008 at 12:33 PM, Tim Kettler <[EMAIL

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread Tim Kettler
Hi, As Simon guessed, too, I guess it's just a char-set/file-encoding issue. Can you go to a plain texteditor available on your platform (notepad, gedit, kate, nano ... whatever is available) and create a simple test class in src/main/java: Test.java: import com.gigaspaces.*; public cla

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread Avi Laviad
yep, same .jar file, no error on eclipse, yes error on maven... On Mon, Mar 24, 2008 at 11:32 AM, simon <[EMAIL PROTECTED]> wrote: > When you are compiling with Eclipse, is eclipse configured to use > *exactly* the same jarfile that maven is putting on the classpath, ie > something under ~/.m2/re

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread simon
When you are compiling with Eclipse, is eclipse configured to use *exactly* the same jarfile that maven is putting on the classpath, ie something under ~/.m2/repository/gigaspaces? If not try that, and see what happens. If eclipse is using exactly the same file, then I have no idea what the proble

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread Avi Laviad
ok, thanks for the mailing tip - didn't thought about it. im using gmail and it made it automatically. i will keep replying at top for now like you for not having more mess. the error is broken bcuz the command line print it like that. nothing to do with the code. the project is compiled fine at

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread simon
Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package

Re: package does not exit error with 3rd party jar dependency

2008-03-24 Thread Avi Laviad
well, unfortunely you guessed wrong... im using . and the classpath element included my wanted ,jar file. my pom.xml is: http://maven.apache.org/POM/4.0.0"; xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven

Re: package does not exit error with 3rd party jar dependency

2008-03-23 Thread Wendy Smoak
On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad <[EMAIL PROTECTED]> wrote: > the project is compiled and build successfully when i try it on Eclipse. > the error is "package com.gigaspaces.* does not exist". > I think its compile error because it doesn't find the .jar file it should > reference to

Re: package does not exit error with 3rd party jar dependency

2008-03-23 Thread Avi Laviad
hi, the project is compiled and build successfully when i try it on Eclipse. the error is "package com.gigaspaces.* does not exist". I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that

Re: package does not exit error with 3rd party jar dependency

2008-03-23 Thread Wendy Smoak
On Sun, Mar 23, 2008 at 10:28 AM, Avi L <[EMAIL PROTECTED]> wrote: > hi, > im trying to build my project which depended on a 3rd party jar. > > i made "mvn install:install-file" [1] and then added the dependency to my > project's pom.xml [2]. > but still when i do "mvn compile" i get the mess

package does not exit error with 3rd party jar dependency

2008-03-23 Thread Avi L
[1] mvn install:install-file -Dfile=c:\SOMEPATH\JSpaces.jar -DgroupId=gigaspaces -DartifactId=JSpaces -Dversion=6.5 -Dpackaging=jar -DgeneratePom=true [2] gigaspaces JSpaces 6.5 -- View this message in context: http://www.nabble.com/package-does-not-exit-error