Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven User-Agent property and pluginRepository
    text
    copied!<h2>What I want</h2> <p>To get this guide to work <a href="http://blog.bigpixel.ro/2012/07/building-cc-applications-with-maven/" rel="nofollow">http://blog.bigpixel.ro/2012/07/building-cc-applications-with-maven/</a></p> <h2>The Error</h2> <p>I'm running into into troubles with a HTTP 500 error code, which is as follows:</p> <pre><code>[ERROR] Unresolveable build extension: Plugin org.apache.maven.plugins:maven-nar-plugin:2.1-SNAPSHOT or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-nar-plugin:jar:2.1-SNAPSHOT (): Failed to read artifact descriptor for org.apache.maven.plugins:maven-nar-plugin:jar:2.1-SNAPSHOT: Could not transfer artifact org.apache.maven.plugins:maven-nar-plugin:pom:2.1-SNAPSHOT from/to Duns maven snapshot (http://duns.github.com/maven-snapshots/): Failed to transfer file: http://duns.github.com/maven-snapshots/org/apache/maven/plugins/maven-nar-plugin/2.1-SNAPSHOT/maven-nar-plugin-2.1-SNAPSHOT.pom. Return code is: 500, ReasonPhrase:( The request was rejected by the HTTP filter. Contact your Forefront TMG administrator. ). -&gt; [Help 2] </code></pre> <h2>What I've tried</h2> <p>I started with the 'maven getting started in 5 minutes' tutorial. This didn't go smoothly as I ran into a 500 HTTP error because of forefront that's implemented on my current network. I managed to get around this by setting the User Agent string property within my settings.xml. </p> <pre><code>&lt;servers&gt; &lt;server&gt; &lt;id&gt;central&lt;/id&gt; &lt;configuration&gt; &lt;httpHeaders&gt; &lt;property&gt; &lt;name&gt;User-Agent&lt;/name&gt; &lt;value&gt;Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; InfoPath.1; SV1; .NET CLR 3.8.36217; WOW64; en-US)&lt;/value&gt; &lt;/property&gt; &lt;/httpHeaders&gt; &lt;/configuration&gt; &lt;/server&gt; &lt;/servers&gt; </code></pre> <p>This worked and I was able to get maven working for java projects. </p> <p>I would have thought that that would be the end of the HTTP 500 errors but I'm still getting them whenever I try to pull plugins from a new pluginRepository. </p> <p>I've followed the guide linked at top with one exception. Instead of putting the pluginRepository in the pom.xml in the parent folder, I put it into a profile within my settings.xml file. I did first try putting in the pom.xml but later pulled it out in the hopes that it would fix it.</p> <p>Is there something within maven that is not honouring this User-Agent string that I've specified? Why does it work for the maven 5 minute tutorial and not for anything else?</p> <p>Any help would be greatly appreciated. Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload