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: 
http://www.nabble.com/Plugins-vs-Ant-tasks-tp16197720s177p16197720.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 compilation of the
> module2, classes from the
> module1 "client" artifact are not found on the classpath.
> 
> However when i run "mvn install" from module1 then from module2, all works
> fine
> 
> 
> Any ideas ?
> 

-- 
View this message in context: 
http://www.nabble.com/Multi-Modules-and-classifier-dependencies-tp13485595s177p15434511.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 version: 3.2)
[DEBUG] finj:finj:jar:1.0:compile (selected for compile)
[DEBUG] commons-ecs:commons-ecs:jar:1.0:compile (selected for compile)
[DEBUG] jboss:jboss-system:jar:4.0.5:compile (selected for compile)
[DEBUG] aopalliance:aopalliance:jar:1.0:compile (selected for compile)
[DEBUG] aspectj:aspectjlib:jar:1.5.3:compile (selected for compile)
[DEBUG] aspectj:aspectjrt:jar:1.5.3:compile (selected for compile)
[DEBUG] aspectj:aspectjweaver:jar:1.5.3:compile (selected for compile)
[DEBUG] cglib:cglib:jar:2.1_3:compile (selected for compile)
[DEBUG]   asm:asm:jar:1.5.3:compile (selected for compile)
[DEBUG]   commons-collections:commons-collections:jar:3.2:compile (selected
for compile)
[DEBUG]   commons-lang:commons-lang:jar:2.1:compile (selected for compile)
[DEBUG]   javax.servlet:servlet-api:jar:2.3:provided (not setting scope to:
compile; local scope provided wins)
[DEBUG]   javax.servlet:servlet-api:jar:2.5:compile (removed - nearer found:
2.3)
[DEBUG]   javax.servlet:servlet-api:jar:2.3:provided (selected for provided)
[DEBUG]   junit:junit:jar:3.8:test (selected for test)
[DEBUG]   log4j:log4j:jar:1.2.13:compile (selected for compile)
[DEBUG]   struts:struts:jar:1.2.9:compile (selected for compile)
[DEBUG] commons-digester:commons-digester:jar:1.7:compile (setting
version to: 1.7 from range: [1.7,))
[DEBUG] commons-digester:commons-digester:jar:1.7:compile (removed -
nearer found: null)
[DEBUG] commons-digester:commons-digester:jar:[1.7,):compile (selected
for compile)
[DEBUG]   commons-beanutils:commons-beanutils:jar:1.6:compile (applying
version: 1.7.0)
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[DEBUG] Trace
java.lang.NullPointerException
at
org.apache.maven.artifact.resolver.ResolutionNode.getTrail(ResolutionNode.java:136)
at
org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:112)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:341)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:370)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:370)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:76)
at
org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolution(AbstractIdeSupportMojo.java:543)
at
org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:490)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
-- 
View this message in context: 
http://www.nabble.com/NPE-on-dependecies-resolution-tp14514407s177p14514407.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-

[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: 
http://www.nabble.com/-Unit-Testing--Create-MavenProject-from-a-File-tf4944127s177.html#a14154043
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.
> modA
> modB
> modC
> modD
> modB needs modA, modC needs modB.
> 
> When modA is modified, modA, modB and ModC should be rebuilded; modD
> should
> be skipped.
> 
> Is there a way to achieve this, eventually via 3rdparty plugin?
> 
> Thanks very much!
> Best regards,
> 
> Kees van Dieren
> 
> On Nov 27, 2007 4:43 AM, Jean-Sebastien Delfino <[EMAIL PROTECTED]>
> wrote:
> 
>> Hi,
>>
>>
>> I'm working on a multimodule project and after making a change in a
>> module X, I would like to do the following:
>>
>> - mvn clean install on all modules in the project that have compile
>> dependencies on X;
>>
>> - mvn test on all modules in the project that have runtime and test
>> dependencies on X.
>>
>> Any idea of how I can automate that process? Is there any plugin or
>> product integrated with Maven that will help me do that?
>>
>> Thanks
>> --
>> Jean-Sebastien
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Kees van Dieren
> Oranjestraat 23
> 2983 HL Ridderkerk
> Phone: +31 180 41 45 20
> Mobile: +31 6 30 41 38 41
> www: keesvandieren.nl
> LinkedIn:www.linkedin.com/in/keesvandieren
> Hyves:keesvandieren.hyves.net
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-rebuild-modules-that-depend-on-a-changed-module--tf4880236s177.html#a14132544
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to do incremental build?

2007-12-03 Thread Saloucious

May be I have to rectify what i would like to ask : 

How to make incremental build between multi-modules.

As far as I know : 

An incremental build reuses the results of a previous build to perform an
optimized build based on the changes since the last build.

With M2, don't see where optimizations are between modules

When an incremental build is triggered, the builder selectively recompiles
the added, changed, or otherwise affected .java files that are described in
the resource delta and updates the problem markers as necessary. Any .class
files or markers that are no longer appropriate are removed.

Sure M2 (without clean) reuses previous build state to says : 
Nothing to compile - all classes are up to date
or create a resource change delta if modification has been detected inside a
module

But it's not able to see affected files from modules which depend on
modified one, as Eclipse do.



Siarhei wrote:
> 
> Why would you recompile a module which didn't change? Java doesn't need to
> re-link (is that what you think?) when dependent code has changed for as
> long as API stays the same (and if that is changed it wont compile of
> course
> :)
> 
> Without getting in too much details - 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=0&Number=32334&Main=32334
>>
>> http://www.javaworld.com/javaforums/showflat.php?Cat=0&Number=32334&Main=32334
>>
>>
>>
>>
>> Andrew Boyer wrote:
>> >
>> > Incremental builds can be done by not calling the clean target.  In
>> > continuum, I believe the default targets are 'clean install'.  If you
>> > change that to just 'install', you'll be doing incrementals.
>> >
>> > I haven't tried this, but it should work, since continuum maintains one
>> > working directory per project, and re-uses that working directory each
>> > time it does a build.
>> >
>> > Andrew
>> >
>> >> -Original Message-
>> >> From: I am Who i am [mailto:[EMAIL PROTECTED]
>> >> Sent: Wednesday, October 10, 2007 2:46 PM
>> >> To: users@maven.apache.org
>> >> Subject: How to do incremental build?
>> >>
>> >> Hi All
>> >>
>> >> How do i enable incremental build with maven2 and continuum?
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-do-incremental-build--tf4602698s177.html#a14087762
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-do-incremental-build--tf4602698s177.html#a14127262
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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=0&Number=32334&Main=32334
http://www.javaworld.com/javaforums/showflat.php?Cat=0&Number=32334&Main=32334 




Andrew Boyer wrote:
> 
> Incremental builds can be done by not calling the clean target.  In
> continuum, I believe the default targets are 'clean install'.  If you
> change that to just 'install', you'll be doing incrementals.
> 
> I haven't tried this, but it should work, since continuum maintains one
> working directory per project, and re-uses that working directory each
> time it does a build.
> 
> Andrew
> 
>> -Original Message-
>> From: I am Who i am [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, October 10, 2007 2:46 PM
>> To: users@maven.apache.org
>> Subject: How to do incremental build?
>> 
>> Hi All
>> 
>> How do i enable incremental build with maven2 and continuum?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-do-incremental-build--tf4602698s177.html#a14087762
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 PROTECTED]> wrote:
>> 
>>> Is it possible to activate a profile if a profile is or is not activated
>>> ?
>> 
>> Not directly, but what problem are you trying to solve?
>> 
>> If you need to activate exactly one of a set of profiles, you can do
>> it with the absence/presence or value of a system property.
>> 
>> -- 
>> Wendy
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Active-a-profile-if-another-is-not-activated-tf4862672s177.html#a13947581
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 if a profile is or is not activated
>> ?
> 
> Not directly, but what problem are you trying to solve?
> 
> If you need to activate exactly one of a set of profiles, you can do
> it with the absence/presence or value of a system property.
> 
> -- 
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Active-a-profile-if-another-is-not-activated-tf4862672s177.html#a13947580
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]   commons-logging:commons-logging:jar:1.1:compile (removed -
nearer found: 1.0.3)
[DEBUG]   commons-logging:commons-logging:jar:1.0.3:compile (selected
for compile)
[DEBUG] commons-digester:commons-digester:jar:1.7:compile (setting
version to: 1.7 from range: [1.7,))
[DEBUG] commons-digester:commons-digester:jar:1.7:compile (removed -
nearer found: null)
[DEBUG] commons-digester:commons-digester:jar:[1.7,):compile (selected
for compile)
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[DEBUG] Trace
java.lang.NullPointerException
at
org.apache.maven.artifact.resolver.ResolutionNode.getTrail(ResolutionNode.java:136)
at
org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:112)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:338)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:367)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:367)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:74)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:284)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:272)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1238)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:397)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:3
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Nov 23 13:38:53 CET 2007
[INFO] Final Memory: 6M/12M
[INFO]



What about "removed - nearer found: null" in : 

[DEBUG] commons-digester:commons-digester:jar:1.7:compile (removed -
nearer found: null)


-- 
View this message in context: 
http://www.nabble.com/NullPointerException-on-Dependency-resolution-tf4861520s177.html#a13911725
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 request to repo01
> 
> I thought so... looks like there is already an issue open for it:
> http://jira.codehaus.org/browse/MNG-1914  Please comment on it if you
> have any additional info.
> 
> Just to be clear, my understanding is that mirroring _works_ fine, it
> just prints the wrong url in the error message if the artifact is not
> found.  Is that your experience also?
> 
> -- 
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a13909085
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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,
>>
>> 
>> 
>> central
>> central
>> http://myproxy
>> 
>> 
>>
>>
>> But I don't understand why Maven is trying to contact
>> http://repo1.maven.org/maven2 :
>>
>> --
>> 1 required artifact is missing.
>>
>> for artifact:
>>   de.pdark:dsmp:jar:1.1
>>
>> from the specified remote repositories:
>>   central (http://repo1.maven.org/maven2)
> 
> I have this on my list to double check (and complain about) but I
> think if you use a mirror, Maven always prints the "original" url,
> even if it is really contacting a different url.
> 
> Can you watch the network traffic and confirm?
> 
>> I've replaced http://myproxy to a non existing url to
>> exonerate
>> my proxy ... I've got same trace.
>>
>> However if instead of define a mirror, I create a profile with a
>> repository
>> id central, Maven seems to stop trying to connect to
>> http://repo1.maven.org/maven2
> 
> Are you basing this conclusion solely on the printed messages?
> 
> -- 
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a1390
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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,
>>
>> 
>> 
>> central
>> central
>> http://myproxy
>> 
>> 
>>
>>
>> But I don't understand why Maven is trying to contact
>> http://repo1.maven.org/maven2 :
>>
>> --
>> 1 required artifact is missing.
>>
>> for artifact:
>>   de.pdark:dsmp:jar:1.1
>>
>> from the specified remote repositories:
>>   central (http://repo1.maven.org/maven2)
> 
> I have this on my list to double check (and complain about) but I
> think if you use a mirror, Maven always prints the "original" url,
> even if it is really contacting a different url.
> 
> Can you watch the network traffic and confirm?
> 
>> I've replaced http://myproxy to a non existing url to
>> exonerate
>> my proxy ... I've got same trace.
>>
>> However if instead of define a mirror, I create a profile with a
>> repository
>> id central, Maven seems to stop trying to connect to
>> http://repo1.maven.org/maven2
> 
> Are you basing this conclusion solely on the printed messages?
> 
> -- 
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a13900349
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Central repository overriding with mirror

2007-11-22 Thread Saloucious

Hi,

I'm trying to redirect central repository to my maven proxy,



central
central
http://myproxy




But I don't understand why Maven is trying to contact
http://repo1.maven.org/maven2 : 

--
1 required artifact is missing.

for artifact:
  de.pdark:dsmp:jar:1.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


I've replaced http://myproxy to a non existing url to exonerate
my proxy ... I've got same trace.

However if instead of define a mirror, I create a profile with a repository
id central, Maven seems to stop trying to connect to
http://repo1.maven.org/maven2


-- 
View this message in context: 
http://www.nabble.com/Central-repository-overriding-with-mirror-tf4857123s177.html#a13899017
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


 seems to begin at ${finalName} dir ...


Thanks
  
-- 
View this message in context: 
http://www.nabble.com/Zip-Assembly-flatten-tf4845402s177.html#a13862719
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 assembly plugin according to Maven2 doc
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html.
> 
> I've applied the plugin as follows,
> 
> 
> org.apache.maven.plugins
> maven-assembly-plugin
> 2.2-beta-1
> 
> 
> 
> src/assemble/filter.properties
> 
> 
> src/assemble/assembly-
> bin.xml
> src/assemble/assembly-
> src.xml
> 
> 
>  
> 
> 
> All my descriptors are in the correct location , When using mvn
> assembly:assembly, it keeps on displaying the error message,
> 
>  Error configuring: org.apache.maven.plugins:maven-assembly-plugin.
> Reason:
> ERROR: Cannot override read-only parameter: filters in goal:
> assembly:assembly
> 
> 
> Wonder why this happen ?
> 
> Saminda
> -- 
> Saminda Abeyruwan
> 
> Senior Software Engineer
> WSO2 Inc. - www.wso2.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Assembly-plugin-with-filtering-tf4635144s177.html#a13833735
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 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 mvn for
> each filter.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Filtering-same-file-with-multi-output-tf4803496s177.html#a13797877
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 that would require you to create your own
> lifecyle and using that but that is not recommendable, nor is it an easy
> task. But if you really really realy want to, take a look at the clover
> plugin ).
> 
> Furthermore, creating a custom phase will not help you in your endeavor.
> You cannot run a single phase on its own. When you execute a phase, all
> the preceeding phases are executed as well. 
> 
> However, what you are probably looking for is a goal. A goal is a task
> that can be executed on its own. And these goals are usually bound to
> phase to create a custom build. 
> 
> In your case, if your 'start-environment' phase executes only one goal,
> then you can simply call that goal and problem solved.
> 
> But if executes several goals, then you might want to use a profile for
> that and run that profile instead. Haven't tried it myself but im guessing
> that would work.
> 
> Cheers,
> Franz
> 
> 
> Deluigi Marcus wrote:
>> 
>> Hi
>> 
>> I want to abuse maven to perform a setup for a testing environment, such
>> as starting derby, starting a tomcat and deploying a WAR file which is
>> another project. 
>> 
>> Maven does a fine job in downloading all the required software if
>> necessary and building the WAR file which it is another project.
>> Besides, it is platform independent, so I am using it for all these
>> tasks. 
>> 
>> But I don't want to enter all these commands on the command line all the
>> time. I think a much nicer way would be to add a custom phase (such as
>> 'start-environment') to the module. When I am developing, I would like
>> to be able to execute only this phase, without the life-cycle.
>> 
>> Is something like that possible?
>> Of course, I can make a shell-script but I think adding a custom phase
>> to the project would be a nice thing.
>> 
>> 
>> 
>> Greetings
>> Marcus
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/User-defined-phase-tf2774745s177.html#a13797887
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 mvn for each
filter.

-- 
View this message in context: 
http://www.nabble.com/Filtering-same-file-with-multi-output-tf4803496s177.html#a13797866
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:
> 
> 
> maven-assembly-plugin
> 
> 
> assembler-dir
> assembly:directory
> 
>   directory
> 
> 
>   
>  
> src/main/assembly/dep.xml
>   
>  
> E:/testdirectory
> 
> 
> 
> assembler-bin
> assembly:assembly
> 
>   assembly
> 
> 
>
>  
> src/main/assembly/dep.xml
>
> 
> 
>  
> 
> 
> But when maven runs, it can't find the descriptor:
> 
> [INFO] [assembly:assembly]
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> [INFO] No assembly descriptors found.
> [INFO]
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Tommy Knowlton
> Sent: Friday, March 23, 2007 11:59 AM
> To: Maven Users List
> Subject: Re: assembly question
> 
> I'm not positive, but I believe where you said  you should say
> . I haven't tried this in a POM of my own, but I've been using
> the maven-assembly-plugin alot lately, and I think you've got it
> exactly right, modulo that one change.
> 
> HTH
> --
> Tommy
> 
> On 3/23/07, EJ Ciramella <[EMAIL PROTECTED]> wrote:
>> Is it possible to do something like the following:
>>
>>   
>> 
>> maven-assembly-plugin
>> 
>> src/main/assembly/dep.xml
>> 
>> 
>> 
>> assembler-dir
>> assembly:directory
>> 
>>
>> E:/testdirectory
>> 
>> 
>> 
>> assembler-bin
>> assembly:assembly
>> 
>> 
>> 
>> 
>>   
>>
>> Basically, I want the assembly:directory to output to one location and
>> the zip output to go to the regular target directory...
>>
> 
> 
> -- 
> --
> Tommy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/assembly-question-tf3454471s177.html#a13747046
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 (filtered with env1_filter.properties)
|
|--env2
||-- file1.properties (filtered with env2_filter.properties)
|
|--env3
||-- file1.properties (filtered with env3_filter.properties)

No problem to create this structure, but filters are chain and I don't find
the way to attach them for eg :
file1.properties + env3_filter.properties going into env3 assembly dir
file1.properties + env2_filter.properties going into env2 assembly dir

Any ideas ?

-- 
View this message in context: 
http://www.nabble.com/Filtering-same-file-with-multi-output-tf4803496s177.html#a13742488
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2007-11-13 Thread Saloucious

Yes, don't exactly know why I have said "fork" 



Pedro Viegas-2 wrote:
> 
> Yep, good ideia.
> 
> Although I need to have this feature in multiple projects. So I could only
> do this if I created a super POM that I would use as parent for all
> others.
> I think it is best in this scenario to create a custom plugin to get the
> job
> done with the minimal work to the users possible.
> 
> I allready started the implementation and am working on it right now.
> It will decend from the maven-anrrun-plugin AbstractAntMojo class and
> provide the aditional features we need.
> No need for a fork, a simple 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  tag in parent pom.xml.
>>
>> As far as I know you can refer in your children pom to your
>> maven-antrun-plugin without redefine tasks.
>>
>>
>>
>>
>>
>> Pedro Viegas-2 wrote:
>> >
>> > Hi there,
>> >
>> > Thanks a bunch for your responses.
>> > You pointed me in the right direction. I was wishing I could use the
>> > antrun
>> > plugin resources but without having to copy-paste or in other way break
>> > future updates of it.
>> > I'm drilling into the plugin's source right now and will post my result
>> as
>> > soon as I have new information.
>> >
>> > This plugin we're working on at my company will be open-sourced so if
>> > there
>> > is any interest I can post here the link to the project when we finish
>> it.
>> > We have yet to crerate a Maven repository in our server, but even it
>> that
>> > is
>> > not available the Maven Generated site will have all 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 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 ...
>> >>
>> >> Please keep me in touch
>> >>
>> >>
>> >> Pedro Viegas-2 wrote:
>> >> >
>> >> > Hi there guys,
>> >> >
>> >> > I am trying to create a Maven plugin that executes a given ANT task
>> >> inside
>> >> > it.
>> >> > My real case is to call the Hibernate Tools task to generate a bunch
>> of
>> >> > ORM
>> >> > classes and Hibernate mappings.
>> >> > But I need to make some decisions and have to pass some parameters
>> to
>> >> the
>> >> > several Hibernate Tools tasks I need to call depending on some
>> >> conditions
>> >> > that I need to analize in a Java Mojo.
>> >> >
>> >> > Basically I need to:
>> >> >
>> >> >1. Create a Mojo with some parameters and do some processing and
>> >> file
>> >> >generation of my own
>> >> >2. Call the ANT Hibernate Tools tasks a bunch of times to
>> generate
>> >> all
>> >> >my classes/mapings on several packages for several database
>> schemas
>> >> >3. Try to keep it as simple as possible to the end programmer
>> user,
>> >> >simply call a Maven plugin and state some configuration files and
>> >> >destination package and let the conventioned behavior take
>> charge.
>> >> >
>> >> > I have created the first part easily by creating a Java Maven
>> Plugin.
>> >> > The second part I have configured like a maven-ant-plugin addition
>> to
>> >> the
>> >> > POM and got it working, but this has to be copied into each of the
>> >> > projects
>> >> > that need this goal and all the configu

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

2007-11-12 Thread Saloucious

If you have multi-projects and a parent, a easier solution, should to add
your maven-antrun-plugin to  tag in parent pom.xml.

As far as I know you can refer in your children pom to your 
maven-antrun-plugin without redefine tasks.





Pedro Viegas-2 wrote:
> 
> Hi there,
> 
> Thanks a bunch for your responses.
> You pointed me in the right direction. I was wishing I could use the
> antrun
> plugin resources but without having to copy-paste or in other way break
> future updates of it.
> I'm drilling into the plugin's source right now and will post my result as
> soon as I have new information.
> 
> This plugin we're working on at my company will be open-sourced so if
> there
> is any interest I can post here the link to the project when we finish it.
> We have yet to crerate a Maven repository in our server, but even it that
> is
> not available the Maven Generated site will have all 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 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 ...
>>
>> Please keep me in touch
>>
>>
>> Pedro Viegas-2 wrote:
>> >
>> > Hi there guys,
>> >
>> > I am trying to create a Maven plugin that executes a given ANT task
>> inside
>> > it.
>> > My real case is to call the Hibernate Tools task to generate a bunch of
>> > ORM
>> > classes and Hibernate mappings.
>> > But I need to make some decisions and have to pass some parameters to
>> the
>> > several Hibernate Tools tasks I need to call depending on some
>> conditions
>> > that I need to analize in a Java Mojo.
>> >
>> > Basically I need to:
>> >
>> >1. Create a Mojo with some parameters and do some processing and
>> file
>> >generation of my own
>> >2. Call the ANT Hibernate Tools tasks a bunch of times to generate
>> all
>> >my classes/mapings on several packages for several database schemas
>> >3. Try to keep it as simple as possible to the end programmer user,
>> >simply call a Maven plugin and state some configuration files and
>> >destination package and let the conventioned behavior take charge.
>> >
>> > I have created the first part easily by creating a Java Maven Plugin.
>> > The second part I have configured like a maven-ant-plugin addition to
>> the
>> > POM and got it working, but this has to be copied into each of the
>> > projects
>> > that need this goal and all the configuration I could pragmatically do
>> > have
>> > to be typed repeatedly.
>> > So 1 and 2 are go, 3 is what I can't find any documentation or sample
>> to
>> > help me.
>> >
>> > I have seen the example from:
>> > http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
>> >
>> > But this is how to build a maven plugin with ANT. What I need is to
>> build
>> > a
>> > maven plugin in Java that can call an ant task, like antrun plugin does
>> > but
>> > adding a few more java actions and decisions before and after.
>> >
>> > So, how can I use the already running maven java plugin to call the ANT
>> > tasks?
>> > Can I call a plugin inside another plugin? How?
>> > Should I try to extend the maven-antrun-plugin to try to accomplish
>> this?
>> >
>> > Thanks in advance,
>> >
>> > --
>> > Pedro Viegas
>> >
>> > 
>> > Walking on water and developing software
>> > from a specification are easy if both are
>> > frozen.
>> > - Edward V. Berard
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-create-a-Mojo-that-controls-an-ANT-task-tf4788523s177.html#a13710554
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Pedro Viegas
> 
> 
> Walking on water and developing software
> from a specification are easy if both are
> frozen.
> - Edward V. Berard
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-a-Mojo-that-controls-an-ANT-task-tf4788523s177.html#a13712774
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 ...

Please keep me in touch


Pedro Viegas-2 wrote:
> 
> Hi there guys,
> 
> I am trying to create a Maven plugin that executes a given ANT task inside
> it.
> My real case is to call the Hibernate Tools task to generate a bunch of
> ORM
> classes and Hibernate mappings.
> But I need to make some decisions and have to pass some parameters to the
> several Hibernate Tools tasks I need to call depending on some conditions
> that I need to analize in a Java Mojo.
> 
> Basically I need to:
> 
>1. Create a Mojo with some parameters and do some processing and file
>generation of my own
>2. Call the ANT Hibernate Tools tasks a bunch of times to generate all
>my classes/mapings on several packages for several database schemas
>3. Try to keep it as simple as possible to the end programmer user,
>simply call a Maven plugin and state some configuration files and
>destination package and let the conventioned behavior take charge.
> 
> I have created the first part easily by creating a Java Maven Plugin.
> The second part I have configured like a maven-ant-plugin addition to the
> POM and got it working, but this has to be copied into each of the
> projects
> that need this goal and all the configuration I could pragmatically do
> have
> to be typed repeatedly.
> So 1 and 2 are go, 3 is what I can't find any documentation or sample to
> help me.
> 
> I have seen the example from:
> http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
> 
> But this is how to build a maven plugin with ANT. What I need is to build
> a
> maven plugin in Java that can call an ant task, like antrun plugin does
> but
> adding a few more java actions and decisions before and after.
> 
> So, how can I use the already running maven java plugin to call the ANT
> tasks?
> Can I call a plugin inside another plugin? How?
> Should I try to extend the maven-antrun-plugin to try to accomplish this?
> 
> Thanks in advance,
> 
> -- 
> Pedro Viegas
> 
> 
> Walking on water and developing software
> from a specification are easy if both are
> frozen.
> - Edward V. Berard
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-a-Mojo-that-controls-an-ANT-task-tf4788523s177.html#a13710554
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Properties files exclude from jar artifact

2007-11-12 Thread Saloucious

Sure assembly will unpack properites in conf dir.

But in my assembly, i would like to define a dependency to this module
So finally, i will have my jar artifact with my properties files embded (for
eg in a "lib" dir)
and my properties files in "conf" dir (double)



Wayne Fay wrote:
> 
> Use 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 a deploy/conf dir with all properties from jar.
>>
>> We put all properties into this dir because it is easiest to patch it.
>>
>>
>>
>>
>>
>> Wayne Fay wrote:
>> >
>> > No such "all" classifier exists. You must specify each 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  with module1
>> >> Is Maven able to retrieve 2 artifacts (for example with a
>> >> ALL> >>
>> >> 
>> >> mygroup
>> >> module1
>> >> 
>> >>
>> >> Otherwise i must declare 2 dependencies by module, one for binaries
>> files
>> >> and one for properties files...
>> >>
>> >>
>> >> Wayne Fay wrote:
>> >> >
>> >> > You could make another artifact (jar) that consists only 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.
>> >> >> 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 find the way to be able to not embed properties file from
>> jar
>> >> and
>> >> >> install them in repo.
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13429857
>> >> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> -
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13616078
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13669183
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13708126
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Properties files exclude from jar artifact

2007-11-09 Thread Saloucious

So if  i package properties file into my jars, how can I create finally an
assembly which create a deploy/conf dir with all properties from jar.

We put all properties into this dir because it is easiest to patch it.





Wayne Fay wrote:
> 
> No such "all" classifier exists. You must specify each 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  with module1
>> Is Maven able to retrieve 2 artifacts (for example with a
>> ALL>
>> 
>> mygroup
>> module1
>> 
>>
>> Otherwise i must declare 2 dependencies by module, one for binaries files
>> and one for properties files...
>>
>>
>> Wayne Fay wrote:
>> >
>> > You could make another artifact (jar) that consists only 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.
>> >> 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 find the way to be able to not embed properties file from jar
>> and
>> >> install them in repo.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13429857
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13616078
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13669183
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Properties files exclude from jar artifact

2007-11-06 Thread Saloucious

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  with module1
Is Maven able to retrieve 2 artifacts (for example with a
ALL
mygroup
module1


Otherwise i must declare 2 dependencies by module, one for binaries files
and one for properties files...


Wayne Fay wrote:
> 
> You could make another artifact (jar) that consists only 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.
>> 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 find the way to be able to not embed properties file from jar and
>> install them in repo.
>> --
>> View this message in context:
>> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13429857
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13616078
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: War packaging and how to change dependencies directory

2007-11-06 Thread Saloucious

Thanks

But i've just realized (I had a look into war plugin sources) that now war
plugin handle AAR dependencies (instead of skipping) and package them into
WEB-INF/services

Nevertheless maven-dependency-plugin + war plugin trick will help me great
for ohter modules.


Dave Feltenberger wrote:
> 
> Configure the dependencies plugin to copy your two dependencies to a
> temporary directory.
> 
>   
>   org.apache.maven.plugins
>   maven-dependency-plugin
>   
>   
>   process-classes
>   
>   
> copy-dependencies
>   
>   
>   
>   
> ${dependencyTemp}/services
>   
>   
>   
> yourTwo,artifactIds
>   
>   
>   
>   
>   
> 
> In the war plugin configuration, add something like this:
> 
>   
>   maven-war-plugin
>   
>   
>   yourTwo*,artifactIds*
>   
>...
>   
>   
>   
>   
> ${dependencyTemp}
>   
> ...
>   
>   
>  
> 
> 
> 
> 
> 
> On Nov 6, 2007 5:04 AM, Saloucious <[EMAIL PROTECTED]> wrote:
>>
>> Ok thanks,
>>
>> unfortunately, this trick not allows me to manage my 2 dependencies as
>> maven
>> dependencies.
>>
>>
>>
>>
>> Saritha SV wrote:
>> >
>> > Hi
>> >
>> > Sorry for the wrong info .I just plainly forgot that.
>> >  Another  work around  which can be done with war plugin is to include
>> the
>> > dependency as a web resource entry like :
>> >
>> > 
>> >   org.apache.maven.plugins
>> > maven-war-plugin
>> >   
>> > resource2  
>> >
>> >
>> > And manually include  the jar file in your project . create a resource2
>> > directory . create services directory . Include the dependency inside
>> that
>> > after creating the dir  structure for artifact id .
>> > Try including the jar files in the foll: structure :
>> >
>> > -pom.xml
>> > -resource2
>> >  - services
>> >  -create directories full group id  of the dependency (
>> like
>> > ant/ ant/1.4 etc )
>> > - finally place the jar file
>> >
>> > And the directory resource2 is pointed out as a webresource in pom.xml
>> > and
>> > thus the generated  war file will have the structure  :
>> >
>> > -WEB-INF
>> >
>> > -services
>> > -full directory for the dependency as you have created in services
>> > folder in project.
>> > - jar file
>> >
>> >
>> > Thanks
>> > Saritha SV
>> >
>> >
>> > On 11/5/07, Dimitris Kapanidis <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Saritha SV wrote:
>> >> > Hi
>> >> >
>> >> > Inorder  to  exclude dependencies you can specify scope as provided
>> for
>> >> the
>> >> > dependencies .
>> >> > And to  include these  dependencies in a different  folder please
>> try :
>> >> >
>> >> >
>> >> >   grupid of dependency
>> >> >   artifact id of
>> >> > 

Re: War packaging and how to change dependencies directory

2007-11-06 Thread Saloucious

Ok thanks,

unfortunately, this trick not allows me to manage my 2 dependencies as maven
dependencies.



Saritha SV wrote:
> 
> Hi
> 
> Sorry for the wrong info .I just plainly forgot that.
>  Another  work around  which can be done with war plugin is to include the
> dependency as a web resource entry like :
> 
> 
>   org.apache.maven.plugins
> maven-war-plugin
>   
> resource2  
>
> 
> And manually include  the jar file in your project . create a resource2
> directory . create services directory . Include the dependency inside that
> after creating the dir  structure for artifact id .
> Try including the jar files in the foll: structure :
> 
> -pom.xml
> -resource2
>  - services
>  -create directories full group id  of the dependency ( like
> ant/ ant/1.4 etc )
> - finally place the jar file
> 
> And the directory resource2 is pointed out as a webresource in pom.xml  
> and
> thus the generated  war file will have the structure  :
> 
> -WEB-INF
> 
> -services
> -full directory for the dependency as you have created in services
> folder in project.
> - jar file
> 
> 
> Thanks
> Saritha SV
> 
> 
> On 11/5/07, Dimitris Kapanidis <[EMAIL PROTECTED]> wrote:
>>
>> Saritha SV wrote:
>> > Hi
>> >
>> > Inorder  to  exclude dependencies you can specify scope as provided for
>> the
>> > dependencies .
>> > And to  include these  dependencies in a different  folder please try :
>> >
>> >
>> >   grupid of dependency
>> >   artifact id of
>> > dependency
>> >   /service(try giving the path where you
>> need
>> > the dependency)
>> >
>> >
>> > Include this in the   tag in maven-war-plugin.
>> >
>> >
>> The  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-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 dependencies)
>> >>
>> >> Is it possible to do that ?
>> >>
>> >> Thanks
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/War-packaging-and-how-to-change-dependencies-directory-tf4752596s177.html#a13589848
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/War-packaging-and-how-to-change-dependencies-directory-tf4752596s177.html#a13603742
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 dependencies)

Is it possible to do that ?

Thanks
-- 
View this message in context: 
http://www.nabble.com/War-packaging-and-how-to-change-dependencies-directory-tf4752596s177.html#a13589848
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 "client" artifact are not found on the classpath.
> 
> However when i run "mvn install" from module1 then from module2, all works
> fine
> 
> 
> Any ideas ?
> 

-- 
View this message in context: 
http://www.nabble.com/Multi-Modules-and-classifier-dependencies-tf4717507s177.html#a13485599
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 "client" artifact are not found on the classpath.

However when i run "mvn install" from module1 then from module2, all works
fine


Any ideas ?
-- 
View this message in context: 
http://www.nabble.com/Multi-Modules-and-classifier-dependencies-tf4717507s177.html#a13485595
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 find the way to be able to not embed properties file from jar and
install them in repo.
-- 
View this message in context: 
http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13429857
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
my.new.extension)

But i fail to do this with assembly.

Any ideas ?

-- 
View this message in context: 
http://www.nabble.com/Assembly-change-artifact-extension-tf4654427s177.html#a13298340
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven good Design

2007-10-19 Thread Saloucious

Ok, know i'm refactoring project to have something like : 

project1-ejb
project1-sar

project2-jar
...

In actual Ant build process, some properties files are not embed in jar and
are copied in a conf dir (conf directory is in server'sclasspath).

Which is the best pratice ?  create a new 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 conventions ;-)
> 
> Yay!
> 
>> Is it a good solution to split project with a dedicated one for each
>> artifacts produced by ANT ?
>>
>> eg: a project for EJB , another for SAR ...
> 
> Where it makes sense, yes.
> 
> Maven can be configured to produce multiple artifacts per project, but
> generally you need to have a deep understanding of the maven lifecycle and
> what gets built when and in what order, leading to headaches. It is way
> simpler just to follow the one-artifact-per-project convention.
> 
> An example of where it may not be necessary is where maven produces two
> artifacts from the same code, such as an EJB client side interface
> alongside the EJB implementation. Here maven cannot help but create two
> artifacts from one project, because the same source code can be used for
> both.
> 
> What you'll find is that some of the projects will be very simple. In our
> case, our ear projects just contain a pom.xml, and nothing else.
> 
> Regards,
> Graham
> --
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13290674
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Plugin vs plugin execution

2007-10-17 Thread Saloucious

Hi,

I would like to know if i define something like that : 




   
   something
 
   


something



Are plugins able to bind param1 and param2, or "configuration tag" in
execution overrides "configuration tag" in plugin

Thanks
-- 
View this message in context: 
http://www.nabble.com/Plugin-%3Cconfiguration%3E-vs-plugin-execution-%3Cconfiguration%3E-tf4639176s177.html#a13250059
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven good Design

2007-10-16 Thread Saloucious

Ok refactoring projects has been validated !!!

Thanks for your reply

So, it will be easy now to follow conventions ;-)

Is it a good solution to split project with a dedicated one for each
artifacts produced by ANT ?

eg: a project for EJB , another for SAR ...

We have a lot of projects with 2 or 3 artifacts each, i'm afraid to have
finally : projects number * artifacts number.

project1-ejb
project1-sar
project2-jar
project3-ear
project3-war
...

But if it is conventions, so we will follow it .



Wayne Fay wrote:
> 
> I'm not aware of any published "best practices for people who want 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
>> |-- 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 many classifier attached
>> artifacts ?
>>
>>
>>
>> Wendy Smoak-3 wrote:
>> >
>> > On 10/12/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
>> >
>> >> Get the most simplest part of your project (the jars) building cleanly
>> >> with maven, and use this as a testing ground to get you familiar with
>> the
>> >> maven build process. Do this on the existing sources if you can, by
>> >> dropping in pom.xml into the root of each jar as necessary. It will
>> >> probably become apparent as you go on that some of your code needs to
>> be
>> >> restructured. Do this as necessary, updating your ant build as you go
>> >> along to keep everything working.
>> >
>> > I agree, but the original message specifically said "without changes".
>> >  That's a huge red flag to me that things are about to get very
>> > painful for everyone involved.
>> >
>> > --
>> > Wendy
>> >
>> >>
>> >> Sometimes, you may find that an ant build produces more than one
>> >> artifact,
>> >> such as an EJB, and then an EAR file. What we did was to create new
>> >> projects alongside the EJB project, which only built the EAR file
>> (This
>> >> project contained a pom.xml file and nothing else).
>> >>
>> >> Eventually we were ready to wean people off the ant build and get
>> things
>> >> going with maven only, and the conversion has worked very well.
>> >>
>> >> The prize at the end of all this work is worth it: All our code is
>> built
>> >> and tested using continuous integration, with no platform or machine
>> >> specific build setups (we had hard coded paths *everywhere*).
>> >>
>> >> A release is tested, tagged, and built from the pristine tag (no more
>> >> releases from working copies) start to finish within 30 minutes
>> ("Help!
>> >> We
>> >> need to get this bugfix into UAT as soon as possible!", "No
>> problem".),
>> >> and we now have the *exact* source code used to create a production
>> >> release ("Help! We need to replicate this production problem in a
>> >> development environment!", "No problem").
>> >>
>> >> The docs are all auto-built and auto-deployed ("Help! We need to cook
>> up
>> >> a
>> >> plan to make javadocs available, which will be very difficult!",
>> "Already
>> >> done, here is the URL").
>> >>
>> >> Regards,
>> >> Graham
>> >> --
>> >>
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13219789
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13233906
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 is in the jar and the ejb? Is the jar the client 
> side interface for the ejb, or is it something else?
> 
> Is the code in the sar also in the jar, or is it on its own?
> 
> Regards,
> Graham
> --
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13221027
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 many classifier attached
artifacts ? 



Wendy Smoak-3 wrote:
> 
> On 10/12/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
> 
>> Get the most simplest part of your project (the jars) building cleanly
>> with maven, and use this as a testing ground to get you familiar with the
>> maven build process. Do this on the existing sources if you can, by
>> dropping in pom.xml into the root of each jar as necessary. It will
>> probably become apparent as you go on that some of your code needs to be
>> restructured. Do this as necessary, updating your ant build as you go
>> along to keep everything working.
> 
> I agree, but the original message specifically said "without changes".
>  That's a huge red flag to me that things are about to get very
> painful for everyone involved.
> 
> -- 
> Wendy
> 
>>
>> Sometimes, you may find that an ant build produces more than one
>> artifact,
>> such as an EJB, and then an EAR file. What we did was to create new
>> projects alongside the EJB project, which only built the EAR file (This
>> project contained a pom.xml file and nothing else).
>>
>> Eventually we were ready to wean people off the ant build and get things
>> going with maven only, and the conversion has worked very well.
>>
>> The prize at the end of all this work is worth it: All our code is built
>> and tested using continuous integration, with no platform or machine
>> specific build setups (we had hard coded paths *everywhere*).
>>
>> A release is tested, tagged, and built from the pristine tag (no more
>> releases from working copies) start to finish within 30 minutes ("Help!
>> We
>> need to get this bugfix into UAT as soon as possible!", "No problem".),
>> and we now have the *exact* source code used to create a production
>> release ("Help! We need to replicate this production problem in a
>> development environment!", "No problem").
>>
>> The docs are all auto-built and auto-deployed ("Help! We need to cook up
>> a
>> plan to make javadocs available, which will be very difficult!", "Already
>> done, here is the URL").
>>
>> Regards,
>> Graham
>> --
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13219789
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven good Design

2007-10-15 Thread Saloucious

Sure, a new branch (with Maven convention) should be the better solution.

Unfortunately, this is not planned ...

So is this stucture is fine : 
my-app
|-- pom.xml
|-- build.xml
|-- src
||- App.java
|
|--m2
  |--jar
  ||--pom.xml
  |
  |--ejb
  ||--pom.xml
  |
  |--sar
  |--pom.xml 


Or is better to put everything in one pom.xml, with many classifier attached
artifacts ?

Thanks


Dan Tran wrote:
> 
> Wendy puts it right on the spot.  "hazard pay"
> 
> I also want to add:  pay premium for extra health insurance b/c you
> will go insane.
> 
> :-)
> 
> 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, sar
>> (with
>> > embeded artifacts) ...
>> > As i can see in Maven : one pom.xml = one artifact (recommanded).
>> >
>> > I search a good design solution to convert these Ant's processes to
>> Maven
>> > (without changes).
>> >
>> > What i've proposed to my manager is to create in each root project dir
>> a m2
>> > dir
>>
>> Been there, done that.  I will *never* do it again without hazard pay.
>>
>> It can work *briefly* as a way to get your (or Maven's) foot in the
>> door and maybe generate the project website, but it is not a solution.
>>  It's not a fair test for Maven, and no one will be happy, least of
>> all the person working on the m2 build.
>>
>> Much better is Wayne's suggestion to branch, do a proper conversion,
>> and then show them.
>>
>> --
>> Wendy
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13219501
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 (with
> embeded artifacts) ...
> As i can see in Maven : one pom.xml = one artifact (recommanded).
> 
> I search a good design solution to convert these Ant's processes to Maven
> (without changes).
> 
> What i've proposed to my manager is to create in each root project dir a
> m2 dir
> 
> In root project direct, a parent pom.xml with reference to module in m2
> dir.
> 
> We can easily see which artifacts are produced by project, and we can
> create artifacts with embded artifacts (eg: ejb go into sar ...)
> 
> my-app
> |-- pom.xml
> |-- build.xml
> |-- src
> ||- App.java
> |
> |--m2
>   |--jar
>   ||--pom.xml
>   |
>   |--ejb
>   ||--pom.xml
>   |
>   |--sar
>   |--pom.xml
> 
> 
> Is a good design  ? Have you any better ideas  ?
> 
> Thanks
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13166299
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 convert these Ant's processes to Maven
(without changes).

What i've proposed to my manager is to create in each root project dir a m2
dir

In root project direct, a parent pom.xml with reference to module in m2 dir.

We can easily see which artifacts are produced by project, and we can create
artifacts with embded artifacts (eg: ejb go into sar ...)

my-app
|-- pom.xml
|-- build.xml
|-- src
||- App.java
|
|--m2
  |--jar
  ||--pom.xml
  |
  |--ejb
  ||--pom.xml
  |
  |--sar
  |--pom.xml


Is a good design  ? Have you any better ideas  ?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Maven-good-Design-tf4610394s177.html#a13166191
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]