I agree (after reading maven doc) that at least some of my problems relate to 
system/maven settings.
I installed maven directly instead of through brew.

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 
11:22:22-0400)
Maven home: /Users/monikam/Software/maven
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.1", arch: "x86_64", family: "mac"


Now I have a version that actually provides an initial settings.xml file. 
Looking inside reveals no settings though, just lots of empty xml elements.

Again mvm tried to download a non existing jar, so I changed dspace-api/pom.xml
-      <dependency>
-         <groupId>edu.yale</groupId>
-         <artifactId>casclient</artifactId>
-         <version>2.0.11</version>
-      </dependency>
+    <dependency>
+      <groupId>cas</groupId>
+        <artifactId>casclient</artifactId>
+          <version>2.0.11</version>
+          </dependency>
     </dependencies>

Now maven  works away until:

Downloading: 
http://repo.maven.apache.org/maven2/org/apache/pdfbox/pdfbox/1.6.0/pdfbox-1.6.0.jar

It downloads a couple 100 bytes and then hangs

any tips ?

Monika



On Jan 8, 2014, at 11:31 AM, Andrea Bollini 
<[email protected]<mailto:[email protected]>> wrote:

The problem is related to the repositories used vy maven tp download the 
artifacts. You should check the "effective pom" (I don't remember the cmd but 
google can help here).
The standard repositories, as the central repo at maven.org<http://maven.org>, 
are normally defined in the settings.xml that come out of box with maven but 
you can edit it yourself.
You can also add additional repositories editing directly the dspace parent pom 
file but I suggeds to you to try to fix your maven environment first.
Hope this help,
Andrea




Inviato da Tablet Samsung

Monika Mevenkamp <[email protected]<mailto:[email protected]>> ha 
scritto:

I found something on stack overflow that some people have problems with maven 
3.1 so I installed 3.0.5
I am still running into the same problem - aka maven trying to get a jar that 
does not exist
http://oss.sonatype.org/content/repositories/releases/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar

with maven2  I go a little further but then I get unable to find resource 
messages and the command appears to hang

[INFO] Unable to find resource 'org.apache.pdfbox:pdfbox:jar:1.6.0' in 
repository sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
Downloading: 
http://repo1.maven.org/maven2/org/apache/pdfbox/pdfbox/1.6.0/pdfbox-1.6.0.jar
[INFO] Unable to find resource 'org.apache.lucene:lucene-core:jar:4.4.0' in 
repository sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
[INFO] Unable to find resource 'org.apache.pdfbox:jempbox:jar:1.6.0' in 
repository sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
Downloading: 
http://repo1.maven.org/maven2/org/apache/pdfbox/jempbox/1.6.0/jempbox-1.6.0.jar
50K downloaded  (jempbox-1.6.0.jar)

I am fairly sure this has something to do with me coming from a MAC with some 
setting somewhere that directed maven to the wrong url
Do you have any tips where I should start looking ?
Or can I bypass this problem by running a few wgets ?

Monika



On Jan 8, 2014, at 7:18 AM, helix84 
<[email protected]<mailto:[email protected]>> wrote:

Hi Monika,

I wasn't able to reproduce your issue with DSpace 4.0 and Maven 2.2.1.
Maybe it's specific to maven 3.1, because I'm sure it also builds with
Maven 3.0. Or the issue is something else altogether...

On Tue, Jan 7, 2014 at 10:47 PM, Monika Mevenkamp 
<[email protected]<mailto:[email protected]>> wrote:
Downloading:
http://oss.sonatype.org/content/repositories/releases/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
which in fact does not exists:

This doesn't seem right, the jar is located here:

http://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar

At least this is what I'm getting when I delete my ~/.m2:

...
[DEBUG] Unable to locate resource in repository
org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
resource in repository
       at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:139)
       at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
       at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
       at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
       at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
       at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)
       at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)
       at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
       at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
       at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.resolveArtifact(DefaultArtifactResolver.java:456)
       at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver$ResolveArtifactTask.run(DefaultArtifactResolver.java:433)
       at 
hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
       at 
hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
       at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.FileNotFoundException:
http://oss.sonatype.org/content/repositories/releases/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
       at sun.reflect.GeneratedConstructorAccessor16.newInstance(Unknown
Source)
       at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
       at 
sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1458)
       at java.security.AccessController.doPrivileged(Native Method)
       at 
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1452)
       at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1106)
       at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:122)
       ... 13 more
Caused by: java.io.FileNotFoundException:
http://oss.sonatype.org/content/repositories/releases/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
       at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
       at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397)
       at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:115)
       ... 13 more
[DEBUG] Using Wagon implementation lightweight from default mapping
for protocol http
[INFO] Unable to find resource 'ant-contrib:ant-contrib:jar:1.0b3' in
repository sonatype-releases
(http://oss.sonatype.org/content/repositories/releases/)
[DEBUG] Skipping disabled repository sonatype-nexus-snapshots
[DEBUG] Trying repository central
[DEBUG] Using Wagon implementation lightweight from default mapping
for protocol http
[DEBUG] Checking for pre-existing User-Agent configuration.
[DEBUG] Adding User-Agent configuration.
[DEBUG] Connecting to repository: 'central' with url:
'http://repo1.maven.org/maven2'.
Downloading: 
http://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
[DEBUG] Using Wagon implementation lightweight from default mapping
for protocol http
[DEBUG]   Artifact resolved
...

So the only advice I have for now is
a) either to try building with a different version of Maven
b) or to try installing the jar manually to your local repo (mvn
install:install-file), however you may then get this same error for
other jar files.

Hopefully someone more experienced with Maven can shed light on this.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to