Post new topic   Reply to topic
Author Message
pfranklin
Registered Member
Registered Member


Joined: Nov 14, 2011
Posts: 4

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................................
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna



Joined: Nov 11, 2010
Posts: 2696

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?

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
pfranklin
Registered Member
Registered Member


Joined: Nov 14, 2011
Posts: 4

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-tony



Joined: Mar 09, 2011
Posts: 983

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)?

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
pfranklin
Registered Member
Registered Member


Joined: Nov 14, 2011
Posts: 4

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?
 
 View user's profile Send private message  
Reply with quote Back to top
pfranklin
Registered Member
Registered Member


Joined: Nov 14, 2011
Posts: 4

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?
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2674

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.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-tony



Joined: Mar 09, 2011
Posts: 983

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:
Code:
<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.

_________________
Tony
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
All times are GMT - 6 Hours
Post new topic   Reply to topic
® 2014 - Genuitec, LLC.