Yes, many of us used Eclipse without any problem. Haroon or Ajay can give you more detailed guide.
Thanks, Jian On Wed, Jul 14, 2010 at 4:15 PM, <[email protected]> wrote: > Hi Jian, > > Yes, I have the groovy plugin for eclipse installed. I want to run the > junit java tests (not the groovy tests) but they don't run even though I > have junit4.7 as one of the maven dependencies. Have you had any luck with > the java junit tests running in eclipse? I'll try IntelliJ also. > > > Jade > > Quoting Jian Fang <[email protected]>: > > Not sure if you have installed Groovy plugin for Eclipse. You can also try >> IntelliJ IDEA community version, which has the best built-in Groovy >> support. >> Here is the guide: >> >> http://code.google.com/p/aost/wiki/CustomTelluriumIntelliJProject >> >> You can go to the src/test/groovy/ directory, open any test file and run >> it >> from the IDE. >> >> Thanks, >> >> Jian >> >> On Wed, Jul 14, 2010 at 3:53 PM, <[email protected]> wrote: >> >> Hi Jian, >>> >>> Thank you for your quick reply. Following the Getting Started document >>> from >>> the tar ball, >>> (.../tellurium-0.7.0/doc/html/tellurium-reference.html#d0e1110), I >>> created a >>> Tellurium Project by using the Telerium-Website as a base reference >>> project. >>> However, when I try to run the junit tests (after mvn package), eclipse >>> tells me that no junit tests exist. Run As -> Maven Test also reports >>> that >>> they are no tests to run: >>> >>> ------------------------------------------------------- >>> T E S T S >>> ------------------------------------------------------- >>> There are no tests to run. >>> >>> Results : >>> >>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD SUCCESSFUL >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 22 seconds >>> [INFO] Finished at: Wed Jul 14 14:49:10 CDT 2010 >>> [INFO] Final Memory: 20M/337M >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> I don't understand why the tests such as >>> TelluriumDownloadsPageJUnitTestCase won't run. If I select a particular >>> JUnit test, and select Run As -> JUnit tests, it displays "No Junit Tests >>> to >>> run" >>> >>> Tellurium looks great but if I can't get past these obstacles soon, I'll >>> have to start writing Selenium tests instead. : ( >>> >>> Jade >>> >>> >>> >>> Quoting Jian Fang <[email protected]>: >>> >>> Hi Jade, >>> >>>> >>>> The ten minutes to Tellurium is depreciated, could you download the >>>> 0.7.0 >>>> tar ball >>>> and look at the 0.7.0 reference document for the "get started" chapter? >>>> >>>> Thanks, >>>> >>>> Jian >>>> >>>> On Wed, Jul 14, 2010 at 10:39 AM, Jade <[email protected]> wrote: >>>> >>>> Hi Jian, >>>> >>>>> >>>>> I created a project following the steps in Ten Minutes to Tellurium >>>>> and using this command: >>>>> >>>>> mvn archetype:generate -DgroupId=test -DartifactId=junitexample - >>>>> DarchetypeArtifactId=tellurium-junit-archetype - >>>>> DarchetypeGroupId=tellurium -DarchetypeVersion=0.7.0-SNAPSHOT - >>>>> DarchetypeRepository=http://kungfuters.org/nexus/content/repositories/ >>>>> snapshots >>>>> >>>>> In your previous post you mentioned: "Now, we upgraded to GMaven 1.2 >>>>> and removed maven- >>>>> > ant-run in 0.7.0. You can try to create >>>>> > a sample project by using tellurium Maven archetype 0.7.0 snapshots >>>>> if >>>>> > you don't want to run into the trouble to configure the >>>>> > Maven properties." >>>>> >>>>> However, the pom.xml file that was generated from the mvn archetype >>>>> command includes <artifactId>maven-antrun-plugin</artifactId> so now >>>>> I'm running into the same error the John had. Do you have an updated >>>>> pom.xml for that project? >>>>> >>>>> BTW, we're using mvn version 2.2.1 and eclipse. Is that version of mvn >>>>> ok? >>>>> >>>>> mvn -version returns the correct Java home but somehow the pom.xml >>>>> file can't reconcile the path to the tools.jar file. Thus, it would be >>>>> great to not use antrun if at all possible. >>>>> >>>>> Jade >>>>> >>>>> On Jan 29, 1:59 pm, John <[email protected]> wrote: >>>>> > Forgot to mention, you need to replace the path /usr/java/jdk1.5.0_19 >>>>> > to your >>>>> > own JAVA_HOME path. >>>>> > >>>>> > Thanks, >>>>> > >>>>> > Jian >>>>> > >>>>> > On Jan 29, 1:57 pm, John <[email protected]> wrote: >>>>> > >>>>> > >>>>> > >>>>> > > sun.jdk:tools:jar:1.5.0 is included in your jdk. Perhaps it is >>>>> caused >>>>> > > by the JAVA_HOME environment variable. >>>>> > >>>>> > > This jar is required for Maven-ant-run plugin in 0.6.0 because >>>>> GMaven >>>>> > > had problems to generate stubs for Groovy >>>>> > > files at that time. Now, we upgraded to GMaven 1.2 and removed >>>>> maven- >>>>> > > ant-run in 0.7.0. You can try to create >>>>> > > a sample project by using tellurium Maven archetype 0.7.0 snapshots >>>>> if >>>>> > > you don't want to run into the trouble to configure the >>>>> > > Maven properties. >>>>> > >>>>> > > To create a Tellurium project based on Tellurium 0.7.0 SNAPSHOT, >>>>> you >>>>> > > should use the Maven archetype 0.7.0-SNAPSHOT. To create a JUnit >>>>> > > project, use the following Maven command: >>>>> > >>>>> > > mvn archetype:create -DgroupId=your_group_id - >>>>> > > DartifactId=your_artifact_id -DarchetypeArtifactId=tellurium-junit- >>>>> > > archetype -DarchetypeGroupId=org.telluriumsource - >>>>> > > DarchetypeVersion=0.7.0-SNAPSHOT -DarchetypeRepository=http:// >>>>> > > maven.kungfuters.org/content/repositories/snapshots >>>>> > >>>>> > > Similarly, to create a TestNG project, use the following command: >>>>> > >>>>> > > mvn archetype:create -DgroupId=your_group_id - >>>>> > > DartifactId=your_artifact_id >>>>> -DarchetypeArtifactId=tellurium-testng- >>>>> > > archetype -DarchetypeGroupId=org.telluriumsource - >>>>> > > DarchetypeVersion=0.7.0-SNAPSHOT -DarchetypeRepository=http:// >>>>> > > maven.kungfuters.org/content/repositories/snapshots >>>>> > >>>>> > > If you want to configure the Maven properties for the "10 minutes >>>>> to >>>>> > > Tellurium" project, you can see the following dependency >>>>> > >>>>> > > <dependency> >>>>> > > <groupId>sun.jdk</groupId> >>>>> > > <artifactId>tools</artifactId> >>>>> > > <version>1.5.0</version> >>>>> > > <scope>system</scope> >>>>> > > <systemPath>${java.home}/../lib/tools.jar</ >>>>> > > systemPath> >>>>> > > </dependency> >>>>> > >>>>> > > in the pom.xml. >>>>> > >>>>> > > You need to specify the java.home in your_home/.m2/settings.xml or >>>>> in >>>>> > > the pom file as >>>>> > >>>>> > > <properties> >>>>> > > .... >>>>> > > <java.home>/usr/java/jdk1.5.0_19</java.home> >>>>> > > </properties> >>>>> > >>>>> > > Thanks, >>>>> > >>>>> > > Jian >>>>> > >>>>> > > On Jan 29, 1:41 pm, matt <[email protected]> wrote: >>>>> > >>>>> > > > Hello, >>>>> > > > When I try and run the 'mvn test' target via command line or in >>>>> > > > IntelliJ I get the below error. I am completely new to Maven. I >>>>> > > > tried following the steps on the 10mindemo page and also by svn >>>>> > > > checking out the finished demo project. Thank you. >>>>> > >>>>> > > > ERROR] BUILD ERROR >>>>> > > > [INFO] >>>>> > > > >>>>> >>>>> ------------------------------------------------------------------------ >>>>> > > > [INFO] Failed to resolve artifact. >>>>> > >>>>> > > > Missing: >>>>> > > > ---------- >>>>> > > > 1) sun.jdk:tools:jar:1.5.0 >>>>> > >>>>> > > > Try downloading the file manually from the project website. >>>>> > >>>>> > > > Then, install it using the command: >>>>> > > > mvn install:install-file -DgroupId=sun.jdk >>>>> -DartifactId=tools >>>>> - >>>>> > > > Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file >>>>> > >>>>> > > > Alternatively, if you host your own repository you can deploy >>>>> the >>>>> > > > file there: >>>>> > > > mvn deploy:deploy-file -DgroupId=sun.jdk -DartifactId=tools >>>>> - >>>>> > > > Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] - >>>>> > > > DrepositoryId=[id] >>>>> > >>>>> > > > Path to dependency: >>>>> > > > 1) >>>>> org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.3 >>>>> > > > 2) sun.jdk:tools:jar:1.5.0 >>>>> > >>>>> > > > ---------- >>>>> > > > 1 required artifact is missing. >>>>> > >>>>> > > > for artifact: >>>>> > > > org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.3 >>>>> > >>>>> > > > from the specified remote repositories: >>>>> > > > apache.snapshots (http://people.apache.org/repo/m2-snapshot- >>>>> > > > repository), >>>>> > > > central (http://repo1.maven.org/maven2), >>>>> > > > kungfuters-thirdparty-releases-repo ( >>>>> http://kungfuters.org/nexus/ >>>>> > > > content/repositories/thirdparty), >>>>> > > > openqa-release-repo ( >>>>> http://archiva.openqa.org/repository/releases >>>>> ), >>>>> > > > kungfuters-public-releases-repo ( >>>>> http://maven.kungfuters.org/content/ >>>>> > > > repositories/releases), >>>>> > > > caja (http://google-caja.googlecode.com/svn/maven), >>>>> > > > kungfuters-public-snapshots-repo (http://maven.kungfuters.org/ >>>>> > > > content/repositories/snapshots) >>>>> > >>>>> > > > [INFO] >>>>> > > > >>>>> >>>>> ------------------------------------------------------------------------ >>>>> > > > [INFO] For more information, run Maven with the -e switch >>>>> > > > [INFO] >>>>> > > > >>>>> >>>>> ------------------------------------------------------------------------ >>>>> > > > [INFO] Total time: 4 seconds >>>>> > > > [INFO] Finished at: Fri Jan 29 11:33:45 MST 2010 >>>>> > > > [INFO] Final Memory: 28M/79M >>>>> > > > [INFO] >>>>> > > > >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> >>>> >>> >>> >> > > -- You received this message because you are subscribed to the Google Groups "tellurium-users" 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/tellurium-users?hl=en.
