Hello,

I have a pom.xml file with several profiles, one for MySql, one for H2, one
for HSQLDB and one for Oracle XE.

And I run a build, for example against MySql, with the command:

mvn clean install -Pmysql-db

Or against the Oracle XE with the command:

mvn clean install -Poracle-db

Now, all of them use a Hibernate Dao with old fashioned xml mapping files.

I'm now trying to implement a JPA2 layer to be used in place of the
Hibernate Dao layer.

And I would like to choose which of the two is used with a command line
argument, say something like -Ddao=hibernate or -Ddao=jpa2

Is is possible to do that ?

Or do I have to create additional profiles ?

Kind Regards,




--
View this message in context: 
http://maven.40175.n5.nabble.com/Multiple-build-arguments-tp5750700.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to