?
Solved

maven jsf eclipse example issue

Posted on 2013-10-23
1
Medium Priority
?
655 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 2000 total points
ID: 39596858
Do a search on google for Malformed POM pluginmanagement and you'll get loads of results.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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