Profiles, filtering resources and optional content

2007-03-14 Thread Piotr Bzdyl
Hello everyone, I would like to have one configuration file in properties format. Configuration differs in some parts between prod and dev profiles. For example: conf.properties for prod env: keyA=valueAP keyB=valueBP keyC=valueCP conf.properties for dev env: keyA=valueAD keyB=valueBD

Re: Profiles, filtering resources and optional content

2007-03-14 Thread Piotr Bzdyl
Hi, Mark Hobson wrote: An alternative to filtering the same resource is to split it into two and profile it. So you'd move src/main/resources/conf.properties to, say: * src/main/profiles/prod/resources/conf.properties * src/main/profiles/dev/resources/conf.properties Actually, I

Re: [m2] war plugin and warSourceExcludes not working for dependencies

2006-02-01 Thread Piotr Bzdyl
I tried to follow instructions from: http://www.nabble.com/Maven-2-EAR%2C-WAR%2C-EJB-Common-Dependencies-t1013415.html and http://www.nabble.com/RE%3A-Best-Practice---Maven-with-WSAD-or-RAD6-p2509735.html and http://www.nabble.com/RE%3A-m2-war-dependencies-in-ear-p054.html using

Re: [m2] war plugin and warSourceExcludes not working for dependencies

2006-02-01 Thread Piotr Bzdyl
Is it a bug in the maven-war-plugin? From plugin sources: for ( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); // TODO: utilise appropriate methods from project builder ScopeArtifactFilter filter =

Re: Maven 2 EAR, WAR, EJB Common Dependencies

2006-01-31 Thread Piotr Bzdyl
Hi, WAR POM plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectorywebApplication/warSourceDirectory warSourceExcludes

[m2] war project and dll dependency

2006-01-11 Thread Piotr Bzdyl
Hello, In my war project I use java library which requires native dll library. I created following: project modelVersion4.0.0/modelVersion groupIdcom.domain/groupId artifactIdlibraryx-api/artifactId packagingjar/packaging namelibraryx/name version1.0/version

Re: [m2] war project and dll dependency

2006-01-11 Thread Piotr Bzdyl
Hi, You got it right, your solution looks fine. Just check for typos, just like how you declared the native library as a dependency of your jar artifact. I have it right at my files, I just changed this in my email to make it general. The problems seems to be in the war plugin - it

Re: [m2] junit-test-reports with surefire-report:report

2006-01-10 Thread Piotr Bzdyl
Hello, [INFO] [ERROR] BUILD ERROR [INFO] [INFO] There are some test failure. Because of some failed junit-tests the whole maven build

Re: [m2] war dependencies in ear

2006-01-05 Thread Piotr Bzdyl
I'm not saying that dependencies should have properties again, but I am saying that it is the responsability of the war pom.xml to describe which dependencies it will include itself and which ones should be provided by its containg ear. I was thinking also about war projects which can be

Re: call for testers: scp wagon

2006-01-05 Thread Piotr Bzdyl
Hello, Another way to test is to pick up the following integration build instead: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060105.071501.tar.gz Using above build I tried mvn deploy with following configurations: 1. on the windows machine under cygwin shell using

Re: [ANN] Mevenide for Netbeans Maven2 support initial release

2006-01-04 Thread Piotr Bzdyl
I'd like to announce an initial release of Mevenide Netbeans 2.0. It's IDE integration for Maven2 project management and build tool. It allows to open Maven2 projects in the IDE directly, helps with writing the Maven project files etc. A Continuum integration server plugin is also included,

[m2] surefire and commons-logging problem

2005-12-29 Thread Piotr Bzdyl
Hello, I have a problem with running surefire tests when I have commons-logging in my classpath. I get java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory. I am subscriber of this list and I think I saw a solution here (adding something to the

Problem with maven 2 modules

2005-12-22 Thread Piotr Bzdyl
Hello, I have parent pom.xml with following lines: modelVersion4.0.0/modelVersion groupIdcom.mydomain.projectX/groupId artifactIdprojectX/artifactId packagingpom/packaging version1.0-SNAPSHOT/version scm connection scm:svn:svn://mydomain.com/svnrepo/projectX/trunk/

[m2] Filtering resources and current time

2005-12-12 Thread Piotr Bzdyl
Hello, I would like to have something like this in my pom.xml build resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /build and in src/main/resources/app.properties: app.buildTime=${currentTime} to get current time (the

[m2] war plugin and resources filtering

2005-12-12 Thread Piotr Bzdyl
Hello, How can I turn on resources filtering for files in the src/main/webapps directory? I need to filter web.xml and other xml descriptors. Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[m2] Facelets and JSF implementation

2005-11-20 Thread Piotr Bzdyl
Hello, I would like to setup my own central repository with Facelets jar and configure its pom with all dependencies. I see that it requires JSF API. I would like to use MyFaces or Sun's Reference Implementation. I think that I should include in the Facelets pom only JSF API dependency since

[m2] myfaces - what should I use as my dependency

2005-11-19 Thread Piotr Bzdyl
Hello, I would like to know what I should use as my dependency if I want to use myfaces. I browsed http://ibiblio.org/maven2/myfaces/ and found: myfaces-all myfaces-api myfaces-impl myfaces-jsf-api myfaces I would like to use version 1.1.1 but none of the poms declared for any version has

Re: [m2] myfaces - what should I use as my dependency

2005-11-19 Thread Piotr Bzdyl
Hello, dependencies dependency groupIdmyfaces/groupId artifactIdmyfaces-api/artifactId version1.1.1/version /exclusions /dependency dependency groupIdmyfaces/groupId

Re: [m2] ear packaging

2005-11-04 Thread Piotr Bzdyl
Hello, I'm building ear artifact. I've got packagingear/packaging in my pom, but when I use 'mvn package' only subprojects (modules) are build. Build of ear archive is skipped. Actually, if you use modules in the pom, the packaging should be set to pom, and ear project should be one of the

[m2] Artifact with web resources (images, css etc.)

2005-11-02 Thread Piotr Bzdyl
Hi, How should I handle artifact with web resources? Lets assume that I create JSF web UI components which consists of Java classes packaged in the Jar file and web resources (images, css and javascript library files). Shouldn't be there something like web-resources packaging type

Re: [m2] Artifact with web resources (images, css etc.)

2005-11-02 Thread Piotr Bzdyl
Hi Mark, Hi Piotr, There's a similar issue open regarding including artifacts at the root-level of a war: http://jira.codehaus.org/browse/MNG-896 This would be for applets, JNLP apps, etc. but could be extended to explode specified dependencies as well - maybe worth adding your use case there

Re: [m2] Artifact with web resources (images, css etc.)

2005-11-02 Thread Piotr Bzdyl
http://jira.codehaus.org/browse/MNG-896 BTW: when is it expected to be solved? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[m2] Properties and current date/time

2005-11-02 Thread Piotr Bzdyl
Hi, How can I get a property with current date or time as property in the form as with ${pom.version}? I would like to use it in the pom.xml. Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [M2] What is wrong with my scm url?

2005-11-02 Thread Piotr Bzdyl
Hi, From http://maven.apache.org/reference/plugins/scm/scmurl.html scm:cvs:protocol[:host]:CVS root:CVS module I cannot see any place for port number... (scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi). Best regards, Piotrek

Re: [M2] What is wrong with my scm url?

2005-11-02 Thread Piotr Bzdyl
Hi, Ok I got it, it's because after my failed attempt, the file release.properties was created and the url was stocked in it. So the plugin used this url and didn't care about all the changes I made to pom.xmlafterwar. To make it work again, I just had to delete this file, so the plugin would

Re: [M2] deployment : session is down

2005-10-23 Thread Piotr Bzdyl
Hi, We upgraded to a jsch that was supposed to have fixed it, but it seems to have gotten worse. The main workaround at this point is to use scpexe:// or ftp:// instead. http://maven.apache.org/guides/mini/guide-deploy-ftp.html details using ftp - the steps for scpexe (wagon-ssh-external) are

Re: [M2.0] Getting started with M2.0 and Eclipse

2005-10-20 Thread Piotr Bzdyl
Hello, There exists an m2 plug-in for Eclipse and I will probably release it next week sometime. It supersedes anything in Mevenide as far as m2 goes. It will be a preview but it needs a little work before it's released. Is it possible to checkout sources of this Eclipse plugin and take a

Re: [M2.0] Getting started with M2.0 and Eclipse

2005-10-20 Thread Piotr Bzdyl
Hello, The source is within http://svn.apache.org/repos/asf/maven/components/trunk look under maven-plugins/maven-eclipse-plugin. Just a little misunderstanding. I was talking about plugin for Eclipse to execute maven 2 goals from Eclipse IDE and not about maven 2 plugin to create .classpath

Re: [M2.0] Getting started with M2.0 and Eclipse

2005-10-20 Thread Piotr Bzdyl
No, for that you will Mevenide - however, I believe Mevenide does not support m2 yet. As Jason van Zyl wrote: There exists an m2 plug-in for Eclipse and I will probably release it next week sometime. It supersedes anything in Mevenide as far as m2 goes. It will be a preview but it needs a

[m2] Working with project versions

2005-10-20 Thread Piotr Bzdyl
Hi, I would like to make sure that I understand maven 2 philosophy correctly. This is how I work with versions and SVN now: 1. Working with version 1.0-SNAPSHOT in svn.myhost.com/projectA/trunk 2. I want to release stable version so I use mvn release:prepare and mvn release:perform using as

[m2] jar artifact with par extension

2005-09-14 Thread Piotr Bzdyl
Hello, (I was writing to this mailing list before partially about this problem: Demo application based on JBoss DVD trailblaizer) I tried to create following project: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Demo application based on JBoss DVD trailblaizer

2005-09-04 Thread Piotr Bzdyl
Hello, I wanted to create template project structure for EJB3 application based on the DVD trailblaizer from JBoss site (http://trailblazer.demo.jboss.com/DVDTrail/). I used Maven2 2.0-beta-1-SNAPSHOT - I created structure which is available at http://piotr.radzisz.com/maven2/ I would like

Re: Demo application based on JBoss DVD trailblaizer

2005-09-04 Thread Piotr Bzdyl
Additional info: Maven 2 revision I used is: 278636. And one additional question: Can I specify version in the parent pom and use inherited value in subprojects or I have to specify version separately in every pom.xml? Best regards, Piotrek

Re: Demo application based on JBoss DVD trailblaizer

2005-09-04 Thread Piotr Bzdyl
Additional info: Maven 2 revision I used is: 278636. And one additional question: Can I specify version in the parent pom and use inherited value in subprojects or I have to specify version separately in every pom.xml? You do not have to specify the version in the pom, it will use the