Hello,
I get an unresolved dependency with Selenium.
Maven is looking for it in the wrong repository I think..
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/stephane/dev/java/project/thalasoft-webtest/src/main/resources
Downloading:
http://repo1.maven.org/maven2/org/openqa/selenium/server/selenium-server/1.0-beta-1/selenium-server-1.0-beta-1.pom
[INFO] Unable to find resource
'org.openqa.selenium.server:selenium-server:pom:1.0-beta-1' in repository
central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/openqa/selenium/client-drivers/selenium-java-client-driver/1.0-beta-1/selenium-java-client-driver-1.0-beta-1.pom
[INFO] Unable to find resource
'org.openqa.selenium.client-drivers:selenium-java-client-driver:pom:1.0-beta-1'
in repository central (http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/openqa/selenium/client-drivers/selenium-java-client-driver/1.0-beta-1/selenium-java-client-driver-1.0-beta-1.jar
Downloading:
http://repo1.maven.org/maven2/org/openqa/selenium/server/selenium-server/1.0-beta-1/selenium-server-1.0-beta-1.jar
[INFO] Unable to find resource
'org.openqa.selenium.client-drivers:selenium-java-client-driver:jar:1.0-beta-1'
in repository central (http://repo1.maven.org/maven2)
[INFO] Unable to find resource
'org.openqa.selenium.server:selenium-server:jar:1.0-beta-1' in repository
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1)
org.openqa.selenium.client-drivers:selenium-java-client-driver:jar:1.0-beta-1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.openqa.selenium.client-drivers
-DartifactId=selenium-java-client-driver -Dversion=1.0-beta-1
-Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.openqa.selenium.client-drivers
-DartifactId=selenium-java-client-driver -Dversion=1.0-beta-1
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.thalasoft.webtest:thalasoft-webtest:jar:1.0-SNAPSHOT
2)
org.openqa.selenium.client-drivers:selenium-java-client-driver:jar:1.0-beta-1
2) org.openqa.selenium.server:selenium-server:jar:1.0-beta-1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.openqa.selenium.server
-DartifactId=selenium-server -Dversion=1.0-beta-1 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.openqa.selenium.server
-DartifactId=selenium-server -Dversion=1.0-beta-1 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.thalasoft.webtest:thalasoft-webtest:jar:1.0-SNAPSHOT
2) org.openqa.selenium.server:selenium-server:jar:1.0-beta-1
----------
2 required artifacts are missing.
for artifact:
com.thalasoft.webtest:thalasoft-webtest:jar:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Sep 02 08:49:28 CEST 2010
[INFO] Final Memory: 6M/15M
[INFO]
------------------------------------------------------------------------
I wonder what to do..
I have the following content in the file .m2/.settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
<pluginGroup>org.grails</pluginGroup>
<pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>
<profiles>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>OpenQA</id>
<name>OpenQA repository</name>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<url>http://nexus.openqa.org/content/repositories/releases/</url>
</repository>
<repository>
<id>maven2</id>
<name>Maven2 repository</name>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<url>http://repo2.maven.org/maven2/</url>
</repository>
<repository>
<id>ibiblio</id>
<name>ibiblio repository</name>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<url>http://www.ibiblio.org/maven/</url>
</repository>
<repository>
<id>maven</id>
<name>Maven repository</name>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<url>http://mvnrepository.com/</url>
</repository>
</repositories>
</profile>
</profiles>
</settings>
And in my pom.xml I have the following content
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.thalasoft.webtest</groupId>
<artifactId>thalasoft-webtest</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>thalasoft-webtest</name>
<url>http://maven.apache.org</url>
<profiles>
<profile>
<id>selenium</id>
<activation>
<property>
<name>selenium</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>1.0.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start-server</goal>
</goals>
<configuration>
<background>true</background>
<logOutput>true</logOutput>
<multiWindow>true</multiWindow>
</configuration>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-server</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<appserver.home>/path/to/dev/appserver</appserver.home>
</properties>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
<version>1.0-beta-1</version>
</dependency>
<dependency>
<groupId>org.openqa.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
<version>1.0-beta-1</version>
</dependency>
</dependencies>
</project>
--
View this message in context:
http://maven.40175.n5.nabble.com/Why-my-OpenQA-repository-is-not-used-tp2800226p2800226.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]