Koray Tugay
Koray Tugay

Reputation: 23854

What are the VERY basic dependencies for a JSF project?

I am trying to learn JSF.

Can someone give me the LEAST required dependencies for a JSF project which will be built to a war file which says Hello world? I guess I need a servlet, and apache myfaces?

It would be better if it is in terms of maven dependencies.

Thank you.

Upvotes: 0

Views: 74

Answers (1)

Arjan Tijms
Arjan Tijms

Reputation: 38163

The simplest setup is to download TomEE (it includes Servlet and JSF). Then use the following as Maven dependency:

<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-web-api</artifactId>
    <version>6.0</version>
    <scope>provided</scope>
</dependency>

An example of one of the most basic JSF apps possible: Minimal 3-tier Java EE app, without any XML config

Upvotes: 3

Related Questions