RE: Can I prevent maven from searching dependencies in localRepository?

2009-06-17 Thread gorgophol
Matt Brown-20 wrote: Why would you want Maven to NOT use the local repository? I believe it does this so that every single goal/phase (compile, test, etc) does not need to re-fetch artifacts it has already seen from the network. As mentioned in my question, there are several

Re: Can I prevent maven from searching dependencies in localRepository?

2009-06-17 Thread Stephen Connolly
sounds like you are not using versions correctly. -SNAPSHOT versions are for untested local stuff. non-SNAPSHOT versions are pulled from repositories and have been tested. They are only produced from a build machine, so no developer should have a non-SNAPSHOT version unless it came from a

Re: [m2eclipse-user] Re: Maven, M2Eclipse, Nexus @ Eclipse DemoCamp in Budapest

2009-06-17 Thread Stevo Slavić
When in Szeged, why not come by to Novi Sad as well? :) Regards, Stevo. 2009/6/16 Tamás Cservenák ta...@cservenak.net Also, two of us will be at University of Szeged on Friday 19th, doing the same we'll be doing some demos and chatting with folks. The beer will came later, most probably at

Re: Can I prevent maven from searching dependencies in localRepository?

2009-06-17 Thread gorgophol
Stephen Connolly-2 wrote: sounds like you are not using versions correctly. -SNAPSHOT versions are for untested local stuff. non-SNAPSHOT versions are pulled from repositories and have been tested. They are only produced from a build machine, so no developer should have a

Re: process-sources: process the source code, for example to filter any values.

2009-06-17 Thread Paolo Castagna
Anders Hammar wrote: Found this through Google: http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-filtering-sources.htm Not sure if it's the best way to do it though. Never tried filtering java source code. Thanks Anders for your reply. Yep, I've been searching with Google

Re: process-sources: process the source code, for example to filter any values.

2009-06-17 Thread Dominic Mitchell
On 17 Jun 2009, at 08:29, Paolo Castagna wrote: Anders Hammar wrote: Found this through Google: http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-filtering-sources.htm Not sure if it's the best way to do it though. Never tried filtering java source code. Thanks Anders

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-17 Thread Dominic Mitchell
On 16 Jun 2009, at 20:08, Nayan Hajratwala wrote: sorry you're having so much trouble, robert -- i just tested 2.2.0- RC3, and it worked fine for me. Good luck on IRC! I agree — I installed 2.2.0-RC3 onto my path a couple of days ago and promptly forgot about it. :) I haven't noticed

Fwd: Install plugin parameter substitution

2009-06-17 Thread Lance Walton
Apologies for the indentation below; iPhone trouble. Hi all. I am relatively new to Maven and I have recently started working on a project who's build is a bit... twisty. In order to remove some custom stuff I am trying to upgrade Maven to 2.1.0 and to use version 2.3.0 of the install

Re: Maven + OSGI

2009-06-17 Thread Stuart McCulloch
2009/6/15 Peter Horlock peter.horl...@googlemail.com Hello Stuart, thanks for your reply. Could you please send me your assembly plugin settings? Hi Peter, Unfortunately I don't have an assembly configuration I can share at the moment - I use Pax-Runner to deploy my apps. If you're still

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-17 Thread Jörg Schaible
Dominic Mitchell wrote at Mittwoch, 17. Juni 2009 10:02: On 16 Jun 2009, at 20:08, Nayan Hajratwala wrote: sorry you're having so much trouble, robert -- i just tested 2.2.0- RC3, and it worked fine for me. Good luck on IRC! I agree — I installed 2.2.0-RC3 onto my path a couple of days

Tycho and m2 artefact

2009-06-17 Thread Brice
Hi I actually use Tycho for a RCP bundle development with the 0.3.0-DEV-1819 release. I use it in the manifest-first mode (of course) but I'd like to add a dependency to another m2 module which is NOT an OSGI bundle. As pom files are generated by Tycho, is it possible to add this dependency

Assembly:adding a war module to a tar.gz

2009-06-17 Thread turbo-555
hi, I'm packaging a tar.gz with assembly, I included several filesets from my project, but now I need to add some files/folders that are in a war (this war is also taken as an overlay from the project in order to add the necessary files in the main war package of the project). I don't

Re: How to create many jars in package phase?

2009-06-17 Thread losa
You can use the maven-jar-plugin for generating more than one jar file filtering the classes you want to include. Example: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution

RE: Excluding files/webapp folder from a war

2009-06-17 Thread turbo-555
Damon Silver wrote: I managed to get it working (maven 2.0.9, maven-war-plugin 2.1-beta-1) with the following: configuration ... packagingExcludes**/*.bat,.classpath,**/*.java,pom.xml,.project,.settings/ **,**/*.sh,target/**/packagingExcludes ... /configuration Hope that helps.

Re: Can I prevent maven from searching dependencies in localRepository?

2009-06-17 Thread Stephen Connolly
2009/6/17 gorgophol benjamin.h...@inter.de Stephen Connolly-2 wrote: sounds like you are not using versions correctly. -SNAPSHOT versions are for untested local stuff. non-SNAPSHOT versions are pulled from repositories and have been tested. They are only produced from a build

Re: Maven + OSGI

2009-06-17 Thread Peter Horlock
Thanks Stuart, I'll try to get help on that list. Peter

integrate JDK Source in eclipse

2009-06-17 Thread Peter Horlock
Hi, I configured the maven-eclipse-plugin so that it downloades the sources and JavaDocs of all third party jars: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.7/version

release:prepare with uberwar

2009-06-17 Thread Rémy
Hello, I use the Cargo uberwar plugin. I also use the Maven release plugin. When I run the prepare goal, It also update the first version dependency. I specified the dependencies in the parent POM (dependencyManagement section). For 'jar' or 'war' artefact, I don't specify the version in the

skipping plugin execution on a module in a multi-modules context

2009-06-17 Thread christophe domas
Hi, I have a multi-modules project. One of these modules generates some source code (from xsd, wsdl, etc) but I don't want to execute some plugins on this module (checkstyle, pmd, sonar, etc). In general, is it possible to skip plugin execution on a particuliar module in a multi-modules project ?

Re: skipping plugin execution on a module in a multi-modules context

2009-06-17 Thread Freddy Mallet
Hi Christophe, When launching the mvn sonar:sonar command on your multi-modules project, you just have to add the following Sonar property -Dsonar.skippedModules=${module_artifact_to_exclude} and you'll get what you want. Hope it helps, Freddy Freddy

Re: Assembly:adding a war module to a tar.gz

2009-06-17 Thread turbo-555
I almost solved the problem, I tried once again using the dependencySets... dependencySets dependencySet unpacktrue/unpack includes includewebapp-commons.war**/include /includes /dependencySet /dependencySets like this it works, I had

Re: Assembly:adding a war module to a tar.gz

2009-06-17 Thread turbo-555
Problem solved: dependencySets dependencySet includes includewebapp-commons.war**/include /includes unpacktrue/unpack unpackOptions excludes excludeWEB-INF/**/exclude

Error in Maven: plugin does not exist

2009-06-17 Thread diego.vera
Hi everybody, I am new with maven and I just downloaded it and tried to run a sample command, but I get an error. I guess that maybe the error is because I need to configure my proxy server in the settings.xml file, I made it, however I am still receiving the same error. Any ideas what could

Re: maven-ejb-plugin was6-maven-plugin generated jar files

2009-06-17 Thread Yoda Koda II
Then to install the deployed jar, replacing the normal target jar, use something like this.. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-install-plugin/artifactId version2.3/version executions execution idinstall-library/id phaseinstall/phase goals goalinstall-file/goal /goals

Re: skipping plugin execution on a module in a multi-modules context

2009-06-17 Thread Christophe Domas
Thanks but is there a more general way to skip a plugin ? Freddy Mallet wrote: Hi Christophe, When launching the mvn sonar:sonar command on your multi-modules project, you just have to add the following Sonar property -Dsonar.skippedModules=${module_artifact_to_exclude} and you'll get

RE: Can I prevent maven from searching dependencies in localRepository?

2009-06-17 Thread Mohan KR
Not sure I understood this correctly. It appears that you want to have a 1..n RELEASE repositories, that are access controlled. There are couple of ways you can go about it (I think): - if you use a Repository Manager like Nexus, you can get what you want, maintaining the same settings.xml

Re: How to apply the profile, defined in the profiles.xml in the parent project directory, to sub-modules?

2009-06-17 Thread Eugeny N Dzhurinsky
On Tue, Jun 16, 2009 at 02:32:49PM +0200, Reinhard Nägele wrote: There is a Jira ticket for this problem, which I provided a patch for quite a while ago. http://jira.codehaus.org/browse/MRELEASE-415 It'd be nice if the issue could get some attention by the developers. Okay, thank you for

Re: Error in Maven: plugin does not exist

2009-06-17 Thread Wayne Fay
I am new with maven and I just downloaded it and tried to run a sample command, but I get an error. I guess that maybe the error is because I need to configure my proxy server in the settings.xml file, I made it, however I am still receiving the same error. Any ideas what could be the error?

eclipse plugin 2.7: link project instead of repository jar

2009-06-17 Thread Daniele Dellafiore
Hi everyone. I read here: http://martijndashorst.com/blog/2009/05/29/maven-eclipse-plugin-woes-fixed/ that eclipse maven plugin 2.7 has a new feature such as such as searching your workspace for projects that are snapshot dependencies, and adding a project link instead of a jar dependency.. How

Re: How to create many jars in package phase?

2009-06-17 Thread David Weintraub
Thanks. It took me a while to figure this out. At first, I tried to create a separate plugin for each client. However, only the first one executed. Then, I tried to add a new execution definition to the maven-jar-plugin artifact, but kept getting errors. I finally realized that each execution

Re: How to create many jars in package phase?

2009-06-17 Thread Anders Hammar
Only so that you don't forget, the general Maven rule is one project, one artifact. You could use classifiers to create more than one artifact for a project, but I don't really see the benefit. Have several projects is not bad (I think), it makes your code base structured. Changes to one

Re: How to create many jars in package phase?

2009-06-17 Thread Jörg Schaible
Anders Hammar wrote: Only so that you don't forget, the general Maven rule is one project, one artifact. You could use classifiers to create more than one artifact for a project, but I don't really see the benefit. Have several projects is not bad (I think), it makes your code base

RE: maven-ejb-plugin was6-maven-plugin generated jar files

2009-06-17 Thread Pacileo, Ken
Thanks for the update. We ended up using the maven-antrun-plugin to call an Ant script that runs the WebSphere WsEjbDeploy task and then renames the resultant ejb jar file to the correct name so that the default install configuration finds the correct file to install. Can you post the code you

Re: maven-remote-resources-plugin and org.apache:apache-jar-resource-bundle

2009-06-17 Thread Dennis Lundberg
This bundle has changed over time to make sure that an ASF release that is created using Maven follows the rules for releases set up by the ASF. The bundle has not been designed to be reused for software created outside the ASF. Henri Tremblay wrote: I'll answer my own question. It seems that

Re: maven-remote-resources-plugin and org.apache:apache-jar-resource-bundle

2009-06-17 Thread jieryn
Why doesn't the OP just create his/her own bundle?? I just can't understand what the point of all this discussion is. In the time that has been wasted on this thread, the OP could have just copied the original module and customized the velocity scripts within... UGH. The stupid thing is like 3

Re: How to create many jars in package phase?

2009-06-17 Thread Anders Hammar
That would really make this an Ant wolf in Maven disguise... And wolf in this context is not anything good! On Wed, Jun 17, 2009 at 20:47, Jörg Schaiblejoerg.schai...@gmx.de wrote: Anders Hammar wrote: Only so that you don't forget, the general Maven rule is one project, one artifact. You

Re: maven-remote-resources-plugin and org.apache:apache-jar-resource-bundle

2009-06-17 Thread Daniel Kulp
Well, a SUGGESTION for a future version of the bundle would be to use ${project.organization.name} for that line in the NOTICE. For Apache projects, that would be ASF. For other projects, it would be whatever organization they set. Thus, more generic and more usable outside the ASF.

Re: How to create many jars in package phase?

2009-06-17 Thread David Weintraub
Yes, this is an Ant project going over to Maven by order of High Lord of All Matters Important. One of the things I have to do is keep the final output as close to the Ant build's output as possible. Since I am the Maven maven, I am the one stuck with this task and not the developer. There are

Re: eclipse plugin 2.7: link project instead of repository jar

2009-06-17 Thread Jim Sellers
I've found that it only works if your other projects: 1) have the same parent and you run the maven command from the parent 2) the other project is at the top level of your workspace. e.g. MyWonderfulProject \ pom.xml MyMasterLib \ pom \ MySubModuleLib \ pom.xml From MyWonderfulProject, if

Problem with servicegen

2009-06-17 Thread Jesfre
Hi again... I'm working with Maven 2, JDK 1.4, Weblogic 8.1 SP3 I've a trouble with an embeded Ant script in my pom.xml. This script generates a webservice using servicegen, but, after trying many configuration I got out of my mind. With the next configuration I've added some jars

Re: Problem with servicegen

2009-06-17 Thread Wayne Fay
With the next configuration I've added some jars (classworlds-1.1.jar, weblogic.jar, tools.jar, webservices.jar, webserviceclient+ssl_pj.jar, jasperreports-0.5.2.jar, HSReportEjb.jar, log4j-1.2.5.jar) to maven /lib folder. But caused the error below Maven does not pay attention to jars which

Re: eclipse plugin 2.7: link project instead of repository jar

2009-06-17 Thread Barrie Treloar
On Thu, Jun 18, 2009 at 6:05 AM, Jim Sellersjim.sell...@gmail.com wrote: I've found that it only works if your other projects: 1) have the same parent and you run the maven command from the parent They should be able to have different parents. 2) the other project is at the top level of your

dependency version in a property

2009-06-17 Thread EJ Ciramella
Is there a way to get a dependency version in a property?

RE: dependency version in a property

2009-06-17 Thread Damon Silver
Something like this should work: build dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version${junit.version}/version scopetest/scope /dependency /dependencies /build ... properties ... junit.version4.4/junit.version ... /properties

RE: dependency version in a property

2009-06-17 Thread EJ Ciramella
I want the other way around :-) I have a dependencyManagement tag and a dependency listed in there (all in a parent pom). Then, in a child module, I need the version of a dependency so I can put that version info INTO a shell script. I can see some things using ${project.artifacts}, I just

Re: dependency version in a property

2009-06-17 Thread Wendy Smoak
On Wed, Jun 17, 2009 at 5:06 PM, EJ Ciramellaecirame...@upromise.com wrote: I want the other way around :-) I have a dependencyManagement tag and a dependency listed in there (all in a parent pom). Then, in a child module, I need the version of a dependency so I can put that version info

RE: dependency version in a property

2009-06-17 Thread EJ Ciramella
Hmmm - I cheated I guess. The jar in question is being put in a lib directory and because I control that via the assembly descriptor, I just use the outputFileNameMapping option and stripped out the version. /shrug -Original Message- From: Wendy Smoak [mailto:wsm...@gmail.com] Sent:

RE: dependency version in a property

2009-06-17 Thread Damon Silver
If it's a property in a parent pom that you explicitly set, it's available as a property in the child pom, so you could access the version being used via ${junit.version} in your script invocation. -Original Message- From: EJ Ciramella [mailto:ecirame...@upromise.com] Sent: Wednesday,

RE: dependency version in a property

2009-06-17 Thread EJ Ciramella
Yep, I'm aware of the property option, just seems silly to add a property (when it's just the version info for ONE dependency) - when the version isn't truly needed. Anyway - thanks all for the replies! -Original Message- From: Damon Silver [mailto:damon.sil...@diio.net] Sent:

Re: [PLEASE TEST] Maven 2.2.0-RC3

2009-06-17 Thread Markku Saarela
Same thing. With RC2 release failed but now with RC3 releases of multi-module projects success :-). - markku Jörg Schaible wrote: Dominic Mitchell wrote at Mittwoch, 17. Juni 2009 10:02: On 16 Jun 2009, at 20:08, Nayan Hajratwala wrote: sorry you're having so much trouble, robert

Re: How to create many jars in package phase?

2009-06-17 Thread Anders Hammar
It's your call. Just please understand that even if it's possible doesn't make it the right way of doing things. I tried to think of issues with this approach (other than the versioning thing I already mentioned) and the only thing I can think of is if you have different dependencies for your