java - Two maven dependencies from different repos -
how can use selenium , sikuli in 1 pom.xml ?
<dependency> <groupid>org.seleniumhq.selenium</groupid> <artifactid>selenium-java</artifactid> <version>2.45.0</version> </dependency> <dependency> <groupid>com.sikulix</groupid> <artifactid>sikulixapi</artifactid> <version>1.1.0-snapshot</version> </dependency>
sikuli in :
<repository> <id>com.sikulix</id> <name>com.sikulix</name> <url>https://oss.sonatype.org/content/groups/public</url> <layout>default</layout> <snapshots> <enabled>true</enabled> <updatepolicy>always</updatepolicy> </snapshots> </repository>
but adding repo, makes maven there selenium too
is possible link 2 different dependencies 2 different repositories ?
maven looks artifacts (selenium, sikulixapi, ..) in defined repositories.
you can define two: com.sikulix , standard one:
<repositories> <repository> <id>com.sikulix</id> <name>com.sikulix</name> <url>https://oss.sonatype.org/content/groups/public</url> <layout>default</layout> <snapshots> <enabled>true</enabled> <updatepolicy>always</updatepolicy> </snapshots> </repository> <repository> <id>central</id> <name>maven repository switchboard</name> <layout>default</layout> <url>http://repo1.maven.org/maven2</url> <snapshots> <enabled>false</enabled> </snapshots> </repository>
Comments
Post a Comment