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

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 keyC=valu

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: [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 foll

[m2] war plugin and warSourceExcludes not working for dependencies

2006-02-01 Thread Piotr Bzdyl
Hello, 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 follo

Re: Maven 2 EAR, WAR, EJB Common Dependencies

2006-01-31 Thread Piotr Bzdyl
Hi, WAR POM org.apache.maven.plugins maven-war-plugin webApplication image/**,htmlapp/**,WEB-INF/lib/*.jar

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 doesn't

[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: 4.0.0 com.domain libraryx-api jar libraryx 1.0 libraryx com.domain libraryx-native 1.0 dll 4.0.0 com.hugin hugin-native dll Hugin native library

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

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: [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 inst

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

[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 commons-logging...???) b

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

[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 src/main/resources true and in src/main/resources/app.properties: app.buildTime=${currentTime} to get current time (the time when I call mvn package for example) in the place of ${currentTime}. Is there a ma

[m2] optional transitive dependencies includes/excludes

2005-12-04 Thread Piotr Bzdyl
Hello, I found few posts and issues in JIRA about including and excluding transitive optional dependencies. What is the current implementation of this functionality? As I understand from the above resources I have to use only exclusions element in my pom. Why did you decline to introduce inc

[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

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

2005-11-19 Thread Piotr Bzdyl
Hello, myfaces myfaces-api 1.1.1 myfaces myfaces-impl 1.1.1 runtime In general you either use myfaces-a

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

Re: [m2] ear packaging

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

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] 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:[:]:: I cannot see any place for port number... (scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi). Best regards, Piotrek - To unsubscribe, e-mai

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

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]

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

[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 (web-resour

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 s

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

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

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

[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: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.a

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

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

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