unable installing maven

Help
2010-01-12
2013-05-01
  • Mohammad Sami
    Mohammad Sami
    2010-01-12

    Hi all;
    i`m trying to install maven but when i enter
    mvn install this is error happening, i`m new to jtrac and maven so any help will b appreciated

    C:\>mvn install
    Scanning for projects…


    Building Maven Default Project
        task-segment:


    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
    ces-plugin/2.3/maven-resources-plugin-2.3.pom
    Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository central (http://repo1.maven.org/maven2): Authorizatio
    n failed: Access denied to: http://repo1.maven.org/maven2/org/apache/maven/plugi
    ns/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
    ces-plugin/2.3/maven-resources-plugin-2.3.pom
    Unable to get resource 'org.apache.maven.plugins:maven-resources-plugi
    n:pom:2.3' from repository central (http://repo1.maven.org/maven2): Authorizatio
    n failed: Access denied to: http://repo1.maven.org/maven2/org/apache/maven/plugi
    ns/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom


    BUILD ERROR

    Error building POM (may not be this project's POM).

    Project ID: org.apache.maven.plugins:maven-resources-plugin

    Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repos
    itory: Unable to download the artifact from any repository

      org.apache.maven.plugins:maven-resources-plugin:pom:2.3

    from the specified remote repositories:
      ibiblio.org (http://repo1.maven.org/maven2)

    for project org.apache.maven.plugins:maven-resources-plugin


    For more information, run Maven with the -e switch

    Total time: < 1 second
    Finished at: Tue Jan 12 11:53:28 GMT+02:00 2010
    Final Memory: 1M/4M


     
  • Manfred Wolff
    Manfred Wolff
    2010-01-12

    Are you behind a firewall ??

     
  • Mohammad Sami
    Mohammad Sami
    2010-01-12

    yes is there a problem with that ?
    and if  yes please is there any thing i can do ?

     
  • Mohammad Sami
    Mohammad Sami
    2010-01-13

    thre is no settings.xml file in my reposotory

     
  • Manfred Wolff
    Manfred Wolff
    2010-01-13

    YOU (!!) have to add it.

     
  • Mohammad Sami
    Mohammad Sami
    2010-01-13

    well thanks thats helped a bit :)
    but another problem happens :(
    it gave me this

    BUILD FAILURE

    There are test failures.

    Please refer to C:\jtrac-src-2.1.0\jtrac\target\surefire-reports for the individ
    ual test results.


    For more information, run Maven with the -e switch

    Total time: 6 minutes 11 seconds
    Finished at: Wed Jan 13 13:37:20 GMT+02:00 2010
    Final Memory: 17M/31M

     
  • Manfred Wolff
    Manfred Wolff
    2010-01-13

    try
    mvn package -Dmaven.test.skip

    That skip the tests. Sometime a

    mvn clean

    helps also.

     
  • Mohammad Sami
    Mohammad Sami
    2010-01-13

    great,  it worked correctly thank you very much