Maven 2 Archetypes : Folder name with velocity macro using homemade property

2011-11-29 Thread Julien PLAQUEVENT
Hi,

I'm currently developping a Maven 2 multimodule archetype (Maven Archetype
Plugin 2.2) under Linux Debian Squeeze. I have two issues (text in red in
this message) I'd appreciate some help solving.

I'd like to use a homemade property (set up as a required property from
archetype-metadata.xml) in the name of one of the modules I generate. I
can't find any clue on Google for this really specific case. Is it possible
to do so ? Do I have to declare this property somewhere else than in
my archetype-metadata.xml file ? Is there a prefix like the "root" one for
rootArtifactId (I hardly think so but... it's driving me nuts) ?

*Works :*
- Using __rootArtifactId__ in the name of a project folder
- Using my custom property eventName in files (Velocity macros like
${eventName})

*Doesn't work :*
- Using my custom property __eventName__ in the name of a project folder

Last question : is it possible to use .toLowerCase() method in a macro for
a folder name like __eventName.toLowerCase__ ?

Thanks,

Best Regards,

Julien Plaquevent
plaquev...@gmail.com
Thales Critical Information Services


Re: Unable to read the metadata file for artifact 'org.apache.geronimo.specs:geronimo-acti

2011-11-29 Thread Zilvinas Vilutis
Parent pom version ( in the child pom.xml ) is null

Žilvinas Vilutis

Mobile:   (+1) 623 330 6048
E-mail:   cika...@gmail.com



On Tue, Nov 29, 2011 at 2:20 PM, Jorge Infante Osorio  wrote:
> Hi all.
>
> I´m trying to compile a project and I receive this error. Any idea?
>
>
>
> [INFO] For more information, run Maven with the -e switch
>
> [INFO]
> 
>
> [INFO] Total time: 2 seconds
>
> [INFO] Finished at: Tue Nov 29 16:05:06 EST 2011
>
> [INFO] Final Memory: 5M/10M
>
> [INFO]
> 
>
> D:\DesarrolloWS\codigo_ejemplos\surcharge-stock-quote-mediator-2>mvn compile
> -e
>
> + Error stacktraces are turned on.
>
> [INFO] Scanning for projects...
>
> [INFO]
> 
>
> [INFO] Building Surcharge Stock Quote Custom Mediator
>
> [INFO]    task-segment: [compile]
>
> [INFO]
> 
>
> [INFO] [resources:resources]
>
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
>
> [INFO] Copying 2 resources
>
> [INFO]
> 
>
> [ERROR] BUILD ERROR
>
> [INFO]
> 
>
> [INFO] Error building POM (may not be this project's POM).
>
>
>
>
>
> Project ID: org.apache.geronimo.genesis.config:config:pom:null
>
>
>
> Reason: Cannot find parent: org.apache.geronimo.genesis:genesis for project:
> org.apache.geronimo.genesis.config:config:pom:null for project
> org.apache.geronimo.genesis.config:confi
>
> g:pom:null
>
>
>
>
>
> [INFO]
> 
>
> [INFO] Trace
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
> dependency information: Unable to read the metadata file for artifact
> 'org.apache.geronimo.specs:geronimo-acti
>
> vation_1.1_spec:jar': Cannot find parent:
> org.apache.geronimo.genesis:genesis for project:
> org.apache.geronimo.genesis.config:config:pom:null for project
> org.apache.geronimo.genesi
>
> s.config:config:pom:null
>
>  org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.2
>
>
>
> from the specified remote repositories:
>
>  apache.snapshots (http://repository.apache.org/snapshots),
>
>  central (http://repo1.maven.org/maven2),
>
>  wso2-m2-snapshots (http://dist.wso2.org/snapshots/maven2/),
>
>  wso2-m2 (http://dist.wso2.org/maven2/),
>
>  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)
>
>
>
> Path to dependency:
>
>        1)
> org.wso2.esb.tutorial.mediators:surcharge-stock-quote-mediator:jar:SNAPSHOT
>
>        2) org.apache.synapse:synapse-core:jar:2.1.0-wso2v4
>
>        3) org.wso2.securevault:org.wso2.securevault:jar:1.0.0
>
>        4) org.apache.ws.commons.axiom:axiom-api:jar:1.2.11
>
>
>
>
>
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
> cycleExecutor.java:695)
>
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:540)
>
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
> ycleExecutor.java:519)
>
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
> ures(DefaultLifecycleExecutor.java:371)
>
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
> ultLifecycleExecutor.java:332)
>
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.java:181)
>
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>
>        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:597)
>
>        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.artifact.resolver.ArtifactResolutionException:
> Unable to get dependency information: Unable to read the metadata file for
> artifact 'org.apache.geronimo.
>
> specs:geronimo-activation_1.1_spec:jar': Cannot find parent:
> org.apache.geronimo.genesis:genesis for project:
> org.apache.geronimo.genesis.confi

Re: generate-test-resources lifecycle question

2011-11-29 Thread Zilvinas Vilutis
Basically parent pom defines the project ( modules ) and rules for all
child poms that will be applied for each of the children, so you would
not need to re-write them ( e.g. dependency versions, plugin versions,
plugin execution & etc. )

Did you define this in your parent pom?

Žilvinas Vilutis

Mobile:   (+1) 623 330 6048
E-mail:   cika...@gmail.com


On Tue, Nov 29, 2011 at 7:35 AM, Lonnie Lewis  wrote:
> I am working on a simple prototype project that involves (re)creating an HSQL
> database from JPA objects. The build works fine, but I notice the tasks in
> "generate-test-resources" are run multiple times.
>
> My build includes:
>
>
>      
>        org.codehaus.mojo
>        hibernate3-maven-plugin
>        2.2
>        
>          
>            generate-db
>            generate-test-resources
>            
>              hbm2ddl
>            
>            
>              
>                
>                  hbm2ddl
>                  jpaconfiguration
>                
>              
>              
>                demo
>                schema.ddl
>                false
>                true
>                true
>                true
>              
>            
>          
>        
>        
>          
>            org.hsqldb
>            hsqldb
>            2.0.0
>            compile
>          
>        
>        
>          
>            
>              hbm2ddl
>              jpaconfiguration
>            
>          
>          
>            demo
>            schema.ddl
>            false
>            true
>            true
>            true
>          
>        
>      
>
> Which is being executed 8 times in the build. Is that supposed to happen? We
> are required to use a parent POM by the customer, and I don't really know
> what it is doing. Could that be causing a problem?
>
> Is there a way to display the lifecycle goals as the build is progressing?
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/generate-test-resources-lifecycle-question-tp5032543p5032543.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven behind a Proxy

2011-11-29 Thread ypriverol
Hi:
  I configured my maven to use the proxy to retrieve the package from maven
repositories. The problem is when i want to copy the distribution of my
package to an external repository for example using scp. have maven the
posibility to use socksify? i don't find any other option.

Tahnks in advance


--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-behind-a-Proxy-tp5033928p5033928.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven Nar plugin Installation Problem

2011-11-29 Thread Satya
Hi Users,
   I am very new to Maven (Dummy), Using Apache site i manged to install and
compile a sample my-app program provided.

I have downloaded maven 3.0.3

Now I would like to use maven to Build and deploy my C++ projects. 

I managed to download Maven Nar plugin from site 
https://github.com/duns/maven-nar-plugin
https://github.com/duns/maven-nar-plugin 

But aftyer that I am not sure how to install that plugin,

I managed to move the downloaded to
~/.m2/repository/org/apache/maven/plugins directory
And tried to run command "mvn", It was not successfull and was asking that
it is missing cpptasks-parallel.

I managed to download cpptasks-parallel from 
https://github.com/duns/cpptasks-parallel
https://github.com/duns/cpptasks-parallel 

In cpptasks-parallel I ran comman "mvn" or "mvn install", But it still
generating some errors,

Can you please help with proper versions required and their compatibility.

Please help me ASAP,

Thanks In Advance.
Satya.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Nar-plugin-Installation-Problem-tp5033148p5033148.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



generate-test-resources lifecycle question

2011-11-29 Thread Lonnie Lewis
I am working on a simple prototype project that involves (re)creating an HSQL
database from JPA objects. The build works fine, but I notice the tasks in
"generate-test-resources" are run multiple times. 

My build includes:


  
org.codehaus.mojo
hibernate3-maven-plugin
2.2

  
generate-db
generate-test-resources

  hbm2ddl


  

  hbm2ddl
  jpaconfiguration

  
  
demo
schema.ddl
false
true
true
true
  

  


  
org.hsqldb
hsqldb
2.0.0
compile
  


  

  hbm2ddl
  jpaconfiguration

  
  
demo
schema.ddl
false
true
true
true
  

  

Which is being executed 8 times in the build. Is that supposed to happen? We
are required to use a parent POM by the customer, and I don't really know
what it is doing. Could that be causing a problem?

Is there a way to display the lifecycle goals as the build is progressing?

--
View this message in context: 
http://maven.40175.n5.nabble.com/generate-test-resources-lifecycle-question-tp5032543p5032543.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



ANN: h2-maven-plugin 1.0

2011-11-29 Thread Laird Nelson
My apologies if this is not the appropriate kind of list for this sort of
thing, but I thought that other Maven users might be interested in my
h2-maven-plugin: https://github.com/ljnelson/h2-maven-plugin.  I asked on
IRC if there was a better list but got no replies.

Anyway, it should be available in Central shortly; feedback is welcome and
encouraged.

Thanks,
Laird

-- 
http://about.me/lairdnelson


Unable to read the metadata file for artifact 'org.apache.geronimo.specs:geronimo-acti

2011-11-29 Thread Jorge Infante Osorio
Hi all.

I´m trying to compile a project and I receive this error. Any idea?

 

[INFO] For more information, run Maven with the -e switch

[INFO]


[INFO] Total time: 2 seconds

[INFO] Finished at: Tue Nov 29 16:05:06 EST 2011

[INFO] Final Memory: 5M/10M

[INFO]


D:\DesarrolloWS\codigo_ejemplos\surcharge-stock-quote-mediator-2>mvn compile
-e

+ Error stacktraces are turned on.

[INFO] Scanning for projects...

[INFO]


[INFO] Building Surcharge Stock Quote Custom Mediator

[INFO]task-segment: [compile]

[INFO]


[INFO] [resources:resources]

[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!

[INFO] Copying 2 resources

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: org.apache.geronimo.genesis.config:config:pom:null

 

Reason: Cannot find parent: org.apache.geronimo.genesis:genesis for project:
org.apache.geronimo.genesis.config:config:pom:null for project
org.apache.geronimo.genesis.config:confi

g:pom:null

 

 

[INFO]


[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
dependency information: Unable to read the metadata file for artifact
'org.apache.geronimo.specs:geronimo-acti

vation_1.1_spec:jar': Cannot find parent:
org.apache.geronimo.genesis:genesis for project:
org.apache.geronimo.genesis.config:config:pom:null for project
org.apache.geronimo.genesi

s.config:config:pom:null

  org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.2

 

from the specified remote repositories:

  apache.snapshots (http://repository.apache.org/snapshots),

  central (http://repo1.maven.org/maven2),

  wso2-m2-snapshots (http://dist.wso2.org/snapshots/maven2/),

  wso2-m2 (http://dist.wso2.org/maven2/),

  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)

 

Path to dependency:

1)
org.wso2.esb.tutorial.mediators:surcharge-stock-quote-mediator:jar:SNAPSHOT

2) org.apache.synapse:synapse-core:jar:2.1.0-wso2v4

3) org.wso2.securevault:org.wso2.securevault:jar:1.0.0

4) org.apache.ws.commons.axiom:axiom-api:jar:1.2.11

 

 

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:695)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:540)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:519)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:371)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:332)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:181)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)

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:597)

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.artifact.resolver.ArtifactResolutionException:
Unable to get dependency information: Unable to read the metadata file for
artifact 'org.apache.geronimo.

specs:geronimo-activation_1.1_spec:jar': Cannot find parent:
org.apache.geronimo.genesis:genesis for project:
org.apache.geronimo.genesis.config:config:pom:null for project org.apa

che.geronimo.genesis.config:config:pom:null

  org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.2

 

from the specified remote repositories:

  apache.snapshots (http://repository.apache.org/snapshots),

  central (http://repo1.maven.org/maven2),

  wso2-m2-snapshots (http://dist.wso2.org/snapshots/maven2/),

  wso2-m2 (http://dist.wso2.org/maven2/),

  apache-snapshots (http://

Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

2011-11-29 Thread Mirko Friedenhagen
Thanks Olivier, I now use `checkstyle` as reportSet in my non-module
projects. I created a bug report at
http://jira.codehaus.org/browse/MCHECKSTYLE-167 as I think it is
unexpected, that I have to configure a reportSet at all for a
non-module project and the number of reported issues in the aggregate
report is wrong as well.

Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/



On Tue, Nov 29, 2011 at 21:11, Olivier Lamy  wrote:
> If you do
>  
>    
>      
>        org.apache.maven.plugins
>        maven-checkstyle-plugin
>        2.8
>      
>      ...
>    
>  
>
> Maven will execute all mojos of type Report
>
> If you want only the aggregate one
>  
>    
> .
>          
>            org.apache.maven.plugins
>            maven-checkstyle-plugin
>            2.8
>            false
>            
>              
>                
>                  checkstyle-aggregate
>                
>              
>            
>          
>      ...
>    
>  
>
> HTH
>
> 2011/11/29 Mirko Friedenhagen :
>> I did not see immediately a solution how to do this. Would you shed
>> the light :-)?
>> Regards Mirko
>>
>> On Tue, Nov 29, 2011 at 09:38, Anders Hammar  wrote:
>>> I believe that might have been a change in v2.8. It can be "fixed" by
>>> specifying that only the 'checkstyle' report should be used.
>>>
>>> /Anders
>>>
>>> On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen
>>>  wrote:
 Hello,

 I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find
 two reports for checkstyle:

 http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues)
 and
 http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html
 (423 issues)

 The latter one is (almost) duplicating the number of the checkstyle
 issues in the report.

 The POM might be found at
 https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml

 Any hints what is going wrong?

 Regards Mirko
 --
 http://illegalstateexception.blogspot.com/
 https://github.com/mfriedenhagen/
 https://bitbucket.org/mfriedenhagen/

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>
>
>
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

2011-11-29 Thread Olivier Lamy
If you do
  

  
org.apache.maven.plugins
maven-checkstyle-plugin
2.8
  
  ...

  

Maven will execute all mojos of type Report

If you want only the aggregate one
  

.
  
org.apache.maven.plugins
maven-checkstyle-plugin
2.8
false

  

  checkstyle-aggregate

  

  
  ...

  

HTH

2011/11/29 Mirko Friedenhagen :
> I did not see immediately a solution how to do this. Would you shed
> the light :-)?
> Regards Mirko
>
> On Tue, Nov 29, 2011 at 09:38, Anders Hammar  wrote:
>> I believe that might have been a change in v2.8. It can be "fixed" by
>> specifying that only the 'checkstyle' report should be used.
>>
>> /Anders
>>
>> On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen
>>  wrote:
>>> Hello,
>>>
>>> I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find
>>> two reports for checkstyle:
>>>
>>> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues)
>>> and
>>> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html
>>> (423 issues)
>>>
>>> The latter one is (almost) duplicating the number of the checkstyle
>>> issues in the report.
>>>
>>> The POM might be found at
>>> https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml
>>>
>>> Any hints what is going wrong?
>>>
>>> Regards Mirko
>>> --
>>> http://illegalstateexception.blogspot.com/
>>> https://github.com/mfriedenhagen/
>>> https://bitbucket.org/mfriedenhagen/
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

2011-11-29 Thread Mirko Friedenhagen
I did not see immediately a solution how to do this. Would you shed
the light :-)?
Regards Mirko

On Tue, Nov 29, 2011 at 09:38, Anders Hammar  wrote:
> I believe that might have been a change in v2.8. It can be "fixed" by
> specifying that only the 'checkstyle' report should be used.
>
> /Anders
>
> On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen
>  wrote:
>> Hello,
>>
>> I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find
>> two reports for checkstyle:
>>
>> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues)
>> and
>> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html
>> (423 issues)
>>
>> The latter one is (almost) duplicating the number of the checkstyle
>> issues in the report.
>>
>> The POM might be found at
>> https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml
>>
>> Any hints what is going wrong?
>>
>> Regards Mirko
>> --
>> http://illegalstateexception.blogspot.com/
>> https://github.com/mfriedenhagen/
>> https://bitbucket.org/mfriedenhagen/
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Error introduced by maven-clean-plugin using Jetty and Spring

2011-11-29 Thread hsparks
I've been using maven routinely to build a spring and jetty based webapp.
For testing, I use the war:inplace goal.

I wanted a convenient way to clean up the lib directory created in my source
directory (WEB-INF/lib), so I added this plugin to my pom:


maven-clean-plugin
2.4.1



${webroot}/WEB-INF/lib





Invoked by "mvn clean", it works perfectly.

But now when I run my webapp with jetty:

mvn war:inplace jetty:run

I get a warning that never appeared before:

WARN  main org.springframework.beans.GenericTypeAwarePropertyDescriptor 
- 
Invalid JavaBean property 'locations' being accessed! 
Ambiguous write methods found next to actually used 
[public void
org.apache.cocoon.spring.configurator.impl.ExtendedPropertyOverrideConfigurer
.setLocations(java.util.List)]: 
[public void org.springframework.core.io.support.PropertiesLoaderSupport
.setLocations(org.springframework.core.io.Resource[])]

Here's the war and jetty configuration:


maven-war-plugin
2.0.2
 

org.mortbay.jetty
maven-jetty-plugin
6.1.7




3


/



The webroot placeholder has the value "src/main/webapp".
The Spring framework is at version 3.0.5-RELEASE.
I've tried a few other versions of maven-clean-plugin with the same results.

The problem may have nothing to do with maven, but in that case advice about
where to inquire next would be very welcome.

Thanks!



--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-introduced-by-maven-clean-plugin-using-Jetty-and-Spring-tp5033036p5033036.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Into exec:exec goal is possible to customize classpath?

2011-11-29 Thread Winch
Hi

I have the following issue :

1. I use exec:exec goal to launch in a separate jvm the compiled project
2. I do not launch classes contained into target/classes folder but I
re-arrange in different path under target folder
3. I use the parameters classpathScope and argument to generate dinamically
classpath for point 1
[
e.g.
..
..

  ${project.build.directory}
  java
  compile
  
-classpath



my.main.class
  

]


Is possible to remove from generated classpath target/classes folder?

I have this issue because I want prevent the auto build feature of some IDE
that re-write .class into target/folder
when then jvm of point 1 is running.

Thank a lot for help.
Vincenzo


Re: Parallel development on multiple dependent projects

2011-11-29 Thread Wayne Fay
> As one has to declare a certain version number in A's pom.xml there is no
> way to tell maven always to use the development-version (or trunk-version)
> of B and C which haven't been released so far.

Use SNAPSHOT-versioned artifacts on all artifacts
plus frequent deployment of latest snapshots (via CI server perhaps)
plus updatePolicy of always for the repo these artifacts are being deployed into
should get you down the right path.

Otherwise keep checking in (and out) sources and build from top parent
if there is one.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



releasing multi module project

2011-11-29 Thread Prashant Neginahal
HI,

I have below multi module project structure.

parent-1.0-SNAPSHOT
--childA-1.0-SNAPSHOT
 --childB-1.0-SNAPSHOT

childA-1.0-SNAPSHOT is depending on --childB-1.0-SNAPSHOT. When i start
releasing parent-1.0-SNAPSHOT, it is complaining that childA-1.0-SNAPSHOT
has snapshot dependency on childB. But, it is still not released, I am
trying to release multi module project.

How do i fix this?

Thanks,
Prashant


Re: Parallel development on multiple dependent projects

2011-11-29 Thread Guillaume Polet

I think you are looking for the SNAPSHOT of your projects.

You just have to add -SNAPSHOT behind your version (in both the your 
depending on project and your dependency)


1.0-SNAPSHOT

Cheers,

Guillaume
Le 29/11/2011 15:42, Abid Hussain a écrit :

Hi all,

I wonder if maven can handle the scenario when multiple projects (which are 
dependent on each other) are developed concurrently.

E.g. we have a project A which is dependent on projects B and C. All projects 
are at development stage. When developing on A one wants to use the latest 
features in dependent projects B and C at current development stage.

As one has to declare a certain version number in A's pom.xml there is no way 
to tell maven always to use the development-version (or trunk-version) of B and 
C which haven't been released so far.

So, is there a way to declare dependencies on modules which haven't been 
released so far?

Regards,

Abid



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Parallel development on multiple dependent projects

2011-11-29 Thread Abid Hussain
Hi all,

I wonder if maven can handle the scenario when multiple projects (which are 
dependent on each other) are developed concurrently.

E.g. we have a project A which is dependent on projects B and C. All projects 
are at development stage. When developing on A one wants to use the latest 
features in dependent projects B and C at current development stage.

As one has to declare a certain version number in A's pom.xml there is no way 
to tell maven always to use the development-version (or trunk-version) of B and 
C which haven't been released so far. 

So, is there a way to declare dependencies on modules which haven't been 
released so far?

Regards,

Abid
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

2011-11-29 Thread Anders Hammar
I believe that might have been a change in v2.8. It can be "fixed" by
specifying that only the 'checkstyle' report should be used.

/Anders

On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen
 wrote:
> Hello,
>
> I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find
> two reports for checkstyle:
>
> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues)
> and
> http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html
> (423 issues)
>
> The latter one is (almost) duplicating the number of the checkstyle
> issues in the report.
>
> The POM might be found at
> https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml
>
> Any hints what is going wrong?
>
> Regards Mirko
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/
> https://bitbucket.org/mfriedenhagen/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org