Thank you for your suggestion. I had tried that already.
I finally found out what the problem was from this link:
http://docs.sun.com/app/docs/doc/821-1754/gjxff?l=ja&a=view



On Oct 23, 2010, at 3:40 PM, Rusty Wright wrote:

Have you tried adding it using the usual dependency element and using the scope tag with test? For example, here's how I add easymock for just testing:

       <dependency>
           <groupId>org.easymock</groupId>
           <artifactId>easymock</artifactId>

           <version>${version.easymock}</version>

           <scope>test</scope>
       </dependency>


On 2010-10-23 15:09, kayvan kazeminejad wrote:
Hello all,
First,I am new to maven and appreciate your help in advance.

I need to add this jar file:
glassfish-embedded-static-shell-3.1-b24.jar
to surefire runtime so I can run my junit tests .
Below configuration is not doing for me.

<build>
<plugins>
........
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailure>false</testFailure>
<additionalClasspathElements>
<additionalClasspathElement>
${HOME}/.m2/repository/org/glassfish/extras/glassfish-embedded- static-shell/3.1-b24/glassfish-embedded-static-shell-3.1-b24.jar
</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
<plugin>
..................
</plugins>
<finalName>TS010</finalName>
</build>


By the way, I can run my junit tests from the IDE using glassfish- embedded-static-shell-3.1-b24.jar

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
0x2B | ~0x2b  --  Hamlet

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to