Dear all,

I am trying to install DSpace 1.6.2
I am running SLES 11 SP1, Apache Maven 2.2.1, Sun JDK 1.6.0_33

Running "mvn package" I got a message informing that it could not retreive
metadata from solrj SNAPSHOT (I don't know what it is) from maven.dspace.org.
But this address does not exist. The error message:




/* START
***********************************************************************/


[INFO]
------------------------------------------------------------------------
[INFO] Building DSpace Discovery :: Provider Library
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking
for updates from maven.dspace.org-snapshot
[WARNING] repository metadata for: 'snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not
be retrieved from repository: maven.dspace.org-snapshot due to an error:
Error transferring file: maven.dspace.org
[INFO] Repository 'maven.dspace.org-snapshot' will be blacklisted
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.dspace.dependencies.solr
-DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -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.dspace.dependencies.solr
-DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT
        2)
org.dspace.dependencies.solr:dspace-solr-solrj:jar:1.4.0.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.dspace.discovery:discovery-solr-provider:jar:0.9.2-SNAPSHOT

from the specified remote repositories:
  maven.dspace.org-snapshot (http://maven.dspace.org/snapshot),
  central (http://repo1.maven.org/maven2)


/* END
***********************************************************************/







Sorry for I am a complete ignorant in MVN, so I don't really know what is
this repository for. I find references for it in many of the pom.xml .
I also tried to compile DSpace 1.8.2 and all went ok, without any error
messages, so I am guessing this repository was taken down because it is not
needed in the newer version.

Anyway, then I followed the instructions and downloaded the .jar from
http://repo1.maven.org/maven2/org/dspace/dependencies/solr/dspace-solr-solrj/1.4.0.1/

And called:
mvn install:install-file -DgroupId=org.dspace.dependencies.solr
-DartifactId=dspace-solr-solrj -Dversion=1.4.0.1-SNAPSHOT -Dpackaging=jar
-Dfile=/home/andre/dspace-solr-solrj-1.4.0.1.jar

mvn install:install-file -DgroupId=org.dspace.discovery
-DartifactId=discovery-solr-provider -Dversion=0.9.2-SNAPSHOT
-Dpackaging=jar -Dfile=/home/andre/discovery-solr-provider-0.9.2.jar


Received a "BUILD SUCCESSFUL" at the end of each call.

But after this, calling mvn package still returns and error message. I
can't understand what's missing, did the "mvn install" not compile
correctly? Why or is there really a package from Solr still missing? The
error message follows:







/* START
***********************************************************************/


[INFO]
------------------------------------------------------------------------
[INFO] Building DSpace Discovery :: Modules
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [jar:test-jar {execution: default}]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO]
------------------------------------------------------------------------
[INFO] Building DSpace Discovery :: Provider Library
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT: checking
for updates from maven.dspace.org-snapshot
[WARNING] repository metadata for: 'snapshot
org.dspace.dependencies.solr:dspace-solr-solrj:1.4.0.1-SNAPSHOT' could not
be retrieved from repository: maven.dspace.org-snapshot due to an error:
Error transferring file: maven.dspace.org
[INFO] Repository 'maven.dspace.org-snapshot' will be blacklisted
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 7 source files to
/coriscoSource/dspace-1.6.2-src-release-corisco-1/dspace-discovery/provider/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/coriscoSource/dspace-1.6.2-src-release-corisco-1/dspace-discovery/provider/src/main/java/org/dspace/discovery/SolrServiceImpl.java:[21,29]
package org.apache.solr.common does not exist


/* END
***********************************************************************/





So if anyone could please give some advice/guidance on how to get through
this error, I would be very thankful!


Thank you in advance
Regards
Andre
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to