title: Error in Maven in Jenkins while resolving for io.netty:netty-transport-native-epoll
body: <p>I am getting this error while trying to build my project in Jenkins:</p>
  
  <pre><code>[ERROR] Failed to execute goal on project MyProject: 
  Could not resolve dependencies for project com.example:MyProject:jar:0.0.2-SNAPSHOT: 
  Could not transfer artifact io.netty:netty-transport-native-epoll:jar:${os.detected.name}-${os.detected.arch}:4.1.4.Final
  from/to nexus (http://nexus.example.com:8081/repository/maven-public/):
  Failed to transfer file:
  http://nexus.example.com:8081/repository/maven-public/io/netty/netty-transport-native-epoll/4.1.4.Final/netty-transport-native-epoll-4.1.4.Final-$%7Bos.detected.name%7D-$%7Bos.detected.arch%7D.jar.
  Return code is: 500 , ReasonPhrase:Server Error. -&gt; [Help 1]
  </code></pre>
  
  <p>It looks it is mainly because <code>${os.detected.name}-${os.detected.arch}</code> is added to the link, I have checked that the jar is available in Nexus without these variables, the problem appears only in Jenkins which runs in Debian, but not on my windows machine (which has the same settings.xml file and the same POM.xml) the build works fine with no problems on windows, but not on linux. I have tried to add -X to maven in jenkines to debug, I can see in the consol output this:</p>
  
  <pre><code>OS name: "linux", version: "3.16.0-4-amd64", arch: "amd64", family: "unix"
  </code></pre>
  
  <p>But this is not added to the link while trying to resolve the dependency which is:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;io.netty&lt;/groupId&gt;
      &lt;artifactId&gt;netty-microbench&lt;/artifactId&gt;
      &lt;version&gt;4.1.5.Final&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Maven which I am using with Jenkins is Apache Maven 3.3.9, the strange thing is that this problem do not show up in Windows. <a href="https://stackoverflow.com/questions/33360154/how-to-build-netty-transport-native-epoll-4-0-32-final-linux-x86-64-jar">Here</a>, there is a repo link for linux, I have added that to maven, but still these varaibles are not changed in the link and that's why the download failes, any ideas?</p>