@@ -30,9 +30,8 @@ public final class IndexPageBuilder {
30
30
31
31
private static final String [] EXAMPLE_URLS = new String [] {
32
32
"${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" ,
36
35
"${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-linux-x64.tar.gz" ,
37
36
"${groupIdPath}/${nodeJsArtifactId}/${nodeJsSampleVersion}/${nodeJsArtifactId}-${nodeJsSampleVersion}-darwin-x64.tar.gz" ,
38
37
"${groupIdPath}/${npmArtifactId}/${npmSampleVersion}/${npmArtifactId}-${npmSampleVersion}.pom" ,
@@ -56,34 +55,33 @@ public static String build(MavenProxyConfiguration config) {
56
55
url = StringUtils .replace (url , "${nodeJsSampleVersion}" , config .getNodeJsSampleVersion ());
57
56
url = StringUtils .replace (url , "${npmSampleVersion}" , config .getNpmSampleVersion ());
58
57
exampleUrlsMarkup .append ("<li><a href=\" " ).append (url ).append ("\" >" ).append (url ).append ("</a></li>" );
59
-
60
58
}
61
59
62
60
String serviceVersion = IndexPageBuilder .class .getPackage ().getImplementationVersion ();
63
61
64
62
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>" ;
87
85
}
88
86
89
87
}
0 commit comments