Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Maven Issues - mvn install

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Maven Issues - mvn install

    Now I'm not sure if this is the correct forum to post this on but I couldn't find any forum which seemed to specialise in build tools. If this is not the correct forum, please feel free to move to a more appropriate place.

    I'm new to Maven and am having an issue when trying to use the 'mvn install' command on a project. The output I'm getting is:

     
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building
    [INFO]    task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
    ces-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
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
     
     
    [INFO] 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 repository: Unable to download the artifact from any repository
     
      org.apache.maven.plugins:maven-resources-plugin: pom:2.3
     
    from the specified remote repositories:
      central (http: //repo1.maven.org/maven2)
     
     for project org.apache.maven.plugins:maven-resources-plugin

    I know that I'm sitting behind proxy but (I think) I have added the correct <proxy> credentials in my settings.xml file.

    Could the error message I'm getting be down to the fact that my proxy is not actually setup correctly? Is there anyway I can test this?

    Thanks for your help in advance.


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Maven Issues - mvn install

    Yes Id say you are getting this error because maven cant download an artifact you need.

    // Json

  3. #3
    Junior Member
    Join Date
    Aug 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Maven Issues - mvn install

    So do you think its because I haven't got my <proxy> setup in my settings.xml file? It currently looks something similar to:

    <proxy>
          <id>optional</id>
          <active>true</active>
          <protocol>http</protocol>
          <username>MyUsername</username>
          <password>MyPassword</password>
          <host>MyHost</host>
          <port>80</port>
          <nonProxyHosts>MyHost2</nonProxyHosts>
        </proxy>

    (with the username, password, etc replaced with their correct values). Does this look correct? Is there anyway I can test to confirm that it is definately the proxy causing the issue?

  4. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Maven Issues - mvn install

    What version of Maven are you using?

    // Json

  5. #5
    Junior Member
    Join Date
    Aug 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Maven Issues - mvn install

    Version 2.0.10.

  6. #6
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Maven Issues - mvn install

    If your proxy username is on a domain you will need to have the domain in the username box as well.

    <username>MyDomain/MyUsername</username>

    // Json

Similar Threads

  1. Problem with sprite rotation in graphics
    By Katotetu in forum Algorithms & Recursion
    Replies: 0
    Last Post: May 8th, 2009, 07:27 PM