Activate profile for a goal ?

2024-04-22 Thread Thierry Lach
Is it possible to activate a profile when executing a specific goal? Specifically, I want to always activate a "coverage" profile when executing the "site" goal. -- --- *A vision without resources is just a hallucination*. *Adapted from Thomas Edison*

Re: Maven 2 Dependency on java source folder rather than jar file

2008-05-16 Thread Thierry Lach
This may not work for you, but I use Eclipse with the Maven plugin ( http://m2eclipse.codehaus.org/) which will automatically do what you are asking with other dependent projects open in the workspace. On Fri, May 16, 2008 at 10:34 AM, BenDave [EMAIL PROTECTED] wrote: Hi, I am working on 2

Re: [POLL] Default Value for File Encoding

2008-04-29 Thread Thierry Lach
+1 to c. On Tue, Apr 29, 2008 at 8:51 AM, Jochen Wiedmann [EMAIL PROTECTED] wrote: On Tue, Apr 29, 2008 at 1:23 PM, Benjamin Bentmann [EMAIL PROTECTED] wrote: ---clip--- I'd opt for c) Use a configurable value, by default the current platform encoding. Should be * Upwards

Re: Order of executing plugins changed in 2.0.9 ?

2008-04-16 Thread Thierry Lach
One reason might be to run something else between the two? On Wed, Apr 16, 2008 at 4:43 PM, Brian E. Fox [EMAIL PROTECTED] wrote: Why would you declare the plugin twice in the same pom? Just put multiple executions in the same definition. -Original Message- From: Bernhard David

Re: Conflicting Jar Names

2008-01-30 Thread Thierry Lach
I'd imagine that this would cause an issue when making a distribution, or a war, also. On Jan 30, 2008 3:42 AM, Simon Kitching [EMAIL PROTECTED] wrote: This looks to me like a bug (or at least an oversight) in the dependency plugin. I presume this is what you are using to copy all the jars

Re: Eclipse and Maven best practice

2007-09-16 Thread Thierry Lach
There can be problems caused with a single build destination caused by the Eclipse incremental compiler that would sometimes require doing a clean in both maven and eclipse. On 9/14/07, Jim Sellers [EMAIL PROTECTED] wrote: I've used separate locations for a few reasons: 1) in web apps to keep

Re: Default java source version

2007-07-10 Thread Thierry Lach
What about creating a global parent pom containing the 1.5 config? On 7/10/07, Severin Ecker [EMAIL PROTECTED] wrote: hi jason, yes i know that and i have that section in my POM. what i want is to override the default of java 1.3 so i don't have to do that in all my project POM files which is

Re: [m2] more than 1 artifact per pom.xml???

2007-06-27 Thread Thierry Lach
I don't know if it would be a best practice, but I've been creating projects that contains 3 poms... /pom.xml /war/pom.xml /ear/pom.xml First pom only references the other two poms as modules. The entire project can be built from the first pom. On 6/27/07, Mick Knutson [EMAIL PROTECTED]

Re: [m2] more than 1 artifact per pom.xml???

2007-06-27 Thread Thierry Lach
] wrote: Can I do; ./pom.xml (EAR) ./war/pom.xml (WAR) (extends EAR pom) On 6/27/07, Wayne Fay [EMAIL PROTECTED] wrote: That's how I build my J2EE projects, too. I usually have a couple /jarN and /ejb directories under there too. Wayne On 6/27/07, Thierry Lach [EMAIL PROTECTED] wrote: I

Re: Question regarding profile activation

2007-06-22 Thread Thierry Lach
So Active by default actually means Active unless something else is active. Right? On 6/22/07, Julien Stern [EMAIL PROTECTED] wrote: On Fri, Jun 22, 2007 at 02:55:48PM +0200, Tim Kettler wrote: That's the intended behaviour as far as I know. If you have something that is active all the

Re: Maven surefire question

2007-05-31 Thread Thierry Lach
Is each of these in a different testmethod within a single class, such as testFirst(), testSecond() ? If so, then this is the standard behavior of JUnit. Each method is considered to be a test and will fail, but the class may contain multiple tests. On 5/31/07, SiSi'mon [EMAIL PROTECTED]

Re: Maven 2.0.6 using JDK 1.3

2007-05-04 Thread Thierry Lach
That makes perfect sense. On 5/4/07, Wayne Fay [EMAIL PROTECTED] wrote: I believe the reason for this is as follows: jdk3 is the lowest common denominator pom.xml is supposedly the one true source for all data you need to know about a project, and builds are supposed to be

[Continuum 1.0] How to lengthen the timeout before forcing login?

2007-04-26 Thread Thierry Lach
Does anyone know offhand for continuum 1.0 how to increase the amount of time before continuum forces a new login?

Re: Maven : deploy strategy

2007-04-20 Thread Thierry Lach
I think that would be scopeprovided/scope under the dependency. On 4/20/07, Marouane Amraoui [EMAIL PROTECTED] wrote: Okay; 1. if i have an only one application web : in this case i agree with you to put all my dependencies in web-inf/lib : How to do this with maven ??? 2. if I have more

Re: [IMPORTANT] Maven 2 Plugin Auto-Versioning Considered Dangerous

2007-04-12 Thread Thierry Lach
That makes a lot of sense. On 4/12/07, Peter Nilsson [EMAIL PROTECTED] wrote: The auto-resolver is a pain when using Maven in a corporate environment when there is a strong requirement to be able to reproduce a build. As mentioned by others one of the problems is to know which plugins are used

Re: Using maven directly from a java application ?

2007-04-12 Thread Thierry Lach
. If that repository is required for the build, it should be in the pom. On 4/11/07, franz see [EMAIL PROTECTED] wrote: Good day, Try adding [1] to your list of repositories in your settings.xml Cheers, Franz [1] http://people.apache.org/maven-snapshot-repository Thierry Lach-2 wrote: I did svn co against

Re: Using maven directly from a java application ?

2007-04-11 Thread Thierry Lach
I did svn co against [2] and ran mvn site, and got the following error... [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO]

How to use war overlay approach with Maven 1.0??? (was: Include Common JSPs in multiple wars)

2007-04-03 Thread Thierry Lach
Subject says it all - does anyone have any examples of how this might be accomplished using Maven 1.0 ? On 4/3/07, Mark Hobson [EMAIL PROTECTED] wrote: A war overlay would be the cleanest solution: http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Mark

Re: Including build number in mail subject line

2007-03-27 Thread Thierry Lach
Please put it into Jira as an enhancement request. On 3/27/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: It isn't possible for now. Emmanuel Justin Deoliveira a écrit : Hi all, I am wondering if anyone knows of a good way to setup the subject line of the mailer so that the build number

Re: Ignore module if missing

2007-03-20 Thread Thierry Lach
I think this will work Define each module in a profile, then activate it if the pom exists, something like this: profile idmodule1-build/id activation file existsmodule1/pom.xml/exists /file /activation modules modulemodule1/modules /modules /profile On 3/20/07,

Re: Ignore module if missing

2007-03-20 Thread Thierry Lach
[EMAIL PROTECTED] wrote: That doesn't seem to work: the module never gets built (even when I don't have an activation section). Jean-Luc Thierry Lach wrote: I think this will work Define each module in a profile, then activate it if the pom exists, something like this: profile

Profile activation by file bug on windows????? (was: Ignore module if missing - possible bug?)

2007-03-20 Thread Thierry Lach
] Finished at: Tue Mar 20 17:31:06 EDT 2007 [INFO] Final Memory: 3M/7M [INFO] Jean-Luc Thierry Lach wrote: Then you're probably doing something wrong. Here's a simple test case. (...) On 3/20/07, Jean-Luc Wasmer [EMAIL

Re: Using Maven without an intyernet connection

2007-03-19 Thread Thierry Lach
If your development machine is not connected to the internet, but IS connected to an internal network that has other systems connected to the internet, you could use one of the maven proxies/managers such as Archiva on one of those connected machines. On 3/19/07, Andrew Williams [EMAIL

Re: Using Maven without an intyernet connection

2007-03-19 Thread Thierry Lach
Quite a while back (possilby 2 years ago) I did that using wget. Be advised you're probably going to need several gig of disk space for it. On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote: What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or

Re: Using Maven without an intyernet connection

2007-03-19 Thread Thierry Lach
Yep - rsync will definitely work better than wget. On 3/19/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 3/19/07, Paul Gier [EMAIL PROTECTED] wrote: What's the easiest way to download the whole central repository? Is there a maven plugin to do that? Or is there some way to get a zip of the

Re: jpox build error in trunk

2007-03-13 Thread Thierry Lach
I think this was caused by a change to modello. There was a recent email about it.

Re: jpox build error in trunk

2007-03-13 Thread Thierry Lach
Looks good. Thanks. On 3/13/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: It should be ok now. Emmanuel Thierry Lach a écrit : I think this was caused by a change to modello. There was a recent email about it. http://www.nabble.com/-modello-dev--IMPORTANT%3A-Re%3A--modello-scm820

Re: Maven2 Repository with the javax jars

2007-03-13 Thread Thierry Lach
Read the following web pages. Not sure if the jars you want will be there, but... Maven 1 repository: https://maven-repository.dev.java.net/ Maven 2 repository: https://maven2-repository.dev.java.net/ On 3/13/07, David Wilkinson [EMAIL PROTECTED] wrote: Hi I'm new to using maven and I'm

Re: Maven2 Repository with the javax jars

2007-03-13 Thread Thierry Lach
I think that page should be updated to at least mention the two dev.java.netrepositories. On 3/13/07, Carlos Sanchez [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html On 3/13/07, David Wilkinson [EMAIL PROTECTED] wrote: Hi I'm new to using maven

Re: maven question

2007-03-09 Thread Thierry Lach
Change your directory to proj1/sub and run maven On 3/9/07, Don Hill [EMAIL PROTECTED] wrote: I am working on a project that has many subprojects, from the root is there a way to compile/install just a targeted subproject. I want to be able to build/install proj1/sub Thanks. root/pom.xml

Re: Changing the goal of a project

2007-03-08 Thread Thierry Lach
I've just added this to JIRA (http://jira.codehaus.org/browse/CONTINUUM-1207). I'm willing to work on this, but I'd need a little bit of guidance since I'm not familiar with plexus etc. as it is used for database access. On 2/27/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 2/27/07, Morgovsky,

Re: Separation, webapp

2007-03-07 Thread Thierry Lach
What version of continuum are you using? On 3/6/07, Misura, Gabriel [EMAIL PROTECTED] wrote: Hi, To keep the users happy, I want to filter what projects they can see. There doesn't seem to be a build in feature for this (I see the user admin can block adding/edit/delete/etc of projects, but

Re: Plugins' dependencies are not found in internal repository.

2007-03-07 Thread Thierry Lach
You have your repository declared inside of a profile. Are you activating that profile? On 3/7/07, Marcos Silva Pereira [EMAIL PROTECTED] wrote: Hello, I have deploy some proprietary (and Sun's jars) to my internal repository, but when I try to use these artifacts like a dependency to a

Re: [m2] dependency order in 2.0.5

2007-03-06 Thread Thierry Lach
I'm not sure about how maven does this, but matching the first encountered does not necessarily imply anything sorted. On 3/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I'd like to have more information about the new way to resolve dependencies in maven 2.0.5. In the release

Re: [m2] How to specify the next version of a project when releasing (in batch mode) ?

2007-03-02 Thread Thierry Lach
If it doesn't, it should. On 3/2/07, Elid OR [EMAIL PROTECTED] wrote: Hi all, Here my problem, I would like to specify the next version of my project when I release with the maven 2 release plugin in batch mode (in a continuous integration process) because it does not handle my incrementation

Re: [m2] How to specify the next version of a project when releasing (in batch mode) ?

2007-03-02 Thread Thierry Lach
the Maven-style versioning so that release would work properly. Or you could hack the release plugin code, add this functionality, and contribute it back via JIRA as an enhancement. Wayne On 3/2/07, Thierry Lach [EMAIL PROTECTED] wrote: If it doesn't, it should. On 3/2/07, Elid OR [EMAIL

Re: Can't compile project

2007-03-02 Thread Thierry Lach
Noticed this again while going through some of the old emails I had marked for followup. There is a maven 2 repository also https://maven2-repository.dev.java.net/ On 2/18/07, Mark Derricutt [EMAIL PROTECTED] wrote: On 2/19/07, Wendy Smoak [EMAIL PROTECTED] wrote: 2)

Re: Configuring LDAP

2007-03-01 Thread Thierry Lach
Did you ever get an answer for this? On 2/16/07, Brian Topping [EMAIL PROTECTED] wrote: On Feb 16, 2007, at 6:18 AM, Jason van Zyl wrote: Continuum does not use Acegi. It uses Plexus Redback for security. So is LDAP supported and can someone point to documents on how to do so? Google does

Re: [m2] POM Inheritance

2007-02-28 Thread Thierry Lach
Is it possible to declare a pom as a dependency, so that its dependencies would be inherited? If that doesn't work, them maybe it should be added as an enhancement. On 2/27/07, jp4 [EMAIL PROTECTED] wrote: I wonder if it would make sense to create a project of type jar that does nothing more

Re: Filtering resources

2007-02-28 Thread Thierry Lach
Actually settings properties not being available in filtering might cause us some problems in converting to M2. Each of our developers has their own oracle schema that they can do unit testing against (dbunit). In M1 we put the connection strings into build.properties. We copy unit test

Re: [m2] Filtering resources

2007-02-28 Thread Thierry Lach
Thanks for the clarification. That will work well enough. On 2/28/07, John J. Franey [EMAIL PROTECTED] wrote: Thierry Lach-2 wrote: Actually settings properties not being available in filtering might cause us some problems in converting to M2. Properties in settings file are available

Re: system scope dependency

2007-02-27 Thread Thierry Lach
OK then what would be the purpose for using a system scoped dependency? On 2/27/07, Wayne Fay [EMAIL PROTECTED] wrote: System scoped dependencies are not handled as you might expect by various packaging plugins ie EAR, WAR etc. They are not bundled into the package like other dependency Jars

Re: Continuum with Postgres (under JBoss) ???

2007-02-22 Thread Thierry Lach
I've just posted this to JIRA ( http://jira.codehaus.org/browse/CONTINUUM-1181). On 2/21/07, Thierry Lach [EMAIL PROTECTED] wrote: I'm trying to get Continuum to store its data in a postgres database while running under JBoss and I'm getting an exception. It seems that someone is trying

Continuum with Postgres (under JBoss) ???

2007-02-21 Thread Thierry Lach
I'm trying to get Continuum to store its data in a postgres database while running under JBoss and I'm getting an exception. It seems that someone is trying to change the transaction isolation during a transaction. I'm running postgres 8.1.4-1 on MS Windows (and am using the driver jar

Re: [m2] Integration-test target runs integration tests twice...

2007-02-20 Thread Thierry Lach
I'm not part of the maven developers, but on the surface, if any plugin finds two different configurations, it wouldn't surprise me if it ran once for each of them. On 2/19/07, EJ Ciramella [EMAIL PROTECTED] wrote: We did and that's how we diagnosed this, but that doesn't answer the question

Re: Maven 2.0.5 release plans?

2007-02-14 Thread Thierry Lach
Well great! Thanks! Happy Valentine's Day to the Maven User community! On 2/13/07, Jason van Zyl [EMAIL PROTECTED] wrote: On 6 Feb 07, at 11:23 AM 6 Feb 07, Thierry Lach wrote: Any idea when Maven 2.0.5 will be released? Tomorrow. Jason

Re: [m2] Maven from command-line only?

2007-02-14 Thread Thierry Lach
This Eclipse plugin does a decent job of consolidating M2 and Eclipse... http://maven.apache.org/eclipse-plugin.html It creates an Eclipse classpath container that is dynamically loaded from the pom.xml (or from the parent and child pom.xml files if there are embedded child modules). On

Maven 2.0.5 release plans?

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

Re: how to get jar for a parent project in Maven 2.x

2007-02-01 Thread Thierry Lach
I suggest you download Better Builds with Maven from http://www.mergere.com/m2book_download.jsp and look at section 3. On 2/1/07, ritesh_riv [EMAIL PROTECTED] wrote: can u please let me know how to do it. is it possible to create a jar from a subproject. Thierry Lach-2 wrote: I would

NPE while generating site

2007-02-01 Thread Thierry Lach
I'm trying to run mvn site and am getting the NPE stack trace below. Any ideas what I am missing? TIA. [INFO] [DEBUG] Trace java.lang.NullPointerException at

Re: dependencyManagement does not work with war file

2007-01-30 Thread Thierry Lach
to what BBwM shows in section 3.4 On 1/29/07, Andi Anderson [EMAIL PROTECTED] wrote: did you try putting version[1.0,)/version in the dependancy section of the ear pom for the war? --- Thierry Lach [EMAIL PROTECTED] wrote: I'm working on a small example project and am trying to incorporate a lot

Re: how to get jar for a parent project in Maven 2.x

2007-01-30 Thread Thierry Lach
I would suggest creating jar A in a subproject rather than in the parent. On 1/30/07, ritesh_riv [EMAIL PROTECTED] wrote: In my project , suppose project A is parent for project B. In such a case, project A packaging should be of type pom. Then how can i get a jar for project A if needed. I

Re: dependencyManagement does not work with war file

2007-01-30 Thread Thierry Lach
try putting version[1.0,)/version in the dependancy section of the ear pom for the war? --- Thierry Lach [EMAIL PROTECTED] wrote: I'm working on a small example project and am trying to incorporate a lot of maven features into it. It's got a main pom and modules for multiple jars

dependencyManagement does not work with war file

2007-01-29 Thread Thierry Lach
I'm working on a small example project and am trying to incorporate a lot of maven features into it. It's got a main pom and modules for multiple jars, a war, and an ear. I've just added dependencyManagement, but the ear pom does not seem to pick up the version from the dependencyManagement and

Re: How do I use a war as dependency?

2007-01-26 Thread Thierry Lach
Create third jar artifact containing common code. war and ejb include common jar as dependencies. On 1/26/07, Maruf Aytekin [EMAIL PROTECTED] wrote: The common code needs to into war file too. How could I do that without using two copies of the common code? Thanks Maruf Niels Gylling

Custom authentication: (was: subversion repository upload using webdav)

2007-01-23 Thread Thierry Lach
Can you provide a general overview of what you changed to do your custom authentication please? On 1/22/07, Martin van den Bemt [EMAIL PROTECTED] wrote: A couple of things : - Authentication is left to another system (our portal) - Implemented group security (so a member of group x only see

Re: Clearing out local repository during nightly builds

2007-01-18 Thread Thierry Lach
OK I've also been waiting for an answer on this. Anyone know? On 1/15/07, jp4 [EMAIL PROTECTED] wrote: Recently I have had some issues with version management where we upgrade a particular artifact to a new version, but some how, not all projects reference the new version. I have tried to

Re: Can't access ibiblio with amven anymore, with browser it works

2007-01-12 Thread Thierry Lach
Check out the announcement on the maven 1 page http://maven.apache.org/maven-1.x/ On 1/12/07, Roland Kofler [EMAIL PROTECTED] wrote: And even if I try wget, I get 403: Forbidden [EMAIL PROTECTED] :~/releasemanagement/systemone/core/systemone-core-configuration$ wget

How to get plugin mojo to run without using executions in pom?

2007-01-11 Thread Thierry Lach
Warning - m2 programming noobie here. I'm trying to write a mojo that will execute when maven runs anytime the plugin is referenced, without adding the executions. In other words, I want the pom to be: plugin groupIdorg.example.maven/groupId

Can not see PluginDescriptor when running a mojo

2007-01-11 Thread Thierry Lach
Warning - m2 programming noobie here. I'm trying to write a very simple mojo to display a message which will include the version number of the plugin. I use the following annotations to access the plugin: /** * Plugin descriptor. * @parameter default-value=${plugin} * @required

Re: Can not see PluginDescriptor when running a mojo

2007-01-11 Thread Thierry Lach
} should work. Is this a bug? On 1/11/07, Thierry Lach [EMAIL PROTECTED] wrote: Warning - m2 programming noobie here. I'm trying to write a very simple mojo to display a message which will include the version number of the plugin. I use the following annotations to access the plugin

Re: Compiling maven project from eclipse project

2007-01-10 Thread Thierry Lach
You can execute the maven command line inside of eclipse if you have the maven plugin installed. Right click on pom.xml and select the Run As menu option, then select Maven build. The results appear in a standard eclipse console. IMNSHO much handier than switching between different windows.

Re: Different scopes for same jar depending on profile?

2007-01-08 Thread Thierry Lach
OK I think I found out how to do this. I wouldn't be using different scopes, but I would be using different assemblies. Correct or not? On 1/5/07, Thierry Lach [EMAIL PROTECTED] wrote: I'm putting together a build process in which I want to be able to customize the war build to optionally

Re: Custom Lifecycle

2007-01-08 Thread Thierry Lach
Since I was interested in the same thing, I did a little source code archaeology, and it appears that one way to accomplish this is to have a file META-INF/maven/lifecycle.xml in the jar. I found an example in maven-2.0.x/integration-tests/maven-core-it-plugin/src/main/resources/... Disclaimer:

Different scopes for same jar depending on profile?

2007-01-05 Thread Thierry Lach
I'm putting together a build process in which I want to be able to customize the war build to optionally exclude certain jars under certain profiles. Specifically, I want to exclude the junit jar from WEB-INF/lib if (and only if) I'm building using the profile jboss, triggered by -Djboss-build on