Maven profiles

View: New views
7 Messages — Rating Filter:   Alert me  

Maven profiles

by Roman Kalyakin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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 profiles

by Francesco Vivoli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Morning

good 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,

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

-------------------------------------------------------------------------
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




-------------------------------------------------------------------------
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

Parent Message unknown Re: Maven profiles

by Roman Kalyakin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Morning,

Thank you. :) What key properties did you mean exactly?

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've missed the breakfast, but the lunch is coming!

Cheers,
Roman

On 10/24/07, Francesco Vivoli <f.vivoli@...> wrote:
Morning

good 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,

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

-------------------------------------------------------------------------
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





-------------------------------------------------------------------------
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 profiles

by Francesco Vivoli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


On 10/24/07, Roman Kalyakin <theorm@...> wrote:
Morning,

Thank you. :) What key properties did you mean exactly?

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:)
the above is the last resort I suppose

I've missed the breakfast, but the lunch is coming!

have a good one then:D
 

Cheers,
Roman


F

On 10/24/07, France

 

sco Vivoli <f.vivoli@...> wrote:
Morning

good 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,

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

-------------------------------------------------------------------------
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






-------------------------------------------------------------------------
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 profiles

by giacomoc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey 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 profiles

by Francesco Vivoli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Follow up:

this 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,

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

-------------------------------------------------------------------------
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




-------------------------------------------------------------------------
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 profiles

by Roman Kalyakin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I can write it. Actually I was trying, but my account doesn't have write access to the wiki so I gave up.
We 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 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,

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

-------------------------------------------------------------------------
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




-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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
LightInTheBox - Buy quality products at wholesale price!