Re: Should I use classifiers to differentiate between "devel" and "production" builds?
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?
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?
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?
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?
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?
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
RAR : How to get the jar included, how to limit transitive deps inclusion
Hi, I try to use the RAR plugin for M2 and have 2 problems. Background I have a project with "src/java" and the code for a JCA adapter under that. This is viewable here http://datanucleus.svn.sourceforge.net/viewvc/datanucleus/platform/jdo.connector/trunk/ If I execute mvn clean install I get a RAR with the following contents :- META-INF/ META-INF/MANIFEST.MF datanucleus-core-1.1-SNAPSHOT.jar datanucleus-rdbms-1.1-SNAPSHOT.jar jdo2-api-2.2.jar ant-1.7.0.jar ant-launcher-1.7.0.jar junit-3.8.1.jar geronimo-jpa_3.0_spec-1.0.jar META-INF/geronimo-ra.xml META-INF/jonas-ra.xml META-INF/weblogic-ra.xml META-INF/persistence.xml META-INF/ra.xml META-INF/README.txt META-INF/NOTICE.txt plugin.xml META-INF/maven/ META-INF/maven/org.datanucleus/ META-INF/maven/org.datanucleus/datanucleus-jca/ META-INF/maven/org.datanucleus/datanucleus-jca/pom.xml META-INF/maven/org.datanucleus/datanucleus-jca/pom.properties Problem 1 : How do I get the jar for this project to be included in the RAR for this project ? The RAR plugin doc says that the "jar" will be included by default in the RAR. It isn't for me using M2 2.0.9 and v 2.2 of RAR plugin. Problem 2 : It is including transitive deps from some of the jars I require in the RAR. I DO NOT want this. How do I get exactly which jars I want included in the RAR ? Thanks in advance -- Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-jaxb-plugin 1.1
Hello, My maven project used to download all dependencies like a charm, but recently I hear complaints from people who start from scratch that the project fails to download the jaxb compiler: The pom for my plugin is downloaded but the jar itself seems to be missing. I get the following error: Trying repository java.net Downloading: http://download.java.net/maven/1//com.sun.tools.xjc.maven2/poms/maven-jaxb-plugin-1.1.pom 4K downloaded [DEBUG] Artifact resolved [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.jar [DEBUG] Unable to get resource 'com.sun.tools.xjc.maven2:maven-jaxb-plugin:maven-plugin:1.1' from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.sun.tools.xjc.maven2 -DartifactId=maven-jaxb-plugin -Dversion=1.1 -Dpackaging=maven-plugin -Dfile=/path/to/file Here is my plugin definition com.sun.tools.xjc.maven2 maven-jaxb-plugin 1.1 generate-sources generate net.ndr.hits.jms.schema src/main/resources/xsd Thanks in advance for help. Jacques - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running jaxb twice with different configs
Hello, to build my app I compile two differen xsd files to generate O/X mapping. I have duplicated the jaxb-maven-plugin in my pom. When I run the build from eclipse both xsds are compiled, when i run from the command lineonly one xsd is compiled. Is my solution at fault or is the maven failing? Thank you for help. I'm a bloddy maven newbie, please excuse if the answer is obvious or the question dumb. jacques com.sun.tools.xjc.maven2 maven-jaxb-plugin generate-sources generate com.danube.codes.ws.schema src/main/webapp/WEB-INF/xsd com.sun.tools.xjc.maven2 maven-jaxb-plugin generate-sources generate com.danube.codes.versioninfo.schema src/main/resources/com/danube/codes/versioninfo/xsd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling different resource files for eclipse development and production
Hi, We need to apply different .properties files depending on the environment, for instance we have different database connections in the development and production environment and we want to configure them with .properties files. We tried to use the resource plugin, and achieved what we want in the war, however, war:inplace does not transfer our .properties to the eclipse source folder. Is this a bug in war:inplace? Without this file the database connection does not work. If the developer adds the .properties file manually to his source folder, this file overwrites the .properties file provided by the resource plugin during packaging. Any best practice or hint for this problem? How do you solve this problem in your project? Regards Dietrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting an arbitrary property for a plugin within its configuration
Hi, I always need to run the eclipse plugin with a certain profile (some common resources must be ignored, the eclipse plugin does not yet properly add common resources outside project folders). We defined a build profile that does not define this resource and activate it using a role property on the commandline, like so: mvn eclipse:eclipse -Drole=eclipse Is it possible to set this property permanently within the plugin configuration? Something like: org.apache.maven.plugins maven-eclipse-plugin eclipse This particular syntax does not work, I tried it :-( Regards, Dietrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Disallowing access to projects based on user roles?
Hi, is it possible to hide or disallow access to certain projects within continuum based on user roles? This is a requirement for inhouse projects where I am working - not everybody may work with all projects. Still it would make sense to use one continuum instance to build the projects. Regards, Dietrich
Blame mechanism
Hi, where can I find more information about continuum's blame mechanism? What exactly does it achieve and how do I have to configure it? Regards, Dietrich