title: NetBeans: Re-run Maven with the -e switch on / PluginResolutionException
body: <p>i have no clue about Maven and Netbeans,
  i updated my netbeans and now my test is not working anymore:</p>
  
  <pre><code>Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed    to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not transfer artifact    org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central (http://repo1.maven.org/maven2): pr-dfs-bank-   00.emea.isn.corpintra.net: Unknown host pr-dfs-bank-00.emea.isn.corpintra.net -&gt; [Help 1]
  
  To see the full stack trace of the errors, re-run Maven with the -e switch.
  Re-run Maven using the -X switch to enable full debug logging.
  
  For more information about the errors and possible solutions, please read the following articles:
  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
  </code></pre>
  
  <p>How can i activate the -e or -X switch using netbeans, i saw many examples with "mvn clean" and so on, but I installed Maven via Netbeans so i dont have it on a folder for command line.
  I dont get the error message and wanna check out a more detailed log.</p>
  
  <p>I searched my code for this pr-dfs-bank-00.emea.isn.corpintra.net mentioned in the error message, but it is not part of my source code.</p>
  
  <p>My pom.xml, its supposed to be Maven2 and Selenium</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;version&gt;1.0&lt;/version&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
            &lt;id&gt;central&lt;/id&gt;
            &lt;name&gt;Maven Repository Switchboard&lt;/name&gt;
            &lt;layout&gt;default&lt;/layout&gt;
            &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
            &lt;/snapshots&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
            &lt;id&gt;central&lt;/id&gt;
            &lt;name&gt;Maven Plugin Repository&lt;/name&gt;
            &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
            &lt;layout&gt;default&lt;/layout&gt;
            &lt;snapshots&gt;
              &lt;enabled&gt;false&lt;/enabled&gt;
            &lt;/snapshots&gt;
            &lt;releases&gt;
              &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
            &lt;/releases&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt; 
  
      &lt;properties&gt;
          &lt;maven.build.timestamp.format&gt;yyMMdd-HHmm&lt;/maven.build.timestamp.format&gt;
          &lt;project.build.sourceEncoding&gt;windows-1252&lt;/project.build.sourceEncoding&gt;
          &lt;lfadapter&gt;${project.basedir}/../lib/lf_CAdapter-4.0.jar&lt;/lfadapter&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.testng&lt;/groupId&gt;
              &lt;artifactId&gt;testng&lt;/artifactId&gt;
              &lt;version&gt;6.3.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;type&gt;jar&lt;/type&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;2.17.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-ie-driver&lt;/artifactId&gt;
              &lt;version&gt;2.17.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt; 
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt; 
              &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt; 
              &lt;version&gt;3.8-beta5&lt;/version&gt; 
          &lt;/dependency&gt;        
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
              &lt;artifactId&gt;hamcrest-all&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;testSourceDirectory&gt;src/&lt;/testSourceDirectory&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                      &lt;failOnError&gt;false&lt;/failOnError&gt;
                      &lt;debug&gt;true&lt;/debug&gt;
                      &lt;verbose&gt;true&lt;/verbose&gt;
                      &lt;showWarnings&gt;true&lt;/showWarnings&gt;
                      &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
                      &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                      &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
                      &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.12&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;disableXmlReport&gt;false&lt;/disableXmlReport&gt;
                      &lt;forkMode&gt;always&lt;/forkMode&gt;
                      &lt;redirectTestOutputToFile&gt;true&lt;/redirectTestOutputToFile&gt;
                      &lt;failIfNoTests&gt;false&lt;/failIfNoTests&gt;
                      &lt;redirectTestOutputToFile&gt;true&lt;/redirectTestOutputToFile&gt;
                      &lt;workingDirectory&gt;reports/${maven.build.timestamp}/&lt;/workingDirectory&gt;
                      &lt;reportsDirectory&gt;reports/surefire/&lt;/reportsDirectory&gt;
                      &lt;reporting&gt;
                          &lt;plugins&gt;
                              &lt;plugin&gt;
                                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                                  &lt;artifactId&gt;maven-surefire-report-plugin&lt;/artifactId&gt;
                                  &lt;version&gt;2.12&lt;/version&gt;
                              &lt;/plugin&gt;
                          &lt;/plugins&gt;
                      &lt;/reporting&gt;
                      &lt;properties&gt;
                          &lt;property&gt;
                              &lt;name&gt;showSuccess&lt;/name&gt;
                              &lt;value&gt;true&lt;/value&gt;
                          &lt;/property&gt;
                      &lt;/properties&gt;
                      &lt;suiteXmlFiles&gt;
                          &lt;suiteXmlFile&gt;testng-suite.xml&lt;/suiteXmlFile&gt;
                      &lt;/suiteXmlFiles&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;test&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;test&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;netbeans-private-testng&lt;/id&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
                  &lt;property&gt;
                      &lt;name&gt;netbeans.testng.action&lt;/name&gt;
                  &lt;/property&gt;
              &lt;/activation&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I think my pom.xml is not really the way its supposed to be :(</p>
  
  <p>Any help is appreciated :)</p>