I'd have the following in the pom.xml of an archetype: <jdbc.url><![CDATA[jdbc:mysql://localhost/${artifactId}?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8]]></jdbc.url>
If users use a dash in their artifactId, this will fail on most databases. Is there a String replacement tool available in the VelocityContext of the archetype-plugin? I'd like to do something like: $stringutil.replace(${artifactId}, '-', '_') Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-do-string-replacement-in-an-archetype--tf3167058s177.html#a8785517 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]