@@ -30,9 +30,8 @@ public final class IndexPageBuilder {
3030
3131 private static final String [] EXAMPLE_URLS = new String [] {
3232 "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}.pom" ,
33- "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-windows-x86.exe" ,
34- "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-windows-x64.exe" ,
35- "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-linux-x86.tar.gz" ,
33+ "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-win-x86.zip" ,
34+ "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-win-x64.zip" ,
3635 "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-linux-x64.tar.gz" ,
3736 "${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-darwin-x64.tar.gz" ,
3837 "${groupIdPath}/${npmArtifactId}/${npmSampleVersion}/${npmArtifactId}-${npmSampleVersion}.pom" ,
@@ -56,34 +55,33 @@ public static String build(MavenProxyConfiguration config) {
5655 url = StringUtils .replace (url , "${nodeJsSampleVersion}" , config .getNodeJsSampleVersion ());
5756 url = StringUtils .replace (url , "${npmSampleVersion}" , config .getNpmSampleVersion ());
5857 exampleUrlsMarkup .append ("<li><a href=\" " ).append (url ).append ("\" >" ).append (url ).append ("</a></li>" );
59-
6058 }
6159
6260 String serviceVersion = IndexPageBuilder .class .getPackage ().getImplementationVersion ();
6361
6462 return "<!DOCTYPE html>\n <html>"
65- + "<head>"
66- + "<title>Maven NodeJS Proxy</title>"
67- + "<style>body { font-family: sans-serif; }</style>"
68- + "</head>"
69- + "<body>"
70- + "<h1>Maven NodeJS Proxy</h1>"
71- + "<p>This is a Maven Artifact Proxy for NodeJS binaries located at: "
72- + "<a href=\" " + config .getNodeJsBinariesRootUrl () + "\" >" + config .getNodeJsBinariesRootUrl () + "</a></p>"
73- + "<p>Every call to this repository is routed directly to this URL .</p>"
74- + "<p><strong>Please never use this Maven repository directly in your maven builds, but only via an Repository Manager "
75- + "which caches the resolved artifacts.</strong></p>"
76- + "<p>If you want to setup your own proxy get the source code: "
77- + "<a href=\" https://github.com/wcm-io-devops/maven-nodejs-proxy\" >https://github.com/wcm-io-devops/maven-nodejs-proxy</a></p>"
78- + "<hr/>"
79- + "<p>Examples :</p>"
80- + "<ul>"
81- + exampleUrlsMarkup
82- + "</ul>"
83- + "<p>For all files SHA1 checksums are supported (.sha1 suffix). MD5 checksums are not supported.</p>"
84- + (serviceVersion != null ? "<hr/><p>Version " + IndexPageBuilder .class .getPackage ().getImplementationVersion () + ". </p>" : "" )
85- + "</body>"
86- + "</html>" ;
63+ + "<head>"
64+ + "<title>Maven NodeJS Proxy</title>"
65+ + "<style>body { font-family: sans-serif; }</style>"
66+ + "</head>"
67+ + "<body>"
68+ + "<h1>Maven NodeJS Proxy</h1>"
69+ + "<p>This is a Maven Artifact Proxy for NodeJS binaries located at: "
70+ + "<a href=\" " + config .getNodeJsBinariesRootUrl () + "\" >" + config .getNodeJsBinariesRootUrl () + "</a></p>"
71+ + "<p>Every call to this Maven repository is routed directly to the NodeJS distribution server .</p>"
72+ + "<p><strong>Please never use this Maven repository directly in your maven builds, use it only via a Repository Manager "
73+ + "which caches the resolved artifacts.</strong></p>"
74+ + "<p>If you want to setup your own proxy get the source code: "
75+ + "<a href=\" https://github.com/wcm-io-devops/maven-nodejs-proxy\" >https://github.com/wcm-io-devops/maven-nodejs-proxy</a></p>"
76+ + "<hr/>"
77+ + "<p>Example artifacts :</p>"
78+ + "<ul>"
79+ + exampleUrlsMarkup
80+ + "</ul>"
81+ + "<p>For all files SHA1 checksums are supported (.sha1 suffix). MD5 checksums are not supported.</p>"
82+ + (serviceVersion != null ? "<hr/><p>Version " + IndexPageBuilder .class .getPackage ().getImplementationVersion () + "</p>" : "" )
83+ + "</body>"
84+ + "</html>" ;
8785 }
8886
8987}
0 commit comments