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.

Reply via email to