Just to point out what I have right now:

<hibernate.dialect>org.hibernate.dialect.MySQL5Dialect</hibernate.dialect>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
<jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName>
<jdbc.url>jdbc:mysql://Server.ca:3306/DatabaseName</jdbc.url>
<jdbc.username>Username</jdbc.username>
<jdbc.password>Password</jdbc.password>

And under jdbc.properties file, as mentioned at the top I have removed other
sections and only have the below content:

#------------ START ---------------
jdbc.driverClassName=${jdbc.driverClassName}
jdbc.url=${jdbc.url}
jdbc.username=${jdbc.username}
jdbc.password=${jdbc.password}

hibernate.dialect=${hibernate.dialect}

# Needed by Hibernate3 Maven Plugin defined in pom.xml
hibernate.connection.username=${jdbc.username}
hibernate.connection.password=${jdbc.password}
hibernate.connection.url=${jdbc.url}
hibernate.connection.driver_class=${jdbc.driverClassName}
#------------ END ---------------

I assume the above gets filled from the pom.xml file (see at the top for
values).

When I run any mvn command even "mvn clean" I get the below message

#-------------- START ERROR MESSAGE ------------------
[0]  'dependencies.dependency.artifactId' with value '${jdbc.artifactId}'
does not match a valid id pattern.
[1]  'dependencies.dependency.groupId' with value '${jdbc.groupId}' does not
match a valid id pattern.

Reason: Failed to validate POM for project com.fscourt:fscourt at
D:\Workspaces\
FSCourtSSecurity\fscourt\pom.xml
............
#-------------- END ERROR MESSAGE ------------------

As said in the pom.xml file, I have removed the following xml element as
well:

<filters>
     <filter>src/main/resources/jdbc.properties</filter>
</filters>
-- 
View this message in context: 
http://appfuse.547863.n4.nabble.com/Tutorial-for-changing-database-in-AppFuse-light-tp2307463p2307478.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to