Solved

maven jsf eclipse example issue

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

696 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