Unity Logo

Maven archetypes

When you are starting with XFire project,  you can use maven archetype to create whole projects structure for you. Currently there are available following achetypes:

  •  xfire-jsr181-simple - which creates simple web application with one service class annotated with @WebService,  web.xml configured for XFireConfigurableServlet  and services.xml which set service factory  to AnnotationServiceFactory.
  •  xfire-aegis-simple - which creates web application similar to the one described above, except that it doesn't use annotations (uses ObjectServiceFactory as factory and aegis mapping file for service configuration ).

 To use any of these archetypes you need to execute following command :

 mvn archetype:create  -DarchetypeGroupId=org.codehaus.xfire /

-DarchetypeArtifactId=xfire-jsr181-simple  /

-DarchetypeVersion=1.0-SNAPSHOT -DgroupId=<YOUR_PROJECT_GROUP_ID> /

-DartifactId=<YOUR_PROJECT_ID> /

-DremoteRepositories=http://snapshots.repository.codehaus.org/

After this command is finished you can run mvn package and deploy fully functional web application ( war file from target folder ) to your preferred application server. When you make sure everything is working fine, you can start modifying generated  service class with your favorite IDE.

© 2003-2008 Codehaus