• Post Reply Bookmark Topic Watch Topic
  • New Topic

package for java classes not being created by using maven  RSS feed

 
Tapaswini Kar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi James,

I am facing the following errors in console during clean and packaging respectively.

[INFO] Scanning for projects...
[INFO] Attempting to resolve a version for plugin: org.apache.sling:maven-sling-plugin using meta-version: LATEST
[INFO] Using version: 2.1.0 of plugin: org.apache.sling:maven-sling-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Building Clifford Chance CQ5 CORE
[INFO]
[INFO] Id: com.cc.cq:core:bundle:5.6.1
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
url = http://repo1.maven.org/maven2
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
url = http://repo.adobe.com/nexus/content/groups/public
Downloading: http://repo.adobe.com/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
url = http://download.java.net/maven/2/
Downloading: http://download.java.net/maven/2//org/apache/maven/plugins/maven-clean-plugin/2.2/maven-clean-plugin-2.2.pom
[ERROR]

Maven cannot calculate your build plan, given the following information:

Tasks:
- clean

Current project:
Group-Id: com.cc.cq
Artifact-Id: core
Version: 5.6.1
From file: C:\Dev\Java 2010\Development\Project Refresh\Project Refresh On Cloud\cc-core\pom.xml


Error message: Failed to resolve plugin for mojo binding: org.apache.maven.plugins:maven-clean-plugin:2.2:clean
Root error message: Unable to download the artifact from any repository

while trying to create package:

Error message: Failed to resolve plugin for mojo binding: org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test
Root error message: Unable to download the artifact from any repository



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 20 seconds
[INFO] Finished at: Wed Oct 23 18:34:23 IST 2013
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------

Regards,
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post screenshots for:

Windows->Preferences->Maven->Installations
Windows->Preferences->Maven->User Settings

from within eclipse.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Continued from http://www.coderanch.com/t/622371/java/java/Package-java-files-created-eclipse

Tapaswini, please use the Post Reply button instead of the New Topic button next time if you want to post a follow-up message in an existing thread.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!