Register | Forgot password
In the new WebManager 9.7 release, the archetypes have been pimped. The archetypes of 9.6 were based on the maven archetype plugin that has been significantly improved over the last year. Upgrading to this new plugin (which requires at least maven 2.0.7) opened up the door to many new features, like dynamic classnames and filenames. These new features allowed us to fix stuff that the archetypes previously caused to fail in the certification process, if the archetypes were used 'as-is'. But this is no more! In 9.7 you can generate your code from the archetypes and it will pass the certification process from scratch!
So what is new in 9.7?
How do I generate code from an archetype?
First of all, you will need Maven 2.0.7 in stead of Maven 2.0.6, which was the minimum requirement for 9.6 and earlier. Now there are some minor changes in the command that is used to generate WCBs from the archetype, this is the new syntax for generating a custom element:
mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=nl.gx.webmanager.archetypes -DarchetypeArtifactId=webmanager-element-archetype -DarchetypeVersion=9.7.0-SNAPSHOT -DgroupId=com.gxwebmanager.helloworld -DartifactId=helloworldelement -Dclassprefix=HelloWorld -s ..\settings.xml
The changes are displayed in bold:
What archetypes are available?
In 9.7, one new archetype has become available, which is the scheduled job. Below is an overview of alle archetypes available in 9.7.
| webmanager-element-archetype | Element component |
| webmanager-formcomponent-archetype | Form component, provides a handler, router and validator |
| webmanager-mediaitem-archetype | Custom media item component |
| webmanager-pagemetadata-archetype | Page metadata component |
| webmanager-panel-archetype | Custom panel component |
| webmanager-presentation-archetype | Presentation component |
| webmanager-scheduledjob-archetype | Scheduled job component |
| webmanager-service-archetype | Service component |
| webmanager-servlet-archetype | Servlet component |
| webmanager-testbundle-archetype | Test bundle component |
| webmanager-webtvchannelmetadata-archetype | Web TV Channel metadata component |
| webmanager-webtvgeneralmetadata-archetype | Web TV general metadata component |
Ivo Ladage is product architect and is part of one of the SCRUM-teams. Ivo has special interests in Workflow and Authorization processes and Spring MVC.
Read all Ivo's blog entries
Other blog entries: