Re: Should I use classifiers to differentiate between "devel" and "production" builds?

2011-07-27 Thread Daniel Serodio (lists)

Ansgar Konermann wrote:

Am 25.07.2011 22:13, schrieb Daniel Serodio (lists):

Do you think using a classifier to differentiate artifacts built for
development and production is "hacky", is is this an appropriate
solution?


Use the same *artifacts* for all stages and allow for *configuring* the
relevant properties of your application at runtime/startup time, as much
as possible.

A common mechanism to configure things at runtime is using JNDI parameters.
I'mconsidering changing our build process. Setting up the DB using JNDI 
is easy enough, but how do you suggest we deal with different logging 
configurations, which differ not only on some values, but structure (ie 
log4j Loggers and Appenders with different classes, file paths and 
severity thresholds) ?


Regards,
Daniel Serodio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Should I use classifiers to differentiate between "devel" and "production" builds?

2011-07-25 Thread Daniel Serodio (lists)
We have two sets of (database and logging) settings, for development and 
productions builds. We're using "dev" and "prod" profiles to choose the 
appropriate settings for each environment.


Do you think using a classifier to differentiate artifacts built for 
development and production is "hacky", is is this an appropriate solution?


Thanks in advance,
Daniel Serodio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to stop embedded Tomcat server?

2011-06-22 Thread Daniel Serodio (lists)

Que memória, heim? Sim, era eu mesmo! :)

I didn't know about this plugin, thanks for the pointer.

[]'s
Daniel Serodio

Aldrin Leal wrote:

Você era o Daniel Serodio da Altconn?

btw, tenta isso: https://github.com/t7mp/t7mp

--
-- Aldrin Leal,  / http://www.leal.eng.br/mnemetica/


On Tue, Jun 21, 2011 at 4:23 PM, Daniel Serodio (lists)<
daniel.lis...@xxx.com.br>  wrote:


I'm using the maven-tomcat-plugin to run an embedded, forked Tomcat server
which is then used by the maven-failsafe-plugin to run tests on.

I'd like to stop this embedded Tomcat after the tests finish, but the
tomcat:stop goal needs the "Tomcat Manager" application, which is not
included in the embedded Tomcat.

How can I stop this embedded Tomcat server from within Maven?

Thanks in advance,
Daniel Serodio

--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@maven.**apache.org
For additional commands, e-mail: users-h...@maven.apache.org






How to stop embedded Tomcat server?

2011-06-21 Thread Daniel Serodio (lists)
I'm using the maven-tomcat-plugin to run an embedded, forked Tomcat 
server which is then used by the maven-failsafe-plugin to run tests on.


I'd like to stop this embedded Tomcat after the tests finish, but the 
tomcat:stop goal needs the "Tomcat Manager" application, which is not 
included in the embedded Tomcat.


How can I stop this embedded Tomcat server from within Maven?

Thanks in advance,
Daniel Serodio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Why isn't Maven using the (site) plugin version I told it?

2011-06-07 Thread Daniel Serodio (lists)

That was it. Thanks a lot.

Is there somewhere in the documentation I could've found this information?

Benson Margulies wrote:

The site plugin does not go into  . Put that into


On Tue, Jun 7, 2011 at 5:29 PM, Daniel Serodio (lists)
  wrote:

When I run "mvn site", I get a "AbstractMethodError [...]
SiteRendererSink.unknown" error. As reported in SUREFIRE-714,
maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told
Maven to use these versions of the plugins, but it's still using
maven-site-plugin 2.0-beta-7

I'm using Maven 2.2.1 BTW.

Why isn't Maven using the plugin versions I told it to use?

Thanks in advance,
Daniel Serodio



http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
com.example
busca-web
1.0.0-SNAPSHOT
war
Busca
Busca - Frontent Web


ISO8859-1
UTF-8





org.apache.maven.plugins
maven-compiler-plugin

1.6
1.6



org.apache.maven.plugins
maven-resources-plugin







org.apache.maven.plugins
maven-site-plugin
2.3


org.apache.maven.plugins
maven-surefire-report-plugin
2.8

UTF-8







org.slf4j
slf4j-api
1.6.1


org.slf4j
slf4j-log4j12
1.6.1


commons-lang
commons-lang
2.6


mysql
mysql-connector-java
5.1.6



junit
junit
4.8.1
test



javax.servlet
servlet-api
2.5
provided






-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Why isn't Maven using the (site) plugin version I told it?

2011-06-07 Thread Daniel Serodio (lists)
When I run "mvn site", I get a "AbstractMethodError [...] 
SiteRendererSink.unknown" error. As reported in SUREFIRE-714, 
maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told 
Maven to use these versions of the plugins, but it's still using 
maven-site-plugin 2.0-beta-7


I'm using Maven 2.2.1 BTW.

Why isn't Maven using the plugin versions I told it to use?

Thanks in advance,
Daniel Serodio



http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

4.0.0
com.example
busca-web
1.0.0-SNAPSHOT
war
Busca
Busca - Frontent Web


ISO8859-1
UTF-8





org.apache.maven.plugins
maven-compiler-plugin

1.6
1.6



org.apache.maven.plugins
maven-resources-plugin







org.apache.maven.plugins
maven-site-plugin
2.3


org.apache.maven.plugins
maven-surefire-report-plugin
2.8

UTF-8







org.slf4j
slf4j-api
1.6.1


org.slf4j
slf4j-log4j12
1.6.1


commons-lang
commons-lang
2.6


mysql
mysql-connector-java
5.1.6



junit
junit
4.8.1
test



javax.servlet
servlet-api
2.5
provided






-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org