It's definitely not the pom, cause mvn exec:exec (plugin) starts a class
which can connect to the space. A very strange thing is, that those tests
work fine under unix systems.
Maybe it's not even mavens fault. But I cannot understand why mvn exec:exec
can find the space, while mvn:test can't?

But to be sure, here' are the dependencies from the pom.xml:

 <dependencies>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.0.4</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.j_spaces</groupId>
      <artifactId>JSpaces</artifactId>
      <version>5.0</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring</artifactId>
      <version>1.2.6</version>
    </dependency>
    <dependency>
      <groupId>net.jini</groupId>
      <artifactId>jini-ext</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>net.jini</groupId>
      <artifactId>jini-core</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.13</version>
    </dependency>
  </dependencies>





Wayne Fay wrote:
> 
> We'll need to see your pom for sure, but I would assume you have not
> added the proper Gigaspaces dependency/ies to your pom. Eclipse has a
> tendency to find jars in lib folders and such which are not
> necessarily available when executing a non-Eclipse Maven build.
> 
> Wayne
> 
> On 8/30/06, mmp <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I'm currently working with Gigaspaces and created some junit-testcases to
>> test the functionality of my data access object.
>>
>> Unfortunately when i'm running those tests with maven the GigaSpaces
>> cannot
>> be found.
>>
>> When I run the tests in eclipse instead, the GigaSpaces can be found.
>>
>>
>>
>> Any ideas? Thx in advance
>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-Junit-Test-with-Gigaspaces-tf2189557.html#a6150658
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to