Plugins vs Ant tasks

2008-03-21 Thread Saloucious
Hi, i would like to know what is recommanded by Maven Team when a procces does not fit with any plugins/goals provides by Maven. Just for example, if i want to touch a file, what is better : create a my.company.plugin.touch or add a simple antrun task ? Thanks -- View this message in context:

Re: Multi-Modules and classifier dependencies

2008-02-12 Thread Saloucious
Any ideas ? Saloucious wrote: Hi, Here is an multi-module example : project-parent/ module1/ module2/ The module1 generates 2 artifacts, one with classifier client. The module2 depends on this artifiact client. When I run : mvn install from project-parent, during

NPE on dependecies resolution

2007-12-27 Thread Saloucious
Hi, it's not the first time i've got this trace ending by a NullPointerException (here is just an extract) Occurs on eclipse:eclipse Any ideas ? [DEBUG] log4j:log4j:jar:1.2.8:compile (applying version: 1.2.13) [DEBUG] commons-collections:commons-collections:jar:2.1:compile (applying

[Unit Testing] Create MavenProject from a File

2007-12-04 Thread Saloucious
Hi, I would like to know which is the best way to build a MavenProject instance from a File. I do not want to use lookupMojo because i don't want to load my mojo but just unit testing an Util Class. -- View this message in context:

Re: How to do incremental build?

2007-12-03 Thread Saloucious
- by not calling 'clean' goal your build will be incremental On 11/30/07, Saloucious [EMAIL PROTECTED] wrote: I don't think Maven will recompile modules which depends of modified one Is maven can make incremental builds ? http://www.javaworld.com/javaforums/showflat.php?Cat=0Number

Re: How to rebuild modules that depend on a changed module?

2007-12-03 Thread Saloucious
Not an answer, just same question as you http://www.nabble.com/How-to-do-incremental-build--tf4602698s177.html Kees van Dieren-2 wrote: This would be helpful for us as well. We have a pom.xml with multiple modules, e.g. modulemodA/module modulemodB/module modulemodC/module

RE: How to do incremental build?

2007-11-30 Thread Saloucious
I don't think Maven will recompile modules which depends of modified one Is maven can make incremental builds ? http://www.javaworld.com/javaforums/showflat.php?Cat=0Number=32334Main=32334 http://www.javaworld.com/javaforums/showflat.php?Cat=0Number=32334Main=32334 Andrew Boyer wrote:

[Solved]Re: Active a profile if another is not activated

2007-11-26 Thread Saloucious
Ok my problem are solved, because I haven't understand that defining a profiles List on command line (-P) overrides actived By Default profiles configuration Wendy Smoak-3 wrote: On Nov 23, 2007 10:03 AM, Saloucious [EMAIL PROTECTED] wrote: Is it possible to activate a profile

Re: [Solved]Re: Active a profile if another is not activated

2007-11-26 Thread Saloucious
Ok my problem is solved, -- Sorry Saloucious wrote: Ok my problem are solved, because I haven't understand that defining a profiles List on command line (-P) overrides actived By Default profiles configuration Wendy Smoak-3 wrote: On Nov 23, 2007 10:03 AM, Saloucious [EMAIL

Active a profile if another is not activated

2007-11-23 Thread Saloucious
Hi, Is it possible to activate a profile if a profile is or is not activated ? -- View this message in context: http://www.nabble.com/Active-a-profile-if-another-is-not-activated-tf4862672s177.html#a13915247 Sent from the Maven - Users mailing list archive at Nabble.com.

NullPointerException on Dependency resolution

2007-11-23 Thread Saloucious
Hi, when i compile my project, Maven throws a NullPointerException : [DEBUG] commons-beanutils:commons-beanutils:jar:1.6:compile (removed - nearer found: 1.7.0) [DEBUG] commons-beanutils:commons-beanutils:jar:1.7.0:compile (selected for compile) [DEBUG]

Re: [Solved]Re: Central repository overriding with mirror

2007-11-23 Thread Saloucious
yes, Maven just prints the wrong url in the error message if the artifact is not found Wendy Smoak-3 wrote: On Nov 22, 2007 11:11 AM, Saloucious [EMAIL PROTECTED] wrote: Ok i've just trace Http request, You were right, Maven always prints the original url put does not send any HTTP

Central repository overriding with mirror

2007-11-22 Thread Saloucious
Hi, I'm trying to redirect central repository to my maven proxy, mirrors mirror idcentral/id mirrorOfcentral/mirrorOf urlhttp://myproxy/url /mirror /mirrors But I don't

Re: Central repository overriding with mirror

2007-11-22 Thread Saloucious
With mirror, My proxy never receive a requet from my computer. But i will check my traffic to see what happen on my computer Wendy Smoak-3 wrote: On Nov 22, 2007 9:20 AM, Saloucious [EMAIL PROTECTED] wrote: I'm trying to redirect central repository to my maven proxy, mirrors

[Solved]Re: Central repository overriding with mirror

2007-11-22 Thread Saloucious
Ok i've just trace Http request, You were right, Maven always prints the original url put does not send any HTTP request to repo01 Wendy Smoak-3 wrote: On Nov 22, 2007 9:20 AM, Saloucious [EMAIL PROTECTED] wrote: I'm trying to redirect central repository to my maven proxy

Zip Assembly flatten

2007-11-20 Thread Saloucious
Hi, is it possible to create an Assembly with ZIP format with files in root dir. Actually i've got assembly.zip | |${finalName} | | | |- my_file And i would like: assembly.zip | |my_file outputDirectory seems to begin at ${finalName} dir ... Thanks

Re: Assembly plugin with filtering

2007-11-19 Thread Saloucious
Because in AssemblyMojo, filters are in read-only mode, don't understand why It's binded to filters define in build tag /** * @parameter default-value=${project.build.filters} * @readonly */ protected List filters; Saminda Abeyruwan-3 wrote: Hi All, I'm using

Re: Filtering same file with multi-output

2007-11-16 Thread Saloucious
Re-explain my problem, is it possible to filter more than once a properties file in a build process ? I desire to create (with an assembly), 3 output dir with same properties file indise, each files filtered by a different filter. I success to build my assembly with profiles, but i need tu run

Re: User-defined phase

2007-11-16 Thread Saloucious
Ok , assume you don't want to bind your goal to a phase. Have you got a solution to be able to launch several times same goal in a unique build process ? franz see wrote: Good day to you, Marcus, As already mentioned, you cannot create your custom phase ( well, technically, you can. but

[Solved]Re: Filtering same file with multi-output

2007-11-16 Thread Saloucious
Ok, i have solved my problem I have created 3 executions, in my assembly plugin definition, binded to pre-integration-test Saloucious wrote: Re-explain my problem, is it possible to filter more than once a properties file in a build process ? I desire to create (with an assembly), 3

Filtering same file with multi-output

2007-11-14 Thread Saloucious
Hi, I would like to produce an assembly : What I would like to do, is to filtering file1.properties with different filters and produce for each filter a new filetered file. Here is the assembly files structures i'm looking for / | |--bin/artifact.war | |--env1 ||-- file1.properties

RE: assembly question

2007-11-14 Thread Saloucious
Haven't succeed too May be i've miss something in maven lifecycle, but i really don't understand why it's not possible ... You must attach your execution to a goal (e.g package) but don't know why ... EJ Ciramella-2 wrote: Yeah, I've been trying this: plugin

Re: How to create a Mojo that controls an ANT task

2007-11-13 Thread Saloucious
inheritance will sufice. Thanks again. Will post the end resut here for all who care. Regards, On Nov 12, 2007 7:48 PM, Saloucious [EMAIL PROTECTED] wrote: If you have multi-projects and a parent, a easier solution, should to add your maven-antrun-plugin to pluginsMagement/ tag

Re: Properties files exclude from jar artifact

2007-11-12 Thread Saloucious
dependencies plugin to unpack the properties files into your current module so they will be packaged by assembly into the conf dir you require. Wayne On 11/9/07, Saloucious [EMAIL PROTECTED] wrote: So if i package properties file into my jars, how can I create finally an assembly which create

Re: How to create a Mojo that controls an ANT task

2007-11-12 Thread Saloucious
Just an idea May be you can fork maven-antrun-plugin, and instead of let plexus bind tasks attribute, instanciate tasks attribute with an xml file embded in you plugin artifact I was just having a look in AntRunMojo class but i think you have to use AntTargetConverter This is just assumptions

Re: How to create a Mojo that controls an ANT task

2007-11-12 Thread Saloucious
needed information including the source and package, until we publish the repository. Regards, On Nov 12, 2007 5:53 PM, Saloucious [EMAIL PROTECTED] wrote: Just an idea May be you can fork maven-antrun-plugin, and instead of let plexus bind tasks attribute, instanciate tasks attribute

Re: Properties files exclude from jar artifact

2007-11-09 Thread Saloucious
dependency. Wayne On 11/6/07, Saloucious [EMAIL PROTECTED] wrote: Ok, but is it possible to get jar artifact and properties artifact in one dependency decalaration: For example, I deploy module1 with jar artifact and properties artifact and in a module2, i declare a dependency

EJB Excludes files in Main Artifact

2007-11-09 Thread Saloucious
Hi, is it possible to exclude files in main artifact , and include these ones in client artificat ? It seems that it is only possible to exclude files in client. -- View this message in context: http://www.nabble.com/EJB-Excludes-files-in-Main-Artifact-tf4778361s177.html#a13669188 Sent from

Re: War packaging and how to change dependencies directory

2007-11-06 Thread Saloucious
/javaModule Include this in the modules tag in maven-war-plugin. The modules parameter exists only on mave-ear-plugin as far as I know. Thanks Saritha On 11/5/07, Saloucious [EMAIL PROTECTED] wrote: Hi, I'm packaging a war and all dependencies go into WEB

Re: War packaging and how to change dependencies directory

2007-11-06 Thread Saloucious
} /directory ... /resource /webResources /configuration /plugin On Nov 6, 2007 5:04 AM, Saloucious

Re: Properties files exclude from jar artifact

2007-11-06 Thread Saloucious
of properties files that are jar'ed together and deploy it into your repo. Wayne On 10/26/07, Saloucious [EMAIL PROTECTED] wrote: Hi, Acutally, i'm working on a migration from Ant to Maven. The old Ant script creates for each project a jar and copy properties files in a deploy dir

War packaging and how to change dependencies directory

2007-11-05 Thread Saloucious
Hi, I'm packaging a war and all dependencies go into WEB-INF/lib, but i would like to exclude 2 of them and but them into a services dir. The target layout I'm after is: WAR root | |---WEB-INF | |---lib (with dependencies) | |---services (with my 2 excluded

Multi-Modules and classifier dependencies

2007-10-30 Thread Saloucious
Hi, Here is an multi-module example : project-parent/ module1/ module2/ The module1 generates 2 artifacts, one with classifier client. The module2 depends on this artifiact client. When I run : mvn install from project-parent, during compilation of the module2, classes from the module1

Re: Multi-Modules and classifier dependencies

2007-10-30 Thread Saloucious
Each time I have encoutered this behaviour, i used Java ANT Task (antrun plugin) to launch sources generation or a plugin calling a external class (eg. WSDL2Java) Saloucious wrote: Hi, Here is an multi-module example : project-parent/ module1/ module2/ The module1

Properties files exclude from jar artifact

2007-10-26 Thread Saloucious
Hi, Acutally, i'm working on a migration from Ant to Maven. The old Ant script creates for each project a jar and copy properties files in a deploy dir. So these properties file are not embeded in jar. Now i'm on Maven, If I excludes files from jar, they will not be in repository I don't

Assembly change artifact extension

2007-10-19 Thread Saloucious
Hi Is it possible to change assembly artifact extension (here i need to produce a SAR) ? I konw it is possible to do this for over plugins, eg: jar (Create a new empty plugin with a components.xml file with role-hintmy.new.extension/role-hint) But i fail to do this with assembly. Any ideas ?

Re: Maven good Design

2007-10-19 Thread Saloucious
project with only properties file or create a classifier artifact attached to main jar artifact ? Thanks Graham Leggett wrote: On Tue, October 16, 2007 3:44 pm, Saloucious wrote: Ok refactoring projects has been validated !!! Thanks for your reply So, it will be easy now to follow

Plugin configuration vs plugin execution configuration

2007-10-17 Thread Saloucious
Hi, I would like to know if i define something like that : plugin executions execution configuration param1something/param1 /configuration /execution /execution configuration param2something/param2 /configuration /plugin Are

Re: Maven good Design

2007-10-16 Thread Saloucious
to use Maven but can't follow the conventions. Perhaps someone else will reply with something more useful. My general response is do what works best for you. Wayne On 10/15/07, Saloucious [EMAIL PROTECTED] wrote: Sure this is painful. The only solution I have found is : my-app

Re: Maven good Design

2007-10-15 Thread Saloucious
. :-) like Wayne has suggested, do it on the branch and show your boss prototype before your proposal shows up on his desk. -D On 10/11/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 10/11/07, Saloucious [EMAIL PROTECTED] wrote: Each Ant scripts creates one or more artifacts : jar , ejb, aar

Re: Maven good Design

2007-10-15 Thread Saloucious
Sure this is painful. The only solution I have found is : my-app |-- pom.xml |-- build.xml |-- src ||- App.java | |--m2 |--jar ||--pom.xml | |--ejb ||--pom.xml | |--sar |--pom.xml Is better to put everything in one pom.xml, with

Re: Maven good Design

2007-10-15 Thread Saloucious
This is just an example (many projects) Here, ejb is embed in sar and jar a separated artifact Graham Leggett wrote: Saloucious wrote: |--jar ||--pom.xml | |--ejb ||--pom.xml | |--sar |--pom.xml Can you explain what

Maven good Design

2007-10-11 Thread Saloucious
Hi, i'm newbie with Maven and i'm in charge to convert application projects from Ant to Maven Each Ant scripts creates one or more artifacts : jar , ejb, aar, sar (with embeded artifacts) ... As i can see in Maven : one pom.xml = one artifact (recommanded). I search a good design solution to

Re: Maven good Design

2007-10-11 Thread Saloucious
Sorry for the really poor subject title, Ant to Maven : Best Practises would be better ... Saloucious wrote: Hi, i'm newbie with Maven and i'm in charge to convert application projects from Ant to Maven Each Ant scripts creates one or more artifacts : jar , ejb, aar, sar