|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Maven profilesHi,
I reworked profiles a bit. Now the "test" profile is activated by default and runs with hsqldb (which doesn't work so fare due to one complex SQL query). You can create your own developer's profile for mysql in ~/.m2/settings.xml. I attached mine, it can be used as a reference. In order to enable this developer's profile by default, just uncomment the <activeByDefault> section in settings.xml. There is one more profile in pom.xml called "debug". This is for enabling debug output when running inside jetty or debugging unit tests. It's enabled by running maven with "-Pdebug" option. -Roman <settings> <profiles> <profile> <id>mysql-local</id> <!-- activation> <activeByDefault>true</activeByDefault> </activation--> <properties> <db.user>itsec</db.user> <db.url>jdbc:mysql://localhost:3306/itsecdb</db.url> <db.passwd>itsec</db.passwd> <db.dialect>org.hibernate.dialect.MySQLDialect</db.dialect> <db.driver>org.gjt.mm.mysql.Driver</db.driver> </properties> </profile> <profile> <id>test-derby</id> <properties> <db.user></db.user> <db.url>jdbc:derby:itsecdb;create=true</db.url> <db.passwd></db.passwd> <db.dialect>org.hibernate.dialect.DerbyDialect</db.dialect> <db.driver>org.apache.derby.jdbc.EmbeddedDriver</db.driver> </properties> </profile> </profiles> </settings> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Atalaya-developer mailing list Atalaya-developer@... https://lists.sourceforge.net/lists/listinfo/atalaya-developer |
|
|
Re: Maven profilesgood job Roman:) I was missing a couple of key properties to make it work:P So now we "only" need to rework this query... How about overriding the dao implementations for hsql? Some more configuration is needed to get the right dao factory, but it should be done with just a property. Not a really neat solution but at least it should work... enjoy your free breakfast;) ciao! F On 10/24/07,
Roman Kalyakin <theorm@...> wrote: Hi, ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Atalaya-developer mailing list Atalaya-developer@... https://lists.sourceforge.net/lists/listinfo/atalaya-developer |
|
|
|
|
|
Re: Maven profilesOn 10/24/07, Roman Kalyakin <theorm@...> wrote: Morning, the ones that do not exist yet;) right now DaoFactory wraps the concrete daos. It would be creating an abstract one and two implementation: Generic and HSQL... Regarding the query, one of the approaches is a separate DAO. I would also like to look into hibernate to see if it's possible to hide the certain implementation in it. I agree:) I've missed the breakfast, but the lunch is coming! have a good one then:D Cheers, F
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Atalaya-developer mailing list Atalaya-developer@... https://lists.sourceforge.net/lists/listinfo/atalaya-developer |
|
|
Re: Maven profilesHey guys!
Great Stuff! Thank you. -- Giacomo Collini - CISSP Information Security Analyst email: giacomo.collini@... mobile: (+34)628332736 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Atalaya-developer mailing list Atalaya-developer@... https://lists.sourceforge.net/lists/listinfo/atalaya-developer |
|
|
Re: Maven profilesthis works like a charm:) Now we've got to update the MavenAndJetty wiki page to resemble the new setup. any idea on how we should tell this story about possbily having a settings.xml and which options are picked otherwise. Actually jetty:run won't run if one doesn't use the mysql profile... F On 10/24/07, Roman Kalyakin
<theorm@...> wrote: Hi, ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Atalaya-developer mailing list Atalaya-developer@... https://lists.sourceforge.net/lists/listinfo/atalaya-developer |
|
|
Re: Maven profilesWe could write down all the options in a table with temporary note about jetty & hsqldb. -R On 10/25/07, Francesco Vivoli <f.vivoli@...> wrote: Follow up: ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Atalaya-developer mailing list Atalaya-developer@... https://lists.sourceforge.net/lists/listinfo/atalaya-developer |
| Free Forum Powered by Nabble | Forum Help |