Hi,
now, I know why it didn't work. The repository I was trying to
connect to m2e is a group repository. But I handled it as a hosted
repository. Now, I am able to connect to the hosted repositories.
But it would be much better to mirror the group repository which
contains the hosted repositories. This does not work. I get the
following output from the maven console again:
10.01.12 16:49:03
MEZ: [INFO]
Updating index for repository:
test|http://build-test:8080/nexus/content/groups/public/
10.01.12 16:49:03 MEZ:
[ERROR]
Unable to update index for
test|http://build-test:8080/nexus/content/groups/public/
But I can access the group repository via the link http://build-test:8080/nexus/content/groups/public/
via IE.
My settings.xml:
<?xml version="1.0"
encoding="UTF-8"?>
<settings>
<mirrors>
<mirror>
<!--This sends
everything else to /public -->
<id>test</id>
<name>Public
Repositories</name>
<mirrorOf>*</mirrorOf>
<url>http://build-test:8080/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>R2DS</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
<repository>
<id>test</id>
<!-- this url will be overriden by mirror
settings -->
<url>http://nothing</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>test</id>
<!-- this url will be overriden by mirror
settings -->
<url>http://nothing</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile
active all the time -->
<activeProfile>R2DS</activeProfile>
</activeProfiles>
</settings>
The exception:
2012-01-10 16:49:03,562 [Worker-69]
INFO o.e.m.c.i.i.nexus.NexusIndexManager - Updating index for
repository:
test|http://build-test:8080/nexus/content/groups/public/
2012-01-10 16:49:03,578 [Worker-69]
ERROR o.e.m.c.i.i.nexus.NexusIndexManager - Unable to update index
for
test|http://build-test:8080/nexus/content/groups/public/
java.io.IOException: Server
returned
status code 404: Not Found
at
org.eclipse.m2e.core.internal.index.nexus.AsyncFetcher$PipedErrorInputStream.checkError(Unknown
Source)
~[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.AsyncFetcher$PipedErrorInputStream.read(Unknown
Source)
~[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
java.io.PipedInputStream.read(Unknown Source) ~[na:1.6.0]
at
java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.6.0]
at
java.io.BufferedInputStream.read(Unknown Source) ~[na:1.6.0]
at
java.util.Properties.isAscii(Unknown Source) ~[na:na]
at
java.util.Properties.load(Unknown Source) ~[na:na]
at
org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(Unknown
Source)
~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater.access$100(Unknown
Source)
~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(Unknown
Source)
~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(Unknown
Source)
~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(Unknown
Source)
~[indexer-core-3.1.0.jar:3.1.0]
at
org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateRemoteIndex(Unknown
Source)
[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateIndex(Unknown
Source)
[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager$1.run(Unknown
Source)
[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob.run(Unknown
Source)
[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
[org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar:na]
java.io.IOException: Server
returned
status code 404: Not Found
at
org.eclipse.m2e.core.internal.index.nexus.AsyncFetcher$MonitorListener.onStatus(Unknown
Source)
~[na:na]
at
com.ning.http.client.SimpleAsyncHttpClient$BodyConsumerAsyncHandler.fireStatus(Unknown
Source)
~[na:na]
at
com.ning.http.client.SimpleAsyncHttpClient$BodyConsumerAsyncHandler.onStatusReceived(Unknown
Source)
~[na:na]
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.updateStatusAndInterrupt(Unknown
Source)
~[na:na]
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.messageReceived(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.Channels.fireMessageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(Unknown
Source)
~[na:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Unknown
Source)
~[na:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.Channels.fireMessageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.Channels.fireMessageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.socket.nio.NioWorker.read(Unknown Source)
~[na:na]
at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.socket.nio.NioWorker.run(Unknown Source)
~[na:na]
at
org.jboss.netty.util.ThreadRenamingRunnable.run(Unknown Source)
~[na:na]
at
org.jboss.netty.util.internal.DeadLockProofWorker$1.run(Unknown
Source)
~[na:na]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
~[na:1.6.0]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
~[na:1.6.0]
at
java.lang.Thread.run(Unknown Source) ~[na:1.6.0]
Why do I get a code of 404?
Thanks for your help and Regards
Korneilus Krol
Am 10.01.2012 14:18, schrieb Marcel Schutte:
Just a long shot, but you could check your proxy
configuration in RAD.
On Tue, Jan 10, 2012 at 1:51 PM,
Kornelius Krol <kornelius.krol@xxxxxxxxxxxxxx>
wrote:
Yes, I am
sure. In Nexus the Repository Status is "In Service" and I can
access the repository in IE with the link
http://build-test:8080/nexus/content/groups/public/
Am 10.01.2012 13:49, schrieb Igor Fedorenko:
Are you sure you look at the right nexus instance? From
the stack trace
it is pretty clear that m2e gets HTTP ERROR 503 from
nexus
> java.io.IOException: Server returned status code
503: Service Unavailable
--
Regards,
Igor
On 12-01-10 7:45 AM, Kornelius Krol wrote:
The nexus instance is running. I can access it and
have admin user data.
Am 10.01.2012 13:43, schrieb Igor Fedorenko:
Your nexus instance is down, talk to your nexus
administrator.
--
Regards,
Igor
On 12-01-10 7:41 AM, Kornelius Krol wrote:
Hello,
I use m2e from
http://download.eclipse.org/technology/m2e/releases
<http://download.eclipse.org/technology/m2e/releases>
with Rational Software Architect 8.
I have set up a Maven Repository and Nexus. It is
possible to access the
repository via http.
My colleague seems to have the same configuration
and everything works
fine.
Unfortunately, on my PC I cannot acces the
repository via m2e. I get
the following messages in maven console:
10.01.12 12:37:39 MEZ: [INFO] Updating index for
repository:
htde-repository-internal|http://build-test:8080/nexus/content/groups/public/
10.01.12 12:37:42 MEZ: [ERROR] Unable to update
index for
htde-repository-internal|http://build-test:8080/nexus/content/groups/public/
Because these messages are not very informative, I
looked into the log
files, with the following result:
2012-01-10 12:19:29,447
[Worker-5] INFO
o.e.m.c.i.i.nexus.NexusIndexManager - Updating
index for repository:
htde-repository-internal|http://build-test:8080/nexus/content/groups/public/
2012-01-10 12:19:42,493
[Worker-5] ERROR
o.e.m.c.i.i.nexus.NexusIndexManager - Unable to
update index for
htde-repository-internal|http://build-test:8080/nexus/content/groups/public/
java.io.IOException: Server returned status code
503: Service
Unavailable
at
org.eclipse.m2e.core.internal.index.nexus.AsyncFetcher$PipedErrorInputStream.checkError(Unknown
Source) ~[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.AsyncFetcher$PipedErrorInputStream.read(Unknown
Source) ~[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at java.io.PipedInputStream.read(Unknown Source)
~[na:1.6.0]
at java.io.BufferedInputStream.fill(Unknown
Source) ~[na:1.6.0]
at java.io.BufferedInputStream.read(Unknown
Source) ~[na:1.6.0]
at java.util.Properties.isAscii(Unknown Source)
~[na:na]
at java.util.Properties.load(Unknown Source)
~[na:na]
at
org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(Unknown
Source) ~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater.access$100(Unknown
Source) ~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(Unknown
Source) ~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(Unknown
Source) ~[indexer-core-3.1.0.jar:3.1.0]
at
org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(Unknown
Source) ~[indexer-core-3.1.0.jar:3.1.0]
at
org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateRemoteIndex(Unknown
Source) [org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateIndex(Unknown
Source) [org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager$1.run(Unknown
Source)
[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at
org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob.run(Unknown
Source) [org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at org.eclipse.core.internal.jobs.Worker.run(Unknown
Source)
[org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar:na]
java.io.IOException: Server returned status code
503: Service
Unavailable
at
org.eclipse.m2e.core.internal.index.nexus.AsyncFetcher$MonitorListener.onStatus(Unknown
Source) ~[na:na]
at
com.ning.http.client.SimpleAsyncHttpClient$BodyConsumerAsyncHandler.fireStatus(Unknown
Source) ~[na:na]
at
com.ning.http.client.SimpleAsyncHttpClient$BodyConsumerAsyncHandler.onStatusReceived(Unknown
Source) ~[na:na]
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.updateStatusAndInterrupt(Unknown
Source) ~[na:na]
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.messageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(Unknown
Source) ~[na:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Unknown
Source) ~[na:na]
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(Unknown
Source)
~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(Unknown
Source) ~[na:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown
Source) ~[na:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown
Source) ~[na:na]
at org.jboss.netty.channel.socket.nio.NioWorker.read(Unknown
Source) ~[na:na]
at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(Unknown
Source) ~[na:na]
at org.jboss.netty.channel.socket.nio.NioWorker.run(Unknown
Source) ~[na:na]
at org.jboss.netty.util.ThreadRenamingRunnable.run(Unknown
Source) ~[na:na]
at
org.jboss.netty.util.internal.DeadLockProofWorker$1.run(Unknown
Source)
~[na:na]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
~[na:1.6.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source) ~[na:1.6.0]
at java.lang.Thread.run(Unknown Source)
~[na:1.6.0]
Does anyone know how to fix this issue?
Regards
Kornelius K
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
--
Fotografie
http://schutte.name/
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
|