I got all my issues solved (except one). I am able to follow the QuickStart steps and get a running working app. My problem was the java version. I had java6 update02. I got update 22 and now everything works fine.
My only issue is that with my env CATALINA variable and one other change to pom.xml, it still doesn't depoly to my installed version of tomcat. The -ve values for PK IDs in the database is because my sample-data.xml has -ve values. Was there a reason for this? Vanessa ----- Original Message ----- From: "dan" <cmaj...@gmail.com> To: users@appfuse.dev.java.net Sent: Friday, November 5, 2010 1:23:56 AM (GMT-0500) America/New_York Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch Thanks for Matt's remind,I find why this error happens,because my default account admin which is created from the src/test/resource/sample-data.xml,but the md5 password is not the admin,so the src/test/resources/login.xml will show the errors because it tests the login action use admin/admin, but i don't know when the admin's md5 password changes,the sample-data.xml keep frozen δΊ 2010-11-5 12:03, Matt Raible ει: > If you create a new app and run "mvn install", does it work? > > On Nov 4, 2010, at 8:54 PM, dan<cmaj...@gmail.com> wrote: > >> I am using apache-tomcat-6.0.29,first i meet the same 404 error.as we >> know,since tomcat6.x version,it add the memory detect module,but it is not >> so smart,so i comment it,see below >> 1.find server.xml in $TOMCAT_HOME/conf >> 2.find the >> <!-- Prevent memory leaks due to use of particular java/javax APIs >> <Listener >> className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> >> --> >> 3.mvn deploy >> so the 404 will not exist,but it then generate extra errors >> >> D:\workspace\DBSync\src\test\resources\login.xml:6: Wrong document title >> found!. >> >> from 2010-11-3 22:12, Vanessa Pacheco say: >>> Tried it, but I get the same 404 error. >>> >>> I already have tomcat installed in my c:\ dir that I use for my other >>> applications. Is it possible to make Appfuse use this tomcat (v. 6.0.18)? >>> What changes would I need to make to pom.xml and where else will I have to >>> make changes? Would there be any changes to this file >>> "myproject/web/.settings/org.eclipse.wst.common.component"?? >>> >>> Thanks in advance for all of your help >>> >>> Vanessa >>> ----- Original Message ----- >>> From: "dan"<cmaj...@gmail.com> >>> To: users@appfuse.dev.java.net >>> Sent: Tuesday, November 2, 2010 10:11:58 PM (GMT-0500) America/New_York >>> Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch >>> >>> SyncPoint-1.0-SNAPSHOT now is your web namespace,but the first line in >>> login.xml still didn't change, >>> let's see<invoke description="get Login Page" url="/"/> >>> so change the url="/" to url="/SyncPoint-1.0-SNAPSHOT" maybe you can pass >>> the test,Good Luck >>> >>> >>> On 2010-11-3 6:06, Matt Raible wrote: >>>> The port number is controlled by Cargo and properties in your pom.xml. If >>>> you want to run it on a port other than the default, change the cargo.port >>>> property in the bottom of pom.xml. >>>> >>>> On Nov 2, 2010, at 3:09 PM, Vanessa Pacheco wrote: >>>> >>>>> That helped Matt. I copied the properties from the postgres profile to >>>>> the properties at the bottom of pom.xml. So I've now got my app talking >>>>> with postgres. >>>>> >>>>> Now I get this when I run mvn from within my project dir to download >>>>> JARs, Tomcat and run the integration tests in my project. I see the 3 >>>>> tables in my database (app_user, role, user_role), so its gotten past >>>>> that stage. This is the TESTS stage. >>>>> >>>>> Login: >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [ERROR] BUILD ERROR >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] An Ant BuildException has occured: The following error occurred >>>>> while exe >>>>> cuting this line: >>>>> C:\Source\SyncPoint\src\test\resources\login.xmlf:1: HTTP error 404 >>>>> >>>>> 404 Not Found for http://localhost:8081/SyncPoint-1.0-SNAPSHOT/ >>>>> >>>>> Do I need to make some changes somewhere. I see localhost:8081 in there. >>>>> My tomcat isn't running (should it be running for the tests?). Also when >>>>> I run any of my tomcat apps I use localhost:8080, so I changed it to 8080 >>>>> in pom.xml. However, no luck still. What should I do here? >>>>> >>>>> >>>>> Vanessa >>>>> ----- Original Message ----- >>>>> From: "Matt Raible"<m...@raibledesigns.com> >>>>> To: "Vanessa Pacheco"<vpach...@bowmansystems.com> >>>>> Cc: "users"<users@appfuse.dev.java.net> >>>>> Sent: Tuesday, November 2, 2010 4:36:20 PM (GMT-0500) America/New_York >>>>> Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch >>>>> >>>>> There might be issues with this working properly. If it's still talking >>>>> to MySQL, you might have to move the property values from the postgres >>>>> profile to the properties at the bottom of pom.xml (overriding the >>>>> default/mysql's properties). >>>>> >>>>> On Nov 2, 2010, at 1:56 PM, Vanessa Pacheco wrote: >>>>> >>>>>> Matt, >>>>>> >>>>>> Did you mean "mvn eclipse:eclipse -Ppostgres"? >>>>>> >>>>>> I've added the following to pom.xml for the postgres profile >>>>>> <activation> >>>>>> <activeByDefault>true</activeByDefault> >>>>>> </activation> >>>>>> >>>>>> >>>>>> Vanessa >>>>>> ----- Original Message ----- >>>>>> From: "Matt Raible"<m...@raibledesigns.com> >>>>>> To: "Vanessa Pacheco"<vpach...@bowmansystems.com> >>>>>> Sent: Tuesday, November 2, 2010 3:38:01 PM (GMT-0500) America/New_York >>>>>> Subject: Re: [appfuse-user] starting with Appfuse 2 from scratch >>>>>> >>>>>> Try running it with -Ppostgres - also look in pom.xml for the settings >>>>>> for Postgres. >>>>>> >>>>>> >>>>>> On Tue, Nov 2, 2010 at 1:35 PM, Vanessa Pacheco< >>>>>> vpach...@bowmansystems.com> wrote: >>>>>> >>>>>> >>>>>> Hi all, >>>>>> >>>>>> I realized the mistake...I had to get into my prj folder to run the >>>>>> command. However, now I get a mySQL access error "Embedded error: Access >>>>>> denied for user 'root'@'localhost' (using password: NO)" >>>>>> >>>>>> Anyways, I want to use Appfuse 2 with postgres. How do I configure it to >>>>>> use postgres? >>>>>> >>>>>> Vanessa >>>>>> >>>>>> >>>>>> >>>>>> ----- Original Message ----- >>>>>> From: "Vanessa Pacheco"< vpach...@bowmansystems.com> >>>>>> To: users@appfuse.dev.java.net >>>>>> Cc: m...@raibledesigns.com >>>>>> Sent: Tuesday, November 2, 2010 2:08:58 PM (GMT-0500) America/New_York >>>>>> Subject: [appfuse-user] starting with Appfuse 2 from scratch >>>>>> >>>>>> Hi all, >>>>>> >>>>>> I'm starting from scratch with Appfuse 2.0. >>>>>> >>>>>> I've got Eclipse Release 3.5.0. I don't know whats Callisto so I didn't >>>>>> follow this step "use Callisto (Software Update) to get plugins for >>>>>> developing web and database-driven applications." Could someone shed >>>>>> some light please, to a newbie >>>>>> >>>>>> I also tried "C:\Source>mvn eclipse:eclipse" to generate prj files, but >>>>>> I get an error. >>>>>> >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> [INFO] Building Maven Default Project >>>>>> [INFO] task-segment: [eclipse:eclipse] >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> [INFO] Preparing eclipse:eclipse >>>>>> [INFO] No goals needed for project - skipping >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> [ERROR] BUILD ERROR >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> [INFO] Cannot execute mojo: eclipse. It requires a project with an >>>>>> existing pom. >>>>>> xml, but the build is not using one. >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> [INFO] For more information, run Maven with the -e switch >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> Can someone please help me with these steps. >>>>>> >>>>>> Thank you >>>>>> Vanessa >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>>>>> >>>>>> >>>>>> >>>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >>> For additional commands, e-mail: users-h...@appfuse.dev.java.net >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >> For additional commands, e-mail: users-h...@appfuse.dev.java.net >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net
<?xml version="1.0" encoding="UTF-8"?> <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>com.bowmansystems.syncpoint</groupId> <artifactId>syncpoint</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>AppFuse Spring MVC Application</name> <url>http://www.mycompany.com</url> <prerequisites> <maven>2.2.1</maven> </prerequisites> <licenses> <license> </license> </licenses> <scm> </scm> <issueManagement> </issueManagement> <developers> <developer> </developer> </developers> <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>org.appfuse.plugins</groupId> <artifactId>appfuse-maven-plugin</artifactId> <version>${appfuse.version}</version> <configuration> <genericCore>${amp.genericCore}</genericCore> <fullSource>${amp.fullSource}</fullSource> </configuration> <!-- Dependency needed by appfuse:gen-model to connect to database. --> <!-- See http://issues.appfuse.org/browse/APF-868 to learn more. --> <dependencies> <dependency> <groupId>${jdbc.groupId}</groupId> <artifactId>${jdbc.artifactId}</artifactId> <version>${jdbc.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.2</version> <configuration> <source>1.5</source> <verbose>true</verbose> <complianceLevel>1.5</complianceLevel> <showWeaveInfo>true</showWeaveInfo> <aspectLibraries> <aspectLibrary> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> </aspectLibrary> </aspectLibraries> </configuration> <executions> <execution> <goals> <goal>compile</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>${aspectj.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjtools</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <artifactId>maven-eclipse-plugin</artifactId> <version>2.7</version> <configuration> <additionalProjectnatures> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalProjectnatures> <additionalBuildcommands> <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> </additionalBuildcommands> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> <wtpversion>1.5</wtpversion> </configuration> </plugin> <plugin> <artifactId>maven-idea-plugin</artifactId> <version>2.2</version> <configuration> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> <dependenciesAsLibraries>true</dependenciesAsLibraries> <useFullNames>false</useFullNames> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.2</version> <configuration> <components> <component> <name>hbm2ddl</name> <implementation>annotationconfiguration</implementation> <!-- Use 'jpaconfiguration' if you're using JPA. --> <!--<implementation>jpaconfiguration</implementation>--> </component> </components> <componentProperties> <drop>true</drop> <jdk5>true</jdk5> <propertyfile>target/classes/jdbc.properties</propertyfile> <skip>${skipTests}</skip> </componentProperties> </configuration> <executions> <execution> <phase>process-test-resources</phase> <goals> <goal>hbm2ddl</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>${jdbc.groupId}</groupId> <artifactId>${jdbc.artifactId}</artifactId> <version>${jdbc.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dbunit-maven-plugin</artifactId> <version>1.0-beta-3</version> <configuration> <dataTypeFactoryName>${dbunit.dataTypeFactoryName}</dataTypeFactoryName> <driver>${jdbc.driverClassName}</driver> <username>${jdbc.username}</username> <password>${jdbc.password}</password> <url>${jdbc.url}</url> <src>src/test/resources/sample-data.xml</src> <type>${dbunit.operation.type}</type> <schema>${dbunit.schema}</schema> <skip>${skipTests}</skip> <transaction>true</transaction> </configuration> <executions> <execution> <id>test-compile</id> <phase>test-compile</phase> <goals> <goal>operation</goal> </goals> </execution> <execution> <!-- Runs before integration tests and jetty:run-war --> <id>test</id> <phase>test</phase> <goals> <goal>operation</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>${jdbc.groupId}</groupId> <artifactId>${jdbc.artifactId}</artifactId> <version>${jdbc.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.21</version> <configuration> <contextPath>/</contextPath> <scanIntervalSeconds>3</scanIntervalSeconds> <scanTargetPatterns> <scanTargetPattern> <directory>src/main/webapp/WEB-INF</directory> <excludes> <exclude>**/*.jsp</exclude> </excludes> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> </scanTargetPattern> </scanTargetPatterns> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>native2ascii-maven-plugin</artifactId> <version>1.0-alpha-1</version> <configuration> <dest>target/classes</dest> <src>src/main/resources</src> </configuration> <executions> <execution> <id>native2ascii-utf8</id> <goals> <goal>native2ascii</goal> </goals> <configuration> <encoding>UTF8</encoding> <includes>ApplicationResources_ko.properties, ApplicationResources_no.properties, ApplicationResources_tr.properties, ApplicationResources_zh*.properties</includes> </configuration> </execution> <execution> <id>native2ascii-8859_1</id> <goals> <goal>native2ascii</goal> </goals> <configuration> <encoding>8859_1</encoding> <includes>ApplicationResources_de.properties, ApplicationResources_fr.properties, ApplicationResources_nl.properties, ApplicationResources_pt*.properties</includes> </configuration> </execution> </executions> </plugin> </plugins> <resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>ApplicationResources_de.properties</exclude> <exclude>ApplicationResources_fr.properties</exclude> <exclude>ApplicationResources_ko.properties</exclude> <exclude>ApplicationResources_nl.properties</exclude> <exclude>ApplicationResources_no.properties</exclude> <exclude>ApplicationResources_pt*.properties</exclude> <exclude>ApplicationResources_tr.properties</exclude> <exclude>ApplicationResources_zh*.properties</exclude> <exclude>applicationContext-resources.xml</exclude> </excludes> <filtering>true</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>applicationContext-resources.xml</include> </includes> </resource> </resources> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> </testResource> <testResource> <directory>src/main/webapp</directory> <filtering>true</filtering> <includes> <include>**/*.xml</include> </includes> </testResource> </testResources> </build> <repositories> <repository> <id>appfuse-snapshots</id> <url>http://oss.sonatype.org/content/repositories/appfuse-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>appfuse-snapshots</id> <url>http://oss.sonatype.org/content/repositories/appfuse-snapshots</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <dependencies> <dependency> <groupId>org.appfuse</groupId> <artifactId>appfuse-web</artifactId> <version>${appfuse.version}</version> <type>pom</type> <!-- This exclusion and the dependency following this one allow DAO framework switching. --> <!-- You only need these if you want to use JPA or iBATIS. See APF-565 for more information. --> <!-- It does no harm to leave it in for Hibernate, but it's not needed. --> <exclusions> <exclusion> <groupId>org.appfuse</groupId> <artifactId>appfuse-hibernate</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.appfuse</groupId> <artifactId>appfuse-${dao.framework}</artifactId> <version>${appfuse.version}</version> </dependency> <dependency> <groupId>${jdbc.groupId}</groupId> <artifactId>${jdbc.artifactId}</artifactId> <version>${jdbc.version}</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>${commons.fileupload.version}</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-io</artifactId> <version>${commons.io.version}</version> </dependency> <dependency> <groupId>displaytag</groupId> <artifactId>displaytag</artifactId> <version>${displaytag.version}</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>${jsp.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>${servlet.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springmodules</groupId> <artifactId>spring-modules-validation</artifactId> <version>${springmodules.validation.version}</version> <exclusions> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> </exclusion> <exclusion> <groupId>org.springframework</groupId> <artifactId>spring-support</artifactId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.jmock</groupId> <artifactId>jmock</artifactId> <version>${jmock.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jmock</groupId> <artifactId>jmock-junit4</artifactId> <version>${jmock.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.subethamail</groupId> <artifactId>subethasmtp-wiser</artifactId> <version>${wiser.version}</version> <scope>test</scope> </dependency> </dependencies> <reporting> <plugins> <plugin> <artifactId>maven-changes-plugin</artifactId> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0</version> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <artifactId>maven-jxr-plugin</artifactId> </plugin> <plugin> <artifactId>maven-pmd-plugin</artifactId> <configuration> <linkXRef>true</linkXRef> <targetJdk>1.5</targetJdk> </configuration> </plugin> <plugin> <artifactId>maven-surefire-report-plugin</artifactId> </plugin> </plugins> </reporting> <profiles> <profile> <id>integration-test</id> <activation> <property> <name>!skipTests</name> </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>${cargo.version}</version> <configuration> <wait>${cargo.wait}</wait> <container> <containerId>${cargo.container}</containerId> <home>${cargo.container.home}</home> <zipUrlInstaller> <url>${cargo.container.url}</url> <installDir>${installDir}</installDir> </zipUrlInstaller> </container> <configuration> <home>${project.build.directory}/${cargo.container}/container</home> <properties> <cargo.hostname>${cargo.host}</cargo.hostname> <cargo.servlet.port>${cargo.port}</cargo.servlet.port> </properties> </configuration> </configuration> <executions> <execution> <id>start-container</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> </execution> <execution> <id>stop-container</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> <configuration> <tasks> <taskdef resource="webtest_base_relaxed.taskdef"> <classpath refid="maven.test.classpath" /> </taskdef> <mkdir dir="target/webtest-data" /> <!-- Delete old results file if it exists --> <delete file="target/webtest-data/web-tests-result.xml" /> <!-- This is so the default will be used if no test case is specified --> <property name="test" value="run-all-tests" /> <property name="i18n.classpath" value="${basedir}/target/classes" /> <echo level="info">Testing '${project.build.finalName}' with locale '${user.language}'</echo> <ant antfile="src/test/resources/web-tests.xml" target="${test}"> <property name="user.language" value="${user.language}" /> <property name="webapp.name" value="${project.build.finalName}" /> <property name="host" value="${cargo.host}" /> <property name="port" value="${cargo.port}" /> </ant> </tasks> </configuration> <executions> <execution> <phase>integration-test</phase> <goals> <goal>run</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.canoo.webtest</groupId> <artifactId>webtest</artifactId> <version>${webtest.version}</version> </dependency> </dependencies> </plugin> </plugins> </build> </profile> <!-- ================= Production Settings Profile ================= --> <!-- Use "-P prod" when you want to use the settings in this profile --> <!-- =============================================================== --> <profile> <id>prod</id> <build> <plugins> <!-- Override location of data file for DbUnit to load (doesn't have negative keys) --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dbunit-maven-plugin</artifactId> <configuration> <src>src/main/resources/default-data.xml</src> </configuration> </plugin> </plugins> </build> </profile> <!-- ================= Database Profiles ================= --> <profile> <id>derby</id> <properties> <hibernate.dialect>org.hibernate.dialect.DerbyDialect</hibernate.dialect> <jdbc.groupId>org.apache.derby</jdbc.groupId> <jdbc.artifactId>derbyclient</jdbc.artifactId> <jdbc.version>10.2.2.0</jdbc.version> <jdbc.driverClassName>org.apache.derby.jdbc.ClientDriver</jdbc.driverClassName> <jdbc.url>jdbc:derby://localhost/${db.name};create=true</jdbc.url> <jdbc.username>any</jdbc.username> <jdbc.password>value</jdbc.password> </properties> </profile> <profile> <id>h2</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.h2.H2DataTypeFactory</dbunit.dataTypeFactoryName> <hibernate.dialect>org.hibernate.dialect.H2Dialect</hibernate.dialect> <jdbc.groupId>com.h2database</jdbc.groupId> <jdbc.artifactId>h2</jdbc.artifactId> <jdbc.version>1.0.79</jdbc.version> <jdbc.driverClassName>org.h2.Driver</jdbc.driverClassName> <jdbc.url>jdbc:h2:/tmp/${db.name}</jdbc.url> <jdbc.username>sa</jdbc.username> </properties> </profile> <profile> <id>hsqldb</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.hsqldb.HsqldbDataTypeFactory</dbunit.dataTypeFactoryName> <hibernate.dialect>org.hibernate.dialect.HSQLDialect</hibernate.dialect> <jdbc.groupId>hsqldb</jdbc.groupId> <jdbc.artifactId>hsqldb</jdbc.artifactId> <jdbc.version>1.8.0.7</jdbc.version> <jdbc.driverClassName>org.hsqldb.jdbcDriver</jdbc.driverClassName> <jdbc.url>jdbc:hsqldb:/tmp/${db.name};shutdown=true</jdbc.url> <jdbc.username>sa</jdbc.username> </properties> </profile> <profile> <id>oracle</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.oracle.OracleDataTypeFactory</dbunit.dataTypeFactoryName> <dbunit.schema>SYSTEM</dbunit.schema> <!-- Make sure to capitalize the schema name --> <hibernate.dialect>org.hibernate.dialect.Oracle9Dialect</hibernate.dialect> <jdbc.groupId>com.oracle</jdbc.groupId> <jdbc.artifactId>ojdbc14</jdbc.artifactId> <jdbc.version>10.2.0.2.0</jdbc.version> <jdbc.driverClassName>oracle.jdbc.OracleDriver</jdbc.driverClassName> <jdbc.url>jdbc:oracle:thin:@localhost:1521:XE</jdbc.url> <jdbc.username>system</jdbc.username> <jdbc.password>system</jdbc.password> </properties> </profile> <profile> <id>postgresql</id> <properties> <hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect> <jdbc.groupId>postgresql</jdbc.groupId> <jdbc.artifactId>postgresql</jdbc.artifactId> <jdbc.version>8.1-407.jdbc3</jdbc.version> <jdbc.driverClassName>org.postgresql.Driver</jdbc.driverClassName> <jdbc.url>jdbc:postgresql://localhost/${db.name}</jdbc.url> <jdbc.username>postgres</jdbc.username> <jdbc.password>postgres</jdbc.password> </properties> </profile> <profile> <!-- You need to enable TCP/IP Connections for SQL Server 2005 after installing. --> <!-- http://www.mattwoodward.com/blog/index.cfm?commentID=211 --> <id>sqlserver</id> <properties> <dbunit.dataTypeFactoryName>org.dbunit.ext.mssql.MsSqlDataTypeFactory</dbunit.dataTypeFactoryName> <dbunit.operation.type>MSSQL_CLEAN_INSERT</dbunit.operation.type> <hibernate.dialect>org.hibernate.dialect.SQLServerDialect</hibernate.dialect> <jdbc.groupId>net.sourceforge.jtds</jdbc.groupId> <jdbc.artifactId>jtds</jdbc.artifactId> <jdbc.version>1.2</jdbc.version> <jdbc.driverClassName>net.sourceforge.jtds.jdbc.Driver</jdbc.driverClassName> <jdbc.url>jdbc:jtds:sqlserver://localhost:3683/${db.name}</jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password>appfuse</jdbc.password> </properties> </profile> <!-- ================= Container Profiles ================= --> <profile> <id>jboss</id> <properties> <cargo.container>jboss4x</cargo.container> <cargo.container.home>${env.JBOSS_HOME}</cargo.container.home> <cargo.container.url>http://easynews.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.5.GA.zip</cargo.container.url> </properties> </profile> </profiles> <properties> <!-- Application settings --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <copyright.year>2009</copyright.year> <dao.framework>hibernate</dao.framework> <web.framework>spring</web.framework> <amp.genericCore>true</amp.genericCore> <amp.fullSource>false</amp.fullSource> <db.name>appfuse</db.name> <!-- Framework dependency versions --> <appfuse.version>2.1.0-M1</appfuse.version> <aspectj.version>1.6.6</aspectj.version> <commons.fileupload.version>1.2.1</commons.fileupload.version> <commons.io.version>1.3.2</commons.io.version> <displaytag.version>1.2</displaytag.version> <spring.version>2.5.6</spring.version> <springmodules.validation.version>0.8</springmodules.validation.version> <!-- Testing dependency versions --> <cargo.version>1.0</cargo.version> <jmock.version>2.5.1</jmock.version> <jsp.version>2.0</jsp.version> <junit.version>4.4</junit.version> <servlet.version>2.4</servlet.version> <wiser.version>1.2</wiser.version> <!-- WebTest dependency versions --> <webtest.version>3.0</webtest.version> <cargo.container>tomcat6x</cargo.container> <cargo.container.home>${env.CATALINA_HOME}</cargo.container.home> <cargo.container.url>http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.zip</cargo.container.url> <cargo.host>localhost</cargo.host> <cargo.port>8081</cargo.port> <cargo.wait>false</cargo.wait> <!-- Jetty Cargo settings: <cargo.container>jetty6x</cargo.container> <cargo.container.url>http://dist.codehaus.org/jetty/jetty-6.1.21/jetty-6.1.21.zip</cargo.container.url> --> <!-- Database settings --> <!-- Database settings --> <!-- <dbunit.dataTypeFactoryName>org.dbunit.ext.mysql.MySqlDataTypeFactory</dbunit.dataTypeFactoryName> <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type> <hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect> <jdbc.groupId>mysql</jdbc.groupId> <jdbc.artifactId>mysql-connector-java</jdbc.artifactId> <jdbc.version>5.1.10</jdbc.version> <jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName> <jdbc.url>jdbc:mysql://localhost/${db.name}?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8</jdbc.url> <jdbc.username>root</jdbc.username> <jdbc.password></jdbc.password> --> <dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type> <hibernate.dialect>org.hibernate.dialect.PostgreSQLDialect</hibernate.dialect> <jdbc.groupId>postgresql</jdbc.groupId> <jdbc.artifactId>postgresql</jdbc.artifactId> <jdbc.version>8.4-701.jdbc3</jdbc.version> <jdbc.driverClassName>org.postgresql.Driver</jdbc.driverClassName> <jdbc.url>jdbc:postgresql://localhost:5432/${db.name}</jdbc.url> <jdbc.username>postgres</jdbc.username> <jdbc.password>cahnee2B</jdbc.password> </properties> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net