From: Vance K. <va...@us...> - 2007-01-17 04:48:26
|
User: vancek Date: 07/01/16 20:48:26 Added: samples/booking-seam/app pom.xml samples/booking-seam .project readme.txt .classpath pom.xml samples/booking-seam/mda/src/main/config/mappings WebMergeMappings.xml samples/booking-seam/web pom.xml samples/booking-seam/web/src/main/properties messages.properties samples/booking-seam/mda/src/main/config andromda.xml samples/booking-seam/core pom.xml samples/booking-seam/common pom.xml samples/booking-seam/app/src/main/config booking-seam-ds.xml samples/booking-seam/app/src/main/application/META-INF jboss-app.xml samples/booking-seam/mda pom.xml samples/booking-seam/mda/src/main/uml booking-seam.xmi Log: JBoss Seam booking system sample project (ejb3) Revision Changes Path 1.1 plugins/samples/booking-seam/app/pom.xml Index: pom.xml =================================================================== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.andromda.test.hotelbooking</groupId> <artifactId>booking-seam</artifactId> <version>1.0-SNAPSHOT</version> </parent> <artifactId>booking-seam-app</artifactId> <packaging>ear</packaging> <name>Seam Booking Application</name> <dependencyManagement> <dependencies> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <exclusions> <exclusion> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-mda</artifactId> </exclusion> <exclusion> <groupId>org.andromda.profiles.uml14</groupId> <artifactId>andromda-profile</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <version>${pom.version}</version> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-core</artifactId> <version>${pom.version}</version> <type>ejb</type> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-web</artifactId> <version>${pom.version}</version> <type>war</type> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </dependency> </dependencies> <build> <finalName>${application.id}-${pom.version}</finalName> <resources> <resource> <directory>src/main/config</directory> <targetPath>../</targetPath> <filtering>true</filtering> </resource> <resource> <directory>src/main/application</directory> <targetPath>../${application.id}-${pom.version}</targetPath> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.1</version> <configuration> <includes>**/*.xml</includes> <excludes>**/jboss-app.xml</excludes> <version>1.4</version> <modules> <javaModule> <groupId>org.jboss</groupId> <artifactId>jboss-seam</artifactId> <includeInApplicationXml>true</includeInApplicationXml> </javaModule> <javaModule> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <includeInApplicationXml>true</includeInApplicationXml> </javaModule> <ejbModule> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-core</artifactId> </ejbModule> <webModule> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-web</artifactId> <contextRoot>/${application.id}</contextRoot> </webModule> </modules> </configuration> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <executions> <execution> <goals> <goal>deploy</goal> </goals> </execution> </executions> <configuration> <deployLocation>${jboss.home}/server/default/deploy</deployLocation> <!-- include the generated data source file --> <includes> <include>*ds.xml</include> </includes> </configuration> </plugin> </plugins> </build> </project> 1.1 plugins/samples/booking-seam/.project Index: .project =================================================================== <projectDescription> <name>booking-seam</name> <comment/> <projects/> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments/> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> 1.1 plugins/samples/booking-seam/readme.txt Index: readme.txt =================================================================== A n d r o M D A - 3.3-SNAPSHOT AndroMDA is an open-source MDA framework distributed under the BSD license. Go to http://www.andromda.org/ for more information. The project located in this directory has been generated by Vance Karimi using the andromdapp:generate Maven plugin. You should at least be running Maven 2.0.1 if you want to build your project without any Maven-related problems, below is a summary of what has been generated and a list of example goals to call from the command line. The generated project structure is well-tailored for use in the development of J2EE projects. The build process itself makes use of Maven, dependencies and often-used goals have been added for your convenience. Custom configuration can be done by updating the root pom.xml file. /booking-seam J2EE project | | The root of the project contains a few files that control the overall | build process and common properties (in the pom.xml). | |-- pom.xml | contains information about this project, you may add more information | as long as you do not violate the Maven POM schema, see | http://maven.apache.org/reference/project-descriptor.htmlt | +-- /mda | | | | The MDA module is the heart of this project, this is where | | AndroMDA is configured to generate the files needed to | | assemble the application | | | +-- pom.xml | | contains the AndroMDA dependencies and configuration (cartridges, translation-libraries, etc) | +-- /src | | additional sources such as merge-mappings can be | | placed here, check out the /main/uml directory, it contains | | the UML model from which AndroMDA will generate code | +-- /src/main/config/andromda.xml | configures AndroMDA and its components, most | importantly the cartridges which are listed in | their own namespace; global settings are done in the | 'default' namespace | +-- /common | | | | The COMMON module collects those resources and classes | | that are shared between the other modules. | | | +-- pom.xml | | lists common dependencies | +-- /target | shared resources and java classes are generated here, | such as value objects and exceptions | +-- /core | | | | The CORE module collects those resources and classes | | that use the EJB framework | | | +-- pom.xml | | lists EJB[3.0] dependencies | +-- /src/main/java | | EJB[3.0] classes that need manual implementation are | | generated here, they will not be overwritten upon | | regeneration | +-- /target | the EJB[3.0] classes here will be overwriten each time | AndroMDA generates new code using the EJB[3.0] cartridge | +-- /web | | | | The WEB module collects those resources and classes | | that make up the presentation layer. | | | +-- pom.xml | | lists WebApp dependencies | +-- /src/main/java | | controller implementations and editable resource bundles | | will be generated here, | | you might consider putting your own JSPs here to | | be copied over the generated ones when bundling the | | .war file | +-- /target | any JSF classes, JSPs, resource bundles and | configuration files are generated here | +-- /webservice | | | | The WEBSERVICE module collects those resources and | | classes that use the AXIS framework | | | +-- pom.xml | | lists any dependencies for webservices | +-- /target | generated files are emitted here | +-- /app | | The APP module collects those resources and classes | that are required to actually build the .ear bundle | +-- pom.xml | lists dependencies to be bundles into the | root of the .ear +-- /src | any custom resources that should be deployed | together with the application | (eg. server deployment descriptors) +-- /target a deployable application is bundled here In order to succesfully build your project you will need to know how to invoke the build process for the existing modules, here's a list of examples: %> mvn install simply builds all modules %> mvn -f app/pom.xml -Ddeploy collects all artifacts and builds a deployable .ear which is then deployed %> mvn clean cleans all generated files from each target directory %> mvn install -Ddeploy rebuilds the entire application and deploys %> mvn install -Denv=prod builds the entire application for the production environment, possible 'env' property values are 'prod' for production, 'val' for validation and 'dev' for development; not specifying any value for this property will build the application for the local configuration (more info at http://maven.apache.org/guides/introduction/introduction-to-profiles.html) %> mvn -f web/pom.xml andromdapp:undeploy -o undeploys the ear from your app server %> mvn -N andromdapp:build -Dmodules=core (or mvn -f core/pom.xml) only build the core module %> mvn -N andromdapp:build -Dmodules=web (or mvn -f web/pom.xml) only build the web module %> mvn nuke cleans out all /target directories and removes all Java classes with names ending with 'Impl' from the source directories (from the common, core and web modules); this goal asks for confirmation, but be careful calling it anyway as you will lose your manually edited files %> mvn -f core/pom.xml andromdapp:schema -Dtasks=create generates the DDL create code and subsequently tells the database to create the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=drop generates the DDL drop code and subsequently tells the database to drop the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=drop,create generates the drop and create DDL code and subsequently tells the database to drop and then create the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=update attempts to update the database schema with incremental changes, might not work with all JDBC drivers see http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#toolsetguide-s1-6 %> mvn -f core/pom.xml andromdapp:schema -Dtasks=validate validates the current Hibernate mappings against the database, you can also use this to simply check whether or not the mappings have been properly generated (in case of customizations) %> mvn -N andromdapp:build -Dmodules=mda:[andromda:start-server] (or mvn -f mda/pom.xml andromda:start-server) starts the AndroMDA server, with this server running you will be able to significantly speedup the generation process although it will require you to use another console while it is running %> mvn -N andromdapp:build -Dmodules=mda:[andromda:stop-server] (or mvn -f mda/pom.xml andromda:stop-server) stops the AndroMDA server %> mvn -N andromdapp:build -Dmodules=mda (or mvn -f mda/pom.xml) runs AndroMDA on your model and thereby generating files in the subdirectories of the existing modules %> mvn -N andromdapp:build -Dmodules=mda -Dfilter=java,hibernate (or mvn -f mda/pom.xml -Dfilter=java,hibernate) runs AndroMDA, but this time only using the Java and Hibernate cartridges (in that order) %> mvn -N andromdapp:build -Dmodules=mda -Dfilter=~java,hibernate (or mvn -f mda/pom.xml -Dfilter=~java,hibernate) runs AndroMDA, but this time using all cartridges *except* the Java and Hibernate cartridges %> mvn -N andromdapp:build -Dmodules=mda,core,web,app -Dfilter=java -Ddeploy runs AndroMDA using only the Java cartridge, rebuilds the core module and web module and deploys afterwards %> mvn -N andromdapp:build -Dconsole runs the AndroMDApp build goal in 'console' mode, once running, this allows you to execute any goal or subproject goal in the manner described above without having to specify the andromdapp:build goal or restarting maven (i.e. you can run the mda goal by typing 'mda', build the core module by type 'core', etc). Please note that you may use the '-o' flag at any time to avoid having Maven downloading any SNAPSHOT dependencies. Each module will install its artifact into the local Maven repository, this might be a directory looking like this: (Windows) C:\Documents and Settings\Vance Karimi\.m2\repository\booking-seam\ (*nix) /home/Vance Karimi/.maven/repository/booking-seam/ For questions or feature requests please use our forum: http://forum.andromda.org/ Good luck! -- The AndroMDA Team 1.1 plugins/samples/booking-seam/.classpath Index: .classpath =================================================================== <classpath> <classpathentry kind="src" path="common/target/src"/> <classpathentry kind="src" path="core/src/main/java"/> <classpathentry kind="src" path="core/target/src"/> <classpathentry kind="src" path="web/target/src"/> <classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/> <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/> <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/> <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/> <classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar"/> <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/> <classpathentry kind="var" path="M2_REPO/org/andromda/andromda-core/3.3-SNAPSHOT/andromda-core-3.3-SNAPSHOT.jar"/> <classpathentry kind="var" path="M2_REPO/org/andromda/andromda-utils/3.3-SNAPSHOT/andromda-utils-3.3-SNAPSHOT.jar"/> <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.2.0-CR2/hibernate-annotations-3.2.0-CR2.jar"/> <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-client/3.2.0-CR2/hibernate-client-3.2.0-CR2.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3-persistence/4.0.4-GA/ejb3-persistence-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-annotations-ejb3/4.0.4-GA/jboss-annotations-ejb3-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-aop-jdk50-client/4.0.4-GA/jboss-aop-jdk50-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-aspect-jdk50-client/4.0.4-GA/jboss-aspect-jdk50-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-ejb3-client/4.0.4-GA/jboss-ejb3-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-ejb3x/4.0.4-GA/jboss-ejb3x-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-j2ee/4.0.4-GA/jboss-j2ee-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-remoting/4.0.4-GA/jboss-remoting-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-seam/1.1.0-GA/jboss-seam-1.1.0-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jbossws-client/4.0.4-GA/jbossws-client-4.0.4-GA.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/adf-faces-api.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/andromda-jsf-cartridge-components.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/myfaces-api.jar"/> <classpathentry kind="lib" path="o:/workspace3.2.1/andromda-plugins/samples/booking-seam/web/target/src/WEB-INF/lib/tomahawk.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="target/classes"/> </classpath> 1.1 plugins/samples/booking-seam/pom.xml Index: pom.xml =================================================================== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.andromda.test.hotelbooking</groupId> <artifactId>booking-seam</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <name>Seam Booking</name> <description>The Seam Booking Project.</description> <scm> <connection></connection> <url></url> </scm> <organization> <name></name> <url></url> </organization> <ciManagement> <system>continuum</system> <notifiers> <notifier> <type>mail</type> <configuration> <address></address> </configuration> </notifier> </notifiers> </ciManagement> <developers> <developer> <id></id> <name>Vance Karimi</name> <email></email> <organization></organization> <roles> <role>Developer</role> </roles> <timezone></timezone> </developer> </developers> <dependencyManagement> <dependencies> <dependency> <groupId>org.andromda.profiles.uml14</groupId> <artifactId>andromda-profile</artifactId> <version>3.3-SNAPSHOT</version> <type>xml.zip</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.profiles.uml14</groupId> <artifactId>andromda-profile-seam</artifactId> <version>1.1-SNAPSHOT</version> <type>xml.zip</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-ejb3-cartridge</artifactId> <version>1.0-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-java-cartridge</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-jsf-cartridge</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-utils</artifactId> <version>3.3-SNAPSHOT</version> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> <exclusion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> </exclusion> <exclusion> <groupId>xalan</groupId> <artifactId>xalan</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.andromda.translationlibraries</groupId> <artifactId>andromda-ocl-query-library</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <!-- This dependency provides the ability to implement your business logic in an interpreted manner during development on your local machine --> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-script-wrappers</artifactId> <version>3.3-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.7.0</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-j2ee</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossall-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3x</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>ejb3-persistence</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-annotations-ejb3</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-serialization</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-remoting</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jnp-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aop-jdk50-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aspect-jdk50-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossws-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-jaxrpc</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-client</artifactId> <version>3.2.0-CR2</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.2.0-CR2</version> <scope>provided</scope> </dependency> <dependency> <groupId>antlr</groupId> <artifactId>antlr</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>1.7</version> <scope>runtime</scope> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-validator</groupId> <artifactId>commons-validator</artifactId> <version>1.1.4</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.0</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>itext</groupId> <artifactId>itext</artifactId> <version>0.99</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.1.2</version> <scope>runtime</scope> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.1</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> <version>2.0.8</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.3</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-seam</artifactId> <version>1.1.0-GA</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <defaultGoal>install</defaultGoal> <pluginManagement> <plugins> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromda-multi-source-plugin</artifactId> <version>3.3-SNAPSHOT</version> <executions> <execution> <goals> <goal>add-source</goal> </goals> <configuration> <sourceDirectories> <directory>target/src</directory> </sourceDirectories> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromda-maven-plugin</artifactId> <version>3.3-SNAPSHOT</version> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <version>3.3-SNAPSHOT</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </pluginManagement> </build> <modules> <module>mda</module> <module>common</module> <module>core</module> <module>web</module> <module>app</module> </modules> <properties> <!-- Change this to generate to the correct MDA database mappings, For MySql use: MySQL For Hypersonic use: HypersonicSql For Oracle9i use: Oracle9i For DB2 use: DB2 For Informix use: InformixDB For MSSQL use: MSSQL For Pointbase use: PointBase For Postgres use: PostgreSQL For Sybase use: Sybase For SapDB use: SapDB For Derby use: Derby --> <sql.mappings> MySQL </sql.mappings> <!-- Change this for the appropriate database For MySql use: org.hibernate.dialect.MySQLDialect For MySql InnoDB use: org.hibernate.dialect.MySQLInnoDBDialect For MySql MyISAM use: org.hibernate.dialect.MySQLMyISAMDialect For Hypersonic use: org.hibernate.dialect.HSQLDialect For Oracle any version use: org.hibernate.dialect.OracleDialect For Oracle9i/10g use: org.hibernate.dialect.Oracle9Dialect For DB2 use: org.hibernate.dialect.DB2Dialect For Informix use: org.hibernate.dialect.InformixDialect For MSSQL use: org.hibernate.dialect.SQLServerDialect For Pointbase use: org.hibernate.dialect.PointbaseDialect For Postgres use: org.hibernate.dialect.PostgreSQLDialect For Sybase use: org.hibernate.dialect.SybaseDialect For Sybase Anywhere use: org.hibernate.dialect.SybaseAnywhereDialect For SapDB use: org.hibernate.dialect.SAPDBDialect For Progress use: org.hibernate.dialect.ProgressDialect For Derby use: org.hibernate.dialect.DerbyDialect --> <hibernate.dialect> org.hibernate.dialect.MySQLInnoDBDialect </hibernate.dialect> <!-- Change this to the correct database type mappings (for Jboss) For MySql use: mySQL For Hypersonic use: Hypersonic SQL For Oracle9i use: Oracle9i For DB2 use: DB2 For Informix use: InformixDB For MSSQL use: MS SQLSERVER2000 For Pointbase use: PointBase For Postgres use: PostgreSQL 7.2 For Sybase use: Sybase For SapDB use: SapDB For Derby use: Derby --> <jboss.typeMappings> mySQL </jboss.typeMappings> <jboss.home>${env.JBOSS_HOME}</jboss.home> <application.id>booking-seam</application.id> <application.package>org.andromda.test.hotelbooking</application.package> <application.name>Seam Booking</application.name> <application.version>1.0-SNAPSHOT</application.version> <dataSource.name>jdbc/${application.id}</dataSource.name> <dataSource>java:/${dataSource.name}</dataSource> </properties> <profiles> <profile> <id>local</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- Change driver jar for appropriate database For MySQL use: mysql-connector-java-X-bin.jar For Hypersonic use: hsqldb.jar --> <jdbc.driver.jar>${jboss.home}/server/default/lib/hsqldb.jar</jdbc.driver.jar> <!-- Change driver for appropriate database For MySQL use: com.mysql.jdbc.Driver For Hypersonic use: org.hsqldb.jdbcDriver For Oracle9i use: oracle.jdbc.driver.OracleDriver For DB2 use: COM.ibm.db2.jdbc.app.DB2Driver For Informix use: com.informix.jdbc.IfxDriver For MSSQL use: com.microsoft.jdbc.sqlserver.SQLServerDriver For Pointbase use: com.pointbase.jdbc.jdbcUniversalDriver For Postgres use: org.postgresql.Driver For Sybase use: com.sybase.jdbc2.jdbc.SybDataSource For SapDB use: com.sap.dbtech.jdbc.DriverSapDB For Progress use: com.progress.sql.jdbc.JdbcProgressDriver For Derby use: org.apache.derby.jdbc.EmbeddedDriver --> <jdbc.driver> com.mysql.jdbc.Driver </jdbc.driver> <!-- Change connection url for appropriate database For MySQL use: jdbc:mysql://localhost:3306/booking-seam For Hypersonic use: jdbc:hsqldb:hsql://127.0.0.1:1701 For Oracle9i use: jdbc:oracle:thin:@localhost:1521:yoursid For DB2 use: jdbc:db2:booking-seam For Informix use: jdbc:informix-sqli://localhost:1557/booking-seam:INFORMIXSERVER=myserver For MSSQL use: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=booking-seam For Pointbase use: jdbc:pointbase:server://@pointbase.server@:@pointbase.port/pointbase.booking-seam@,new For Postgres use: jdbc:postgresql://localhost/booking-seam For Sybase use: jdbc:sybase:Tds:localhost:5000/booking-seam?JCONNECT_VERSION=6 For SapDB use: jdbc:sapdb://127.0.0.1/booking-seam For Progress use: jdbc:JdbcProgress:T:localhost:3305:booking-seam --> <jdbc.url> jdbc:mysql://localhost:3306/booking-seam </jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password></jdbc.password> <!-- Change exception sorder class name for appropriate database For MySQL use: org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter For Hypersonic use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Oracle9i use: org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter For DB2 use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Informix use: org.jboss.resource.adapter.jdbc.vendor.InformixExceptionSorter For MSSQL use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Pointbase use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Postgres use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Sybase use: org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter For SapDB use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Progress use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter --> <jdbc.exception.sorter> org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter </jdbc.exception.sorter> <!-- Change this to the host on which your webservice will be deployed --> <webservice.host>localhost</webservice.host> <!-- Change this the port on which your webservice will be deploy --> <webservice.port>8080</webservice.port> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <version>3.3-SNAPSHOT</version> <!-- provides the injection of the script wrapper support into the class files (this should only be done when developing locally), uncomment this executions element to enable <executions> <execution> <id>instrument-scripts</id> <goals> <goal>instrument-scripts</goal> </goals> </execution> </executions> --> <configuration> <scriptWrapper>org.andromda.scriptwrappers.GroovyScriptWrapper</scriptWrapper> <locations> <location> <rootPath>${pom.basedir}/src/main/java</rootPath> <!-- adjust these to include or exclude specific files, by default all files found in the rootPath are considered <includes> <include>relative/path/to/file/to/include/SomeClass.java</include> </includes> <excludes> <exclude>relative/path/to/file/to/include/SomeClass.java</exclude> </excludes> --> </location> </locations> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>development</id> <activation> <property> <name>env</name> <value>dev</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> <profile> <id>validation</id> <activation> <property> <name>env</name> <value>val</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> <profile> <id>production</id> <activation> <property> <name>env</name> <value>prod</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> </profiles> <repositories> <repository> <id>andromda</id> <name>AndroMDA Repository</name> <url>http://team.andromda.org/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>andromda</id> <name>AndroMDA Repository</name> <url>http://team.andromda.org/maven2</url> </pluginRepository> </pluginRepositories> <prerequisites> <maven>2.0.1</maven> </prerequisites> </project> 1.1 plugins/samples/booking-seam/mda/src/main/config/mappings/WebMergeMappings.xml Index: WebMergeMappings.xml =================================================================== <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- This is used to map merge patterns in files generated by Bpm4Struts to new patterns. Just add content to the CDATA sections of the <to/> elements in order to use the following merge points. --> <mappings name="WebMerge"> <mapping> <from><![CDATA[<!-- context-param merge-point -->]]></from> <to> <![CDATA[ <!-- uncomment if you want to add your own project specific facelet tags (and of course make sure "/WEB-INF/custom.taglib.xml" is the actual path to your facelet tag descriptor) <context-param> <param-name>facelets.LIBRARIES</param-name> <param-value> /WEB-INF/custom.taglib.xml; </param-value> </context-param> --> ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- filter merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- filter-mapping merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- listener merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- error-page merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- servlet merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- servlet-mapping merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- welcome-file-list merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- security-constraint merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- security-role merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- global-forwards merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <mapping> <from><![CDATA[<!-- mime-type merge-point -->]]></from> <to> <![CDATA[ ]]> </to> </mapping> <!-- This next mapping will merge the entire messages.properties into the generated messages.properties --> <mapping> <from><![CDATA[# custom-messages merge-point]]></from> <to> <path>../../../../../web/src/main/properties/messages.properties</path> </to> </mapping> </mappings> 1.1 plugins/samples/booking-seam/web/pom.xml Index: pom.xml =================================================================== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.andromda.test.hotelbooking</groupId> <artifactId>booking-seam</artifactId> <version>1.0-SNAPSHOT</version> </parent> <artifactId>booking-seam-web</artifactId> <packaging>war</packaging> <name>Seam Booking Web</name> <dependencies> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-common</artifactId> <version>${pom.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>booking-seam-core</artifactId> <version>${pom.version}</version> <type>ejb</type> <scope>provided</scope> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>commons-validator</groupId> <artifactId>commons-validator</artifactId> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> </dependency> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> </dependency> <dependency> <groupId>org.apache.myfaces</groupId> <artifactId>myfaces-api</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/myfaces-api.jar</systemPath> </dependency> <dependency> <groupId>org.apache.myfaces</groupId> <artifactId>tomahawk</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/tomahawk.jar</systemPath> </dependency> <dependency> <groupId>oracle.adf.view.faces</groupId> <artifactId>adf-faces-api</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/adf-faces-api.jar</systemPath> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-jsf-cartridge-components</artifactId> <!-- 'unknown' because the version doesn't matter for system dependencies --> <version>unknown</version> <scope>system</scope> <systemPath>${pom.basedir}/target/src/WEB-INF/lib/andromda-jsf-cartridge-components.jar</systemPath> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> </dependency> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-utils</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-seam</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <dependency> <groupId>itext</groupId> <artifactId>itext</artifactId> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> </dependency> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-script-wrappers</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-j2ee</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3-client</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3x</artifactId> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>ejb3-persistence</artifactId> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <targetPath>../${pom.artifactId}-${pom.version}</targetPath> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>process-resources</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <configuration> <tasks> <copy todir="${pom.basedir}/target/src" overwrite="true" failonerror="false"> <fileset dir="${pom.basedir}/src/main/xhtml"> <include name="**/*"/> </fileset> <fileset dir="${pom.basedir}/src/main"> <include name="css/**"/> <inclu... [truncated message content] |