O'Reilly logo

Maven for Eclipse by Sanjay Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding resources

We are going to use log4j to log in to the file or console. Log4j is configured via the log4j properties file. Now let's create the properties file. To do so, navigate to src/main/resources, right-click on resources and select New | Other...; a new wizard appears. Search for file in the Filter section, select File, and click on Next, as shown in the following screenshot:

Adding resources

Next, a File resource window appears; enter the filename as log4j.properties and make sure the parent folder is MyDistance/src/main/resources and click on Finish, as shown in the following screenshot:

Note

Resources are placed in the src/main/resources folder.

Once ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required