Solved

maven jsf eclipse example issue

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
listing all functions in JavaScript 19 202
Java Server Faces parameter pass? 6 50
replace a word with other 1 44
login form jsp example 2 25
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

777 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