Re: resources:testResources not filtering files

2007-11-22 Thread Stephen Connolly
The test resources go to a different directory, so they have a different section (testResources) resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources /testResources

Re: restrict GPL/BSD licenses

2007-11-23 Thread Stephen Connolly
It all depends on how the corporate legal brains interpret these things. Advocate #1: jar files are just dynamic link libraries... most of the open source licenses (including AFAIR the GPL) say dynamic linking is ok, static linking is less so... there is no problem here! Advocate #2: What about

Re: overriding jspc-maven-plugin

2007-11-27 Thread Stephen Connolly
Put your config in a pluginManagement and that way the war projects need only specify plugin groupIdorg.codehaus.mojo.jspc/groupId artifactIdjspc-maven-plugin/artifactId /plugin and they'll pick up the config from the plugin management section. Alternatively, use two parent poms,

problems mirroring repo1.maven.org

2007-11-28 Thread Stephen Connolly
I'm getting the following errors while rsyncing repo1.maven.org Any idea how to fix these? rsync -v -t -l -r --exclude **/.svn/ --exclude .bak --exclude **/CVS/ mirrors.ibiblio.org::maven2 /var/www/repo1.maven.org - Welcome to the

Re: redirecting build output to file

2007-11-28 Thread Stephen Connolly
It would be great if it could be included in the release:perform goal... That way we could archive the build log of the artifact that was released... even better, deploy it once release:perform has completed the forked execution, that way the build log is available with the artifact. On Nov 28,

Re: JUnit, NetBeans 6

2007-11-29 Thread Stephen Connolly
have a look in target/surefire-reports/*.txt On Nov 28, 2007 8:02 PM, Lally Singh [EMAIL PROTECTED] wrote: That fixes my pom problem, but it leaves me in the same state as before: no JUnit results. The JUnit integration doesn't work with an external maven. I just get a pass/fail result, but

Re: obfuscation

2007-11-29 Thread Stephen Connolly
We use JavaGuard with the following in the pom.xml You could probably adapt it to your config plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution

Re: problems mirroring repo1.maven.org

2007-11-30 Thread Stephen Connolly
I thought it might have been my local permissions being incorrect... here's the latest set of errors. I'm going to try again against ibiblio (or do you recommend a better option: our proxy server is in germany) + rsync -v -t -l -r --exclude **/.svn/ --exclude .bak --exclude **/CVS/

Re: problems mirroring repo1.maven.org

2007-11-30 Thread Stephen Connolly
, it will take some hours to propagate. hortis.ch people need to fix the permissions on their side On Nov 28, 2007 7:29 PM, Stephen Connolly [EMAIL PROTECTED] wrote: I'm getting the following errors while rsyncing repo1.maven.org Any idea how to fix these? rsync -v -t -l -r --exclude **/.svn

Re: problems mirroring repo1.maven.org

2007-12-03 Thread Stephen Connolly
Only this one is left with bad permissions: rsync: opendir /org/objectweb/fractal/fscript (in maven2) failed: Permission denied (13) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problems mirroring repo1.maven.org

2007-12-03 Thread Stephen Connolly
On Dec 1, 2007 7:28 PM, Brian E. Fox [EMAIL PROTECTED] wrote: Use a repository manager to only grab the dependencies you need in an on demand fashion and cache them. This is much easier on the servers that provide free access to the data. If that is the policy change, can you see about

Re: How to do incremental build?

2007-12-03 Thread Stephen Connolly
On Dec 3, 2007 10:24 AM, Saloucious [EMAIL PROTECTED] wrote: But it's not able to see affected files from modules which depend on modified one, as Eclipse do. Eclipse gets this by scanning the java files to identify dependencies (for code complete, etc) and when it does it's background

How to easily determine all the versions of plugins that are being used.

2007-12-05 Thread Stephen Connolly
I remember seeing something (perhaps in a dream) about a nice easy way to get a list of all the versions of the plugins that are being resolved currently. I know the enforcer plugin has the ability (in theory) of locking down plugin versions. But given that the last released version of that

Re: Multi-modules execution order

2007-12-12 Thread Stephen Connolly
If M is the parent of A and B, then A and B both depend on M, therefore M must be build first. If A and B do not use M as their parent, then, AFAIK, A and B are children so will be built first. AFAIK, maven will try to build modules in the order they are declared, unless dependencies override

Re: Filtering with Maven 2

2008-01-04 Thread Stephen Connolly
look at webResources in the maven-war-plugin configuration section On Jan 4, 2008 1:26 PM, Dhruva Reddy [EMAIL PROTECTED] wrote: I am working with a Java web application and trying to filter resources for inclusion in the WAR file. This application runs in Tomcat. There is one file in

Re: how to set subversion authentication information into settings.xml (instead of writing it into project pom)

2008-01-08 Thread Stephen Connolly
Of course when you use release:prepare release:perform it will publish your username and password in the pom.xml that gets tagged On Jan 8, 2008 10:11 AM, Boeckli, Dominique [EMAIL PROTECTED] wrote: Hi Fred, i definded a profile in my personal settings.xml profiles profile

Re: can a plugin execute another one ?

2008-01-09 Thread Stephen Connolly
I know that a plugin can fork a maven execution if it needs to... can't remember how On Jan 9, 2008 9:34 AM, nicolas de loof [EMAIL PROTECTED] wrote: Hello, I need some custom packaging that requires to post-process the tar.gzgenerated by the assembly plugin. How can I force the execution

Re: Maven Multimodule Site plugins

2008-01-10 Thread Stephen Connolly
This is a known problem in maven. you need to run maven once (to build all the child reports) On the first run there are no child reports (because the parent is run first) Then you need to run maven a second time (to rebuild the parent report) The good news is that you need only run the parent

Re: Cobertura plugin

2008-01-10 Thread Stephen Connolly
Danger! Will Robinson! Danger! How will you know that instrumenting your tests is not causing them to pass? Seriously, we had hand tweaked the pom to run the tests only once when they were instrumented, and as the instrumentation was forcing synchronisation (in order to track code path

Re: Cobertura

2008-01-12 Thread Stephen Connolly
Use configuration formats formatxml/format formathtml/format /formats /configuration The xml file is a standard cobertura xml report On Jan 11, 2008 8:43 PM, Wayne Fay [EMAIL PROTECTED] wrote: Modify the Cobertura plugin so it does what you want. ;-) It is open source, after all.

Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-16 Thread Stephen Connolly
On one of our developer's machines, they cannot do mvn javadoc:jar as it blows up due to an InvalidArrgumentException in (from memory) sun.net.www.ParserInfo.decode()! On other developer machines, there is no problem. The only difference we have found is the locale for this developer is English

Re: Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-17 Thread Stephen Connolly
:55 PM, Stephen Connolly [EMAIL PROTECTED] wrote: On one of our developer's machines, they cannot do mvn javadoc:jar as it blows up due to an InvalidArrgumentException in (from memory) sun.net.www.ParserInfo.decode()! On other developer machines, there is no problem. The only difference we

Re: unable to find mojo with hudson CI

2008-01-17 Thread Stephen Connolly
Have you tried using the freestyle project type. If you can reproduce this issue using the freestyle project type, then it is probably a maven issue. If you cannot reproduce this issue using the freestyle project type, then it is most likely a problem with the way the m2 project type uses Maven

Re: how filter not use some properities in pom.xml

2008-01-17 Thread Stephen Connolly
I normally change how the resources folders are set up. I have src/ main/ java/ resources/ filtered/ verbatim/ test/ java/ resources/ filtered/ verbatim/ That way I have the resources with filtering in the filtered directory and without in the

Re: how filter not use some properities in pom.xml

2008-01-17 Thread Stephen Connolly
The only bit I have not decided is how to handle webapps currently I end up with src/ main/ webapp/ filtered/ webapp/ but of course that breaks the rule. I'd use the filtered for resources... but then where do the filtered test resources go?!? On Jan 17, 2008 9:25 PM, Stephen

Re: Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-18 Thread Stephen Connolly
Anyone??? or will i just file an issue On Jan 17, 2008 8:24 AM, Stephen Connolly [EMAIL PROTECTED] wrote: Here is the stacktrace: The exact same commands from my machine work with the exact same proxyHost and proxyPort and JDK and Maven version [INFO] [javadoc:jar] [DEBUG] C:\Java

Re: Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-18 Thread Stephen Connolly
, 2008 10:48 AM, Stephen Connolly [EMAIL PROTECTED] wrote: Anyone??? or will i just file an issue On Jan 17, 2008 8:24 AM, Stephen Connolly [EMAIL PROTECTED] wrote: Here is the stacktrace: The exact same commands from my machine work with the exact same proxyHost

Re: how to manually change a jar from SNAPSHOT to release?

2008-01-22 Thread Stephen Connolly
There are two ways: 1. Give it a new version number (e.g. 2.0-yourcompany-1) because you may want to re-build it if/WHEN you find issues with your build, and if you don't attach a build/version to the version number you'll be in trouble. Also you should prefix the build/version with yourcompany

Re: Any tool available for generating docs from pom.xml?

2008-01-23 Thread Stephen Connolly
The site plugin's info reports? On Jan 23, 2008 7:58 AM, amit kumar [EMAIL PROTECTED] wrote: Hi, I know this would sound stupid ( as it sounded to me when asked ), but is there any such tool using which you can generate a doc in tabular format with the information stored in pom.xml mainly

Re: JUnit tests requiring j2ee.jar fail when running mvn surefire:test

2008-01-24 Thread Stephen Connolly
Don't use the borked j2ee.jar from the java.net or java.net2 maven repositories. I had the same problem. Basically, the j2ee.jar on the java.net repos is not a real jar, just stripped classes that have no method bodies, but just the method definitions. The borked jar is only good for compiling.

Re: JUnit tests requiring j2ee.jar fail when running mvn surefire:test

2008-01-24 Thread Stephen Connolly
By the way, the individual component jars that go to make up j2ee.jar are fine, so all you need to do is figure out which parts of the j2ee spec you need and include the relevant artifact, i.e. mail, servlet, ejb, etc On Jan 24, 2008 8:59 AM, Stephen Connolly [EMAIL PROTECTED] wrote: Don't use

Re: Profile activation by time range?

2008-01-24 Thread Stephen Connolly
Use two hudson jobs. Oh and _please_ file an issue with hudson.dev.java.netto get the batch-tasks plugin to work with m2 project types! On Jan 24, 2008 2:37 AM, Paul Benedict [EMAIL PROTECTED] wrote: I believe you can write your own profile activation class, but that's a feature of Maven 2.1

Re: Clearcase Snapshot View Synchronisation

2008-01-24 Thread Stephen Connolly
Be careful to remember that to use Hudson effectively, you'll probably want to throw away a lot of the cruddy workarounds that are likely in your build script. For example, we used to have one build script check out from source control because CruiseControl would not always get things correct

Re: how to manually change a jar from SNAPSHOT to release?

2008-01-24 Thread Stephen Connolly
properly? Is there something I am missing? Ken On 1/23/08, Stephen Connolly [EMAIL PROTECTED] wrote: you should never just FTP or copy the file. deploy:deploy-file will update the metadata. things will go very bad if you don't update the metadata Sent from my iPod On 23 Jan

Re: [ANN] Maven Dependency Plugin 2.0 Released

2008-01-28 Thread Stephen Connolly
I'd love if there was a dependency:list-plugins though (that showed the plugin versions) On Jan 28, 2008 9:42 AM, Simon Kitching [EMAIL PROTECTED] wrote: Many thanks. I think dependency:tree is possibly the best feature since maven 2.0.0. Erez Nahir [EMAIL PROTECTED] schrieb: Cograts

Re: Parent project version

2008-01-29 Thread Stephen Connolly
AFAIR property expansion is not performed in the parent tag... or maybe it's just the version tag of the parent tag... The logic is that it's not reproducible. In my view this is the weakest link in Maven 2 as you then need to use the release plugin to update all the child projects... makes

Re: Parent project version

2008-01-31 Thread Stephen Connolly
Yep! which was why I had only relativePath which would force you to check out the parent. i.e. it would be a child that _cannot_ be build without the parent, for use by developers the release plugin would (on the version tagged for release) replace the relativePath tag with the released

Re: maven renaming jar files

2008-01-31 Thread Stephen Connolly
Or if you are checking them in manually, at least use a different version which includes your company name, e.g. groupIdcommons-logging/groupId artifactIdcommins-logging/artifactId version1.0-mycompany-1/version That way maven will at least detect that these are different versions of the same

Re: Lifecycle executions run twice?

2008-02-02 Thread Stephen Connolly
you are not understanding lifecycles! mvn install means run every stage in the lifecycle upto and including install mvn deploy means run every stage in the lifecycle upto and including deploy mvn install deploy means run every stage in the lifecycle upto and including install, then run every

question about maven-rar-plugin

2008-02-04 Thread Stephen Connolly
Why does this plugin not define a packaging of type rar? All the other JavaEE plugins: war, ear, ejb, etc define a packaging. What was the rational behind having this behave differently? Thanks, -Stephen - To unsubscribe,

Re: Avoid version number in the build

2008-02-05 Thread Stephen Connolly
Actually the best procedure is to put the version number in both places. The manifest is not always the easiest to get end users to find for you, and files could be renamed by an end user... but typically if you ask them what version they have it's easier if the jar has the version number in its

Re: question about maven-rar-plugin

2008-02-05 Thread Stephen Connolly
, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, Have try defining this in your pom packagingrar/packaging ? rar packaging is define in maven core. -- Olivier 2008/2/4, Stephen Connolly [EMAIL PROTECTED]: Why does this plugin not define a packaging of type rar? All the other JavaEE plugins: war

Re: javax.mail and javax.activation in Java 6

2008-02-05 Thread Stephen Connolly
Nooo! don't go abusing the system path for that Go with the exclude by default and add back in if jvm is 6 On Feb 5, 2008 7:49 PM, J Douglas Donohoe [EMAIL PROTECTED] wrote: Thanks for the suggestion. That led me down the right path. It looks like the 'system' scope is more

Re: javax.mail and javax.activation in Java 6

2008-02-05 Thread Stephen Connolly
profile activation based on jvm... i'll do a quick GIYF On Feb 5, 2008 8:53 PM, Martin Gainty [EMAIL PROTECTED] wrote: I'll ask the dumb question..how do you do test the JVM version with maven? ? M- - Original Message - From: Stephen Connolly [EMAIL PROTECTED] To: Maven Users List

Re: javax.mail and javax.activation in Java 6

2008-02-05 Thread Stephen Connolly
, three profiles all adding it back in On Feb 5, 2008 9:09 PM, Stephen Connolly [EMAIL PROTECTED] wrote: profile activation based on jvm... i'll do a quick GIYF On Feb 5, 2008 8:53 PM, Martin Gainty [EMAIL PROTECTED] wrote: I'll ask the dumb question..how do you do test the JVM version with maven

Re: javax.mail and javax.activation in Java 6

2008-02-05 Thread Stephen Connolly
/activation /profile /profiles Anyone else? M- - Original Message - From: Stephen Connolly [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, February 05, 2008 4:12 PM Subject: Re: javax.mail and javax.activation in Java 6 And you know what, Google

Re: javax.mail and javax.activation in Java 6

2008-02-05 Thread Stephen Connolly
capability (at least with this scenario) but still looking forward to a maven based solution Thanks Martin - Original Message - From: Stephen Connolly [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, February 05, 2008 5:18 PM Subject: Re: javax.mail

Re: Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-02-07 Thread Stephen Connolly
Found the solution... he had his CLASSPATH environment variable set and it was pulling in all sorts of junk from a previous version of the JDK On Jan 18, 2008 12:36 PM, Stephen Connolly [EMAIL PROTECTED] wrote: oh it gets stranger. we have no problems with javadoc:javadoc, only javadoc:jar

Re: conditional dependencies

2008-02-07 Thread Stephen Connolly
The problem I see with conditional dependencies is that they define the dependencies that Maven needs in order to build/test the artifact. So if I do a build on java6, my conditional dependencies will exclude javax.activation... I assume the Release/deploy plugins will upload the effective pom

Re: Maven Concepts

2008-02-08 Thread Stephen Connolly
Redeploying a non-SNAPSHOT version is a _bad thing_ as Maven will not re-download it. This is why -SNAPSHOT versions are needed (because Maven knows to check for updates). But another reason why the update may not have occurred is if the artifact was copied into the remote repository and not

Re: Javadoc plugin bug/issue reprised

2008-02-10 Thread Stephen Connolly
Have you got multiple Java VM's installed on your system. We had one developer who had multiple VM's installed and had a CLASSPATH environment variable that pointed to a different JVM than the one he was running Maven from, which caused problems with Javadoc. The solution was to clear his

Re: Surefire not picking up tests from test-jar

2008-02-12 Thread Stephen Connolly
I don't know if it ever worked. I switched to the dependency hack. somebody needs to update the dogs that claim you can do this though On 2/12/08, Dan Fabulich [EMAIL PROTECTED] wrote: Stephen Connolly wrote: Has anybody tried running a test-jar with Surefire 2.4.1? It's not picking up any

Re: Surefire not picking up tests from test-jar

2008-02-12 Thread Stephen Connolly
On Feb 12, 2008 7:13 PM, Stephen Connolly [EMAIL PROTECTED] wrote: somebody needs to update the dogs that claim you can do this though Damn typing on the iTouch! I t was supposed to be update the docs

Surefire not picking up tests from test-jar

2008-02-12 Thread Stephen Connolly
Has anybody tried running a test-jar with Surefire 2.4.1? It's not picking up any of our unit tests from the test jar. We're using JUnit 4.4 (but the tests in the test jar are all JUnit 3.8.1) It's picking up the unit tests from src/test/java fine, but we have packaged our compatability tests

Re: damage image files

2008-02-13 Thread Stephen Connolly
I use resource directorysrc/main/resources/filtered/directory filteringtrue/filtering /resource resource directorysrc/main/resources/verbatim/directory filteringfalse/filtering /resource As it

Re: not able to deploy using webdav

2008-02-13 Thread Stephen Connolly
I keep on telling everyone to use freestyle. It's a running joke between myself and Peter Reilly (of ANT fame) that 90% of the issues with Hudson are the Maven project type! On a side note I have a plan for giving people what they like of the Maven project type (i.e. modularised sub-reports) with

Re: surefire-report-plugin running tests of all dependent modules again?

2008-02-14 Thread Stephen Connolly
Currently the only way I know is to use the enforcer plugin (but a version newer than 1.0-alpha-3) with the require plugin versions rule enabled. Then just repeatedly call mvn validate and it will keep on telling you what plugins are missing versions. I think the plan is to add the functionality

Re: Dependencies...

2008-02-18 Thread Stephen Connolly
scopeprovided/scope On Feb 16, 2008 7:05 PM, James Carman [EMAIL PROTECTED] wrote: What is the maven way of doing this? Suppose a library you're writing requires Spring. You write your library against an older version of Spring (2.0) and you define it as a dependency. Now, when other

Re: Deleting files in Maven

2008-02-18 Thread Stephen Connolly
maven-antrun-plugin unless you're using maven 1.x! On Feb 16, 2008 6:45 AM, Samavedula, Ravi (GE Healthcare, consultant) [EMAIL PROTECTED] wrote: Hi all, i want to delete files using maven not using ant is there any tag for doing this. Thanks in Advance Ravi S

Re: Does Maven dependency only work with jar?

2008-02-20 Thread Stephen Connolly
eh! technically he _could_ add a packaging of type class and have one (1) maven project for each class file ;-) [i.e. the five class files that he does not want to jar up would each have their own maven project, and hope that they don't reference each other in a circular fashion or he's screwed]

Re: assembly plugin and project inheritance

2008-02-22 Thread Stephen Connolly
You could attach the common descriptor as a build artifact one module, and then use the dependency plugin to pull it down to each child module. i.e. Use buildhelper-maven-plugin in rwcf-apps to attach dist.xml with a classifier of, e.g. assembly-descriptor. Now when you run mvn install or mvn

Re: assembly plugin and project inheritance

2008-02-22 Thread Stephen Connolly
executed after install (a solution might be to split the parent into a grand-parent providing the assembly descriptor and binding it to phases in the intermediate parent). But I'm not sure anyway in which phase to best create zip and tar. Cheers, reto Stephen Connolly wrote: You could

Re: assembly plugin and project inheritance

2008-02-24 Thread Stephen Connolly
, reto Stephen Connolly wrote: there are two sets of goals in the maven dependency plugin. the first set are copy and unpack. you specify the artifacts inside the plugin configuration. these are not the set you want. the set you want are copy-dependencies (or something like that I am on my

Re: assembly plugin and project inheritance

2008-02-24 Thread Stephen Connolly
* ...** /configuration goals goalcopy-dependencies/goal /goals /plugin That will only copy the assembly-descriptor dependencies of your module On Sun, Feb 24, 2008 at 9:09 PM, Stephen Connolly [EMAIL PROTECTED] wrote: Copy requires

Re: war directory exploded / how to do thi sin maven

2008-02-26 Thread Stephen Connolly
We have developed a lot of web apps with Maven and IDEA. The war plugin builds an exploded war file in target/${ project.build.finalName} There is a configuration option for the war plugin that controls whether it packages up the classes in the war module as a jar file and puts that in

Re: Problem with maven-dependency-plugin: copy-dependencies

2008-02-26 Thread Stephen Connolly
Have you been doing a build clean? If you don't do a clean build then artifacts from the previous build can end up hanging around -Stephen On Tue, Feb 26, 2008 at 7:11 AM, amit kumar [EMAIL PROTECTED] wrote: Hi, Now this is a new problem, I am seeing the dependency getting packaged as

Re: war directory exploded / how to do thi sin maven

2008-02-26 Thread Stephen Connolly
, thanks a lot! it was exactly what i was after any chances u can share your pom.xml? thanks in advance and regards marco On Tue, Feb 26, 2008 at 8:26 AM, Stephen Connolly [EMAIL PROTECTED] wrote: We have developed a lot of web apps with Maven and IDEA. The war plugin builds an exploded

Re: detected reference cycle, but there is no cycle conflict

2008-03-04 Thread Stephen Connolly
AFAIK The scope does not matter as far as maven is concerned. This is a pom.xml cycle i.e. Maven does not know what order to examine the pom.xml files. The pom for A depends on the pom for B The pom for B depends on the pom for A In order to build the complete list of dependencies of A, it

Re: install:install-file via POM file

2008-03-05 Thread Stephen Connolly
I would write a wrapper pom for installing your ear and use the build-helper plugin to attach the ear as an artifact to that wrapper pom.xml On Wed, Mar 5, 2008 at 2:11 AM, Wayne Fay [EMAIL PROTECTED] wrote: As far as I know, you can't. Most people would simply write a shell script to deal

Re: Unit Testing Hibernate/Entities/EJB3/EE (Req Advice)

2008-03-05 Thread Stephen Connolly
Another unit test helper that you might find useful is https://easygloss.dev.java.net This is lightweight framework for injecting values into JavaEE annotated classes. It is not a replacement for the integration tests that you will be doing using OpenJPA, etc, but it can be useful for testing

Re: dependency-copy

2008-03-05 Thread Stephen Connolly
On Wed, Mar 5, 2008 at 6:16 AM, Saxena, Sandeep [EMAIL PROTECTED] wrote: Thanks Upul. But it does not copy all transitive dependencies from a list. I want something like I give a list of 10 artifacts which may or may not be In the Project's POM and I want all transitive dependencies for

Re: Unit Testing Hibernate/Entities/EJB3/EE (Req Advice)

2008-03-05 Thread Stephen Connolly
. On Wed, Mar 5, 2008 at 7:19 PM, Stephen Connolly [EMAIL PROTECTED] wrote: Another unit test helper that you might find useful is https://easygloss.dev.java.net This is lightweight framework for injecting values into JavaEE annotated classes. It is not a replacement for the integration

Re: Unit Testing Hibernate/Entities/EJB3/EE (Req Advice)

2008-03-05 Thread Stephen Connolly
always involve being deployed to a container, so at that point EasyGloss is not really useful (classloader rules and securtity permissions can get in the way) -Stephen On Wed, Mar 5, 2008 at 10:41 AM, Stephen Connolly [EMAIL PROTECTED] wrote: There I go reading things too fast! I thought you

Re: dependency-copy

2008-03-05 Thread Stephen Connolly
Dependencies. -Original Message- From: Stephen Connolly [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 2:21 PM To: Maven Users List Subject: Re: dependency-copy On Wed, Mar 5, 2008 at 6:16 AM, Saxena, Sandeep [EMAIL PROTECTED] wrote: Thanks Upul. But it does not copy

Re: dependency-copy

2008-03-06 Thread Stephen Connolly
this. Stephen Connolly-2 wrote: Sorry, my bad, I did not notice that dependency:copy does not have the option for transitive dependencies that copy-dependencies has Well I would refactor, have a module that has all the stuff you want as it's dependencies and use copy-dependencies

Re: override a goal within a phase

2008-03-06 Thread Stephen Connolly
don't use packagingjar/packaging and that will disable the jar:jar On Thu, Mar 6, 2008 at 12:10 PM, Paolo Casarini [EMAIL PROTECTED] wrote: Hi, does anybody can tell me how can I replace the standard jar:jar, in the package phase, with my :jar goal implemented by my Mojo? or is

Re: override a goal within a phase

2008-03-06 Thread Stephen Connolly
, at 7:37 AM, Stephen Connolly wrote: don't use packagingjar/packaging and that will disable the jar:jar On Thu, Mar 6, 2008 at 12:10 PM, Paolo Casarini [EMAIL PROTECTED] wrote: Hi, does anybody can tell me how can I replace the standard jar:jar

Re: Installing multiple files in the local repository using mvn install?

2008-03-06 Thread Stephen Connolly
I've heard rumours about something called shell scripts or batch files. According to the speculation that I've seen about these things, they would provide the ability you are looking for Unfortunately they are not XML files, so you have to learn a whole new syntax. Some of them start with

Re: Maven / Repository / SVN

2008-03-11 Thread Stephen Connolly
I know Kohsuke @ sun has a wagon that deploys to a svn server (as they run the sun maven2 repository off a svn repository) The advantage to storing a maven2 repository in svn is that mirroring becomes low on bandwidth, as svn update will only pull the changes since the last update where as rsync

Re: Maven / Repository / SVN

2008-03-11 Thread Stephen Connolly
On Tue, Mar 11, 2008 at 2:29 PM, Graham Leggett [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: For example, the jspwiki project currently under apache incubation stores its dependencies in the version-control system and will not change. And they are not stupid people; it is just the

Re: Filtering Javadoc overview.html and package.html

2008-03-12 Thread Stephen Connolly
You need to have the filtering bound to the generate-sources phase of the build lifecycle. AFAIK filtering is bound to a phase after the phase that javadoc requires, so it will not get invoked. I would put your javadocs in a third folder: src/main/javadoc I would bind an additional execution of

Re: How to disable maven-compiler-plugin for jar packaging

2008-03-12 Thread Stephen Connolly
I think you are out of luck. What is the other plugin that breaks, and does the hk2-jar packaging produce artifacts that have the type hk2-jar or do they have the type jar? I suspect that this bold 3rd plugin is expecting artifacts of type jar and you are producing artifacts of type hk2-jar which

Re: Deploy to multiple oc4j instances

2008-03-12 Thread Stephen Connolly
On Tue, Mar 11, 2008 at 10:58 PM, Chris Russell [EMAIL PROTECTED] wrote: Hello, I've had good success deploying my application to a single oc4j instance using 'mvn install'. Sounds like you're using a sledge-hammer to crack a peanut. There are at least three lifecycles in maven: build,

Re: Forcing the execution of a phase before a goal

2008-03-12 Thread Stephen Connolly
I think you need an annotation something like @requires-phase=compile I just cannot remember the exact annotation you require. Also don't do this in conjunction with @aggregator! -Stephen On Wed, Mar 12, 2008 at 3:52 PM, carioca [EMAIL PROTECTED] wrote: Hi, In my plugin I have a goal that

Re: Best Practice for IDL, WSDL, etc.?

2008-03-12 Thread Stephen Connolly
have the WSDL in it's own module and then have the server and client depend on the WSDL On Wed, Mar 12, 2008 at 9:21 PM, SingleShot [EMAIL PROTECTED] wrote: We have a large number of language-independent interface files, mostly IDL and WSDL. We use these files to generate java, both for the

Re: Findbug's Maven2 Plugin future direction

2008-03-14 Thread Stephen Connolly
However, I would add a check that won't try and run findbugs if maven is started with jdk 1.4... have it instead print diagnostic information or a friendly error message to let people know that JDK 5.0 is required or else that they should use the 1.2 branch version On Fri, Mar 14, 2008 at 8:58

Re: Multiple source tree in maven 2

2008-03-15 Thread Stephen Connolly
have a look at the buildhelper-maven-plugin at org.codehaus.mojo it has the ability to add multiple source paths the right way rather than your hack Sent from my iPod On 15 Mar 2008, at 16:55, Cyril Ledru [EMAIL PROTECTED] wrote: Hi, I had this problem earlier trying to migrate from ant.

Re: What is the reactor?

2008-03-19 Thread Stephen Connolly
On Wed, Mar 19, 2008 at 9:11 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, There was recently a question on this list about how to implement an odd build order for submodules in a multi-module project. I said that it wasn't possible, but Brian corrected me and said that in fact it is

Re: A provide mecanism for poms?

2008-03-19 Thread Stephen Connolly
well I would have jsf-api as scope=provided I would not depend on jsf-impl You will be deploying this application to a container that provides the api and it's impl. You should not be depending on any of the impl classes, so that would be my logic. If you then have customers that want to

Re: Running two builds of the same branch simultaneously

2008-03-20 Thread Stephen Connolly
On Thu, Mar 20, 2008 at 3:36 AM, Dan Fabulich [EMAIL PROTECTED] wrote: Brian E. Fox wrote: Samuel Le Berrigaud wrote: 1. only run mvn verify, this way nothing gets installed into the local repository, This doesn't work in a multi-module reactor build where the modules depend on

Re: Running two builds of the same branch simultaneously

2008-03-20 Thread Stephen Connolly
You could do even better! in X create mvn.bat that is just @echo off %MAVEN_HOME%\bin\mvn.bat -s %USERPROFILE%\.m2\settings-x.xml %* create mvn.sh that is just #!/bin/sh $MAVEN_HOME/bin/mvn -s ~/.m2/settings-x.xml $* in Y create mvn.bat that is just @echo off

RE: Surefire includes artifacts with scope 'provided' in the runtime classpath, is this correct?

2007-07-17 Thread Stephen Connolly
frodesto wrote: Jörg Schaible wrote: Why is it a problem for you, that it is available in the classpath for the test? - Jörg Hi again. I see your point in that in many (most?) cases you actually would like the artifacts with scope 'provided' to be available in the

RE: Surefire includes artifacts with scope 'provided' in the runtime classpath, is this correct?

2007-07-17 Thread Stephen Connolly
frodesto wrote: In my case I am using the javaee-api to get access to the JMS API (javax.jms). I need the API classes to get my code to compile, but I cannot include this jar as a compile-time dependency since the app-server/JMS provider will provide the real JMS implementation. I my

Re: Problem with Maven making internet connection drop out

2008-03-21 Thread Stephen Connolly
Does the same thing happen when building Hudson? Hudson has such a mad collection of dependencies that it should cause the same issue for you IMHO. -Stephen On Fri, Mar 21, 2008 at 7:54 AM, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I have a problem with running the Atlassian PDK. They use

Re: Problem with Maven making internet connection drop out

2008-03-21 Thread Stephen Connolly
it's on cvs On Fri, Mar 21, 2008 at 8:23 AM, Wim Deblauwe [EMAIL PROTECTED] wrote: I will try, what is the svn url? 2008/3/21, Stephen Connolly [EMAIL PROTECTED]: Does the same thing happen when building Hudson? Hudson has such a mad collection of dependencies that it should cause

Re: Multiple Jars

2008-03-23 Thread Stephen Connolly
You don't have to install it in your local repository On Sun, Mar 23, 2008 at 12:26 AM, Trenton Adams [EMAIL PROTECTED] wrote: Hi Wendy, Thanks for the suggestion. Yes, I am aware of that, but that is precisely what I am trying to avoid. I don't want to make things more complex, by having

Re: cobertura + surefire config

2008-03-25 Thread Stephen Connolly
beware. we have had tests that pass when instrumented with cobertura, but fail when run normally. this is at least one reason why what you are trying to do is a bad thing - Stephen Sent from my iPod On 25 Mar 2008, at 16:13, Brian Relph [EMAIL PROTECTED] wrote: Hello, I was wondering if

Re: cobertura + surefire config

2008-03-25 Thread Stephen Connolly
Sent from my iPod On 25 Mar 2008, at 18:08, Wayne Fay [EMAIL PROTECTED] wrote: Can you provide details for one or two of them? I'd like to know what to look out for in the future. Wayne On 3/25/08, Stephen Connolly [EMAIL PROTECTED] wrote: beware. we have had tests that pass when instrumented

Re: cobertura + surefire config

2008-03-25 Thread Stephen Connolly
And while ANT lets you make that mistake, I would encourage you to run the tests twice and you will have greater assurance that your code is correct if it passes instrumented and uninstrumented. (Better assurance still is to run with BEA, IBM and Sun's JVMs on both single core and multi-core

Re: Release cycle - Maven release plugin usability

2008-03-26 Thread Stephen Connolly
There is nothing that says that a version number has to be a number! I would do the TEST release as 1.2.3-SNAPSHOT - 1.2.3-TEST-1 If you want to do multiple test releases (i.e. there was a big fubar with 1.2.3-TEST-1, so we're going again then you have 1.2.3-TEST-2) When you are finally ready to

  1   2   3   4   5   6   7   8   9   10   >