facebook

Enabling Maven Support

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #321093 Reply

    pfranklin
    Member

    I recently downloaded/subscribed to MyEclipseIDE for Spring (9.1). I have sucessfully created and deployed a web project w/webService and Spring support. So I know everything is working. However I have been trying to create a new web project with maven support with no success. I get repeated errors about missing plugins, unable to download messages…..etc. A local maven repository check is initiated which takes well over an hour to complete and also results in numerous errors.

    Could not calculate build plan
    Could not calculate build plan
    Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.1 or one of its dependencies could not be resolved: Missing:
    ———-
    1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.1 -Dpackaging=maven-plugin -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    ———-
    1 required artifact is missing.

    for artifact:
    org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

    1) org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.4

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-deploy-plugin -Dversion=2.4 -Dpackaging=maven-plugin -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-deploy-plugin -Dversion=2.4 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    ———-
    1 required artifact is missing.

    for artifact:
    org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.4

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

    11/15/11 8:28:21 AM MST: [WARN] Failed to retrieve plugin descriptor for Plugin [org.apache.maven.plugins:maven-install-plugin]: Plugin org.apache.maven.plugins:maven-install-plugin:2.3 or one of its dependencies could not be resolved: Missing:
    ———-
    1) org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.3

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-install-plugin -Dversion=2.3 -Dpackaging=maven-plugin -Dfile=/path/to/file

    Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-install-plugin -Dversion=2.3 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

    ———-

    This goes on and on and on…………………………..

    #321111 Reply

    support-swapna
    Moderator

    pfranklin ,

    Sorry that you are seeing this issue with MyEclipse for Spring. I could not replicate the issue at my end.

    Can you answer some more questions for us ?

    1) Can you share your Operating System and version details ?

    2) Can you please list out the exact steps taken to create a web project with maven support for us to investigate further?

    #321133 Reply

    pfranklin
    Member

    O/S = Windows 7 Enterprise

    Steps taken;
    File>New>Web Project
    give it a name
    select Java EE 6.0
    Check Enable Maven Support
    Finish

    There is a previous post titled “Missing Maven Plugin” from May 7, 2010 that seems to be the same issue. Was there a fix provided? I could probably do the same.

    #321165 Reply

    support-tony
    Keymaster

    pfranklin,

    This can happen if you aren’t connected to the Internet (or there are proxy issues getting to the central repository) and don’t have all the required maven plug-ins already in your own local maven repository (which gets populated as you use maven).

    Could you please check that you have an internet connection when doing this and that any proxy you have to use allows you to get to the central maven repository (http://repo1.maven.org/maven2)?

    #321176 Reply

    pfranklin
    Member

    I can get to (http://repo1.maven.org) from my browser and my netbeans IDE. However I do see in the maven console the following error

    update index for central|http://repo1.maven.org/maven2
    11/17/11 6:51:09 AM MST: Updating index central|http://repo1.maven.org/maven2
    11/17/11 6:51:30 AM MST: Unable to download Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties: java.net.ConnectException: Connection timed out: no further information

    I have my proxy set in the network connections Window>properties>General>Network Connections. Do I need to set something else?

    #321180 Reply

    pfranklin
    Member

    As a test I moved my machine to an open internet connection and i was able to create a maven supported project. So the underlying issue is with the network connection setup and getting through the proxy. I have the connection set to manual using the correct proxy server. This proxy works correctly with other IDEs….. do I need to do anything within Maven itself?

    #321217 Reply

    Brian Fernandes
    Moderator

    pfranklin,

    Thank you for your notes – it seems pretty clear that the Maven tooling does not appear to be respecting the proxy settings. I’ve sent this on to our Maven team and we are looking into the issue right now. I will update this thread as further details become available.

    #321266 Reply

    support-tony
    Keymaster

    pfranklin,

    There are additional proxy settings for maven.

    Go to MyEclipse->Preferences->Maven4Myeclipse->User Settings. There you will see the file used for user settings (named, settings.xml). That file (which may not yet exist, in which case, create it) should look something like this, when configuring the proxy:

    <settings>
     <proxies>
      <proxy>
       <active>true</active>
       <protocol>http</protocol>
       <host>proxy.somewhere.com</host>
       <port>8080</port>
       <username>proxyuser</username>
       <password>somepassword</password>
       <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
      </proxy>
     </proxies>
    </settings> 

    Of course, you need to set the elements for your particular situation; the above is just an example.

    Please let us know if this works for you.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Enabling Maven Support

You must be logged in to post in the forum log in