Unable to override the value in pom's project properties in mojo

2008-07-25 Thread Dan Tran
I am writing a plugin to set the values of a given set of property key
passing in by user.  However if the user set the default
values int pom.xml's properties, the plugin cant not overwrite them.

Here is the source to the mojo

http://svn.codehaus.org/mojo/trunk/mojo/build-helper-maven-plugin/src/main/java/org/codehaus/mojo/buildhelper/ReserveListenerPortMojo.java

The pom example is at

http://svn.codehaus.org/mojo/trunk/mojo/build-helper-maven-plugin/src/it/reserve-ports/pom.xml.

Am i missing something?

Thanks

-D

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



Re: error plugin stage

2008-07-25 Thread Dan Tran
but it does not solve the problem at target side of course.

-D

On Fri, Jul 25, 2008 at 6:58 PM, Dan Tran <[EMAIL PROTECTED]> wrote:
> This problem is at archiva side where it returns the file list with
> one entry that contains a single space. and crashes the staging
> plugin.
>
> the work around for my case is to have httpd to host the staging.
>
>
> -D
>
>
> On Fri, Apr 11, 2008 at 7:48 AM, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
>> Please don't email project members directly. Use the users@maven.apache.org
>> mailing list instead. See
>>
>>  http://maven.apache.org/users/getting-help.html
>>
>> This plugin currently only supports the scp protocol for the target
>> repository. I had a look at the docs, and it seems that this bit is missing.
>> I'll make sure to something about this to the documentation.
>>
>> AFIF Mohamed wrote:
>>>
>>> Hi Dennis,
>>>
>>>
>>> I'm trying to use the stage plugin in order to copy artifacts from
>>> repository called "internal" to another called "public", those two
>>> repositorys are configured in my settings.xml, and i use this command: mvn
>>> stage:copy -Dsource="http://server:9090/archiva/repository/internal
>>>  "
>>> -Dtarget="http://server:9090/archiva/repository/public
>>>  "
>>> -DsourceRepositoryId=internal -DtargetRepositoryId=public
>>> -Dversion=1.2.8
>>> but i get this error:
>>>
>>>
>>> I've tried to create manually the diretory "staging-plugin-2.0.3" but I
>>> get always the same error, it looks like maven can't write in the Temp
>>> directory but it sn't true because this directory is writable and
>>> readable by everyone.
>>>
>>>
>>> Embedded error: GET request of:  from internal failed
>>>
>>> C:\DOCUME~1\MOHAME~1\LOCALS~1\Temp\staging-plugin-2.0.3 (Access Denied)
>>>
>>> [INFO]
>>> 
>>>
>>> [DEBUG] Trace
>>>
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Error copying
>>> repository from http://atoum:9090/archiva/repository/internal/ to
>>> http://atoum:9
>>>
>>> 090/archiva/repository/public/
>>>
>>>at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>>> LifecycleExecutor.java:564)
>>>
>>>at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
>>> l(DefaultLifecycleExecutor.java:493)
>>>
>>>at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
>>> ifecycleExecutor.java:463)
>>>
>>>at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
>>> Failures(DefaultLifecycleExecutor.java:311)
>>>
>>>at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
>>> DefaultLifecycleExecutor.java:224)
>>>
>>>at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
>>> ycleExecutor.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.jav
>>> a:39)
>>>
>>>at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>>> Impl.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)
>>>
>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying
>>> repository from http://atoum:9090/archiva/repository/internal/ to
>>> http://atou
>>>
>>> m:9090/archiva/repository/public/
>>>
>>>at
>>> org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepository
>>> Mojo.java:102)
>>>
>>>at
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
>>> nager.java:443)
>>>
>>>at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>>> LifecycleExecutor.java:539)
>>>
>>>... 16 more
>>>
>>> Caused by: org.apache.maven.wagon.TransferFailedException: GET request
>>> of:  from internal failed
>>>
>>>at
>>> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:217)
>>>
>>>at
>>> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:182)
>>>
>>>at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:80)
>>>
>>>at
>>> org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepos
>>> itoryCopier.java:137)
>>>
>>>at
>>> 

Re: error plugin stage

2008-07-25 Thread Dan Tran
This problem is at archiva side where it returns the file list with
one entry that contains a single space. and crashes the staging
plugin.

the work around for my case is to have httpd to host the staging.


-D


On Fri, Apr 11, 2008 at 7:48 AM, Dennis Lundberg <[EMAIL PROTECTED]> wrote:
> Please don't email project members directly. Use the users@maven.apache.org
> mailing list instead. See
>
>  http://maven.apache.org/users/getting-help.html
>
> This plugin currently only supports the scp protocol for the target
> repository. I had a look at the docs, and it seems that this bit is missing.
> I'll make sure to something about this to the documentation.
>
> AFIF Mohamed wrote:
>>
>> Hi Dennis,
>>
>>
>> I'm trying to use the stage plugin in order to copy artifacts from
>> repository called "internal" to another called "public", those two
>> repositorys are configured in my settings.xml, and i use this command: mvn
>> stage:copy -Dsource="http://server:9090/archiva/repository/internal
>>  "
>> -Dtarget="http://server:9090/archiva/repository/public
>>  "
>> -DsourceRepositoryId=internal -DtargetRepositoryId=public
>> -Dversion=1.2.8
>> but i get this error:
>>
>>
>> I've tried to create manually the diretory "staging-plugin-2.0.3" but I
>> get always the same error, it looks like maven can't write in the Temp
>> directory but it sn't true because this directory is writable and
>> readable by everyone.
>>
>>
>> Embedded error: GET request of:  from internal failed
>>
>> C:\DOCUME~1\MOHAME~1\LOCALS~1\Temp\staging-plugin-2.0.3 (Access Denied)
>>
>> [INFO]
>> 
>>
>> [DEBUG] Trace
>>
>> org.apache.maven.lifecycle.LifecycleExecutionException: Error copying
>> repository from http://atoum:9090/archiva/repository/internal/ to
>> http://atoum:9
>>
>> 090/archiva/repository/public/
>>
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>> LifecycleExecutor.java:564)
>>
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
>> l(DefaultLifecycleExecutor.java:493)
>>
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
>> ifecycleExecutor.java:463)
>>
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
>> Failures(DefaultLifecycleExecutor.java:311)
>>
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
>> DefaultLifecycleExecutor.java:224)
>>
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
>> ycleExecutor.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.jav
>> a:39)
>>
>>at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.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)
>>
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying
>> repository from http://atoum:9090/archiva/repository/internal/ to
>> http://atou
>>
>> m:9090/archiva/repository/public/
>>
>>at
>> org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepository
>> Mojo.java:102)
>>
>>at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
>> nager.java:443)
>>
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
>> LifecycleExecutor.java:539)
>>
>>... 16 more
>>
>> Caused by: org.apache.maven.wagon.TransferFailedException: GET request
>> of:  from internal failed
>>
>>at
>> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:217)
>>
>>at
>> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:182)
>>
>>at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:80)
>>
>>at
>> org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepos
>> itoryCopier.java:137)
>>
>>at
>> org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepository
>> Mojo.java:93)
>>
>>... 18 more
>>
>> Caused by: java.io.FileNotFoundException:
>> C:\DOCUME~1\MOHAME~1\LOCALS~1\Temp\staging-plugin-2.0.3 (Access Denied)
>>
>>at java.io.FileOutputStream.open(Nati

Re: Enabling Eclipse 3.4.0 Ganymede in the maven repository

2008-07-25 Thread Joerg Hohwiller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi there,

|> Does this mean if it would be the job of eclipse team to publish the
|> .pom files to the repository. Is there any way any other individual
|> contributor can contribute to this  ?
|
| It means the latter. You can create a bundle and upload it. In the
| case of Eclipse with its multitude of jar files, however, I'd ask the
| repository maintainers first, whether and how its possible to put
| everything into a single bundle.
Please do NOT just create some POMs as you think they look nice and upload
them for the eclipse community. You should work with them together.
I already supported and convinced them for SWT:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=199302

You have to spent some time but it is worth the effort. Please
find some maven guru to review the POMs before publishing.
|
| Jochen
|

Take care
~  Jörg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIikcymPuec2Dcv/8RAoUXAJ45sHteF0oLIOWp6Da5YN/uIf76ngCgkVkK
zP4BTIUh79LBXSwgc8c89pg=
=6r6q
-END PGP SIGNATURE-

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



Any chance for maven and IDE (eclipse)?

2008-07-25 Thread Joerg Hohwiller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everybody,

I am using maven and eclipse for more than five years now.
All I have to say is that bringing these two together
was crappy from the start and still is.

So far what I can tell:

1. maven-eclipse-plugin does an excellent job.
However integrating these two this way is just the wrong direction.
The biggest problem here is eclipse itself what really sucks with
its hyper intellectual virtual file system that has to be synced
for every file that has been modified outside eclipse.
Now if you have a really big project and change a very little
thing such as adding a dependency, you have to go through the
entire process of eclipse:eclipse and refreshing eclipse.
This takes about 10 to 30 Minutes until Eclipse lets me continue
to edit some file. Since eclipse 3.3 and 3.4 also phantom
errors occur and I have to clean various projects to make the red
crosses disappear. So far I am wrong here because the eclipse
is to "blame".

2. m2eclipse is a nice idea and about what I am dreaming of.
However it is so entirely full of bugs that it is completely
useless for complex projects. Since my bug report was just rejected
I stopped reporting bugs. But just to mention some here is
that it automatically sets the "JRE System Library". In my case
it has to be java6 for development. However the plugin is always
smarter than I am and sets it back to java5 causing compilation errors.
Further in another project I get ClassNotFoundErrors when launching
from eclipse because m2eclipse misscalculates the classpath.
Then if I use filtering and edit a filtered source-file m2eclipse
does NOT update it (BTW there is a funny workaround to make
filtering acceptable with mvn eclipse:eclipse).
Besides when I have a look into the log of m2eclipse I get errors
like:

DEPRECATED: Binding aggregator mojos to lifecycle phases in the
POM is considered dangerous. This feature has been deprecated.
Please adjust your POM files accordingly.
Offending mojo:
org.apache.maven.plugins:maven-enforcer-plugin:1.0-alpha-3:enforce-once

This does NOT show up, when I run maven on the commandline.
What the hack is going on there.
In the end using this plugin makes working with eclipse sometimes
even slower than with 1. (eclipse:eclipse). While I edit some file,
everything blocks and eclipse says it is "updating maven dependencies".
Log says it is porcessing *javadoc.jar files - I dont want them.
Too much magic as it seems...

3. Q4E / IAM
Does NOT know about filtering. Does NOT understand scopes properly.
Overall same problems with performance and blocking eclipse.
In the end also useless for productive development in complex projects.

So what is the chance?
Wait for eclipse 4.0 supporting projects with sub-projects and wait some
more years for one of the eclipse-plugins (2./3.) to work properly with
this together?

Bying IntelliJ Idea?

Using Netbeans? I never tried this with maven. Any feedback?

For the moment I have to stay with 1. because it is the only
reliable way to make progress with my projects.

Maybe there are some hints I have NOT yet discovered...

Thanks for taking care...
A frustrated lover of maven and eclipse
~  Jörg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIikQwmPuec2Dcv/8RAiV3AJ4yfdeMntOA8RM7cEg8hsV8PjHhxwCfc9bk
ZwbU9D2AdueiEJ+lrf3BoDQ=
=fOaI
-END PGP SIGNATURE-

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



RE: Override an @component hint in the pom?

2008-07-25 Thread jaxzin

Thanks Brian for the alternative.  I really do like how the custom enforcer
rules work though, so I think I'm going to follow your lead with the
enforcer rules but I'm glad to know that the role hint can be overridden.

The fact that the "implementation" attribute is available out-of-the-box
with Maven plugins really should be described in detail here under "Other
Object Classes":
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

It's such a great feature and I'm surprised that I hadn't heard about it
until now!



Brian E Fox wrote:
> 
> Actually the enforcer doesn't show overriding the hint, but the
> ounce-maven-plugin does exactly that. I simply take hint as a parameter
> and use that in the container.lookUp() call. The trick is getting the
> container to use, you need to implement Contextualizable and then the
> method contextualize. Then you grab the container and hold a reference
> to it. If you look at the ounce code, you'll see this happening.
> 
> -Original Message-
> From: jaxzin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 25, 2008 1:13 PM
> To: users@maven.apache.org
> Subject: Re: Override an @component hint in the pom?
> 
> 
> Thanks Jason, that's exactly what I'm looking for.
> 
> 
> Jason van Zyl-2 wrote:
>> 
>> You can look at the enforcer plugin and the shade plugin for examples
> 
>> of letting users specify custom/specific implementations of components
> 
>> with their own configurations.
>> 
>> On 24-Jul-08, at 9:50 PM, jaxzin wrote:
>> 
>>>
>>> I'm trying to create a mojo that is itself pluggable so that my  
>>> users can
>>> select an implementation of an interface to use.  I'm reading about  
>>> plexus
>>> and the @component annotation for mojo fields.  It appears the plexus
>>> component's roleHint can only be set in the annotation and not in  
>>> the pom
>>> configuration when someone uses my maven plugin.  Ideally I'd like  
>>> to have
>>> my users specify a class and property values that initialize it in  
>>> an IoC
>>> pattern and have it injected into my Mojo. Am I misunderstanding how
> 
>>> to use
>>> plexus and its not built for this?  Are there any examples of Mojo  
>>> doing
>>> something similar to what I describe, even if its without plexus  
>>> components?
>>> -- 
>>> View this message in context:
>>>
> http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp186437
> 97p18643797.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]
>>>
>> 
>> Thanks,
>> 
>> Jason
>> 
>> --
>> Jason van Zyl
>> Founder,  Apache Maven
>> jason at sonatype dot com
>> --
>> 
>> First, the taking in of scattered particulars under one Idea,
>> so that everyone understands what is being talked about ... Second,
>> the separation of the Idea into parts, by dividing it at the joints,
>> as nature directs, not breaking any limb in half as a bad carver
> might.
>> 
>>-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp186437
> 97p18655934.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]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp18643797p18657322.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: Override an @component hint in the pom?

2008-07-25 Thread Brian E. Fox
Actually the enforcer doesn't show overriding the hint, but the
ounce-maven-plugin does exactly that. I simply take hint as a parameter
and use that in the container.lookUp() call. The trick is getting the
container to use, you need to implement Contextualizable and then the
method contextualize. Then you grab the container and hold a reference
to it. If you look at the ounce code, you'll see this happening.

-Original Message-
From: jaxzin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2008 1:13 PM
To: users@maven.apache.org
Subject: Re: Override an @component hint in the pom?


Thanks Jason, that's exactly what I'm looking for.


Jason van Zyl-2 wrote:
> 
> You can look at the enforcer plugin and the shade plugin for examples

> of letting users specify custom/specific implementations of components

> with their own configurations.
> 
> On 24-Jul-08, at 9:50 PM, jaxzin wrote:
> 
>>
>> I'm trying to create a mojo that is itself pluggable so that my  
>> users can
>> select an implementation of an interface to use.  I'm reading about  
>> plexus
>> and the @component annotation for mojo fields.  It appears the plexus
>> component's roleHint can only be set in the annotation and not in  
>> the pom
>> configuration when someone uses my maven plugin.  Ideally I'd like  
>> to have
>> my users specify a class and property values that initialize it in  
>> an IoC
>> pattern and have it injected into my Mojo. Am I misunderstanding how

>> to use
>> plexus and its not built for this?  Are there any examples of Mojo  
>> doing
>> something similar to what I describe, even if its without plexus  
>> components?
>> -- 
>> View this message in context:
>>
http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp186437
97p18643797.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]
>>
> 
> Thanks,
> 
> Jason
> 
> --
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> --
> 
> First, the taking in of scattered particulars under one Idea,
> so that everyone understands what is being talked about ... Second,
> the separation of the Idea into parts, by dividing it at the joints,
> as nature directs, not breaking any limb in half as a bad carver
might.
> 
>-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp186437
97p18655934.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]


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



Embedded error: weblogic.utils.compiler.ToolFailureException: error in finding weblogic.Home - with nested exception:

2008-07-25 Thread David Brown
Hello Mavenites, I am building an SVN controlled project. I have checked out 
the most recent trunk and I am getting the following error condition. 
Obviously, this is Weblogic related but going to BEA is a waste of time. TIA 
and please advise, David.

[ERROR] BUILD ERROR
[INFO] 
[INFO] Exception encountered during APPC processing

Embedded error: weblogic.utils.compiler.ToolFailureException: error in finding 
weblogic.Home - with nested exception:
[java.lang.RuntimeException: error in finding weblogic.Home]
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Exception encountered 
during APPC processing
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception 
encountered during APPC processing
at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:185)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: weblogic.utils.compiler.ToolFailureException: error in finding 
weblogic.Home - with nested exception:
[java.lang.RuntimeException: error in finding weblogic.Home]
at 
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:299)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
... 18 more
Caused by: weblogic.utils.compiler.ToolFailureException: error in finding 
weblogic.Home - with nested exception:
[java.lang.RuntimeException: error in finding weblogic.Home]
at 
weblogic.application.compiler.FlowDriver.handleStateChangeException(FlowDriver.java:53)
at 
weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:174)
at weblogic.appc.main(appc.java:14)
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 
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:290)
... 21 more
Caused by: java.lang.RuntimeException: error in finding weblogic.Home
at weblogic.Home.getInstance(Home.java:90)
at weblogic.Home.getPath(Home.java:96)
at 
weblogic.ejb.container.persistence.InstalledPersistence.setInstallationLocation(InstalledPersistence.java:299)
at 
weblogic.ejb.container.persistence.InstalledPersistence.initialize(InstalledPersistence.java:134)
at 
weblogic.ejb.container.persistence.InstalledPersistence.getInstalledType(InstalledPersistence.java:114)
at 
weblogic.ejb.container.deployer.MBeanDeploymentInfoImpl.getPersistenceType(MBeanDeploymentInfoIm

Re: Override an @component hint in the pom?

2008-07-25 Thread jaxzin

Thanks Jason, that's exactly what I'm looking for.


Jason van Zyl-2 wrote:
> 
> You can look at the enforcer plugin and the shade plugin for examples  
> of letting users specify custom/specific implementations of components  
> with their own configurations.
> 
> On 24-Jul-08, at 9:50 PM, jaxzin wrote:
> 
>>
>> I'm trying to create a mojo that is itself pluggable so that my  
>> users can
>> select an implementation of an interface to use.  I'm reading about  
>> plexus
>> and the @component annotation for mojo fields.  It appears the plexus
>> component's roleHint can only be set in the annotation and not in  
>> the pom
>> configuration when someone uses my maven plugin.  Ideally I'd like  
>> to have
>> my users specify a class and property values that initialize it in  
>> an IoC
>> pattern and have it injected into my Mojo. Am I misunderstanding how  
>> to use
>> plexus and its not built for this?  Are there any examples of Mojo  
>> doing
>> something similar to what I describe, even if its without plexus  
>> components?
>> -- 
>> View this message in context:
>> http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp18643797p18643797.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]
>>
> 
> Thanks,
> 
> Jason
> 
> --
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> --
> 
> First, the taking in of scattered particulars under one Idea,
> so that everyone understands what is being talked about ... Second,
> the separation of the Idea into parts, by dividing it at the joints,
> as nature directs, not breaking any limb in half as a bad carver might.
> 
>-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp18643797p18655934.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: Sonar

2008-07-25 Thread Scott Ryan
WE are using it during our autobuild process in Cruise Control and Maven 2.
We are running Sonar as a seperate website and process so we use both site
and sonar as both provide great information.   Sonar is database based so
you can get history which is awesome and we use mysql.  Site is file based
more like an http website.

hope this helps.
Scott Ryan
President/CTO
Soaring Eagle L.L.C.
Highlands Ranch, Co. 80129
(303) 263-3044
[EMAIL PROTECTED]
www.soaringeagleco.com

On Fri, Jul 25, 2008 at 10:07 AM, Yanko, Curtis <[EMAIL PROTECTED]> wrote:

> Anybody using Sonar? It's not clear to me how it works in conjunction
> with something like Site or does it replace it?
>
>
> ==
> Curtis Yanko
> Application & Developer Infrastructure Services
> Source->Build->Deploy
>
>
>
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
> that any dissemination, distribution or copying of this e-mail is
> prohibited. If you have received this e-mail in error, please notify the
> sender by replying to this message and delete this e-mail immediately.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: [m2] how to specify a tomcat context with the cargo plugin to run in maven?

2008-07-25 Thread Mick Knutson
So is this going to startup my local tomcat, verse embedded tomcat for
testing? Then the local tomcat just needs to be configured with my proper
context.xml...???
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com


On Fri, Jul 25, 2008 at 9:04 AM, Marc Schneider <[EMAIL PROTECTED]>
wrote:

> Mick Knutson a écrit :
>
>  I want to specify a test version of my tomcat context with my cargo
>> plugin,
>> but can't seem  to find anything about that on the site. Is this possible?
>>
>> ---
>> Thank You…
>>
>> Mick Knutson
>> BASE Logic, inc.
>> (415) 354-4215
>>
>> Website: http://baselogic.com
>> Blog: http://baselogic.com/blog
>> BLiNC Magazine: http://blincmagazine.com
>> Linked IN: http://linkedin.com/in/mickknutson
>> DJ Mick: http://djmick.com
>> MySpace: http://myspace.com/mickknutson
>> Vacation Rental: http://tahoe.baselogic.com
>>
>>
> May be you can try it like this :
> (For me it also works for Tomcat 6x)
>
> 
> org.codehaus.cargo
> cargo-maven2-plugin
> 
>false
>
>  tomcat5x
>  ${tomcat.local.home}
>
>
>  
>high
>${servlet.port}
>  
>
> 
> 
>
>  start-container
>  pre-integration-test
>  
>start
>  
>
>
>  stop-container
>  post-integration-test
>  
>stop
>  
>
> 
> 
>
> Marc.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Merging applicationContexts

2008-07-25 Thread Matt Walsh
But when I go to "war:war" my client module, it's not going to find
the web.xml and all related xml files and will fail.

On Fri, Jul 25, 2008 at 10:15 AM, Manuel EVENO <[EMAIL PROTECTED]> wrote:
> You can put xml or properties file in jar too.
> Simply add them into src/main/resources of your server module
>
> Manuel
>
> On Fri, Jul 25, 2008 at 5:02 PM, Matt Walsh <[EMAIL PROTECTED]> wrote:
>
>> I'm a little new to Maven (about 3 weeks), so I apologize if this is a
>> n00b question. I have a question about how to better structure my
>> current application. Currently, the parent project has three modules:
>> client, server, and common. Common depends on nothing. It simply hold
>> beans and service interfaces that are common across the app. Server
>> depends on Common. Client depends on Server. Common and Server are
>> packaged as JARs. Client is packaged as a WAR. When I want to deploy
>> my application, I simply build the client and all is well. This means
>> I have to put all my Spring related configurations in the client. I
>> was hoping there was a way to avoid this by putting it in the Server
>> module, but I don't see how that's possible if the Server module is
>> packaged as a JAR. Am I going about this the wrong way?
>>
>> --
>> Matthew Walsh
>> [EMAIL PROTECTED]
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
Matthew Walsh
[EMAIL PROTECTED]

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



Sonar

2008-07-25 Thread Yanko, Curtis
Anybody using Sonar? It's not clear to me how it works in conjunction
with something like Site or does it replace it?


==
Curtis Yanko
Application & Developer Infrastructure Services
Source->Build->Deploy



This e-mail, including attachments, may include confidential and/or 
proprietary information, and may be used only by the person or entity to 
which it is addressed. If the reader of this e-mail is not the intended 
recipient or his or her authorized agent, the reader is hereby notified 
that any dissemination, distribution or copying of this e-mail is 
prohibited. If you have received this e-mail in error, please notify the 
sender by replying to this message and delete this e-mail immediately.


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

Re: [m2] how to specify a tomcat context with the cargo plugin to run in maven?

2008-07-25 Thread Marc Schneider

Mick Knutson a écrit :

I want to specify a test version of my tomcat context with my cargo plugin,
but can't seem  to find anything about that on the site. Is this possible?

---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com



May be you can try it like this :
(For me it also works for Tomcat 6x)


org.codehaus.cargo
cargo-maven2-plugin

false

  tomcat5x
  ${tomcat.local.home}


  
high
${servlet.port}
  




  start-container
  pre-integration-test
  
start
  


  stop-container
  post-integration-test
  
stop
  




Marc.

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



Re: zip files/jars with maven2

2008-07-25 Thread Mick Knutson
http://maven.apache.org/plugins/maven-assembly-plugin/

---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com


On Fri, Jul 25, 2008 at 8:56 AM, MedElb <[EMAIL PROTECTED]> wrote:

> thanks for your response,
>
> in any level i must configure the assemply plugin
>
> at the parent POM? at  ??
>
>
> do u have an exemple
>
>
> thank you in advance
>
> 2008/7/25 Mick Knutson <[EMAIL PROTECTED]>:
>
> > You need to create an assembly with the assembly plugin.
> >
> > ---
> > Thank You…
> >
> > Mick Knutson
> > BASE Logic, inc.
> > (415) 354-4215
> >
> > Website: http://baselogic.com
> > Blog: http://baselogic.com/blog
> > BLiNC Magazine: http://blincmagazine.com
> > Linked IN: http://linkedin.com/in/mickknutson
> > DJ Mick: http://djmick.com
> > MySpace: http://myspace.com/mickknutson
> > Vacation Rental: http://tahoe.baselogic.com
> >
> >
> > On Fri, Jul 25, 2008 at 8:33 AM, MedElb <[EMAIL PROTECTED]> wrote:
> >
> > > Hi all,
> > >
> > > i have a maven projet (multimodules) with parent pom, and all sub
> > projects
> > > are jar's packaging with dependencies with them, now i need a way to
> get
> > a
> > > zip file witch i'll get all jars
> > >
> > > thanks in advance
> > >
> > >
> > > best regards
> > >
> > > M.E
> > >
> >
>


Re: zip files/jars with maven2

2008-07-25 Thread MedElb
thanks for your response,

in any level i must configure the assemply plugin

at the parent POM? at  ??


do u have an exemple


thank you in advance

2008/7/25 Mick Knutson <[EMAIL PROTECTED]>:

> You need to create an assembly with the assembly plugin.
>
> ---
> Thank You…
>
> Mick Knutson
> BASE Logic, inc.
> (415) 354-4215
>
> Website: http://baselogic.com
> Blog: http://baselogic.com/blog
> BLiNC Magazine: http://blincmagazine.com
> Linked IN: http://linkedin.com/in/mickknutson
> DJ Mick: http://djmick.com
> MySpace: http://myspace.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
>
>
> On Fri, Jul 25, 2008 at 8:33 AM, MedElb <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > i have a maven projet (multimodules) with parent pom, and all sub
> projects
> > are jar's packaging with dependencies with them, now i need a way to get
> a
> > zip file witch i'll get all jars
> >
> > thanks in advance
> >
> >
> > best regards
> >
> > M.E
> >
>


Problem using Plugin Management

2008-07-25 Thread Jean-Marc Desprez
Hi,
I have four projects under maven.
I want to be able to run "assembly:assembly" on each projects with minimum
effort.

So I had create a main project with this configuration :
...

../aaa
../zzz
../eee
../rrr






org.apache.maven.plugins
maven-assembly-plugin
true




${basedir}/assembly/livraison.xml







On each child, I add this two pieces of code :

the.group
main
0.0.1-SNAPSHOT
../main/pom.xml

and


...

org.apache.maven.plugins
maven-assembly-plugin


...



Maven help (http://maven.apache.org/pom.html#Plugin_Management) say : Plugin
Management contains plugin elements in much the same way, except that rather
than configuring plugin information for this particular project build, it is
intended to configure project builds that inherit from this one.

But, "assembly:assembly" on the main's pom.xml throw an error :
[INFO] [assembly:assembly]
[INFO] Reading assembly descriptor: /path/to\main/assembly/livraison.xml
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error reading assemblies: Error locating assembly descriptor

Which is completly normal because I do not have assembly descriptor for the
main project.
Plus, the assembly is not done on the childs projects

How can I run assembly:assembly only on the childs projects ??

Thanks


Re: zip files/jars with maven2

2008-07-25 Thread Mick Knutson
You need to create an assembly with the assembly plugin.

---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com


On Fri, Jul 25, 2008 at 8:33 AM, MedElb <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> i have a maven projet (multimodules) with parent pom, and all sub projects
> are jar's packaging with dependencies with them, now i need a way to get a
> zip file witch i'll get all jars
>
> thanks in advance
>
>
> best regards
>
> M.E
>


zip files/jars with maven2

2008-07-25 Thread MedElb
Hi all,

i have a maven projet (multimodules) with parent pom, and all sub projects
are jar's packaging with dependencies with them, now i need a way to get a
zip file witch i'll get all jars

thanks in advance


best regards

M.E


Re: Merging applicationContexts

2008-07-25 Thread Manuel EVENO
You can put xml or properties file in jar too.
Simply add them into src/main/resources of your server module

Manuel

On Fri, Jul 25, 2008 at 5:02 PM, Matt Walsh <[EMAIL PROTECTED]> wrote:

> I'm a little new to Maven (about 3 weeks), so I apologize if this is a
> n00b question. I have a question about how to better structure my
> current application. Currently, the parent project has three modules:
> client, server, and common. Common depends on nothing. It simply hold
> beans and service interfaces that are common across the app. Server
> depends on Common. Client depends on Server. Common and Server are
> packaged as JARs. Client is packaged as a WAR. When I want to deploy
> my application, I simply build the client and all is well. This means
> I have to put all my Spring related configurations in the client. I
> was hoping there was a way to avoid this by putting it in the Server
> module, but I don't see how that's possible if the Server module is
> packaged as a JAR. Am I going about this the wrong way?
>
> --
> Matthew Walsh
> [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Merging applicationContexts

2008-07-25 Thread Matt Walsh
I'm a little new to Maven (about 3 weeks), so I apologize if this is a
n00b question. I have a question about how to better structure my
current application. Currently, the parent project has three modules:
client, server, and common. Common depends on nothing. It simply hold
beans and service interfaces that are common across the app. Server
depends on Common. Client depends on Server. Common and Server are
packaged as JARs. Client is packaged as a WAR. When I want to deploy
my application, I simply build the client and all is well. This means
I have to put all my Spring related configurations in the client. I
was hoping there was a way to avoid this by putting it in the Server
module, but I don't see how that's possible if the Server module is
packaged as a JAR. Am I going about this the wrong way?

-- 
Matthew Walsh
[EMAIL PROTECTED]

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



Re: Is there a standard way to provide build time properties to an application?

2008-07-25 Thread Manuel EVENO
You mean dynamically create the properties file before packaging ?

On Fri, Jul 25, 2008 at 4:05 PM, Brewster, Richard
<[EMAIL PROTECTED]>wrote:

> The general idea is to create a properties file and package it in the
> jar or war on the classpath, so it can be read at runtime.
>
> Thanks,
>
> Richard Brewster
> Senior Associate
> Perrin Quarles Associates
> [EMAIL PROTECTED]
> (434) 817-2640
>
>
>


RE: System dependencies as dependency management

2008-07-25 Thread Brian E. Fox
It most likely has to do with the changes to when the properties are resolved.

-Original Message-
From: jsoula [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2008 10:05 AM
To: Maven Users List; Maven Developers List
Subject: Re: System dependencies as dependency management

I try the 2.0.10-RC2 and the pb disappear. Is there a regression in 
maven 2.0.9 fixed in 2.0.10? I don't find a related bug.

jsoula a écrit :
> Hello,
>
> I try to upgrade maven from 2.0.8 to 2.0.9. I have pb with a system 
> dependency:
> Here are the dependencies in a parent pom:
>   
>   
>   com.sun
>   tools
>   1.4.2
>   system
>   ${java.home}/../lib/tools.jar
>   

> And here are the declaration in child pom:

com.sun
tools

> When i try to compile a child project of this pom, i have this error:
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) com.sun:tools:jar:1.4.2
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=com.sun -DartifactId=tools 
> -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file 
> there:
> mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools 
> -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
> -DrepositoryId=[id]
>
> Path to dependency:
>   1) com.xxx:common:jar:2.1-SNAPSHOT
>   2) com.sun:tools:jar:1.4.2
>
> --
> 1 required artifact is missing.
>
> for artifact:
> com.xxx:common:jar:2.1-SNAPSHOT
>
> from the specified remote repositories:
> repository-snapshots
> repository-releases
>
>
> Is there a known bugs of this (i found nothing in JIRA) ? Or there is 
> a thing to do when i upgrade?
>
> Thanks for Help
>
> Jérémy SOULA
>
>
>
> -
> 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]
>
>



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



Is there a standard way to provide build time properties to an application?

2008-07-25 Thread Brewster, Richard
The general idea is to create a properties file and package it in the
jar or war on the classpath, so it can be read at runtime.

Thanks,

Richard Brewster
Senior Associate
Perrin Quarles Associates
[EMAIL PROTECTED]
(434) 817-2640




Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
I trie to remove all classpath references from the surefiretmp file, that
includes all my dependencies even when useManifestOnlyJar is set to false.

I then cannot run the test anymore :
org.apache.maven.surefire.booter.SurefireExecutionException:
com/google/gwt/junit/client/GWTTestCase; nested exception is
java.lang.NoClassDefFoundError: com/google/gwt/junit/client/GWTTestCase
 - but the required jar is set on command line as -classpath !


I may be wrong, but in [useManifestOnlyJar=false] mode, surefire still uses
the tmpFile to load classes, not the command line classpath.


2008/7/25 nicolas de loof <[EMAIL PROTECTED]>:

> I also tried to drastically reduce the command line (removing all
> unecessary dependencies) but have the same issue.
>
>
>
>> 2008/7/25 Jeff MAURY <[EMAIL PROTECTED]>:
>>
>> Using false may lead to classpath
>>> too long for your environment and leading to ClassNotFoundException or
>>> ClassNotFoundError. May be this is what you have ?
>>>
>>> Jeff MAURY
>>>
>>>
>>> On 7/25/08, nicolas de loof <[EMAIL PROTECTED]> wrote:
>>> >
>>> > Using false makes things work
>>> > better, as the full classpath is scanned for java source files by the
>>> GWT
>>> > compiler, but now I get
>>> >
>>> > "javax.servlet.ServletException: Class
>>> > com.google.gwt.dev.shell.GWTShellServlet is not a Servlet"
>>> > (looks like a classloader conflict)
>>> >
>>> >
>>> > 2008/7/25 nicolas de loof <[EMAIL PROTECTED]>:
>>> >
>>> > > Hello,
>>> > >
>>> > > I'm trying to setup surefire plugin to run GWTTestCase. This requires
>>> > some
>>> > > custom setup as the "hosted mode browser" requires GWT to read the
>>> java
>>> > > source code :
>>> > >
>>> > > maven-surefire-plugin
>>> > > 
>>> > >   
>>> > >
>>> > > src/it/java
>>> > >
>>> > >
>>> src/main/java
>>> > >   
>>> > >   
>>> > > 
>>> > >   gwt.args
>>> > >   -out target/www-test -logLevel ALL
>>> > > 
>>> > >   
>>> > >   -Xmx256M
>>> > > 
>>> > >
>>> > >
>>> > > Myissue is that - according to GWT log -- GWT does only lookup the
>>> > > surefire.class.path (JRE rt.jar + surefirebooter.jar), and not all
>>> other
>>> > > dependencies or additionalClassPathElements. It seems the classloader
>>> > > hierarchy used by surefire that is not supported by GWTTestCase.
>>> > >
>>> > > Any suggestion to get this working ?
>>> > >
>>> > >
>>> > >
>>> >
>>>
>>>
>>>
>>> --
>>> La mélancolie c'est communiste
>>> Tout le monde y a droit de temps en temps
>>> La mélancolie n'est pas capitaliste
>>> C'est même gratuit pour les perdants
>>> La mélancolie c'est pacifiste
>>> On ne lui rentre jamais dedans
>>> La mélancolie oh tu sais ça existe
>>> Elle se prend même avec des gants
>>> La mélancolie c'est pour les syndicalistes
>>> Il faut juste sa carte de permanent
>>>
>>> Miossec (2006)
>>>
>>> http://www.jeffmaury.com
>>> http://riadiscuss.jeffmaury.com
>>> http://www.lastfm.fr/listen/user/jeffmaury/personal
>>>
>>
>>
>


Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
I also tried to drastically reduce the command line (removing all unecessary
dependencies) but have the same issue.


> 2008/7/25 Jeff MAURY <[EMAIL PROTECTED]>:
>
> Using false may lead to classpath
>> too long for your environment and leading to ClassNotFoundException or
>> ClassNotFoundError. May be this is what you have ?
>>
>> Jeff MAURY
>>
>>
>> On 7/25/08, nicolas de loof <[EMAIL PROTECTED]> wrote:
>> >
>> > Using false makes things work
>> > better, as the full classpath is scanned for java source files by the
>> GWT
>> > compiler, but now I get
>> >
>> > "javax.servlet.ServletException: Class
>> > com.google.gwt.dev.shell.GWTShellServlet is not a Servlet"
>> > (looks like a classloader conflict)
>> >
>> >
>> > 2008/7/25 nicolas de loof <[EMAIL PROTECTED]>:
>> >
>> > > Hello,
>> > >
>> > > I'm trying to setup surefire plugin to run GWTTestCase. This requires
>> > some
>> > > custom setup as the "hosted mode browser" requires GWT to read the
>> java
>> > > source code :
>> > >
>> > > maven-surefire-plugin
>> > > 
>> > >   
>> > >
>> > > src/it/java
>> > >
>> > > src/main/java
>> > >   
>> > >   
>> > > 
>> > >   gwt.args
>> > >   -out target/www-test -logLevel ALL
>> > > 
>> > >   
>> > >   -Xmx256M
>> > > 
>> > >
>> > >
>> > > Myissue is that - according to GWT log -- GWT does only lookup the
>> > > surefire.class.path (JRE rt.jar + surefirebooter.jar), and not all
>> other
>> > > dependencies or additionalClassPathElements. It seems the classloader
>> > > hierarchy used by surefire that is not supported by GWTTestCase.
>> > >
>> > > Any suggestion to get this working ?
>> > >
>> > >
>> > >
>> >
>>
>>
>>
>> --
>> La mélancolie c'est communiste
>> Tout le monde y a droit de temps en temps
>> La mélancolie n'est pas capitaliste
>> C'est même gratuit pour les perdants
>> La mélancolie c'est pacifiste
>> On ne lui rentre jamais dedans
>> La mélancolie oh tu sais ça existe
>> Elle se prend même avec des gants
>> La mélancolie c'est pour les syndicalistes
>> Il faut juste sa carte de permanent
>>
>> Miossec (2006)
>>
>> http://www.jeffmaury.com
>> http://riadiscuss.jeffmaury.com
>> http://www.lastfm.fr/listen/user/jeffmaury/personal
>>
>
>


surefire doesn't detect failed tests. (forkMode = always and jdk1.4)

2008-07-25 Thread Benoit Decherf

Hi

When I execute mvn deploy (from continuum), The surefire reports show 
that there are errors, but the execution doesn't fail :

In the output I have:

Results :

Failed tests: 

Tests in error: 



Tests run: 212, Failures: 24, Errors: 8, Skipped: 0

[INFO] [jar:jar]


That's strange. It show that some tests fails, but it doesn't show which 
tests fails and it doesn't fails the execution.


The exact command is :
mvn clean deploy -e --batch-mode

The configuration to reproduce it is forkMode=always and jdk1.4.
If I use jdk1.6, it works and if I use forkMode=once it also works. (but 
the list of failed tests is still missing).


Can I open a bug in this ?


Benoit

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



Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
I tried to copy/paste the command line executed by surefire :

java -Xmx256M -classpath blablablablalba
org.apache.maven.surefire.booter.SurefireBooter
C:\WINDOWS\TEMP\surefire17025tmp C:\WINDOWS\TEMP\surefire17026tmp

As surefire executes, it seems the line is not too long (evn it is very long
;-) ) so that the class name argument is used by java to run surefire
booter.

I then get :

@HL
@HL---
@HL T E S T S
@HL---
@SLRunning com.capgemini.bios.gwt.client.ApplicationITest
Starting HTTP on port 0
   HTTP listening on port 1538
StandardContext[]Marking servlet shell as unavailable
[WARN] StandardWrapperValve[shell]: Allocate exception for servlet shell
javax.servlet.ServletException: Class
com.google.gwt.dev.shell.GWTShellServlet is not a Servlet


I just remembered that gwt-user.jar contains a copy of the servlet-api, that
may conflict with my servlet-api.jar declared as a project dependency. But
removing this dependency did not change the bad result :-(





2008/7/25 Jeff MAURY <[EMAIL PROTECTED]>:

> Using false may lead to classpath
> too long for your environment and leading to ClassNotFoundException or
> ClassNotFoundError. May be this is what you have ?
>
> Jeff MAURY
>
>
> On 7/25/08, nicolas de loof <[EMAIL PROTECTED]> wrote:
> >
> > Using false makes things work
> > better, as the full classpath is scanned for java source files by the GWT
> > compiler, but now I get
> >
> > "javax.servlet.ServletException: Class
> > com.google.gwt.dev.shell.GWTShellServlet is not a Servlet"
> > (looks like a classloader conflict)
> >
> >
> > 2008/7/25 nicolas de loof <[EMAIL PROTECTED]>:
> >
> > > Hello,
> > >
> > > I'm trying to setup surefire plugin to run GWTTestCase. This requires
> > some
> > > custom setup as the "hosted mode browser" requires GWT to read the java
> > > source code :
> > >
> > > maven-surefire-plugin
> > > 
> > >   
> > >
> > > src/it/java
> > >
> > > src/main/java
> > >   
> > >   
> > > 
> > >   gwt.args
> > >   -out target/www-test -logLevel ALL
> > > 
> > >   
> > >   -Xmx256M
> > > 
> > >
> > >
> > > Myissue is that - according to GWT log -- GWT does only lookup the
> > > surefire.class.path (JRE rt.jar + surefirebooter.jar), and not all
> other
> > > dependencies or additionalClassPathElements. It seems the classloader
> > > hierarchy used by surefire that is not supported by GWTTestCase.
> > >
> > > Any suggestion to get this working ?
> > >
> > >
> > >
> >
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.lastfm.fr/listen/user/jeffmaury/personal
>


Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread Jeff MAURY
Using false may lead to classpath
too long for your environment and leading to ClassNotFoundException or
ClassNotFoundError. May be this is what you have ?

Jeff MAURY


On 7/25/08, nicolas de loof <[EMAIL PROTECTED]> wrote:
>
> Using false makes things work
> better, as the full classpath is scanned for java source files by the GWT
> compiler, but now I get
>
> "javax.servlet.ServletException: Class
> com.google.gwt.dev.shell.GWTShellServlet is not a Servlet"
> (looks like a classloader conflict)
>
>
> 2008/7/25 nicolas de loof <[EMAIL PROTECTED]>:
>
> > Hello,
> >
> > I'm trying to setup surefire plugin to run GWTTestCase. This requires
> some
> > custom setup as the "hosted mode browser" requires GWT to read the java
> > source code :
> >
> > maven-surefire-plugin
> > 
> >   
> >
> > src/it/java
> >
> > src/main/java
> >   
> >   
> > 
> >   gwt.args
> >   -out target/www-test -logLevel ALL
> > 
> >   
> >   -Xmx256M
> > 
> >
> >
> > Myissue is that - according to GWT log -- GWT does only lookup the
> > surefire.class.path (JRE rt.jar + surefirebooter.jar), and not all other
> > dependencies or additionalClassPathElements. It seems the classloader
> > hierarchy used by surefire that is not supported by GWTTestCase.
> >
> > Any suggestion to get this working ?
> >
> >
> >
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


Re: surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
Using false makes things work
better, as the full classpath is scanned for java source files by the GWT
compiler, but now I get

"javax.servlet.ServletException: Class
com.google.gwt.dev.shell.GWTShellServlet is not a Servlet"
(looks like a classloader conflict)


2008/7/25 nicolas de loof <[EMAIL PROTECTED]>:

> Hello,
>
> I'm trying to setup surefire plugin to run GWTTestCase. This requires some
> custom setup as the "hosted mode browser" requires GWT to read the java
> source code :
>
> maven-surefire-plugin
> 
>   
>
> src/it/java
>
> src/main/java
>   
>   
> 
>   gwt.args
>   -out target/www-test -logLevel ALL
> 
>   
>   -Xmx256M
> 
>
>
> Myissue is that - according to GWT log -- GWT does only lookup the
> surefire.class.path (JRE rt.jar + surefirebooter.jar), and not all other
> dependencies or additionalClassPathElements. It seems the classloader
> hierarchy used by surefire that is not supported by GWTTestCase.
>
> Any suggestion to get this working ?
>
>
>


surefire : classloader issue with GWTTestCase

2008-07-25 Thread nicolas de loof
Hello,

I'm trying to setup surefire plugin to run GWTTestCase. This requires some
custom setup as the "hosted mode browser" requires GWT to read the java
source code :

maven-surefire-plugin

  

src/it/java

src/main/java
  
  

  gwt.args
  -out target/www-test -logLevel ALL

  
  -Xmx256M



Myissue is that - according to GWT log -- GWT does only lookup the
surefire.class.path (JRE rt.jar + surefirebooter.jar), and not all other
dependencies or additionalClassPathElements. It seems the classloader
hierarchy used by surefire that is not supported by GWTTestCase.

Any suggestion to get this working ?


Re: building a resources artifact

2008-07-25 Thread Jeff MAURY
Simply declare you POM with jar packaging. It tested it and it works.

Jeff MAURY


On 7/25/08, Julien CARSIQUE <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I need to build an artifact containing only resources, no Java source.
> These resources are in scr/main/... in a project with "pom" packaging type.
>
> I tried with maven-jar-plugin with no success, the built jar is empty of
> the wanted resources :
> [INFO] [jar:jar {execution: resources_common}]
> [WARNING] JAR will be empty - no content was marked for inclusion!
>
> How can I do this ?
>
> Here is the plugin definition :
> 
>   org.apache.maven.plugins
>   maven-jar-plugin
>   
> 
>   resources_common
>   package
>   
> jar
>   
>   
> resources_common
> 
>   **/resources_common
> 
>   
> 
>   
> 
>
>
> --
> Julien CARSIQUE, Nuxeo (Paris, France)
> www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
> Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
> [EMAIL PROTECTED] | Tel: +33 1 40 33 79 87 / +33 6 09 06 38 03
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


RE: how maven run its plugin goals through java API????

2008-07-25 Thread Renu Gupta

Thanks Stefan,
Maven Embedder seems to be of useful to me.
And now I am successfully able to run my jboss server goals using maven 
embedder.
But for more references I am not getting much of material on maven Embedder.
And at this point I am not able to decide how much stable is maven embedder to 
be used for my complete application?
I mean I don't have knowledge of any hidden issues of it.

Cheers!
Renu
-Original Message-
From: Stefan Seidel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2008 6:40 PM
To: Maven Users List
Subject: Re: how maven run its plugin goals through java API

You will need the Maven Embedder[0] if your really want to run Maven
goals. If you just want to execute the _logic_ of Maven goals, have a
look if there is a normal way of doing it. For example, dbUnit can be
run as Maven plugin, but is also available as Java API[1]. Especially,
starting an instance of JBoss could be done via Cargo[2], or the JBoss
Microcontainer[3], or the Embedded EJB3 Container[4].

Stefan

[0] http://maven.apache.org/guides/mini/guide-embedding-m2.html
[1] http://www.dbunit.org/howto.html
[2] http://cargo.codehaus.org/Quick+start
[3] http://www.jboss.com/products/jbossmc
[4] http://docs.jboss.org/ejb3/embedded/embedded.html

Renu Gupta wrote:
> Hey will b of grt help..:)
> Can u plz send the contents
>
> Thanx
>
> Cheers!
> Renu
>
> -Original Message-
> From: Vikramaditya Garg [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2008 11:09 AM
> To: Maven Users List
> Subject: RE: how maven run its plugin goals through java API
>
> I did that some time back.I will send u the xml contents what I did.
> Thanks
> Vikramaditya Garg
> STS
> Infosys Technologies Limited.
>
> -Original Message-
> From: Renu Gupta [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2008 10:58 AM
> To: Maven Users List
> Subject: how maven run its plugin goals through java API
>
> Hi,
> Can we write our own common java code to run plugin goals?//
> Like if I wanna run a goal mvn jboss:start
> Now can I code a java class to run this goal instead of using "mvn 
> jboss:start"
>
> Any suggestions.,comments or help shall b appreciable. :)
>
> Cheers!
> Renu
>
>
>  CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient, please
> notify the sender by e-mail and delete the original message. Further, you are 
> not
> to copy, disclose, or distribute this e-mail or its contents to any other 
> person and
> any such actions are unlawful. This e-mail may contain viruses. Infosys has 
> taken
> every reasonable precaution to minimize this risk, but is not liable for any 
> damage
> you may sustain as a result of any virus in this e-mail. You should carry out 
> your
> own virus checks before opening the e-mail or attachment. Infosys reserves the
> right to monitor and review the content of all messages sent to or from this 
> e-mail
> address. Messages sent to or from this e-mail address may be stored on the
> Infosys e-mail system.
> ***INFOSYS End of Disclaimer INFOSYS***
>
> -
> 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]
>


--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: building a resources artifact

2008-07-25 Thread Manuel EVENO
Maybe you can use the assembly plugin
http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html

On Fri, Jul 25, 2008 at 12:03 PM, Julien CARSIQUE <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I need to build an artifact containing only resources, no Java source.
> These resources are in scr/main/... in a project with "pom" packaging type.
>
> I tried with maven-jar-plugin with no success, the built jar is empty of
> the wanted resources :
> [INFO] [jar:jar {execution: resources_common}]
> [WARNING] JAR will be empty - no content was marked for inclusion!
>
> How can I do this ?
>
> Here is the plugin definition :
> 
>   org.apache.maven.plugins
>   maven-jar-plugin
>   
> 
>   resources_common
>   package
>   
> jar
>   
>   
> resources_common
> 
>   **/resources_common
> 
>   
> 
>   
> 
>
>
> --
> Julien CARSIQUE, Nuxeo (Paris, France)
> www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
> Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform
> [EMAIL PROTECTED] | Tel: +33 1 40 33 79 87 / +33 6 09 06 38 03
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


building a resources artifact

2008-07-25 Thread Julien CARSIQUE

Hi,

I need to build an artifact containing only resources, no Java source.
These resources are in scr/main/... in a project with "pom" packaging type.

I tried with maven-jar-plugin with no success, the built jar is empty of 
the wanted resources :

[INFO] [jar:jar {execution: resources_common}]
[WARNING] JAR will be empty - no content was marked for inclusion!

How can I do this ?

Here is the plugin definition :
 
   org.apache.maven.plugins
   maven-jar-plugin
   
 
   resources_common
   package
   
 jar
   
   
 resources_common
 
   **/resources_common
 
   
 
   
 


--
Julien CARSIQUE, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform 
[EMAIL PROTECTED] | Tel: +33 1 40 33 79 87 / +33 6 09 06 38 03



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



Re: packaging wars

2008-07-25 Thread Stefan Seidel

Hi,

I think we have two cases that are similar: Firstly, EJBs where only 
deployment descriptors are different. For this we use

+ parent
+- generic
+- specific1
+- specific2
All the sources are in generic/src/main/java.
parent has pom and 
../generic/src/main/java

specific1 and 2 have src/main/resources and different artifactIds.

The other one is about sharing JSP fragments between WARs, and we use 
the dependency plugin for that:

+ common
+ war-parent
+- war1
+- war2
+- war3
In war-parent we have:

  common
  provided

and
  

  
maven-dependency-plugin
2.1-SNAPSHOT

  
expand common JSP fragments

  unpack-dependencies

generate-test-resources

  group.id
  common
  true
  **/*.jsp*

${project.build.directory}/webapp

  

  
Likewise, you could unpack your resources to 
${project.build.directory}/generates-resources and 
${project.build.directory}/generated-sources.


HTH,

Stefan



Jean-Paul Vallée wrote:

Thanks, Jeff and manuel
I think i will have a look at overlays, your explainations seem to be what i
want to do.
But, is there a smarter way to do what i want, ie merge generic and specific
artifact when building the specific artifact.




--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: How to skip JAR creation

2008-07-25 Thread syllepsa

Thanks Jeff. It works!

Mariusz


Jeff MAURY wrote:
> 
> Bind the maven-exec-plugin to a phase like process-resources and run maven
> against this phase --> JAR won't be produced
> 
> Jeff MAURY
> 
> 
> On 7/25/08, syllepsa <[EMAIL PROTECTED]> wrote:
>>
>>
>> Maybe I will describe what I want to do. I wrote some xslt
>> transformation.
>> My
>> xml files are transformed by two external programs. Thus I need to run
>> these
>> two apps via maven-exec-plugin (and it's done). So...
>>
>> 1. I don't need compile sources and copy them to the target directory.
>> 2. I don't need create jar file.
>> 3. I don't need copy my resources (xml, xsl, exe) into target directory.
>>
>> Regards
>>
>> Mariusz
>>
>>
>> syllepsa wrote:
>> >
>> >
>> >
>> > Stephen Connolly-2 wrote:
>> >>
>> >> Alternatively, you could use pom packaging if you do not intend for
>> your
>> >> module to ever produce a jar
>> >>
>> >> On Fri, Jul 25, 2008 at 8:48 AM, Manuel EVENO <[EMAIL PROTECTED]>
>> >> wrote:
>> >>
>> >>> Do you want to use an external program to create the jar ?
>> >>> On this point, I'm joining Jeff 
>> >>>
>> >>> Otherwise, you can target plugin goals directly by calling :
>> >>> mvn exec:exec
>> >>>
>> >>> Manuel
>> >>>
>> >>> On Fri, Jul 25, 2008 at 9:39 AM, syllepsa <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> >
>> >>> > Hi,
>> >>> >
>> >>> > Is it possible to turn off JAR building? I just want to run
>> external
>> >>> > program
>> >>> > via maven-exec-plugin.
>> >>> >
>> >>> > Thank you in advance
>> >>> >
>> >>> > Mariusz
>> >>> > --
>> >>> > View this message in context:
>> >>> >
>> >>>
>> http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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]
>> >>> >
>> >>> >
>> >>>
>> >>
>> >>
>> >
>> > I know how to run external program via maven-exec-plugin. The problem
>> is
>> > that the whole process takes too long (at least much longer than ANT
>> > does). Thus I wanted to skip JAR building (simply I don't need it).
>> >
>> > Regards
>> >
>> > Mariusz
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18647438.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]
>>
>>
> 
> 
> -- 
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
> 
> Miossec (2006)
> 
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.lastfm.fr/listen/user/jeffmaury/personal
> 
> 
> -
> http://riadiscuss.blogspot.com 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18648082.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: How to skip JAR creation

2008-07-25 Thread Jeff MAURY
Bind the maven-exec-plugin to a phase like process-resources and run maven
against this phase --> JAR won't be produced

Jeff MAURY


On 7/25/08, syllepsa <[EMAIL PROTECTED]> wrote:
>
>
> Maybe I will describe what I want to do. I wrote some xslt transformation.
> My
> xml files are transformed by two external programs. Thus I need to run
> these
> two apps via maven-exec-plugin (and it's done). So...
>
> 1. I don't need compile sources and copy them to the target directory.
> 2. I don't need create jar file.
> 3. I don't need copy my resources (xml, xsl, exe) into target directory.
>
> Regards
>
> Mariusz
>
>
> syllepsa wrote:
> >
> >
> >
> > Stephen Connolly-2 wrote:
> >>
> >> Alternatively, you could use pom packaging if you do not intend for your
> >> module to ever produce a jar
> >>
> >> On Fri, Jul 25, 2008 at 8:48 AM, Manuel EVENO <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >>> Do you want to use an external program to create the jar ?
> >>> On this point, I'm joining Jeff 
> >>>
> >>> Otherwise, you can target plugin goals directly by calling :
> >>> mvn exec:exec
> >>>
> >>> Manuel
> >>>
> >>> On Fri, Jul 25, 2008 at 9:39 AM, syllepsa <[EMAIL PROTECTED]> wrote:
> >>>
> >>> >
> >>> > Hi,
> >>> >
> >>> > Is it possible to turn off JAR building? I just want to run external
> >>> > program
> >>> > via maven-exec-plugin.
> >>> >
> >>> > Thank you in advance
> >>> >
> >>> > Mariusz
> >>> > --
> >>> > View this message in context:
> >>> >
> >>>
> http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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]
> >>> >
> >>> >
> >>>
> >>
> >>
> >
> > I know how to run external program via maven-exec-plugin. The problem is
> > that the whole process takes too long (at least much longer than ANT
> > does). Thus I wanted to skip JAR building (simply I don't need it).
> >
> > Regards
> >
> > Mariusz
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18647438.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]
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


Re: packaging wars

2008-07-25 Thread Jean-Paul Vallée
Thanks, Jeff and manuel
I think i will have a look at overlays, your explainations seem to be what i
want to do.
But, is there a smarter way to do what i want, ie merge generic and specific
artifact when building the specific artifact.


Re: How to skip JAR creation

2008-07-25 Thread syllepsa

Maybe I will describe what I want to do. I wrote some xslt transformation. My
xml files are transformed by two external programs. Thus I need to run these
two apps via maven-exec-plugin (and it's done). So... 

1. I don't need compile sources and copy them to the target directory.
2. I don't need create jar file.
3. I don't need copy my resources (xml, xsl, exe) into target directory.

Regards

Mariusz


syllepsa wrote:
> 
> 
> 
> Stephen Connolly-2 wrote:
>> 
>> Alternatively, you could use pom packaging if you do not intend for your
>> module to ever produce a jar
>> 
>> On Fri, Jul 25, 2008 at 8:48 AM, Manuel EVENO <[EMAIL PROTECTED]>
>> wrote:
>> 
>>> Do you want to use an external program to create the jar ?
>>> On this point, I'm joining Jeff 
>>>
>>> Otherwise, you can target plugin goals directly by calling :
>>> mvn exec:exec
>>>
>>> Manuel
>>>
>>> On Fri, Jul 25, 2008 at 9:39 AM, syllepsa <[EMAIL PROTECTED]> wrote:
>>>
>>> >
>>> > Hi,
>>> >
>>> > Is it possible to turn off JAR building? I just want to run external
>>> > program
>>> > via maven-exec-plugin.
>>> >
>>> > Thank you in advance
>>> >
>>> > Mariusz
>>> > --
>>> > View this message in context:
>>> >
>>> http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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]
>>> >
>>> >
>>>
>> 
>> 
> 
> I know how to run external program via maven-exec-plugin. The problem is
> that the whole process takes too long (at least much longer than ANT
> does). Thus I wanted to skip JAR building (simply I don't need it). 
> 
> Regards 
> 
> Mariusz
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18647438.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: How to skip JAR creation

2008-07-25 Thread syllepsa



Stephen Connolly-2 wrote:
> 
> Alternatively, you could use pom packaging if you do not intend for your
> module to ever produce a jar
> 
> On Fri, Jul 25, 2008 at 8:48 AM, Manuel EVENO <[EMAIL PROTECTED]>
> wrote:
> 
>> Do you want to use an external program to create the jar ?
>> On this point, I'm joining Jeff 
>>
>> Otherwise, you can target plugin goals directly by calling :
>> mvn exec:exec
>>
>> Manuel
>>
>> On Fri, Jul 25, 2008 at 9:39 AM, syllepsa <[EMAIL PROTECTED]> wrote:
>>
>> >
>> > Hi,
>> >
>> > Is it possible to turn off JAR building? I just want to run external
>> > program
>> > via maven-exec-plugin.
>> >
>> > Thank you in advance
>> >
>> > Mariusz
>> > --
>> > View this message in context:
>> > http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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]
>> >
>> >
>>
> 
> 

I know how to run external program via maven-exec-plugin. The problem is
that the whole process takes too long (at least much longer than ANT does).
Thus I wanted to skip JAR building (simply I don't need it). 

Regards 

Mariusz
-- 
View this message in context: 
http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18647312.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: How to skip JAR creation

2008-07-25 Thread Stephen Connolly
Alternatively, you could use pom packaging if you do not intend for your
module to ever produce a jar

On Fri, Jul 25, 2008 at 8:48 AM, Manuel EVENO <[EMAIL PROTECTED]>
wrote:

> Do you want to use an external program to create the jar ?
> On this point, I'm joining Jeff 
>
> Otherwise, you can target plugin goals directly by calling :
> mvn exec:exec
>
> Manuel
>
> On Fri, Jul 25, 2008 at 9:39 AM, syllepsa <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi,
> >
> > Is it possible to turn off JAR building? I just want to run external
> > program
> > via maven-exec-plugin.
> >
> > Thank you in advance
> >
> > Mariusz
> > --
> > View this message in context:
> > http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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: Filtering source code?

2008-07-25 Thread Stephen Connolly
You could use the resource plugin bound the the generate-sources phase and
then use the buildhelper plugin to add the generated sources to the list of
sources

On Fri, Jul 25, 2008 at 8:46 AM, Mark Derricutt <[EMAIL PROTECTED]> wrote:

> Is there anyway to filter .java code to replace variable references the
> same
> was filtering resources?
>
> I'm pretty sure I remember seeing something about it somewhere but can't
> find any references to it.
>
> Mark
>
> --
> "It is easier to optimize correct code than to correct optimized code." --
> Bill Harlan
>


Re: How to skip JAR creation

2008-07-25 Thread Manuel EVENO
Do you want to use an external program to create the jar ?
On this point, I'm joining Jeff 

Otherwise, you can target plugin goals directly by calling :
mvn exec:exec

Manuel

On Fri, Jul 25, 2008 at 9:39 AM, syllepsa <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Is it possible to turn off JAR building? I just want to run external
> program
> via maven-exec-plugin.
>
> Thank you in advance
>
> Mariusz
> --
> View this message in context:
> http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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]
>
>


Filtering source code?

2008-07-25 Thread Mark Derricutt
Is there anyway to filter .java code to replace variable references the same
was filtering resources?

I'm pretty sure I remember seeing something about it somewhere but can't
find any references to it.

Mark

-- 
"It is easier to optimize correct code than to correct optimized code." --
Bill Harlan


Re: How to skip JAR creation

2008-07-25 Thread Jeff MAURY
I think this is a bad practice. Why do you need an external program. I think
you should look at all the maven jar plugin configuration options to make
sure the maven jar plugin cannot do what you need.

Jeff MAURY


On 7/25/08, syllepsa <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Is it possible to turn off JAR building? I just want to run external
> program
> via maven-exec-plugin.
>
> Thank you in advance
>
> Mariusz
> --
> View this message in context:
> http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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]
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


How to skip JAR creation

2008-07-25 Thread syllepsa

Hi,

Is it possible to turn off JAR building? I just want to run external program
via maven-exec-plugin. 

Thank you in advance

Mariusz 
-- 
View this message in context: 
http://www.nabble.com/How-to-skip-JAR-creation-tp18646725p18646725.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: packaging wars

2008-07-25 Thread Manuel EVENO
I'm not sure to complete understand your needs but I think using war
overlays
may fill your needs :
http://maven.apache.org/plugins/maven-war-plugin/overlays.html

Create one war with the common stuff
Create another with the specific stuff war and with a dependency of type war
to the common war.
It will merge the common-war with the specific war ...

Manuel

On Thu, Jul 24, 2008 at 10:23 PM, Jean-Paul Vallée <
[EMAIL PROTECTED]> wrote:

> Hi,
> I want to use maven for creating portlets.
> The portlets will be deployed on a liferay portal
> So the problem i want to solve is:
> I do not want to make my portlets specific to a portal implementation,
> so using maven, i want to create 2 artifacts: com.mycompany:portlet-foo
> and com.mycompany:portlet-liferay-specific-foo
> com.mycompany:portlet-liferay-specific-foo depending on
> com.mycompany:portlet-foo
> i want in the com.mycompany:portlet-liferay-specific-foo project only
> the delta(i mean the specific files and modification needed by liferay,
> pluto, jboss...)
> and when packaging com.mycompany:portlet-liferay-specific-foo i want it
> integrate also the files and structure from com.mycompany:portlet-foo
> As this i could have a solution to have my portlets not specific to a
> portal solution
>
> Other question, even it is not specific to maven (sorry), is there a
> portlet container plugin that could just make me test my 'not specific'
> portlets.
>
> Thanks
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>