• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

package for java classes not being created by using maven

 
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,
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • 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.
 
Sheriff
Posts: 21997
107
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Continued from https://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.
 
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic