How to loose the /target/...

2011-01-25 Thread martin krüger
Hi everyone, currently I try to copy some files with the maven-resources-plugin. Is there any chance to get rid of the /target/ folder during the copy of files? I'm using the following lines: resource filteringtrue/filtering directory${basedir}/src/site/directory

Suggest a good workaround for MNG-4809

2011-01-25 Thread Hari shankar
I have hit this bug http://jira.codehaus.org/browse/MNG-4809 Quoting it, We cannot specify variables to define a system path. Maven complains about absolute path. This is a pain which forces us to either hard code the path or use -DlocalRepository flag. Is there a way to use settings from

Re: Suggest a good workaround for MNG-4809

2011-01-25 Thread Anders Hammar
I'm guessing that there is some jar missing in remote (Internet) repositories, which you're adding to your local repo to solve this. And then using system scope for your dependency. Right? The solution is then to get a repository manager and upload the missing artifact to it (making it available

Re: How to loose the /target/...

2011-01-25 Thread Antonio Petrelli
2011/1/25 martin krüger brainm...@googlemail.com: currently I try to copy some files with the maven-resources-plugin. Is there any chance to get rid of the /target/ folder during the copy of files? I'm using the following lines: resource filteringtrue/filtering

Re: How to loose the /target/...

2011-01-25 Thread Marc Rohlfs
Looks a little strange to me, trying to do this kind of copy action using the POMs build resources configuration. I'd suggest to use the 'resources:copy-resources' goal: http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html. The 'outputDirectory' parameter should

Re: Declaring a dependency for tools.jar

2011-01-25 Thread Simone Tripodi
+1 to Benson, is what we did on Google Doclava[1] to make the build working on Google team's Ubuntu and my Mac. just my 2cents, Simo [1] http://code.google.com/p/doclava/source/browse/trunk/pom.xml http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Mon, Jan 24, 2011 at 11:59

integration tests fail, but not the main build

2011-01-25 Thread Simone Tripodi
Hi all, I'm sure I missed something, but when running integration tests using maven-invoker-plugin, even if integration tests fail, the build doesn't :( This[1] is the plugin configuration and the related output[2] I can get after ran `mvn clean integration-test` Any hint would be much more than

Re: integration tests fail, but not the main build

2011-01-25 Thread Stephen Connolly
Never ever run the goals pre-integration-test integration-test post-integration-test directly from the command line to run integration tests use mvn verify the best practice for using the integration-test phase is to not fail the build in that phase and defer checking the integration test

Re: integration tests fail, but not the main build

2011-01-25 Thread Simone Tripodi
gotcha!!! just tried your suggestion and worked, kudos to you! :) thanks a lot, have a nice day! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Jan 25, 2011 at 11:51 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Never ever run the goals

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Miguel Almeida
Anders, Is what you propose possible without repeating the War files? ie, I currently have *one* WAR project, where I have all the xml, jsp and java files for the web app. The only difference between the development and production environments is a few configs like: on line in the database.xml

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Antonio Petrelli
2011/1/25 Miguel Almeida migueldealme...@gmail.com: Is what you propose possible without repeating the War files? ie, I currently have *one* WAR project, where I have all the xml, jsp and java files for the web app. The only difference between the development and production environments is a

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Miguel Almeida
On Tue, Jan 25, 2011 at 11:18 AM, Antonio Petrelli antonio.petre...@gmail.com wrote: No, he means (correct me if I am wrong) that you should have a war for each web application you have. Since you have *one* web application, one war is ok. Configuration like IP addresses, ports, etc. should

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Anders Hammar
Antonio is right. This has been discussed several times. Search the archive for many examples of doing this, including using JNDI or putting a properties file on the classpath. I understand this would require changes to your code base. Major changes possibly. But it is the right way to go. Once

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Miguel Almeida
Anders, I think I understand what you mean, but it doesn't seem to be very different from the current approach. On Tue, Jan 25, 2011 at 11:35 AM, Anders Hammar and...@hammar.net wrote: Antonio is right. This has been discussed several times. Search the archive for many examples of doing

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Mark Struberg
+1 for using external 'properties' Usually you like to produce only one WAR file and use exactly this single WAR file on your test box, move it further to the integration test server and then move it to the production server. The SHA-1 of the WAR _must_not_ change! If you need to rebuild a

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Anders Hammar
Ok, I see where we misunderstand each other. What you want to do is to build just one war. This war should not include any environment configuration at all! Environment dependent configuration should be handled outside of the war. One way to do this is to always load config file from the

maven-release-plugin - lock files during release

2011-01-25 Thread Moser, Christian
According to the documentation: http://maven.apache.org/plugins/maven-release-plugin/examples/lock-files .html Am I right in assuming that I'd be able to lock files during a release with: release:prepare -DuseEditMode=true so that nobody could commit files/directories during the

Site deployment (scp) with NullKnownHostProvider fails on Maven3

2011-01-25 Thread Marcin Kuthan
Hi I'm working on corporate pom and I would keep common corporate pom version for Maven 2 and Maven 3. But I can't configure site deployment with scp wagon provider for Maven 2 and 3. To avoid interaction during scp deployment I configured server with NullKnownHostProvider in settings.xml.

Re: Site deployment (scp) with NullKnownHostProvider fails on Maven3

2011-01-25 Thread Olivier Lamy
Hello Sounds an issue. Please load an entry in jira (with the details). We will have a look. Thanks! -- Olivier Lamy http://twitter.com/olamy http://www.linkedin.com/in/olamy 2011/1/25 Marcin Kuthan marcin.kut...@gmail.com: Hi I'm working on corporate pom and I would keep common corporate

Re: Site deployment (scp) with NullKnownHostProvider fails on Maven3

2011-01-25 Thread Lukas Theussl
For the NPE in m3, this has just been filed: http://jira.codehaus.org/browse/MSITE-546 For m2, I'm not sure I understand you correctly, first you say it works, then you say it doesn't with the ssh extension (which you shouldn't need for scp). Maybe it's a version incompatibility, the

Re: Work flow for isolated internal repository

2011-01-25 Thread Ron Wheeler
On 24/01/2011 6:28 PM, Guo Du wrote: On Mon, Jan 24, 2011 at 5:41 AM, Anders Hammarand...@hammar.net wrote: You could be somewhat aided by the procurement feature of Nexus Pro (the commercial edition of the Nexus repo manager): http://www.sonatype.com/books/nexus-book/reference/procure.html

Re: Site deployment (scp) with NullKnownHostProvider fails on Maven3

2011-01-25 Thread Marcin Kuthan
MSITE-546 defines exactly what I observed, NPE when configuration is provided. At this moment this issue blocks me to use Maven 3. Site deployment is done by Bamboo installed as windows service and there is no good place for know_hosts file. NullKnownHostProvider is the only way which I've found

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Ron Wheeler
1) get your Database coords and other deployment properties out of the project and onto your servers. Use JNDI. Two advantages - your builds are simpler and less prone to nasty run-time surprises and you can actually run the WAR file that you tested not some other WAR file that you made after

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Miguel Almeida
On Tue, Jan 25, 2011 at 12:50 PM, Anders Hammar and...@hammar.net wrote: Ok, I see where we misunderstand each other. What you want to do is to build just one war. This war should not include any environment configuration at all! Environment dependent configuration should be handled outside

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Ron Wheeler
On 25/01/2011 7:03 AM, Miguel Almeida wrote: Anders, I think I understand what you mean, but it doesn't seem to be very different from the current approach. Get rid of the profiles. You don't need them and they are leading you astray. Get your deployment stuff out of your WAR. Sooner or later

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Ron Wheeler
On 25/01/2011 6:35 AM, Anders Hammar wrote: Antonio is right. This has been discussed several times. Search the archive for many examples of doing this, including using JNDI or putting a properties file on the classpath. I understand this would require changes to your code base. Major changes

Re: Suggest a good workaround for MNG-4809

2011-01-25 Thread Wayne Fay
Can anyone please suggest a good workaround other than specifying a hard coded path or passing -DlocalRepository flag, if one exists. The solution is then to get a repository manager and upload the missing artifact to it (making it available to all your developers). Then you just declare

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Kalle Korhonen
On Tue, Jan 25, 2011 at 8:09 AM, Miguel Almeida migueldealme...@gmail.com wrote: I agree with you. I'm still quite new to advanced Maven topics so it still seems counter-intuitive to store the config file outside the .war - it adds one extra step of deploy the .xml/config file in the

maven-release-plugin multimodule creating additional subversion tags for each module

2011-01-25 Thread Mirko Friedenhagen
Hello, Dear all, in our company we have a policy that every released artifact should have a release tag in Subversion assuming tagging is a cheap operation in subversion. So given a standard multimodule project: foo/trunk/pom.xml (groupId=foo,artifactId=parent,version=1.0-SNAPSHOT)

Re: One project per package or multiple packages in same project?

2011-01-25 Thread Marcin Kuthan
On 25 January 2011 19:23, Kalle Korhonen kalle.o.korho...@gmail.com wrote: On Tue, Jan 25, 2011 at 8:09 AM, Miguel Almeida migueldealme...@gmail.com wrote: I agree with you. I'm still quite new to advanced Maven topics so it still seems counter-intuitive to store the config file outside the

Re: maven-release-plugin multimodule creating additional subversion tags for each module

2011-01-25 Thread Mark Struberg
Hi Mirko! If you release the whole project at once, then you obviously only get exactly one tag! You'd need to run releases on each module on it's own to get the single tags. But I'm not sure if this is really a good thing... What is the goal you like to achieve? What's wrong for you with

Re: maven-release-plugin multimodule creating additional subversion tags for each module

2011-01-25 Thread Mirko Friedenhagen
On Tue, Jan 25, 2011 at 10:21 PM, Mark Struberg strub...@yahoo.de wrote: Hi Mirko! If you release the whole project at once, then you obviously only get exactly one tag! You'd need to run releases on each module on it's own to get the single tags. But I'm not sure if this is really a good

Re: maven-release-plugin multimodule creating additional subversion tags for each module

2011-01-25 Thread Mirko Friedenhagen
Well, I implemented a solution, which anyone interested can retrieve from github, see: https://github.com/mfriedenhagen/multi-module-svn. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/