Hi Lewatle,

It still sounds like either a Maven caching issue or something with your 
setup.

Here's my setup:
Maven 2.2.1 (note: I'm not using a proxy in my settings.xml)
Java 1.6.0
Windows 7

I've just successfully rebuilt DSpace 1.7.2 after completely deleting my 
local Maven cache.  Essentially, I did the following:

(1) First, I removed my entire Maven Cache by moving my 
~/.m2/repository/ directory to ~/.m2/repository-OLD/   This forced Maven 
to recreate a fresh ~/.m2/repository/ folder and re-download all DSpace 
dependencies.

(2) Next, I pulled down a completely fresh copy of DSpace 1.7.2 to a 
folder called D:/dspace-1.7.2/:
svn co http://scm.dspace.org/svn/repo/dspace/tags/dspace-1.7.2/

(3) Finally, I rebuilt DSpace 1.7.2 (this took a while, as Maven went 
through and downloaded all dependencies again one-by-one):
cd D:/dspace-1.7.2/dspace/
mvn package

In the end, everything built fine.  My local Maven was also able to 
locate the "carrot2-mini" dependency which you received errors on.

Could you verify the exact version of Maven you are using?  You also may 
want to try the same experiment (completely delete or move your existing 
~/.m2/repository/ Maven cache and rebuild).  It's possible this could 
also be an issue with your proxy settings.

- Tim


On 7/7/2011 8:45 AM, Lewatle Phaladi wrote:
> Hi
>
> I am using version 1.6.0, and other guys have responded with positive
> ideas that I have also followed even if I never responded to them I
> really appreciate their time,
>
> The thing is that other packages are downloaded easily but while process
> is continuing the following packages are not downloaded from repository
> for some reasons.
>
> Please see this error.
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Failed to resolve artifact.
>
> Missing:
>
> ----------
>
> 1) org.carrot2:carrot2-mini:jar:3.1.0
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>
> mvn install:install-file -DgroupId=org.carrot2 -DartifactId=carrot2-mini
> -Dversion=3.1.0 -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.carrot2 -DartifactId=carrot2-mini
> -Dversion=3.1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
>
> Path to dependency:
>
> 1) org.dspace.modules:solr:war:1.7.0
>
> 2) org.dspace:dspace-solr:jar:classes:1.4.1.0
>
> 3) org.apache.solr:solr-clustering:jar:1.4.1
>
> 4) org.carrot2:carrot2-mini:jar:3.1.0
>
> ----------
>
> 1 required artifact is missing.
>
> for artifact:
>
> org.dspace.modules:solr:war:1.7.0
>
> from the specified remote repositories:
>
> central (http://repo1.maven.org/maven2),
>
> sonatype-nexus-snapshots
> (https://oss.sonatype.org/content/repositories/snapshots)
>
> Regards,
>
> Lewatle
>
> *From:*P. S. Mukhopadhyay [mailto:[email protected]]
> *Sent:* 07 July 2011 12:54 PM
> *To:* Lewatle Phaladi
> *Cc:* [email protected]
> *Subject:* Re: [Dspace-tech] Maven Errors
>
> What Java u r using?
>
>
> On Wed, Jul 6, 2011 at 6:31 PM, P. S. Mukhopadhyay
> <[email protected] <mailto:[email protected]>> wrote:
>
> hello
>
> my settings.xml under .m2 folder (hidden folder)
>
> <settings>
> <proxies>
>
> <proxy>
> <id>optional</id>
> <active>true</active>
> <protocol>http</protocol>
>
> <username></username>
> <password></password>
> <host>192.168.3.5</host>
> <port>3128</port>
> <nonProxyHosts>localhost,*.example.com <http://example.com></nonProxyHosts>
> </proxy>
> </proxies>
> </settings>
>
>
> On 7/6/11, Lewatle Phaladi <[email protected]
> <mailto:[email protected]>> wrote:
>  > Hi
>  >
>  >
>  >
>  > In addition to what I have sent, here is part of server.xml file in
> maven,
>  >
>  >
>  >
>  > <proxy>
>  >
>  > <id>Optional</id>
>  >
>  > <active>true</active>
>  >
>  > <protocol>http</protocol>
>  >
>  > <host>ourproxy.wits.ac.za <http://ourproxy.wits.ac.za></host>
>  >
>  > <port>80</port>
>  >
>  > <username>myusername</username>
>  >
>  > <password>mypassword</password>
>  >
>  > <nonProxyHosts></nonProxyHosts>
>  >
>  > </proxy>
>  >
>  >
>  >
>  > Your input is appreciated.
>  >
>  >
>  >
>  > Regards,
>  >
>  > Lewatle
>  >
>  >
>  >
>  > From: Lewatle Phaladi
>  > Sent: 06 July 2011 02:06 PM
>  > To: [email protected]
> <mailto:[email protected]>
>  > Subject: Maven Errors
>  >
>  >
>  >
>  > Hi All
>  >
>  >
>  >
>  > I am installing dspace1.7.2 and I have this errors, can anyone give
> me idea
>  > with this errors.
>  >
>  >
>  >
>  > [INFO] BUILD FAILURE
>  >
>  > [INFO]
>  > ------------------------------------------------------------------------
>  >
>  > [INFO] Total time: 13:10.929s
>  >
>  > [INFO] Finished at: Wed Jul 06 13:56:23 SAST 2011
>  >
>  > [INFO] Final Memory: 32M/60M
>  >
>  > [INFO]
>  > ------------------------------------------------------------------------
>  >
>  > [ERROR] Failed to execute goal on project solr: Could not resolve
>  > dependencies for project org.dspace.modules:solr:war:1.7.2: Failed to
>  > collect dependencies for [org.dspace:dspace-solr:war:skinny:1.4.1.1
>  > (compile), org.dspace:dspace-solr:jar:classes:1.4.1.1 (compile),
>  > org.slf4j:slf4j-api:jar:1.5.6 (compile), org.slf4j:slf4j-jdk14:jar:1.5.6
>  > (compile), xalan:xalan:jar:2.7.0 (compile)]: Failed to read artifact
>  > descriptor for org.carrot2:carrot2-mini:jar:3.1.0: Could not transfer
>  > artifact org.carrot2:carrot2-mini:pom:3.1.0 from/to carrot2.org
> <http://carrot2.org>
>  > (http://download.carrot2.org/maven2/): Error transferring file: Server
>  > redirected too many times (20) -> [Help 1]
>  >
>  > [ERROR]
>  >
>  > [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e
>  > switch.
>  >
>  > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>  >
>  > [ERROR]
>  >
>  > [ERROR] For more information about the errors and possible solutions,
> please
>  > read the following articles:
>  >
>  > [ERROR] [Help 1]
>  >
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>  >
>  > [ERROR]
>  >
>  > [ERROR] After correcting the problems, you can resume the build with the
>  > command
>  >
>  > [ERROR] mvn <goals> -rf :solr
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > I have setup server.xml file in maven for proxy but I still receive this.
>  >
>  >
>  >
>  > Regards,
>  >
>  > Lewatle
>  >
>  >
>
>  > <html><p><font face = "verdana" size = "0.8" color = "navy">This
>
>  > communication is intended for the addressee only. It is confidential.
> If you
>  > have received this communication in error, please notify us
> immediately and
>  > destroy the original message. You may not copy or disseminate this
>  > communication without the permission of the University. Only authorized
>  > signatories are competent to enter into agreements on behalf of the
>  > University and recipients are thus advised that the content of this
> message
>  > may not be legally binding on the University and may contain the personal
>  > views and opinions of the author, which are not necessarily the views and
>  > opinions of The University of the Witwatersrand, Johannesburg. All
>  > agreements between the University and outsiders are subject to South
> African
>  > Law unless the University agrees in writing to the
>
>  > contrary.</font></p></html>
>
>
> --
> -----------------------------------------------------------------------
> Dr. Parthasarathi Mukhopadhyay
> Assistant Professor, Department of Library and Information Science,
> University of Burdwan,
> Burdwan - 713 104 (WB), India
> -----------------------------------------------------------------------
>
>
>
>
> --
> -----------------------------------------------------------------------
> Dr. Parthasarathi Mukhopadhyay
> Assistant Professor, Department of Library and Information Science,
> University of Burdwan,
> Burdwan - 713 104 (WB), India
> -----------------------------------------------------------------------
>
> This communication is intended for the addressee only. It is
> confidential. If you have received this communication in error, please
> notify us immediately and destroy the original message. You may not copy
> or disseminate this communication without the permission of the
> University. Only authorized signatories are competent to enter into
> agreements on behalf of the University and recipients are thus advised
> that the content of this message may not be legally binding on the
> University and may contain the personal views and opinions of the
> author, which are not necessarily the views and opinions of The
> University of the Witwatersrand, Johannesburg. All agreements between
> the University and outsiders are subject to South African Law unless the
> University agrees in writing to the contrary.
>
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
>
>
>
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to