@Test
public void testUrlEncoding()
throws Exception
{
final String content = "héhé";
System.out.println( " Payload: \"" + content + "\"" );
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
jvm 1 | 2014-01-08 15:40:11,780+0100 INFO [jetty-main-1] *SYSTEM, org.sonatype.nexus.webresources.internal.WebResourceServlet - Max-age: 30 days (2592000 seconds) | |
jvm 1 | 2014-01-08 15:40:11,808+0100 INFO [jetty-main-1] *SYSTEM, org.sonatype.nexus.bootstrap.jetty.InstrumentedSelectChannelConnector - Metrics enabled | |
jvm 1 | 2014-01-08 15:40:11,824+0100 INFO [jetty-main-1] *SYSTEM, org.eclipse.jetty.server.AbstractConnector - Started InstrumentedSelectChannelConnector@0.0.0.0:8081 | |
jvm 1 | 2014-01-08 15:40:11,825+0100 INFO [jetty-main-1] *SYSTEM, org.sonatype.nexus.bootstrap.jetty.JettyServer - Running | |
jvm 1 | 2014-01-08 15:40:11,825+0100 INFO [WrapperListener_start_runner] *SYSTEM, org.sonatype.nexus.bootstrap.jetty.JettyServer - Started | |
jvm 1 | 2014-01-08 15:40:11,913+0100 INFO [ar-4-thread-3] *SYSTEM, org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl - Updated and published prefix file of "Public Repositories" [id=public] | |
jvm 1 | 2014-01-08 15:40:20,892+0100 INFO [qtp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<settings> | |
<servers> | |
<server> | |
<id>nexus</id> | |
<username>user</username> | |
<password>*******</password> | |
</server> | |
</servers> | |
<mirrors> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dorg.sonatype.inject.debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>m2e</id> | |
<activation> | |
<property> | |
<name>m2e.version</name> | |
</property> | |
</activation> | |
<build> | |
<pluginManagement> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.sonatype.nexus</groupId> | |
<artifactId>nexus-complete</artifactId> | |
<packaging>pom</packaging> | |
<version>1.0</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"main" prio=5 tid=00000000029c3c00 nid=0xb0101000 runnable [00000000b00ff000] | |
java.lang.Thread.State: RUNNABLE | |
at org.jdom.AttributeList.size(AttributeList.java:509) | |
at org.jdom.output.XMLOutputter.printAttributes(XMLOutputter.java:1141) | |
at org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:897) | |
at org.jdom.output.XMLOutputter.printContentRange(XMLOutputter.java:1007) | |
at org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:927) | |
at org.jdom.output.XMLOutputter.printContentRange(XMLOutputter.java:1007) | |
at org.jdom.output.XMLOutputter.printElement(XMLOutputter.java:927) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final AsyncHttpClientConfig.Builder configBuilder = new AsyncHttpClientConfig.Builder(); | |
configBuilder.setCompressionEnabled( true ); | |
configBuilder.setRequestCompressionLevel( 6 ); | |
final AsyncHttpClient client = new AsyncHttpClient( configBuilder.build() ); | |
try | |
{ | |
final Response response = client.prepareGet( "http://www.google.com/" ).execute().get(); | |
System.out.println( response.getStatusCode() + " " + response.getStatusText() ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jvm 1 | 2012-02-09 21:11:35.601:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8081 STARTING | |
jvm 1 | 2012-02-09 21:11:35.683:WARN:oejs.AbstractConnector: | |
jvm 1 | java.lang.NullPointerException | |
jvm 1 | at org.eclipse.jetty.io.nio.SelectorManager.register(SelectorManager.java:158) | |
jvm 1 | at org.eclipse.jetty.server.nio.SelectChannelConnector.accept(SelectChannelConnector.java:101) | |
jvm 1 | at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:833) | |
jvm 1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) | |
jvm 1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) | |
jvm 1 | at java.lang.Thread.run(Thread.java:662) | |
jvm 1 | 2012-02-09 21:11:35.684:WARN:oejs.AbstractConnector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Central repository is: | |
http://repo1.maven.org/maven2/ | |
is nginx powered as Arnaud says. Note: browsing/scraping is intentionally disabled, | |
but works for direct HTTP GETs as Maven issues. | |
Sonatype hosts Maven Central for searching it: | |
http://search.maven.org/ |