Solved

maven jsf eclipse example issue

Posted on 2013-10-23
1
592 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now