Re: adding jars from project folder into my war file

2009-05-11 Thread Fabien KRUBA
BTW, installing archiva on one machine considered as common repository takes only 5-10 minutes http://archiva.apache.org/docs/1.2/quick-start.html On Thu, May 7, 2009 at 3:38 PM, fachhoch fachh...@gmail.com wrote: 1 we do not have a common repository , so every user who wants to work with

RE: deploy:deploy Hangs in Release

2009-05-11 Thread Harper, Brad
Possible, but I checked the ${M2_HOME}/conf/settings.xml and the repositories have valid username/passwords on the associated servers. Credentials for scp wouldn't be resolved differently from within the release plugin, would they? FWIW, I've reverted from 2.1.0 back to 2.0.8 and get the same

Re: adding jars from project folder into my war file

2009-05-11 Thread Fabien KRUBA
Try this ( could be a solution if not too much jars to add ) -create a maven project containing all your jars ( for example put them in src/main/lib ) -create one execution by needed jar -each developer will have to run it once (mvn validate is enought) or you can add this project to the reactor

Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Tobias Gierke
Hi, After inheritance, the war dependency tree looks like this: foo.bar:b:war:0.0.1-SNAPSHOT +- org.apache.velocity:velocity:jar:1.6.2:test \- foo.bar:a:jar:0.0.1-SNAPSHOT:compile +- org.apache.velocity:velocity:jar:1.6.2:test \- org.apache.velocity:velocity:jar:1.6.2:compile So the

question on licensing for maven ant tasks

2009-05-11 Thread Brian Fry
Hi. I am a bit confused about the licensing for the maven ant tasks, as I see what appears to be conflicting details. The ant-tasks project pages seem to indicate that 1) The Maven Ant tasks are part of Maven (http://maven.apache.org/ant-tasks/index.html) 2) The license for the ant tasks is

Re: Creating archetypes and disabling velocity

2009-05-11 Thread Doug Hughes
Ok, I managed to get this to work (mostly). What I did initially that wasn't working was this: 1) I created a new maven project and set it up the way I wanted it to be. 2) I then used archetype:create-from-project to create a new archetype. 3) I went under /target/generated-sources/archetype in

Re: deploy:deploy Hangs in Release

2009-05-11 Thread Stephen Connolly
2009/5/7 Harper, Brad brad.har...@fiserv.com Possible, but I checked the ${M2_HOME}/conf/settings.xml and the repositories have valid username/passwords on the associated servers. Credentials for scp wouldn't be resolved differently from within the release plugin, would they? Depends

Maven error on AIX.64/java 6

2009-05-11 Thread Subramanian, N.Venkata
Hi I am getting following error on AIX.64 platform and Java 6. I am not facing this, If my JAVA_HOME is pointing to java 1.5. Anyone faced this issue ? K downloaded [INFO] [ERROR] FATAL ERROR [INFO]

RE: Maven error on AIX.64/java 6

2009-05-11 Thread Subramanian, N.Venkata
This issue is fixed in IBM JDK 1.6 SR2. Thanks -Venkat -Original Message- From: Subramanian, N.Venkata Sent: Monday, May 11, 2009 3:22 PM To: users@maven.apache.org Subject: Maven error on AIX.64/java 6 Hi I am getting following error on AIX.64 platform and Java 6. I am not facing

Re: Undocumented Feature: Usage of negation for profile activation

2009-05-11 Thread TM
Wendy Smoak-3 wrote: It could go on http://maven.apache.org/guides/introduction/introduction-to-profiles.html . Can you open a JIRA issue if there isn't one, and possibly suggest a patch? Done, cf. http://jira.codehaus.org/browse/MNGSITE-86 -- Thorsten -- View this message in

Re: Creating archetypes and disabling velocity

2009-05-11 Thread Raphaël Piéroni
Hi Doug, Please raise a jira for the xNl instead of xMl. One can configure the create-from-project mojo to have the file unfiltered by default using: -DarchetypeFilteredExtentions=unknownExtension which sets the file extension for files that will be filtered. by default there is java, js, xml

Re: Creating archetypes and disabling velocity

2009-05-11 Thread Doug Hughes
Thank you! That was extremely helpful! I used -DarchetypeFilteredExtentions as you recommended and was able to create my archetype and generate based on this and my new project was setup perfectly (or so it seems right now). I've logged the Jira ticket as your requested for the xNl file

Re: Creating archetypes and disabling velocity

2009-05-11 Thread Raphaël Piéroni
2009/5/11 Doug Hughes d...@doughughes.net: Thank you!  That was extremely helpful! I used -DarchetypeFilteredExtentions as you recommended and was able to create my archetype and generate based on this and my new project was setup perfectly (or so it seems right now). I've logged the Jira

Using multiple source dirs

2009-05-11 Thread karthikeyan.sivanantham
Hi all, I'm trying to use sonar light with my non maven project. When I do a mvn clean install, I get the following error. I've pasted my pom.xml after the error. I'm using mvn 2.1.0, java 1.5 and sonar 1.7. Any help is highly appreciated [INFO]

Re: How to use maven to gather all (or some) dependent jar files

2009-05-11 Thread Joe Hindsley
The way I've done this in the past is to use the assembly plugin to generate a distribution zip/tar. The unpacked structure looks like: /bin /lib /conf /log In the bin directory, you would add a shell script that sets up the runtime environment and invokes the mule runtime. The lib directory

Assembly multiple targets

2009-05-11 Thread Morgan Fletcher
We have a codebase with about 28 active java modules. This code pre-dates maven 1.X, but was adapted to maven 1.0 and then 1.1, and I've recently created / updated pom.xml files to get it building under maven 2.X. So far so good. The interesting thing is that our products are more than just

RE: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Todd Thiessen
Are there many cases where you want something for compilation that isn't needed at runtime? I don't see them as being separate. Really? I am surprised. Yes there is a relation between compile and runtime. However, there is a different relation between compile and test. Scope has multiple

RE: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Todd Thiessen
you may have a valid reason for so doing, but maven is no medium and cannot ask a higher plain what you wanted to do. It doesn't need to. Maven has all the information. If a transitive dependency has compile scope it should never get demoted to test scope. However, you do want it to get

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Stephen Connolly
2009/5/11 Todd Thiessen thies...@nortel.com Are there many cases where you want something for compilation that isn't needed at runtime? I don't see them as being separate. Really? I am surprised. Yes there is a relation between compile and runtime. However, there is a different relation

Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Stephen Connolly
2009/5/11 Todd Thiessen thies...@nortel.com you may have a valid reason for so doing, but maven is no medium and cannot ask a higher plain what you wanted to do. It doesn't need to. Maven has all the information. If a transitive dependency has compile scope it should never get demoted to

subproject dependency

2009-05-11 Thread tubin gen
I created a maven project which has three sub projects one for ear , one for war and one for jar.War has dependency to jar and ear has dependency to war. When I try to install project i get this error Reason: Failed to copy file for artifact[active project artifact: artifact =

Cargo and multi-module projects

2009-05-11 Thread Bocalinda
Hi List, In order to achieve automatic testing of my projects, I use Cargo to automatically deploy newly generated war files to a Tomcat server. All the specifics to the automatic testing (depedencies, plugin configuration, etc) are contained inside of a super pom. Because I have multitudes of

RE: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Todd Thiessen
I think the answer here is that nobody had a good example at the time! And even when you do, you can use exclusions which you interesting mention in your next response ;-). So if you want a particular compile transitive dependency to be included only as test, exclude it and add it to your local

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Stephen Connolly
2009/5/11 Todd Thiessen thies...@nortel.com I think the answer here is that nobody had a good example at the time! And even when you do, you can use exclusions which you interesting mention in your next response ;-). So if you want a particular compile transitive dependency to be included

Re: Cargo and multi-module projects

2009-05-11 Thread jieryn
Hi Bocalinda, On Mon, May 11, 2009 at 10:28 AM, Bocalinda bocali...@gmail.com wrote: In order to achieve automatic testing of my projects, I use Cargo to automatically deploy newly generated war files to a Tomcat server. All the specifics to the automatic testing (depedencies, plugin

Creating a zip of non-java files

2009-05-11 Thread Doug Hughes
Hi, I'm working to create a new project which would have no Java sources or tests in it. The project actually is made up of ColdFusion code. I can't figure out how to get Maven to zip this up. I started by creating a new project and removing the java and test folders. I added a folder

Re: Cargo and multi-module projects

2009-05-11 Thread Bocalinda
Hi Jesse, Glad I'm not the only one who is trying such thing. Great solution you just gave me, I hope this works for me as well. Big thanks! 2009/5/11 jie...@gmail.com Hi Bocalinda, On Mon, May 11, 2009 at 10:28 AM, Bocalinda bocali...@gmail.com wrote: In order to achieve automatic

Re: Cargo and multi-module projects

2009-05-11 Thread jieryn
Hi Bocalinda, On Mon, May 11, 2009 at 11:28 AM, Bocalinda bocali...@gmail.com wrote: Glad I'm not the only one who is trying such thing. Great solution you just gave me, I hope this works for me as well. Big thanks! You picked up on it, but, just to clearly state it this time (as I didn't

Re: Cargo and multi-module projects

2009-05-11 Thread Bocalinda
Hi Jesse, What exactly do you mean by attachment to a life cycle phase? You mean like this: executions execution idstart-container/id phasepre-integration-test/phase

Re: Cargo and multi-module projects

2009-05-11 Thread jieryn
Hi Pieter, On Mon, May 11, 2009 at 11:47 AM, Bocalinda bocali...@gmail.com wrote: What exactly do you mean by attachment to a life cycle phase? You mean like this:                        executions                            execution                                idstart-container/id    

RE: Creating a zip of non-java files

2009-05-11 Thread Will Hoover
you could use the maven-assembly-plugin: src/main/assembly/cfml.xml assembly xmlns=http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Profile activation using multiple properties

2009-05-11 Thread Bocalinda
Hi List, Stating from the Maven Definitive Guide: Activations can contain one of more selectors including JDK versions, Operating System parameters, files, and properties. A profile is activated when all activation criteria has been satisfied. Unfortunately, it seems that is is not possible to

Re: Creating a zip of non-java files

2009-05-11 Thread Doug Hughes
Will, Thanks. It was particularly nice of you to include some XML form me to review. I'll give it a shot. Thanks, Doug Hughes, President Alagad Inc. dhug...@alagad.com 888 Alagad4 (x300) Office: 919-550-0755 Fax: 888-248-7836 On Mon, May 11, 2009 at 12:08 PM, Will Hoover

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Mark Hobson
2009/5/11 Brian Fox bri...@infinity.nu: At face value the logic seems to make sense, but I haven't thought through all the ramifications. I thought Mark Hobson mentioned some cases where the opposite was desired. At this point your best bet is to prepare a proposal on

Re: Re: Transitive and inherited dependencies - potential bug, or my misunderstanding of the mechanism

2009-05-11 Thread Stevo Slavić
Just created http://jira.codehaus.org/browse/MNG-4156 Regards, Stevo. On Mon, May 11, 2009 at 6:40 PM, Mark Hobson markhob...@gmail.com wrote: 2009/5/11 Brian Fox bri...@infinity.nu: At face value the logic seems to make sense, but I haven't thought through all the ramifications. I

Adding manifest entries to source and javadoc jars

2009-05-11 Thread sebb
I'd like to include the default implementation and specification entries to the source and javaoc jars. I've checked the documentation for maven-jar-plugin and Maven Archiver, and followed the instructions. The manifest entries are added OK to the binary jar, but nothing seems to work with the

Re: Creating a zip of non-java files

2009-05-11 Thread Doug Hughes
Ok, this worked, pretty much. However, there are a few minor problems I'm still researching how to resolve. First off, the zip file always has the name of the assembly appended to the name of the zip file. IE: ModelGlue-1.0-SNAPSHOT-cfml-resources.zip, where cfml-resources is the ID of the

Re: Creating a zip of non-java files

2009-05-11 Thread Christian Schulte
Doug Hughes schrieb: If there's any documentation you can recommend on how to do this, that'd be great. I'm really just getting started with Maven and I'm using it for a fairly non-standard language. As such, the learning curve is a bit steep. Thanks, Maybe something like this ?

Re: Adding manifest entries to source and javadoc jars

2009-05-11 Thread Dennis Lundberg
For the Sources Plugin, see this issue: http://jira.codehaus.org/browse/MSOURCES-42 that was fixed in the recently released 2.1 version. For the Javadoc plugin, I'm not sure if it has been implemented or reported in JIRA. sebb wrote: I'd like to include the default implementation and

RE: Creating a zip of non-java files

2009-05-11 Thread Will Hoover
there is some good documentation for the plugin here: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html -Original Message- From: Doug Hughes [mailto:d...@doughughes.net] Sent: Monday, May 11, 2009 2:45 PM To: Maven Users List Subject: Re: Creating a zip of non-java files

cobertura results

2009-05-11 Thread huser
Hi, I have Cobertura plugin configured in my pom.xml. Hudson renders the results from coverage.xml and reports the coverage results classified as Packages,Files, Classes,Methods,Lines,Conditionals Why am I not seeing BranchRate,LineRate,PackageLineRate etc ? I am not using Maven Genertate Site

Re: Creating a zip of non-java files

2009-05-11 Thread Wayne Fay
I don't actually need to zip these up.  A jar would be just fine.  If I change the packaging to jar then I DO get a jar, it just doesn't have any of my CFML code in it.  It'd be really great if I could find a way to put everything from the src/main/cfml directory into the root of the jar. Any

Re: Adding manifest entries to source and javadoc jars

2009-05-11 Thread sebb
On 11/05/2009, Dennis Lundberg denn...@apache.org wrote: For the Sources Plugin, see this issue: http://jira.codehaus.org/browse/MSOURCES-42 that was fixed in the recently released 2.1 version. Ah, I see now, thanks. I had assumed that the maven-jar-plugin was used to create all the

commons-loging issue

2009-05-11 Thread Mick Knutson
I have found several issues like: http://jira.codehaus.org/browse/MOJO-1118 But I am NOT able to find a working solution. The basic fact is that as soon as I add the artifactIdmaven-dashboard-plugin/artifactId and try to run dashboard:dashboard, I get this error: *These will use the artifact

Re: Creating a zip of non-java files

2009-05-11 Thread Doug Hughes
Only ignorance :) I'm still learning quite a bit. Doug Hughes, President Alagad Inc. dhug...@alagad.com 888 Alagad4 (x300) Office: 919-550-0755 Fax: 888-248-7836 On Mon, May 11, 2009 at 4:06 PM, Wayne Fay wayne...@gmail.com wrote: I don't actually need to zip these up. A jar would be just

Re: Maven 2.1.0, threads in tests failing for site

2009-05-11 Thread Lee Meador
Plugin Management has: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin The change to this site plugin version was on 11/17/08 so it

Newbie - Can't resolve artifact.

2009-05-11 Thread KurtG
This should look familiar --- [INFO] Failed to resolve artifact. No versions are present in the repository for the artifact with a range [2.1,) commons-collections:commons-collections:jar:null from the specified remote repositories: central (http://repo1.maven.org/maven2) Path to

Re: Newbie - Can't resolve artifact.

2009-05-11 Thread David Hoffer
Version ranges in maven are very buggy, use with caution. Dave - sent via G1 On May 11, 2009 4:23 PM, KurtG ku...@serent.com wrote: This should look familiar --- [INFO] Failed to resolve artifact. No versions are present in the repository for the artifact with a range [2.1,)

Re: Newbie - Can't resolve artifact.

2009-05-11 Thread Christian Schulte
KurtG schrieb: This should look familiar --- [INFO] Failed to resolve artifact. No versions are present in the repository for the artifact with a range [2.1,) commons-collections:commons-collections:jar:null from the specified remote repositories: central

Environmental variable value for parent version tag?

2009-05-11 Thread Thomas, Santhosh S
Hi Maven users, Can I set environmental variable value for child pom's parent version tag? Something like below. In Child pom.. parent artifactIdartifact-parent/artifactId groupIdab.cd.ef/groupId version ${env.variable}/version !--Can I set environmental variable here ? -- /parent If

War Overlays and Conflicting Jars

2009-05-11 Thread Harper, Brad
Is there a way to detect when the dependencies of two war artifacts are inconsistent with respect to packaged jar versions? E.g. a war depends on artifact abc-1.0.0.jar. An overlay is performed where an inconsistent dependency on abc-1.0.1.jar is also defined. The resulting war will

timestamped artifacts in multi module build - maven bug or mymisunderstanding

2009-05-11 Thread Michal Szalinski
Hi, I am doing deploy (mvn deploy) of timestamped multi-module build. It puts nice timestamped versions of all those modules in my repo, updating maven-metadata.xml accordingly. Modules in that build depend on each other (say moduleA depends on moduleB) - using version${pom.version}/version. I

Building Maven with Maven failed when tried using HDK

2009-05-11 Thread Mohanraj Loganathan
Hello I was trying to build Maven source (apache-maven-2.1.0-M1-src.zip) with Maven 1.0.10 Maven installed in the machine. With Harmony Development Kit, building is failed with the following error. Please let me know whether i can build Maven using Harmony Development Kit (HDK) *HDK Version: *