Right now, as developer, I'm trying to set up a new build process using Maven2 for our development group in the coming projects. I'll try to document and share some tips, work-arounds and maybe the issues related to Maven2.
In general, to make Maven2 successfull in a Corporate Environment, we need some guidelines or best practices in the following areas:
- Building and Managing a Internal Remote Repository shared among developers
(Note: The two very useful documents I saw on the Internet are Corporate https maven2 repositories and Using Maven in a corporate environment) - Optionally set up a Maven-Proxy inside Firewall to ease the access to central Maven2 Repository at Ibiblio
- Developing RAR, WAR, EJB Archetype or Project Templates for common J2EE Component Projects
(Note: So far, the Maven2 ArcheTypes posted on Maven2 Repository and MyFaces ArcheType are all single project based ArcheTypes, which means that each archetype only generates one pom.xml) - Write or customize Maven2 Plug-ins for your own building process
- A Typical J2EE Application Project Layout or Directory Structure
- Continuous Integration with Nightly Build and Reports
- Caveats and Workarounds:
7.1 How to exclude Maven Property files such as pom.xml and pom.properties in the generated JAR, RAR, and EAR File
7.2 How to set the RAR File name through the pom.xml
7.3 Maven2 ArcheType Plug-in did not recognize internal remote repository
No comments:
Post a Comment