well, unfortunely you guessed wrong... im using <dependencies>. and the classpath element included my wanted ,jar file.
my pom.xml is: <project xmlns="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-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.MyProjectName</groupId> <artifactId>MyProjectName</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>MyProjectName</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>gigaspaces</groupId> <artifactId>JSpaces</artifactId> <version>6.5</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> and the error is: [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote: > 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 - and this is my problem - i added a dependency in the > > pom.xmlfor the .jar that i need but it seems that maven ignores it and > > try to compile without it. > > We need to see more of the pom and the error in order to help. I'll > take one more guess... any chance that dependency you posted is inside > <dependencyManagement> instead of just <dependencies> ? > > Add -X to the command line and Maven will print out a lot of > information, including the classpath. Then you can see if the jar is > on the classpath at all. > > -- > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >