Solr maven install - authorization problem when downloading maven.restlet.org dependencies
Hi, I'm trying to build Solr 4.2.x with Maven and I'm getting the following error in solr-core: [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.341s [INFO] Finished at: Thu Apr 25 15:33:09 IDT 2013 [INFO] Final Memory: 12M/174M [INFO] [ERROR] Failed to execute goal on project solr-core: Could not resolve dependencies for project org.apache.solr:solr-core:jar:4.2.1-SNAPSHOT: Failed to collect dependencies for [org.apache.solr:solr-solrj:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-core:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-codecs:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-common:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-kuromoji:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-morfologik:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-phonetic:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-highlighter:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-memory:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-misc:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-queryparser:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-spatial:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-suggest:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-grouping:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-queries:jar:4.2.1-SNAPSHOT (compile), commons-codec:commons-codec:jar:1.7 (compile), commons-cli:commons-cli:jar:1.2 (compile), commons-fileupload:commons-fileupload:jar:1.2.1 (compile), org.restlet.jee:org.restlet:jar:2.1.1 (compile), org.restlet.jee:org.restlet.ext.servlet:jar:2.1.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.4 (compile), org.slf4j:slf4j-jdk14:jar:1.6.4 (compile), commons-io:commons-io:jar:2.1 (compile), commons-lang:commons-lang:jar:2.6 (compile), com.google.guava:guava:jar:13.0.1 (compile), org.eclipse.jetty:jetty-server:jar:8.1.8.v20121106 (compile?), org.eclipse.jetty:jetty-util:jar:8.1.8.v20121106 (compile?), org.eclipse.jetty:jetty-webapp:jar:8.1.8.v20121106 (compile?), org.codehaus.woodstox:wstx-asl:jar:3.2.7 (runtime), javax.servlet:servlet-api:jar:2.4 (provided), org.apache.httpcomponents:httpclient:jar:4.2.3 (compile), org.apache.httpcomponents:httpmime:jar:4.2.3 (compile), org.slf4j:slf4j-api:jar:1.6.4 (compile), junit:junit:jar:4.10 (test)]: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet (http://maven.restlet.org): Not authorized, ReasonPhrase:Unauthorized. - [Help 1] Has anyone encountered this issue? Thanks, Shahar.
Re: Solr maven install - authorization problem when downloading maven.restlet.org dependencies
Building the solr 4.2.1 worked fine for me. Here is the relevant portion of ivy-settings.xml that I had to change: chain name=default returnFirst=true checkmodified=true changingPattern=.*SNAPSHOT resolver ref=local/ !-- resolver ref=local-maven-2 / -- resolver ref=main/ !-- resolver ref=sonatype-releases / -- !-- COMMENTED OUT -- resolver ref=maven.restlet.org / resolver ref=working-chinese-mirror / /chain Dmitry On Thu, Apr 25, 2013 at 3:53 PM, Shahar Davidson shah...@checkpoint.comwrote: Hi, I'm trying to build Solr 4.2.x with Maven and I'm getting the following error in solr-core: [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.341s [INFO] Finished at: Thu Apr 25 15:33:09 IDT 2013 [INFO] Final Memory: 12M/174M [INFO] [ERROR] Failed to execute goal on project solr-core: Could not resolve dependencies for project org.apache.solr:solr-core:jar:4.2.1-SNAPSHOT: Failed to collect dependencies for [org.apache.solr:solr-solrj:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-core:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-codecs:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-common:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-kuromoji:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-morfologik:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-phonetic:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-highlighter:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-memory:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-misc:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-queryparser:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-spatial:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-suggest:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-grouping:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-queries:jar:4.2.1-SNAPSHOT (compile), commons-codec:commons-codec:jar:1.7 (compile), commons-cli:commons-cli:jar:1.2 (compile), commons-fileupload:commons-fileupload:jar:1.2.1 (compile), org.restlet.jee:org.restlet:jar:2.1.1 (compile), org.restlet.jee:org.restlet.ext.servlet:jar:2.1.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.4 (compile), org.slf4j:slf4j-jdk14:jar:1.6.4 (compile), commons-io:commons-io:jar:2.1 (compile), commons-lang:commons-lang:jar:2.6 (compile), com.google.guava:guava:jar:13.0.1 (compile), org.eclipse.jetty:jetty-server:jar:8.1.8.v20121106 (compile?), org.eclipse.jetty:jetty-util:jar:8.1.8.v20121106 (compile?), org.eclipse.jetty:jetty-webapp:jar:8.1.8.v20121106 (compile?), org.codehaus.woodstox:wstx-asl:jar:3.2.7 (runtime), javax.servlet:servlet-api:jar:2.4 (provided), org.apache.httpcomponents:httpclient:jar:4.2.3 (compile), org.apache.httpcomponents:httpmime:jar:4.2.3 (compile), org.slf4j:slf4j-api:jar:1.6.4 (compile), junit:junit:jar:4.10 (test)]: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet ( http://maven.restlet.org): Not authorized, ReasonPhrase:Unauthorized. - [Help 1] Has anyone encountered this issue? Thanks, Shahar.
Re: Solr maven install - authorization problem when downloading maven.restlet.org dependencies
Hi Shahar, On a Windows 7 box, after downloading solr-4.2.1-src.tgz from one of the Apache mirrors and unpacking it, I did the following from a cmd window: PROMPT cd solr-4.2.1 PROMPT ant get-maven-poms PROMPT cd maven-build PROMPT mvn install Is the above what you did? After a while, I see: - [INFO] [INFO] Building Apache Solr Core [INFO]task-segment: [install] [INFO] Downloading: http://maven.restlet.org/org/restlet/jee/org.restlet/2.1.1/org.restlet-2.1.1.pom 614b downloaded (org.restlet-2.1.1.pom) Downloading: http://maven.restlet.org/org/restlet/jee/org.restlet.parent/2.1.1/org.restlet.parent-2.1.1.pom 7K downloaded (org.restlet.parent-2.1.1.pom) Downloading: http://maven.restlet.org/org/restlet/jee/org.restlet.ext.servlet/2.1.1/org.restlet.ext.servlet-2.1.1.pom 907b downloaded (org.restlet.ext.servlet-2.1.1.pom) Downloading: http://maven.restlet.org/org/restlet/jee/org.restlet/2.1.1/org.restlet-2.1.1.jar […] 709K downloaded (org.restlet-2.1.1.jar) Downloading: http://maven.restlet.org/org/restlet/jee/org.restlet.ext.servlet/2.1.1/org.restlet.ext.servlet-2.1.1.jar 19K downloaded (org.restlet.ext.servlet-2.1.1.jar) - It's possible that the Restlet maven repository was temporarily malfunctioning. Have you tried again? Steve On Apr 25, 2013, at 8:53 AM, Shahar Davidson shah...@checkpoint.com wrote: Hi, I'm trying to build Solr 4.2.x with Maven and I'm getting the following error in solr-core: [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1.341s [INFO] Finished at: Thu Apr 25 15:33:09 IDT 2013 [INFO] Final Memory: 12M/174M [INFO] [ERROR] Failed to execute goal on project solr-core: Could not resolve dependencies for project org.apache.solr:solr-core:jar:4.2.1-SNAPSHOT: Failed to collect dependencies for [org.apache.solr:solr-solrj:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-core:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-codecs:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-common:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-kuromoji:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-morfologik:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-analyzers-phonetic:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-highlighter:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-memory:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-misc:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-queryparser:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-spatial:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-suggest:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-grouping:jar:4.2.1-SNAPSHOT (compile), org.apache.lucene:lucene-queries:jar:4.2.1-SNAPSHOT (compile), commons-codec:commons-codec:jar:1.7 (compile), commons-cli:commons-cli:jar:1.2 (compile), commons-fileupload:commons-fileupload:jar:1.2.1 (compile), org.restlet.jee:org.restlet:jar:2.1.1 (compile), org.restlet.jee:org.restlet.ext.servlet:jar:2.1.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.4 (compile), org.slf4j:slf4j-jdk14:jar:1.6.4 (compile), commons-io:commons-io:jar:2.1 (compile), commons-lang:commons-lang:jar:2.6 (compile), com.google.guava:guava:jar:13.0.1 (compile), org.eclipse.jetty:jetty-server:jar:8.1.8.v20121106 (compile?), org.eclipse.jetty:jetty-util:jar:8.1.8.v20121106 (compile?), org.eclipse.jetty:jetty-webapp:jar:8.1.8.v20121106 (compile?), org.codehaus.woodstox:wstx-asl:jar:3.2.7 (runtime), javax.servlet:servlet-api:jar:2.4 (provided), org.apache.httpcomponents:httpclient:jar:4.2.3 (compile), org.apache.httpcomponents:httpmime:jar:4.2.3 (compile), org.slf4j:slf4j-api:jar:1.6.4 (compile), junit:junit:jar:4.10 (test)]: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet (http://maven.restlet.org): Not authorized, ReasonPhrase:Unauthorized. - [Help 1] Has anyone encountered this issue? Thanks, Shahar.
Re: solr + maven?
Hi Ryan, I'm using solr with Maven 2 in our project. Here is how my pom.xml looks like: !-- Solrj -- dependency groupIdorg.apache.solr/groupId artifactIdsolr-solrj/artifactId version1.3.0/version /dependency Since I have all solrj dependencies declared by other artifacts, I don't need to declare any of solrj dependencies. You'll probably have to add commons-httpclient artifacts. On Dec 5, 2007 10:08 AM, Ryan McKinley [EMAIL PROTECTED] wrote: Is anyone managing solr projects with maven? I see: https://issues.apache.org/jira/browse/SOLR-19 but that is 1 year old If someone has a current pom.xml, can you post it on SOLR-19? I just started messing with maven, so I don't really know what I am doing yet. thanks ryan -- Regards, Cuong Hoang
Re: solr + maven?
It would be cool if you'd end up with something similar to what Lucene has recently experienced (fully usable maven artifacts for releases and nightly builds). Agreed. Hopefully solr could have a similar setup to lucene. If it has any value I could at least put some poms together. that would be great. thanks ryan
Re: solr + maven?
Ryan McKinley wrote: Is anyone managing solr projects with maven? I see: https://issues.apache.org/jira/browse/SOLR-19 but that is 1 year old If someone has a current pom.xml, can you post it on SOLR-19? I just started messing with maven, so I don't really know what I am doing yet. In my m2 projects I have messed up only with the java client so far (a very old version). The solr .war I use in integration tests (launched from the build) is just deployed in our artifactory. It would be cool if you'd end up with something similar to what Lucene has recently experienced (fully usable maven artifacts for releases and nightly builds). If it has any value I could at least put some poms together. -- Sami Siren
solr + maven?
Is anyone managing solr projects with maven? I see: https://issues.apache.org/jira/browse/SOLR-19 but that is 1 year old If someone has a current pom.xml, can you post it on SOLR-19? I just started messing with maven, so I don't really know what I am doing yet. thanks ryan