Solved

maven jsf eclipse example issue

Posted on 2013-10-23
1
630 Views
Last Modified: 2013-11-09
hi,

i am working on below maven jsf weclipse example

http://www.lulu.com/items/volume_62/1080000/1080910/2/print/Java-Maven-Eclipse-JSF-Tutorial.pdf

I was able to proceed until 17 successfully.

In the page number 18

C:\tutorials>cd simpleWeb
C:\tutorials\simpleWeb>mvn eclipse:eclipse


I am getting error saying


ption
C:\tutorials\simpleWeb>mvn eclipse:eclipse
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.mytutorial:simpleWeb:1.0-SNAPSHOT (C:\tutorials\simple
Web\pom.xml) has 1 error
[ERROR]     Malformed POM C:\tutorials\simpleWeb\pom.xml: Unrecognised tag: 'plu
ginManagement' (position: START_TAG seen ...</build>\r\n  <pluginManagement>...
@21:21)  @ C:\tutorials\simpleWeb\pom.xml, line 21, column 21 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseExce
ption
C:\tutorials\simpleWeb>

Open in new window


How to fix this error.

I was able to proceeded till page 19 after fixing above issue in the pom.xml entry.

I do not see the META-INF  and MANIFEST.MF, classes under target folder etc are missing as attached.
How to fix this error.

Also in page 30 to find out version below links seems broken
http://repo1.maven.org/

do I supposed to go to below link instead?
http://search.maven.org/remotecontent?filepath=javax/faces/jsf-api/2.1/jsf-api-2.1.pom

To create properties file as explained from page 35-38 i do not have package
src/main/resources created for me to so that i can create properties file under that and add those entries. How to resolve this issue??(com.mytutorial is not appeaing as package but as folder and subfolder some reason, not sure how to fix it)

In the page 41 when I try to 'generate setters. getters' getting error as bean not in the build path. Please advise

Please advise. Any ideas, resources, sample code highly appreciated. thanks in advance
mavenJSF1.jpg
mavenJSF2.jpg
mavenJSF3.jpg
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 39596858
Do a search on google for Malformed POM pluginmanagement and you'll get loads of results.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JavaFX TableView not displaying correctly 3 155
Is Applet the way to go for my drag and drop system? 8 51
wild fly 8 startup error 2 78
Java regex 5 21
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.
Suggested Courses

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question