Great I will try your solution asap !!!!!!!

On Fri, Nov 14, 2008 at 5:33 PM, Nicolas <[EMAIL PROTECTED]> wrote:
>
> Thanks for your answer, Olivier. When I've read this page, I was able
> to give up... but finally I got the solution !!
> I've put the following configuration, and it works !
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>                                <artifactId>maven-surefire-plugin</artifactId>
>                                <version>2.4.3</version>
>                                <configuration>
>                                        
> <useSystemClassLoader>true</useSystemClassLoader>
>                                        
> <useManifestOnlyJar>false</useManifestOnlyJar>
>                                        <forkMode>always</forkMode>
>                                        <systemProperties>
>                                                <property>
>                                                        <name>gwt.args</name>
>                                                        <value>-out 
> target/www-test</value>
>                                                </property>
>                                        </systemProperties>
>                                        <argLine>-Xmx512m</argLine>
>                                </configuration>
>                        </plugin>
>
> Notice the values for useSystemClassLoader, useManifestOnlyJar and
> forkMode, it seems to be the only combination working. By the way, I
> think it won't work on old Windows systems, because of the command
> line length issue (look at 
> http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html).
>
> On 14 nov, 14:48, "olivier nouguier" <[EMAIL PROTECTED]>
> wrote:
>> AFAIK in not possible:
>>
>> http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plug...
>>
>> These solution doesn't run test under maven sunfire :(
>>
>>
>>
>> On Fri, Nov 14, 2008 at 2:42 PM, Nicolas <[EMAIL PROTECTED]> wrote:
>>
>> > Well, actually, I have spent a lot of time in checking my config. I'd
>> > like to know if someone has already succeeded in launching tests from
>> > maven (without using a third party plugin).
>>
>> > On 14 nov, 11:58, eric <[EMAIL PROTECTED]> wrote:
>> >> Hum. it looks like a classpath problem , check your config .
>>
>> >> Le vendredi 14 novembre 2008 à 01:07 -0800, Nicolas a écrit :
>>
>> >> > Hi all,
>>
>> >> > I'm trying to setup my pom.xml to launch my GWT app tests (classes
>> >> > extending GWTTestCase) with Maven. I don't want to use a third party
>> >> > Maven plugin. I want the tests to be fully launched in Surefire plugin
>> >> > because I want to see test reports in my continuous integration server
>> >> > (Hudson).
>>
>> >> > Here is my project layout :
>>
>> >> > |_src
>> >> > | |_foo
>> >> > |   |_client
>> >> > |   |_server
>> >> > |   |_public
>> >> > |   |_Foo.gwt.xml
>> >> > |_test
>> >> > | |_foo.client
>> >> > |   |_FooTest.java
>> >> > |_pom.xml
>>
>> >> > I include source and test paths in the test classpath by the following
>> >> > way in my pom.xml :
>> >> >                 ...
>> >> >            <sourceDirectory>src</sourceDirectory>
>> >> >            <testSourceDirectory>test</testSourceDirectory>
>> >> >            <testResources>
>> >> >                    <testResource>
>> >> >                            <directory>src</directory>
>> >> >                    </testResource>
>> >> >                    <testResource>
>> >> >                            <directory>test</directory>
>> >> >                    </testResource>
>> >> >                 </testResources>
>> >> >                 ...
>>
>> >> > When I launch mvn test, I get the following error :
>> >> > Running foo.client.FooTest
>> >> > Loading module 'foo.Foo.JUnit'
>> >> >    Translatable source found in...
>> >> >       [WARN] No source path entries; expect subsequent failures
>> >> > com.google.gwt.core.ext.typeinfo.NotFoundException: java.lang.Object
>>
>> >> > When I launch the test from Eclipse, it works (I just have to add src
>> >> > and test folders in the Run Configuration classpath).
>>
>> --
>> Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.
> >
>



-- 
Si l'ignorance peut servir de consolation, elle n'en est pas moins illusoire.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to