which maven Archetype to use for standalone java project

I am planing to create a maven project to develop a batch program that can be scheduled in windows system.

here is my requirement.

  1. there is no database interaction
  2. need to read xml data and send email using log4j
  3. build jar of the java project.
  4. thinking to use spring OXM with JAXB
  5. need to create .bat file so that it will be schedule using windows task manager for to run it every 2 hours. so I am planing to have a project such that the data configured in xml will be outside of my jar.

please advise which Archetype to select and help on my requirement.

Answers


You should use maven-archetype-simple to create simple jar project


You should run the following command

mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

If you are using Eclipse, then while creating a maven project from wizard it will give one check box on top which says "Create a simple maven project.........". You can select this if you are confuse with what type to select


Need Your Help

Why should I use operator.itemgetter(x) instead of [x]?

python operators

There is a more general question here: In what situation should the built-in operator module be used in python?

AngularJS: 'google-maps': call directive in infoWindow

angularjs google-maps-api-3 google-maps-markers angularjs-directive

I'm using http://nlaplante.github.io/angular-google-maps/ to display a map in my angular Application.