Dependency Version Ranges: Unable to specify 0.6 = x 0.7

2007-02-06 Thread Mau, Bernd
Hi, I'm trying to use the maven version ranges syntax as described in the 'Dependency Mediation and Conflict Resolution' document (http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution). Unfortunatly the syntax proposed does not work in my case. A dependency for

Re: [m2] Error in dependencyCheck starting tomcat - Bug or Feature?

2007-02-06 Thread yuubouna
Thank you Fredy! I also encountered the same error as you had, and reading your message helps me to solve my problem. In my jar file where the MANIFEST.MF are visible, there are some new line and tab characters in [Specification-Title:] part the reason why this happens is I wrote the ff. in

Cargo undeploy error

2007-02-06 Thread jelle.volckaert
Hi, I'm exploring the possibilities of the Maven cargo plugin to deploy my projects on a remote Apache Tomcat server. I've created a small web project that contains a simple .html file with some info on it. I packaged it as a WAR so I can deploy it on my server. Now I made a cargo

docbkx plugin

2007-02-06 Thread per
I'm trying to set imgSrcPath to different values for 'generate-html' and 'generate-pdf' but can't get it to work. I've tried the following in my pom.xml: -- project ... build ... plugins ... plugin groupIdcom.agilejava.docbkx/groupId

Re: webstart-plugin: dependencies

2007-02-06 Thread Jerome Lacoste
A little bit late but might be helpful to someone else. On 11/7/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: hello everyone, one of the configuration parameters of the webstart plugin looks like the following: !-- transitive dependencies filter -- dependencies !--

Re: Cargo undeploy error

2007-02-06 Thread Vincent Massol
Hi Jelle, Could you use the 0.3-SNAPSHOT version (we've fixed that in there). See http://cargo.codehaus.org/Maven2+Plugin+Installation Thanks -Vincent PS: Next time, please use the cargo mailing lists. On Feb 6, 2007, at 9:13 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'm

RE: Cargo undeploy error

2007-02-06 Thread jelle.volckaert
Hi Vincent, I'm using the latest release of the 0.3-SNAPSHOT I've also tried a standalone tomcat server a few minutes ago. Mvn cargo:start and mvn cargo:deploy work fine, but cargo:undeploy gives me the same error. I checked my repository and I'm using the latest release 0.3-20070124 build 6.

Re: Maven shell

2007-02-06 Thread Martin Gilday
Is there a release of this plugin? I have searched the mojo and the sandbox repository and can not see it in there. Thanks, Martin. - Original message - From: Tim Kettler [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Date: Mon, 05 Feb 2007 08:43:03 +0100 Subject: Re:

Re: Maven shell

2007-02-06 Thread Tim Kettler
Hi, I never used the plugin myself, just remembered that it exists. If there is no release or snapshot available you have to checkout the sources and build it yourself. Or you can ask on the mojo list if they can make a snapshot available. -Tim Am Dienstag, den 06.02.2007, 09:54 + schrieb

Re: Maven shell

2007-02-06 Thread Martin Gilday
Thanks, I checked out the source and installed it. Was all working until it comes to saving the modified POM when a java.lang.NoSuchFieldException: modelCache fatal error occurs. Looked useful until that point, so should be very useful when their TODO list is finished. I will have a look on the

Re: Can't deploy site,Help please.

2007-02-06 Thread Tim Kettler
Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This could be something like: - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy) - sftp://my.server.com/deployment/dir

Re: How can i connect to a password protected repository?

2007-02-06 Thread Maruf Aytekin
Andy, many thanks for the help. It works now. -Maruf Andrew Williams wrote: You need to setup a pluginRepositories section too Andy On 5 Feb 2007, at 16:03, Maruf Aytekin wrote: Hi, Thanks for the help. I am doing something wrong here I guess. I have set the username and password in

RE: Reading the current OS family

2007-02-06 Thread alexsun
You can activate profile just only use system properties or java version. But you can also write small plugin witch will get ${os.name} and then set to your ${maven.os.family} on initialize phase of build process. Please read about this in Chapter 5.4.1 in book Better build with Maven 2

RE: 'dependency:copy' does not work

2007-02-06 Thread Brian E. Fox
I checked the documentation again last night. The descriptions for dependency:copy assume that it will be bound to a lifecycle. Therfore, the example is correct. However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do), therefore the docs

how-to dynamically change parameter values

2007-02-06 Thread Bartosz Zoladkowski
Hi, I'm trying to change a parameter value, so that the new value could be seen by other plugins... I wrote two simple mojos, both have a String type public field named param with @parameter expression=${telefon} annotation. One mojo presents current value (defined in projects pom) and then

RE: 'dependency:copy' does not work

2007-02-06 Thread Riboe, Jens
However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do) I didn't. It was bound to the package phase and I run 'mvn package' -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: den 6 februari 2007 12:03

RE: 'dependency:copy' does not work

2007-02-06 Thread Brian E. Fox
Write an issue and attach your pom (or reopen mdep-27 and attach) but I just looked at the exact same issue and it was working ok. This is the one I referenced in my post below http://www.nabble.com/dependency-plugin-at-maven.org-tf3019806.html. There must be something to this because multiple

Re: 'dependency:copy' does not work

2007-02-06 Thread Dan Tran
Jens, Could you post a simple pom showing it is not working? -D On 2/6/07, Riboe, Jens [EMAIL PROTECTED] wrote: However it appears that some people want to use it from the CLI (which the goal wasn't originally conceived to do) I didn't. It was bound to the package phase and I run 'mvn

Re: Jabber google talk

2007-02-06 Thread Emmanuel Venisse
I think you can use java proxy properties. You can set them in wrapper.conf Emmanuel AyoContinuum a écrit : I am behind a proxy server...does anyone have information as to how to set up jabber in this situation? thanks Emmanuel Venisse wrote: Last time I used it, it worked fine. It seems

Re: Build error when using Build All button

2007-02-06 Thread Emmanuel Venisse
you need to remove all your target directories in working copies and add your target directories in svn:ignore property in svn (http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.special.ignore). All will be ok after that. Emmanuel Chris Russell a écrit : Hello, I just

Re: Maven2+Hibernate3 Annotation Problem

2007-02-06 Thread lemon dumpling
Hi Johann, Yes, I tried that thing but it always throws no suitable driver exception: [ERROR] SchemaExport - schema export unsuccessful java.sql.SQLException: No sui table driverjava.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545)

Re: continum newbie questions

2007-02-06 Thread Emmanuel Venisse
srinivas ramgopal a écrit : Hi all, Since I am new to continum, I have few basic questions about the basic mechanism of continum and its relationship to Maven/remote repository: As far as I understand, the purpose of continum is to run the integration tests (somehow) whenever a file is

Re: Maven2+Hibernate3 Annotation Problem

2007-02-06 Thread Manos Batsis
build extensions extension groupIdmysql-connector-java/groupId artifactIdmysql-connector-java/artifactId version5.0.4/version /extension /extensions hth, Manos Quoting lemon dumpling [EMAIL PROTECTED]: Hi Johann, Yes, I tried that thing but it

RE: Maven2+Hibernate3 Annotation Problem

2007-02-06 Thread Johann Reyes
Hello; That's a base example, the plugin configuration should go something like this: plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version2.0-SNAPSHOT/version configuration componentProperties

EAR libs and MANIFEST.MF generation

2007-02-06 Thread Manos Batsis
Hello, Back in my Ant-based projects i used the pathconvert to generate manifest files from myruntime.classpathref. I also filtered all those jars out of my WARs/WEB-INF/lib and put them in the EAR/lib, where (thanks to the manifests) both EJBs and WAR classes could access them, avoiding

Re: EAR libs and MANIFEST.MF generation

2007-02-06 Thread Marco Mistroni
Hi, any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? hth marco On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hello, Back in my Ant-based projects i used the pathconvert to generate manifest

Eclipse plugin development with Maven 2

2007-02-06 Thread Sebastien Pennec
Hi there, Anybody in the list has used Maven 2 to develop plugins for Eclipse? Is there any best practice related to this kind of project that I should know about before I start? Any advice appreciated :) Sébastien - To

Re: Maven2+Hibernate3 Annotation Problem

2007-02-06 Thread lemon dumpling
Thanks for everyone's help! Finally made it work! Cheers On 2/7/07, Manos Batsis [EMAIL PROTECTED] wrote: build extensions extension groupIdmysql-connector-java/groupId artifactIdmysql-connector-java/artifactId version5.0.4/version /extension

[M2] No xref report when executing site:stage?

2007-02-06 Thread Rodrigo Ruiz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, Using Maven 2.0.4, if I do the following on my (multi-module) project: mvn clean site site:stage -DstagingDirectory=Z:\ The resulting site has no xref pages. I can see them in each [module]\target\site\xref folder, but they are not copied

Re: EAR libs and MANIFEST.MF generation

2007-02-06 Thread Manos Batsis
Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? I use it already, but i probably not to its full extent. The manifest

Re: EAR libs and MANIFEST.MF generation

2007-02-06 Thread Manos Batsis
Finaly got it: http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html Cheers, Manos Quoting Manos Batsis [EMAIL PROTECTED]: Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since

MRM-60 Repository Manager should have a means to remove old snapshot builds

2007-02-06 Thread Antoine Véret
Hello, in order to manage the size of a repo i would like to automatically remove old snapshots. I have seen the closed MRM-60 issue, which seems to correspond to my needs but i don't find the way of remove snapshot. This issue has been renamed, so the feature added was oldArtifact (and

Copyright on the stylus skin images

2007-02-06 Thread Rodrigo Ruiz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I would like to know if we need explicit permissions for publishing a site generated with the Maven stylus skin and using some slightly modified images from it (for inserting our project and company logos). Regards - -- -

Re: EAR libs and MANIFEST.MF generation

2007-02-06 Thread Marco Mistroni
Hi Manos mmm, why would the manifest of the .ear have classpath entries? the classpath entries you need are in the manifest of your project for which you have jars (pls anyone correct me if i m wrong) what your ear should contain is artifacts for your project, META-INF\application.xml and

Re: EAR libs and MANIFEST.MF generation

2007-02-06 Thread Stephane Nicoll
Hi, On 2/6/07, Manos Batsis [EMAIL PROTECTED] wrote: Hey Marco, Thanks for your email. Quoting Marco Mistroni [EMAIL PROTECTED]: any particular reason for not using maven-ear-plugin, since it will generate manifest classpath entries based on dependencies of your projects? Even if you

Re: Eclipse plugin development with Maven 2

2007-02-06 Thread Stéphane Bouchet
Hi, there is some docs on codehaus about it : http://docs.codehaus.org/display/MAVEN/Maven+and+Eclipse http://docs.codehaus.org/display/MAVENUSER/Eclipse+Plugin http://docs.codehaus.org/display/MAVEN/Barriers+to+Building+Eclipse+with+Maven Cheers, Stéphane Sebastien Pennec a écrit : Hi

Re: EAR libs and MANIFEST.MF generation

2007-02-06 Thread Marco Mistroni
Oh dear, thanx Stephane for the clarifications.. I completely forgot that EAR i built were EJB3 based, where i didnt have an ejb artifact as i can deploy ejbs as jars thanks for pointing that out. regards marco On 2/6/07, Stephane Nicoll [EMAIL PROTECTED] wrote: Hi, On 2/6/07, Manos

Re: Eclipse plugin development with Maven 2

2007-02-06 Thread Dan Tran
and http://mojo.codehaus.org/pde-maven-plugin/ On 2/6/07, Stéphane Bouchet [EMAIL PROTECTED] wrote: Hi, there is some docs on codehaus about it : http://docs.codehaus.org/display/MAVEN/Maven+and+Eclipse http://docs.codehaus.org/display/MAVENUSER/Eclipse+Plugin

[solved] Re: EAR libs and MANIFEST.MF generation

2007-02-06 Thread Manos Batsis
I thought i sent this [1] earlier but it never got through. Still, this can be improved, the solution forces the EAR POM to include explicitly all WAR dependencies, which results in duplicate markup between the POMs. [1] http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html

Three plugins bound to the package phase

2007-02-06 Thread Crossley, Jim
I'm close to having a beautiful maven (2.0.4) build using 3 handy plugins: appassembler, assembly, and rpm. My app is a simple command line thing. I use appassembler to create wrapper shell scripts, and assembly to package it as a tarball. I occasionally need to build an RPM, so I added a

RE: compile tries to bundle up the ear - should it?

2007-02-06 Thread EJ Ciramella
So in essence you're suggesting shutting of unittests via a switch (most developers already think it takes too long and use -Dtest=asdf). I personally find this unacceptable. I still think it's silly that mvn tries to build an ear/war/ejbs when all it needs are the underlying classes. There's

Re: Eclipse plugin development with Maven 2

2007-02-06 Thread Sebastien Pennec
Hello Stéphane and Dan, Thanks for your links! Cheers, Sébastien Dan Tran wrote: and http://mojo.codehaus.org/pde-maven-plugin/ On 2/6/07, Stéphane Bouchet [EMAIL PROTECTED] wrote: Hi, there is some docs on codehaus about it : http://docs.codehaus.org/display/MAVEN/Maven+and+Eclipse

maven2 warning when using company super pom ?

2007-02-06 Thread Attila Ravai
We have a company super pom with no modules. Just common dependencies, java compile version, etc. It is included in all of our projects as parent. However when I run mvn clean package on my project pom I get a warning in phase site:attach-descriptor saying that the parent pom does not exist

Re: Three plugins bound to the package phase

2007-02-06 Thread franz see
Good day to you, Jim There is no assurance to the order of the goals executed in a single phase with maven 2.0.4. This is fixed however in 2.0.5 and in the trunk. So you may want to use those instead of 2.0.4 so that you can fix the order of your goals in your phases. Cheers, Franz Crossley,

Maven 2.0.5 release plans?

2007-02-06 Thread Thierry Lach
Any idea when Maven 2.0.5 will be released?

[M2]: Doubts about modules and packing.

2007-02-06 Thread Marcos Silva Pereira
Hello, this is my first post to this list. Usually, I can find any information I need to use Maven. But, nowadays, because my company is migrating from Ant to Maven and we have a lot of specific targets, I need to appeal to this mailing list. So, we are doing the migration following the steps

Download artifacts from one repo and upload to another

2007-02-06 Thread ArneD
I'm looking for an easy way to download an artifact from one repository and deploy it to another, including all transitive dependencies. Ideally in just one step. Mirroring the whole repository is not a solution. How would you do it? Any hints what to look at? Thanks - Arne -- View this

RE: compile tries to bundle up the ear - should it?

2007-02-06 Thread EJ Ciramella
Additionally - you miss the point about just wanting to compile and unittest with no startup of the actual app (repeatedly, in quick succession). -Original Message- From: Greg Jones [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 8:05 PM To: 'Maven Users List' Subject: RE:

RE: compile tries to bundle up the ear - should it?

2007-02-06 Thread EJ Ciramella
Yeah, this is kinda nuts, even after running an install, I see things getting rebuilt: [INFO] Building withdrawalEJB [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to

Re: continuum - scm update error

2007-02-06 Thread raghurajan . x . gurunathan
No, this is working fine in windows system, same thing when i moved to unix box its started acting now even i checked for some new files, (there are some logfile) i removed them and tried to run continuum its failing again with the same error... Again its working fine with no problem in

dependencies are bloated in M2

2007-02-06 Thread Tandon, Pankaj
Hi all, We've been using Maven 1.1 for more that a year now and are looking to move to M2. With M1 our project.xml file had dependencies specified explicitly because there was no support for transitive dependencies. As a result, the jar files we downloaded for our webapp weighed in at about

[mojo-user] [ANN] OpenJPA Maven Plugin 1.0-alpha released

2007-02-06 Thread Rahul Thakur
Not sure why got filtered. Sending again... Hi, I am pleased to announce the release of OpenJPA Maven Plugin version 1.0-alpha. This release includes: 1) Mojo to invoke OpenJPA PCEnhancer tool on mapped persistable classes. 2) Plugin documentation. Feedback and suggestions are

[M2]: how to pass maven properties to ant build using antrun?

2007-02-06 Thread Marcos Silva Pereira
Hello, I am invoking some ant targets using maven antrun plugin but I cant see how to pass maven properties to Ant build file. For example, I have the following maven property: properties jws.pathsrc/main/javawebstart/jws.path /properties But this properties is not accessible in ant build.

Re: [M2]: how to pass maven properties to ant build using antrun?

2007-02-06 Thread Manos Batsis
Marcos Silva Pereira wrote: how to pass maven properties to Ant build file. This can be found in a frillion places, including googling for your subject ;-) configuration tasks property name=foobar value=${foobar}/ You can use other attributes instead of value, check the docos around.

[M2] How do you control order of plugins that execute during the same phase?

2007-02-06 Thread matthewadams
If I have two unrelated plugins, A B, that need to run during the same build lifecycle phase, but A needs to run before B, how do I control that? For example, say I needed some aspect weaving and some persistent enhancement to go on during the process-classes phase, but I needed the persistent

Re: MRM-60 Repository Manager should have a means to remove old snapshot builds

2007-02-06 Thread Brett Porter
I think I closed that for the report (finished) + the ability to process reports (not finished). That would add a 'repair all'/'remove all' function. - Brett On 07/02/2007, at 1:28 AM, Antoine Véret wrote: Hello, in order to manage the size of a repo i would like to automatically remove

Re: [M2] How do you control order of plugins that execute during the same phase?

2007-02-06 Thread Barrie Treloar
On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: If I have two unrelated plugins, A B, that need to run during the same build lifecycle phase, but A needs to run before B, how do I control that? For example, say I needed some aspect weaving and some persistent enhancement to go on during the

Re: [M2]: how to pass maven properties to ant build using antrun?

2007-02-06 Thread Marcos Silva Pereira
This can be found in a frillion places, including googling for your subject ;-) Really, sorry. :-) configuration tasks property name=foobar value=${foobar}/ You can use other attributes instead of value, check the docos around. Anyway, this is a quite verbose, especially for maven

Re: dependencies are bloated in M2

2007-02-06 Thread Christian Goetze
Tandon, Pankaj wrote: So the questions are: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. I believe that the scope that should work is provided. The problem is that I don't know if maven is smart enough to remove a provided

POM inheritance behaving unexpectedly

2007-02-06 Thread Tommy Knowlton
Hello, I've got a parent POM that declares e.g., project … urlhttp://javabuild2.mycompany.com/${project.artifactId}/url /project (in other words, top-level configuration that varies by the project that has declared this parent). Problem is, when I look at the effective POM (mvn

Re: [M2] How do you control order of plugins that execute during the same phase?

2007-02-06 Thread matthewadams
Thanks for the tip. Is there a JIRA on this? baerrach wrote: On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: If I have two unrelated plugins, A B, that need to run during the same build lifecycle phase, but A needs to run before B, how do I control that? For example, say I needed

Re: dependencies are bloated in M2

2007-02-06 Thread PankajTandon
OK.. I just got the answer to my question 2a on this thread... (The rest are still unanswered). mvn package -X is the most useful command I found to get at the depenceny tree. From there.. it was just a matter of excluding the extra jars. I wish there was a top level exclusion (maybe in the

Re: dependencies are bloated in M2

2007-02-06 Thread Carlos Sanchez
mvn site see the tree of dependencies use exclusions in your dependencies http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html On 2/6/07, Tandon, Pankaj [EMAIL PROTECTED] wrote: Hi all, We've been using Maven 1.1 for more that a year now and are looking to move

Can I get a timestamp?

2007-02-06 Thread Crossley, Jim
Do I really have to write an entire plugin just to make a timestamp available as a maven property? That's what Google is telling me, but I wanted to make sure before I went to all that trouble. Thanks, Jim - To unsubscribe,

RE: Can I get a timestamp?

2007-02-06 Thread Bashar Abdul Jawad
You can use maven scm plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration addTimestamptrue/addTimestamp tagbuild/tag timestampFormatMMddHHmm/timestampFormat /configuration

RE: dependencies are bloated in M2

2007-02-06 Thread Bashar Abdul Jawad
It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of something else. Bashar -Original Message- From: Christian Goetze [mailto:[EMAIL PROTECTED] Sent:

Re: dependencies are bloated in M2

2007-02-06 Thread Carlos Sanchez
that's not the right solution, you have to use exclusions On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It will. If you don't want to include a particular dependency in your generated package just give it the provided scope, it will be excluded even if it was a transitive dependency of

RE: Can I get a timestamp?

2007-02-06 Thread Crossley, Jim
Thanks for the quick reply, but what does that do, exactly? In which property does it make the timestamp available? I tried ${timestamp} after adding that snippet to my pom, but it was empty. What am I missing? Thanks, Jim -Original Message- From: Bashar Abdul Jawad [mailto:[EMAIL

RE: dependencies are bloated in M2

2007-02-06 Thread Bashar Abdul Jawad
It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using provided will still make the dependency available for compile time, but not in runtime, and will not bundle it in the package. Read maven FAQ:

Maven newbie question, problem with XDoclet destination directory

2007-02-06 Thread Patrick Harms
Hi All I'm relatively new to Maven so excuse what may seem like silly questions. At my work, I'm now working on a project that uses Maven. It has multiple components, jars, ears, wars, etc. Up until now, it had only one EJB project. It now has two EJB projects. Each project has its own POM

RE: Can I get a timestamp?

2007-02-06 Thread Bashar Abdul Jawad
The plug-in will allow you to use timestamp tagging to tag your builds. I am sorry but I don't think you can access the timestamp property directly in the pom itself. Why do you need to do that anyway? Bashar -Original Message- From: Crossley, Jim [mailto:[EMAIL PROTECTED] Sent:

Re: dependencies are bloated in M2

2007-02-06 Thread Carlos Sanchez
exactly, that's why he needs to use exclusions, you exclude things that you don't need. On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: It is the right solution. Using exclusions will exclude a dependency from being downloaded at all, which means it won't be available at any path. Using

Re: dependencies are bloated in M2

2007-02-06 Thread Wayne Fay
As Pankaj originally stated: For instance, there is a jar file (that is about 3Meg in size) called apacheds-core-0.9.jar. We know our app does not need this becuase if we delete this file, the app works just fine. He needs to use exclusions for this as he does not need this dependency for

RE: dependencies are bloated in M2

2007-02-06 Thread Bashar Abdul Jawad
This is the question I was answering: Tandon, Pankaj wrote: 1. How can we control what get's into WEB-INF/lib. We tried all the scopes mentioned, but that did not help. And it's follow up: Christian Goetze wrote: I believe that the scope that should work is provided. The problem is

Re: dependencies are bloated in M2

2007-02-06 Thread Craig McClanahan
On 2/6/07, Carlos Sanchez [EMAIL PROTECTED] wrote: exactly, that's why he needs to use exclusions, you exclude things that you don't need. Exclusions can get you around immediate build problems, but a feedback loop is necessary to improve the state of the world in general, or the problem

Re: dependencies are bloated in M2

2007-02-06 Thread Carlos Sanchez
still not right, you have to use exclusions provided means the environment (read appserver) provides that dependency, which is only true for few dependencies in the whole world, like servlet-api On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: This is the question I was answering:

Re: dependencies are bloated in M2

2007-02-06 Thread Carlos Sanchez
everything you said is right ;) in an ideal world the only reason to use exclusions is if you are not using a portion of the library that the developer consider required for most of the people On 2/6/07, Craig McClanahan [EMAIL PROTECTED] wrote: On 2/6/07, Carlos Sanchez [EMAIL PROTECTED]

Re: Can't deploy site,Help please.

2007-02-06 Thread sam
Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler [EMAIL PROTECTED]: Hi, the URL you give in the distribution management section is the HTTP URL of your projects site. To deploy it you need to specify a valid deployment URL. This

RE: dependencies are bloated in M2

2007-02-06 Thread Bashar Abdul Jawad
Yes, but sometimes you will need to use a dependency for compile time only, and NOT for runtime. You don't need the container to provide it for you either because it is not required for runtime. Example: aspectjtools.jar. You can't exclude it because your project will not compile. The only way is

Re: dependencies are bloated in M2

2007-02-06 Thread Carlos Sanchez
build dependencies are added in plugin dependencies section so they don't interfere with your code dependencies On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: Yes, but sometimes you will need to use a dependency for compile time only, and NOT for runtime. You don't need the container to

maven-ear-plugin not found during cobertura:clean

2007-02-06 Thread Trevor Torrez
I have two boxes using the same install of maven and a project which consists of a parent and 4 children: two jars, one war, one ear. On one box everything works fine, on the other, running 'mvn clean' causes the triggered 'cobertura:clean' to fail in the ear-project complaining that it cannot

Re: [M2] How do you control order of plugins that execute during the same phase?

2007-02-06 Thread Barrie Treloar
Don't know, I asked the same question on my post. Haven't seen an answer yet. On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: Thanks for the tip. Is there a JIRA on this? baerrach wrote: On 2/7/07, matthewadams [EMAIL PROTECTED] wrote: If I have two unrelated plugins, A B, that need

RE: Can I get a timestamp?

2007-02-06 Thread Greg Jones
Kim, You can use the maven-buildnumber-plugin to get a timestamp, as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-buildnumber-plugin/artifactId version0.9.4/version configuration format{0,date,-MM-dd HH:mm:ss}/format

Re: dependencies are bloated in M2

2007-02-06 Thread Edwin Punzalan
I don't undestand this... since when did compile-time libraries become not needed in runtime ? even servlet-api is needed at runtime, its just that they're being provided by the containers. Please use exclusions. From how I see it, let's say we have Artifacts A, B and C. A depends on B

RE: Can I get a timestamp?

2007-02-06 Thread Crossley, Jim
My company's policy is to use a timestamp as the release number for RPM's. As you may know, the RPM spec provides for both a version and a release number. The RPM mojo allows you to set a release number, but there's no support for setting it to a timestamp, e.g. release${timestamp}/release. Do

RE: compile tries to bundle up the ear - should it?

2007-02-06 Thread Greg Jones
I would need more information on your POMs, project structure etc to be able to explain why you are having these problems. At this stage there is probably no other advice I can give you. Is there anyone else out there who can help? -Original Message- From: EJ Ciramella [mailto:[EMAIL

Re: Maven newbie question, problem with XDoclet destination directory

2007-02-06 Thread Pat Harms
Ok found the issue. Got onto the Nabble public archive, which is fantastic and found a couple of earlier issues which identified it has been a bug in XDocllet 1.2.3 see http://jira.codehaus.org/browse/MOJO-265 XDoclet 1.2.3 Bug - MOJO-265 . The solution is to add explict destDir attributes to

Order of classpath supplied by dependencies ant task

2007-02-06 Thread Joseph Leniston
Hi, I am using Antlib for Maven 2.0 to do dependency management in our ant builds. I have a number of POM files for compiling common, server and client code. I also want to use maven to manage our server runtime classpath. I use the following code to get the server runtime classpath from a POM

Re: Can I get a timestamp?

2007-02-06 Thread Tony Ambrozie
I am using the buildnumber plugin successfully to tag my assembly releases with a timestamp (for example, for assembly, finalName${ project.artifactId}-${project.version}-r${buildNumber}/finalName), just as Greg suggested. Need to make sure to invoke the plugin create goal, for example mvn

Re: Can't deploy site,Help please.

2007-02-06 Thread jiangshachina
Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler

Re: dependencies are bloated in M2

2007-02-06 Thread Craig McClanahan
On 2/6/07, Bashar Abdul Jawad [EMAIL PROTECTED] wrote: Yes, but sometimes you will need to use a dependency for compile time only, and NOT for runtime. You don't need the container to provide it for you either because it is not required for runtime. Example: aspectjtools.jar. You can't exclude

Re: Can't deploy site,Help please.

2007-02-06 Thread Markku Saarela
Hi, No, File protocol can deploy any directory in network where user has access. The first slash character is defining that path is absolute two others are some server delimiters. file:/c:/temp vs. file:///someserver/depl or even file://192.1.1.0/temp/directory rgds, markku jiangshachina

Re: Can't deploy site,Help please.

2007-02-06 Thread Tim Kettler
Am Dienstag, den 06.02.2007, 21:40 -0800 schrieb jiangshachina: Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? Correct. a cup of Java, cheers! Sha Jiang -Tim 秋秋 wrote: Hi, yes,I have solved the

Re: Can't deploy site,Help please.

2007-02-06 Thread Markku Saarela
One slash character was dropped out :-) file:///192.1.1.0/temp/directory - markku Markku Saarela wrote: Hi, No, File protocol can deploy any directory in network where user has access. The first slash character is defining that path is absolute two others are some server delimiters.

Excluding certain modules in a profile

2007-02-06 Thread Balasubramanian, Ravi Shankar
Hi, I am using maven 2.0.4 and I want to be excluding certain modules while building my project in a certain profile. Following is the scenarion: This is how my main pom looks like: ?xml version=1.0 encoding=UTF-8 ? project xmlns=http://maven.apache.org/POM/4.0.0;

Re: Maven2 fails on test-compile with TestNG

2007-02-06 Thread noban
Problem with Error getting POM for 'org.apache.maven.plugins:maven-surefire-plugin' from the repository was solved when I`ve cleaned a bit my settings.xml file. But after that I`ve found that my tests doesn`t compiling at all. A've added two more tests to my AppTest.java I`m running either

RE: POM inheritance behaving unexpectedly

2007-02-06 Thread Jörg Schaible
Tommy Knowlton wrote on Tuesday, February 06, 2007 11:19 PM: Hello, I've got a parent POM that declares e.g., project ... urlhttp://javabuild2.mycompany.com/${project.artifactId}/url /project (in other words, top-level configuration that varies by the project that has declared

Re: Can't deploy site,Help please.

2007-02-06 Thread jiangshachina
Hello, I tried to deploy project via scp just now, but authentication failed. How to set the user/password of remote machine in POM file? a cup of Java, cheers! Sha Jiang Markku Saarela wrote: One slash character was dropped out :-) file:///192.1.1.0/temp/directory - markku Markku