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]> 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]>
> 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
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&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