You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chantal Ackermann <ch...@btelligent.de> on 2011/03/16 11:30:38 UTC

Maven : Specifying SNAPSHOT Artifacts and the Hudson Repository

Hi all,

does anyone have a successfull setup (=pom.xml) that specifies the
Hudson snapshot repository :

https://builds.apache.org/hudson/job/Lucene-Solr-Maven-3.x/lastStableBuild/artifact/maven_artifacts
(or that for trunk)

and entries for any solr snapshot artifacts which are then found by
Maven in this repository?

I have specified the repository in my pom.xml as :
<repositories>
	<repository>
		<id>solr-snapshot-3.x</id>
<url>https://builds.apache.org/hudson/job/Lucene-Solr-Maven-3.x/lastSuccessfulBuild/artifact/maven_artifacts</url>
		<releases>
			<enabled>false</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
</repositories>

And the dependencies:
<dependency>
	<groupId>org.apache.solr</groupId>
	<artifactId>solr-core</artifactId>
	<version>3.2-SNAPSHOT</version>
</dependency>
<dependency>
	<groupId>org.apache.solr</groupId>
	<artifactId>solr-dataimporthandler</artifactId>
	<version>3.2-SNAPSHOT</version>
</dependency>


Maven's output is (for solr-core):

Downloading:
http://192.168.2.40:8081/nexus/content/groups/public/org/apache/solr/solr-core/3.2-SNAPSHOT/solr-core-3.2-SNAPSHOT.jar
[INFO] Unable to find resource
'org.apache.solr:solr-core:jar:3.2-SNAPSHOT' in repository
solr-snapshot-3.x
(https://builds.apache.org/hudson/job/Lucene-Solr-Maven-3.x/lastSuccessfulBuild/artifact/maven_artifacts)


I'm also trying around with specifying the exact name of the jar, but no
success so far, and it also seems wrong as it will be constantly
changing.
Also, searching hasn't returned anything helpful, so far.

I'd really appreciate if someone could point me into the right
direction!
Thanks!
Chantal



Re: Maven : Specifying SNAPSHOT Artifacts and the Hudson Repository

Posted by Ahmet Arslan <io...@yahoo.com>.
> does anyone have a successfull setup (=pom.xml) that
> specifies the
> Hudson snapshot repository :
> 
> https://builds.apache.org/hudson/job/Lucene-Solr-Maven-3.x/lastStableBuild/artifact/maven_artifacts
> (or that for trunk)
> 
> and entries for any solr snapshot artifacts which are then
> found by
> Maven in this repository?

This is what i use successfully:

<repository>
    <id>trunk</id>
    <url>
    https://hudson.apache.org/hudson/job/Lucene-Solr-Maven-trunk/lastSuccessfulBuild/artifact/maven_artifacts/
    </url>
</repository>


<dependency>
   <groupId>org.apache.solr</groupId>
   <artifactId>solr-core</artifactId>
   <version>4.0-SNAPSHOT</version>
   <scope>compile</scope>
   <type>jar</type>
</dependency>