Re: Use local settings with Maven

2006-04-18 Thread alex_mayorga

This is a known bug http://jira.codehaus.org/browse/CONTINUUM-590 and would
be fixed in upcoming version 1.0.3 that we all are eager to get ;)

Regards,
Alex Mayorga Adame
--
View this message in context: 
http://www.nabble.com/Use-local-settings-with-Maven-t1469885.html#a3974743
Sent from the Continuum - Users forum at Nabble.com.



Re: best way to choose between development/production files

2006-04-18 Thread Ray Tsang
sound like you should use profiles or resource filters

http://maven.apache.org/guides/introduction/introduction-to-profiles.html
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files?

ray,

On 4/18/06, Janos Mucsi [EMAIL PROTECTED] wrote:
 Hi
   Some resource files are different in development, so I want to overwrite 
 the production files when building for dev.
   src
main
 java
 conf
  development
  production


   What is the smartest way to overlay some files? Using an embedded Ant 
 script? Where do I specify the switch condition? On the command line? By the 
 way, what is also the best way to lay out the directories?


   Thanks.
   Janos


 -
 Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
 with Yahoo! Messenger with Voice.



Re: generating Classpath for war modules

2006-04-18 Thread Janos Mucsi
  Wayne
  Thanks for replying, but it does not work. Here is your  advice:
   
  I think you're looking for...

plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
   archive
 manifest
   addClasspathtrue/addClasspath
 /manifest
   /archive
 /configuration
/plugin

HTH.
Wayne

   
  Here is my POM:
   
  dependency
  groupIdspringframework/groupId
  artifactIdspring/artifactId
  version1.2.6/version
  scoperuntime/scope
  /dependency
  /dependencies
  build
  plugins
  
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration 
  manifest addClasspathtrue/addClasspath /manifest
  
  warSourceDirectory${basedir}/WebContent/warSourceDirectory
  webXml${basedir}/WebContent/WEB-INF/web.xml/webXml
  !-- excludes**/*.jar/excludes --
  /configuration
  /plugin
  /plugins 


-
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

archetype.xml

2006-04-18 Thread Ray Tsang
Hi all,

I read here, http://maven.apache.org/guides/mini/guide-creating-archetypes.html,
that to add test sources and test resources, it should use a different
tag than source and resource... but which one is it?  the
documentation is ambiguous on the syntax, it specified test-resource
and testReource... i tried both but none seem to work.  I guess
there are 2 issues:

1. which tag is to be used?
2. it doesn't work, is it not supposed to be used at all?

ray,


[m1] AspectJ plugin and Clover

2006-04-18 Thread Wim Deblauwe
Hi,

is any work being done to get AspectJ plugin to work with Clover? I am
testing with the latest version of the aspectj plugin and I also get bug
MPCLOVER-47 (http://jira.codehaus.org/browse/MPCLOVER-47). This bug is a
real blocker to add aspectj support to my module. I don't want to lose the
Clover reports!

regards,

Wim


Re: Getting started with maven 2

2006-04-18 Thread Emmanuel Venisse

It's fixed now in svn.

If you want to test it : 
http://snapshots.maven.codehaus.org/maven2/org/codehaus/plexus/plexus-formica/1.0-beta-10-SNAPSHOT/plexus-formica-1.0-beta-10-20060418.082139-2.jar


Emmanuel

Mark Reynolds a écrit :
This validation will also be broken on some of the newer generic 
top-level domains like .museum and .travel.


-- Mark R

Steve Coy wrote:


I got to the bottom of this.

We have a local internal domain so that internal host names look 
like blah.axegroup.local.


The URL validator is barfing because local is longer than 4 
characters. The code does not specify what authority upon which it 
bases this assumption.


Steve Coy

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, 11 
April 2006 12:32 AM

To: continuum-users@maven.apache.org
Subject: Re: Getting started with maven 2

The validation isn't done in continuum but in a plexus component:

Url format validation : 
http://svn.codehaus.org/trunk/plexus-components/plexus-formica/src/main/java/org/codehaus/plexus/formica/validation/UrlValidator.java?rev=2431root=plexusview=auto 



Url acess validation : 
http://svn.codehaus.org/trunk/plexus-components/plexus-formica/src/main/java/org/codehaus/plexus/formica/validation/UrlSourceValidator.java?rev=2863root=plexusview=auto 



We have some tests cases for these classes : 
http://svn.codehaus.org/trunk/plexus-components/plexus-formica/src/test/java/org/codehaus/plexus/formica/validation/?root=plexus 



Emmanuel

Steve Coy a écrit :


The logs contain no activity related to posting the form.

I've been digging through the code (the continuum-1.0.x branch) for 
the last couple of hours, but have not been able to identify which 
bit of code does the actual validation of the URL.


Any further help would be appreciated.

Steve

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Mon 4/10/2006 9:41 PM
To: continuum-users@maven.apache.org
Subject: Re: Getting started with maven 2
 
Do you have an error in logs?


Steve Coy a écrit :


Thanks for your prompt response.

If I drop the scm:svn: part of the url I still have the same problem.

Any other ideas?


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Mon 4/10/2006 5:42 PM
To: continuum-users@maven.apache.org
Subject: Re: Getting started with maven 2

In Add Project screen, only standard protocol are allowed (http, 
https, ftp). File protocol is allowed too if you define it in 
application.xml (see the FAQ)


Emmanuel

Steve Coy a écrit :



Hi,

I'm just getting started with continuum 1.0.2 and I'm having 
trouble adding a multi-module maven 2 project.


From the Add Maven 2.0+ Project page I'm entering the following


POM


Url:

scm:svn:http://my.userid:[EMAIL PROTECTED]/svn/project/mo
dul
e/trunk/pom.xml

and the response from continuum is:

[ You must provide a valid url ] in red.

Any ideas what could be wrong?

A wget on the continuum server successfully retrieves the pom.xml 
with this url.


Thanks for any help.


stephen coy






















Maven a Developer's notebook : Upgraded to M2 is available somewh ere online ?

2006-04-18 Thread Sharma, Jaikumar
Took a book on Maven -- Maven Developer's Notebook - just to get started and
to be comfortable using it, but found that examples in it --- not
working, because it is intended to be used with Maven 1.x. While Maven 2 is
complete re-write of version 1.x.
 
Who has this book : can note the following :
 
maven genapp   
   
-- does not work any more in M2.
 
Any online e-copy of this book, which is upgraded to M2; available somewhere
? 
 
Regards, Jaikumar
 
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


Maven with C++ projects

2006-04-18 Thread Vandermi Joao da Silva
Hi guys, I work with Maven2 and Continuum and it's very nice tools , but now I 
need work with C and C++ projects. 
How can work with C++ project in to maven2 projects. What the POM structure and 
how can use nar plugin? Can I use the report same java report, for example, 
documentation, changelog... ?
Please send me a feedback.
 
Best Regards
 
 

 

 

Vandermi Silva
RD MAO - Core Engines  

BenQ Eletroeletrônica Ltda. 

 

TEL +55(92) 2127-8015
Mobile: +55(92) 8125-2248
FAX +55(92) 2127-8102
[EMAIL PROTECTED]
www.BenQMobile.com
Av. Djalma Batista, 536 - São Geraldo 

Manaus-AM
Brasil

 

 

 


Re: Maven a Developer's notebook : Upgraded to M2 is available somewh ere online ?

2006-04-18 Thread Timo Westkämper

Hello.


I have just started reading Better Builds with Maven which was written 
for Maven 2.



You can get it for free from

http://www.mergere.com/products.jsp

Br,
Timo Westkämper.


Took a book on Maven -- Maven Developer's Notebook - just to get started and
to be comfortable using it, but found that examples in it --- not
working, because it is intended to be used with Maven 1.x. While Maven 2 is
complete re-write of version 1.x.
 
Who has this book : can note the following :
 
maven genapp   
   
-- does not work any more in M2.
 
Any online e-copy of this book, which is upgraded to M2; available somewhere
? 
 
Regards, Jaikumar
 
- - - - - - - DISCLAIMER- - - - - - - -

Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

  



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



RE: [m2] How to add generated sources in Ant MOJO [Need answer plz]

2006-04-18 Thread DELHOSTE Fabrice

Sorry but I could not find the way to do that by myself.
Please any help?
 
-Original Message-
From: DELHOSTE Fabrice [mailto:[EMAIL PROTECTED] 
Sent: jeudi 13 avril 2006 17:57
To: users@maven.apache.org
Subject: [m2] How to add generated sources in Ant MOJO

Hi all,

In other words, how can I add something to compileSourceRoots in a
custom Ant (not Java) plugin ?

Thanks,
Fabrice 


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



[m2] RMIService in SureFire Integration Tests Fails

2006-04-18 Thread Stevenson, Chris
Hi James,

I did indeed, for me the problem was with the path to where m2 was installed
on windows. It took me a while to find it but this is a known bug in the jdk
when invoking an RMI server from a directory with spaces in the path..

So to get around it I moved m2 from c:\program
files\Apache\Maven\Maven2\maven2.0.2\*

To 

C:\Work\Maven\maven2.0.2\*

And all worked fine.

Hope this helps with your prob.

Chris

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: 14 April 2006 14:37
To: [EMAIL PROTECTED]
Subject: RMI/SureFire

Mr. Stevenson,

Did you ever get your RMI stuff to run properly using the SureFire Maven2
plugin?  I'm trying to get it working and I'm getting the same exact error
message you were.  However, it runs flawlessly in Maven1.

James




The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 



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



Re: Best approach to deploy in websphere app server

2006-04-18 Thread David J. M. Karlsen

Wayne Fay wrote:

David, this URL does not work for me either.

When I go to just the root davidkarlsen.com page, it forwards me to
/portal which is a JBoss portal 2.0 release candidate site. Looks like
you're moving some stuff around...

Wayne



Sorry - I ran into some trouble just before deploying it - I'll check it 
out this evening and post back when it's OK.


Sorry for the inconvinience.

Dave


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

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



[m2] specifying the surefire-booter for cobertura?

2006-04-18 Thread Nigel Magnay
I'm suffering from SUREFIRE-30, which is down to the fact that the cobertura
plugin uses
surefire-booter-1.5.2.jar - which has this problem.

I have tried adding a different booter into the plugin :

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
 version2.0-SNAPSHOT/version
executions
execution
goals
goalclean/goal
/goals
/execution
/executions

dependencies
dependency
groupIdorg.apache.maven.surefire/groupId
artifactIdsurefire-booter/artifactId
version1.5.3-SNAPSHOT/version
/dependency
/dependencies

/plugin


But mvn -X shows it's still using the 1.5.2 jar:

[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\nigel.magney\.m2\repository\org\apache\maven\surefire\surefire\1.5
.2\surefire-1.5.2.jar

Short of recompiling all these dependent files ( having to distribute them
internally so everyone else's build works) is there a way of overriding this
behaviour ?


RE: Maven a Developer's notebook : Upgraded to M2 is available so mewh ere online ?

2006-04-18 Thread Sharma, Jaikumar
Thanks Timo.
BR.
Jaikumar

-Original Message-
From: Timo Westkämper [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 2:15 PM
To: Maven Users List
Subject: Re: Maven a Developer's notebook : Upgraded to M2 is available
somewh ere online ?


Hello.


I have just started reading Better Builds with Maven which was written 
for Maven 2.


You can get it for free from

http://www.mergere.com/products.jsp

Br,
Timo Westkämper.

 Took a book on Maven -- Maven Developer's Notebook - just to get 
 started and to be comfortable using it, but found that examples in it 
 --- not working, because it is intended to be used with Maven 1.x. 
 While Maven 2 is complete re-write of version 1.x.
  
 Who has this book : can note the following :
  
 maven genapp   

 -- does not work any more in M2.
  
 Any online e-copy of this book, which is upgraded to M2; available 
 somewhere ?
  
 Regards, Jaikumar
  
 - - - - - - - DISCLAIMER- - - - - - - -
 Unless indicated otherwise, the information contained in this message 
 is privileged and confidential, and is intended only for the use of 
 the
 addressee(s) named above and others who have been specifically authorized
to
 receive it. If you are not the intended recipient, you are hereby notified
 that any dissemination, distribution or copying of this message and/or
 attachments is strictly prohibited. The company accepts no liability for
any
 damage caused by any virus transmitted by this email. Furthermore, the
 company does not warrant a proper and complete transmission of this
 information, nor does it accept liability for any delays. If you have
 received this message in error, please contact the sender and delete the
 message. Thank you.

   


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

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liablility for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


Jira Changes plugin

2006-04-18 Thread javed mandary
Hi ,
 am getting a problem with the changes-maven-plugin , i keep getting a
stack trace error each time i execute mvn site

Here is the  configuration in my POM
-POM--
[...]
 issueManagement
systemJira/system
urlhttps://thisis.mycompany.com/issues/browse/MYPROJECT/url
/issueManagement
[...]
reporting
  [...]
plugin
groupIdorg.codehaus.mojo/groupId
   artifactIdchanges-maven-plugin/artifactId
/plugin
  [...]
/reporting
END POM

This is the stack trace am getting:

--ERROR TRACE--

[INFO] Downloading
https://thisis.mycompany.com/issues/browse/secure/IssueNavigator.
jspa?view=rsspid=sorter/field=createdsorter/order=DESCsorter/field=priorityso
rter/order=DESCtempMax=100reset=truedecorator=none
[WARNING] Received: [407]
org.xml.sax.SAXParseException: White spaces are required between publicId
and syst
emId.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPa
rseException(ErrorHandlerWrapper.java:236)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(
ErrorHandlerWrapper.java:215)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM
LErrorReporter.java:386)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM
LErrorReporter.java:316)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XML
Scanner.java:1438)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanExternalID
(XMLSc
anner.java:1024)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.scanDoct
END ERROR TRACE--

Does anyone who why am getting this error message?

thanks,
Javed


Re: Best approach to deploy in websphere app server

2006-04-18 Thread David J. M. Karlsen

Wayne Fay wrote:

David, this URL does not work for me either.

When I go to just the root davidkarlsen.com page, it forwards me to
/portal which is a JBoss portal 2.0 release candidate site. Looks like
you're moving some stuff around...


That's the portal (which by the way will be changed - not very 
comfortable with the JBoss portal) - anyway - now it's been fixed:


site: http://www.davidkarlsen.com/maven-was-plugin
repo: http://www.davidkarlsen.com/m2



Wayne

On 4/17/06, Vijay Shanker [EMAIL PROTECTED] wrote:


Hi David,

http://www.davidkarlsen.com/maven-was-plugin/ does not work in my machine. 
Could you please chack if this URL is correct? I have started working on 
writing plugin but if you have already done it then I can use that.

Thanks,
vijay




From: David J. M. Karlsen [mailto:[EMAIL PROTECTED]
Sent: Mon 4/17/2006 11:25 AM
To: Maven Users List
Subject: Re: Best approach to deploy in websphere app server



Vijay Shanker skrev:



Thanks Sanjay and John. I will try to follow as you suggested. One suggestion, 
I got, to use  jboss:harddeploy.




I've created a plugin for generation of stub's:
http://www.davidkarlsen.com/maven-was-plugin/

Though, it does not [yet] deploy to a destination server.


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





--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

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



Re: Maven integration with WAS5

2006-04-18 Thread David J. M. Karlsen

Lee Meador wrote:

That link doesn't work on my computer.



Fixed - I ran into some trouble and had to withdraw it - it's OK now:
site: http://www.davidkarlsen.com/maven-was-plugin
repo: http://www.davidkarlsen.com/m2


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

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



Modules and paths

2006-04-18 Thread Peter Karlsson
Hi, I have this line which reads my Spring bean declarations from the named 
relative path.

file:WebContent/WEB-INF/applicationContext-hibernate.xml

When running the web module pom, this works correctly, however when running the 
parent pom it cannot find the file. If I prepend MyWebModule to the string it 
works fine again.

Shouldn't the path be relative it's own modules pom and not to the parent pom?

BR
/Peter


+ Java-EE-Application with Maven2 +

2006-04-18 Thread Serge Emmanuel Pagop
Hi maven2 gurus,

I try to build the tutorial from Java EE 5 Tutorial with maven2 and it works
good. But I have to do some tasks manually.
First, my application-hierarchy looks like this:

javaeetutorial5
  + pom.xml
  + converter-ejb
 + pom.xml
 + src
+ main
 + target
+ classes
+ org
+ tutorials
 + Converter.class
 + ConverterBean.class
  + converter-client
 + pom.xml
  + converter-webapp
 + pom.xml
 + src
+ main
   + webapp
+ WEB-INF

my first question:

I will like to know, how I can create a directory classes in WEB-INF of the
module converter-webapp and then copy the full tree org.tutorials and also
the compiled class Converter.class  from the target-directory  of the
module converter-ejb to that classes-directory with maven2?

my second question:

How can I access from the module converter-webapp the module
converter-ejbin maven2?
because I know that there are defaults values like ${project}, ${pom},
${version}

my third question:

Is It possible to tell to the maven-war-plugin to create some directories
like classes in WEB-INF and then copy some importants classes in this
directory?

If someone have some idea or some supposition send me an email or just reply
a reponse.

Thanks..


[m2] question about deploy

2006-04-18 Thread Luca Gmail
Hi all,

I deployed an anrtifact  with version 1.0.

When I redeploy the artifact with the same version (override) is the new
available? 

I'm asking this because the changes seem not be available to the other
developers.

 

Tnx a lot,

Luca



Using variables with site

2006-04-18 Thread nicholas . trandem
I'd like to be able to display the value of the version element of my 
pom in my site without hardcoding it in index.apt.  Is there a way to use 
variables in the index.apt (or some other file) so that it will be 
resolved when I run a mvn site?  Thanks!
_
Nicholas Alexander Trandem, Developer
IS Vision Recipient Data System
(412) 859-2953

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



RE: [m2] question about deploy

2006-04-18 Thread Jörg Schaible
Hi Luca,

Luca Gmail wrote on Tuesday, April 18, 2006 2:23 PM:

 Hi all,
 
 I deployed an anrtifact  with version 1.0.
 
 When I redeploy the artifact with the same version (override)
 is the new
 available?

On the server, yes.

 I'm asking this because the changes seem not be available to the
 other developers. 

Because they may/will have the old version already in their local repository.

Basically your scenario is a no-no in Maven. Releasing an artifact with a final 
version is a once-in-a-lifetime operation. If you have incremental updates on 
the same version, you have to use snapshots. This is what they are for.

- Jörg

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



RE: [m2] question about deploy

2006-04-18 Thread Stevenson, Chris
Hi Luca,

If you deploy version 1.0 to a repository maven assumes that this will not
change (else you will not have reproducible builds) so the first 1.0 that
your collegues downloaded will be the one they are stuck with, unless they
delete the entry in their local repos.

If you are actively developing a lib then maven expects you to use a
snapshot version number ex 1.0-SNAPSHOT until version 1.0 is finalised and
then you release only once. (and then move to v1.1-SNAPSHOT subsequently)

I hope this helps,

Chris 

-Original Message-
From: Luca Gmail [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2006 13:23
To: 'Maven Users List'
Subject: [m2] question about deploy

Hi all,

I deployed an anrtifact  with version 1.0.

When I redeploy the artifact with the same version (override) is the new
available? 

I'm asking this because the changes seem not be available to the other
developers.

 

Tnx a lot,

Luca




The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 



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



RE: [m2] question about deploy

2006-04-18 Thread Luca Gmail
Tnx to all.

Luca

-Original Message-
From: Stevenson, Chris [mailto:[EMAIL PROTECTED] 
Sent: martedì 18 aprile 2006 15.09
To: 'Maven Users List'
Subject: RE: [m2] question about deploy

Hi Luca,

If you deploy version 1.0 to a repository maven assumes that this will not
change (else you will not have reproducible builds) so the first 1.0 that
your collegues downloaded will be the one they are stuck with, unless they
delete the entry in their local repos.

If you are actively developing a lib then maven expects you to use a
snapshot version number ex 1.0-SNAPSHOT until version 1.0 is finalised and
then you release only once. (and then move to v1.1-SNAPSHOT subsequently)

I hope this helps,

Chris 

-Original Message-
From: Luca Gmail [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2006 13:23
To: 'Maven Users List'
Subject: [m2] question about deploy

Hi all,

I deployed an anrtifact  with version 1.0.

When I redeploy the artifact with the same version (override) is the new
available? 

I'm asking this because the changes seem not be available to the other
developers.

 

Tnx a lot,

Luca





The information contained herein is confidential and is intended solely for
the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient,
please 
contact the sender either via the company switchboard on +44 (0)20 7623
8000, or
via e-mail return. If you have received this e-mail in error or wish to read
our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 




-
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: Maven and WSAD or RAD

2006-04-18 Thread Mike Perham
Please check the archives.  This has been discussed ad infinitum. 

-Original Message-
From: Aaron Freeman [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 10:54 PM
To: Maven
Subject: Maven and WSAD or RAD

Is anyone using Maven with either WebSphere Studio Applicaiton Developer
or Rational Application Developer? If so, how do you get the local
environments to work properly? There are some things that the local
environment needs to run, that are different than the way you would do
it for a Maven project. For instance, if you have a web project, you
have to put all the JAR files in the src/main/webapp/web-inf/lib folder
in order for them to be included in the runtime path for the local
environment. But as far as Maven goes, you shouldn't be putting these
files in that fold because it does that for you when it generates the
target. There is a similar issue with putting JAR files in the root of
the EAR file project, also. I've come up with some ways to get around
some of this, but it's really just a hack.

Does anyone know of a good way to deal with this?

Thanks!!

-
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: Jira Changes plugin

2006-04-18 Thread Mike Perham
The JIRA changes report does not work with JIRA 3.x.

Try downloading by hand the URL it prints out below.  JIRA is returning
an HTML error page instead of the expected XML content. 

-Original Message-
From: javed mandary [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 4:50 AM
To: Maven Users List
Subject: Jira Changes plugin

Hi ,
 am getting a problem with the changes-maven-plugin , i keep getting
a stack trace error each time i execute mvn site

Here is the  configuration in my POM
-POM--
[...]
 issueManagement
systemJira/system
urlhttps://thisis.mycompany.com/issues/browse/MYPROJECT/url
/issueManagement
[...]
reporting
  [...]
plugin
groupIdorg.codehaus.mojo/groupId
   artifactIdchanges-maven-plugin/artifactId
/plugin
  [...]
/reporting
END POM

This is the stack trace am getting:

--ERROR TRACE--

[INFO] Downloading
https://thisis.mycompany.com/issues/browse/secure/IssueNavigator.
jspa?view=rsspid=sorter/field=createdsorter/order=DESCsorter/field=p
riorityso
rter/order=DESCtempMax=100reset=truedecorator=none
[WARNING] Received: [407]
org.xml.sax.SAXParseException: White spaces are required between
publicId and syst emId.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPa
rseException(ErrorHandlerWrapper.java:236)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(
ErrorHandlerWrapper.java:215)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM
LErrorReporter.java:386)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM
LErrorReporter.java:316)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XML
Scanner.java:1438)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.scanExternalID
(XMLSc
anner.java:1024)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.scanDoct
END ERROR TRACE--

Does anyone who why am getting this error message?

thanks,
Javed


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



RE: Maven a Developer's notebook : Upgraded to M2 is available somewhere online ?

2006-04-18 Thread Andreas Guther
Jaikumar,

A while ago I read that a Maven 2 book is in work and will be made
available online.  If I remember correctly it is planned to be available
this quarter, but I haven't seen any new information on that project.

If you use Maven 2 it does make little sense to use the Maven 1 book
(which was a great source to me for Maven 1).

Andreas


-Original Message-
From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 1:29 AM
To: Maven Users List
Subject: Maven a Developer's notebook : Upgraded to M2 is available
somewhere online ?

Took a book on Maven -- Maven Developer's Notebook - just to get started
and
to be comfortable using it, but found that examples in it --- not
working, because it is intended to be used with Maven 1.x. While Maven 2
is
complete re-write of version 1.x.
 
Who has this book : can note the following :
 
maven genapp   
   
-- does not work any more in M2.
 
Any online e-copy of this book, which is upgraded to M2; available
somewhere
? 
 
Regards, Jaikumar
 
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically
authorized to
receive it. If you are not the intended recipient, you are hereby
notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for
any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


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



RE: [M2] Force order of jar files in classpath

2006-04-18 Thread Andreas Guther
Brett,

Beanshell classes are included in both TestNG jar files (1.4 and 1.5).
Probably to make the inclusion on the classpath easier.  There are also
other dependencies included.

It might be better to have different flavors of jar files for TestNG.  I
often see projects that have a all-dependency jar file in addition to
pure onces we the developer has to include all dependencies and that
might be a good suggestion for testng as well.

I am going to write an email to the testng user mailing list.

Andreas


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 5:18 PM
To: Maven Users List
Subject: Re: [M2] Force order of jar files in classpath

On 4/18/06, Andreas Guther [EMAIL PROTECTED] wrote:
 Maybe it is indeed in this particular case a problem with the eclipse
 plug-in and the request should go against the eclipse plug-in to honor
 the order of dependencies within the pom.xml.

I don't think either are deliberately maintaining the order of the
pom, and because of transitive dependencies that would be fragile.
Really what you want is to exclude test NG and its dependencies from
your eclipse classpath because the eclipse testng plugin already takes
care of it, right?

Regardless, I'm not sure why the bsh from testng is added to the
eclipse classpath. That could be a bug, or it could be that it is
selected in preference to your own and just not seen during testing in
Maven. Either way, the exclusions in your pom would solve the problem
in eclipse.


 Regarding jaxb:  I am using the xjc with a modified
jaxb2-maven-plugin.
 I have removed in the modified plug-in all Java 5 usage in order to
get
 it to run with Jaxb1.

 Is there another jaxb1 plug-in available that might do the job for me?


Someone has recently proposed contributing it to mojo.codehaus.org.

- Brett

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



Exploded WAR in exploded EAR

2006-04-18 Thread brianwainwright

Hi,

I am currently trying to move my teams large
multi-project/multi-webapp/multi-ear application from Maven 1.x to Maven 2,
and overcome most of the problems I've had on the way, but there's one issue
I can't work out.

Our current (Maven 1.x) build, we have a customized goal which produces an
exploded ear which in turn contains an exploded war - (our current practise
is for developers to deploy fully exploded ears/wars on their own JBoss
servers while developing.).  We do this by unwaring any bundled war
dependencies in the exploded ear.

Is there any (simple) way to produce the same kind of fully exploded ear in
M2?

I've looked at war:exploded, which will build the exploded war, but then the
ear plugin will look for the .war artifact in the repository when trying to
bundle it's dependencies, so the exploded war wouldn't be used when
packaging the ear?

I've also looked at the maven-explosion plugin, which could possibly work
for us, but it seems inefficient to war/ear the original artifacts and then
unpack them to explode them when their exploded directories already exist.

Thanks for your help,

Brian Wainwright
Developer
Burns E-Commerce
Mansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UK 
http://www.burnsecs.com
mailto:[EMAIL PROTECTED]
 

--
View this message in context: 
http://www.nabble.com/Exploded-WAR-in-exploded-EAR-t1468379.html#a3968873
Sent from the Maven - Users forum at Nabble.com.


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



Re: generating Classpath for war modules

2006-04-18 Thread Wayne Fay
You're missing the archive inside configuration which contains manifest.

Wayne


On 4/18/06, Janos Mucsi [EMAIL PROTECTED] wrote:
  Wayne
  Thanks for replying, but it does not work. Here is your  advice:

  I think you're looking for...

 plugin
  artifactIdmaven-war-plugin/artifactId
  configuration
   archive
 manifest
   addClasspathtrue/addClasspath
 /manifest
   /archive
  /configuration
 /plugin

 HTH.
 Wayne


  Here is my POM:

  dependency
  groupIdspringframework/groupId
  artifactIdspring/artifactId
  version1.2.6/version
  scoperuntime/scope
  /dependency
  /dependencies
  build
  plugins

  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
  manifest addClasspathtrue/addClasspath /manifest

  warSourceDirectory${basedir}/WebContent/warSourceDirectory
  webXml${basedir}/WebContent/WEB-INF/web.xml/webXml
  !-- excludes**/*.jar/excludes --
  /configuration
  /plugin
  /plugins


 -
 Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.



[m2] Aggregated Javadoc dependency problems

2006-04-18 Thread Wendy Smoak
The 'mvn javadoc:javadoc' command works fine with the latest plugin
built from source and this in struts/action/trunk/pom.xml:

reporting
 plugins
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
 /plugin
  /plugins
/reporting

It drops into each module and builds the javadoc there.  However, if I
add configuration and try to get aggregated Javadoc at the top level:
   configuration
 aggregatetrue/aggregate
   /configuration

It seems to build the aggregated Javadoc okay, but then when starts
descending into each module it fails complaining Cannot find
symbol... about things like commons-logging and the Servlet api. 
These are declared as dependencies at the module level.

Am I configuring it correctly?

Thanks,
Wendy

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



Re: Exploded WAR in exploded EAR

2006-04-18 Thread Kevin Galligan
For our build, I hacked the ear plugin.  I added an 'explodedUri' attribute
to the web artifact configuration.  When the application.xml file is built,
it sets the web component to the exploded url on the file system.

The down side is that you have to have a relative reference to your web xml
project directory.  Its dirty.  The upside is that you only need to run
war:exploded on that project.  Not the full ear build.

Now, even more hacky, I added a movejsp target to the war plugin.  This
bypasses everything in the war plugin build except moving the jsps to the
target dir.  This is when you're just updating jsps and other static files.

Hacky?  Yeah, sure.  But it works.  I haven't spent too much time coming up
with a more formal mavenized version of this, but I'd like to.  I think
there is a serious issue with the way the ear and war plugins work.  I mean,
they work great, but for builds.  Development gets to be difficult in some
environments.

On 4/18/06, brianwainwright [EMAIL PROTECTED] wrote:


 Hi,

 I am currently trying to move my teams large
 multi-project/multi-webapp/multi-ear application from Maven 1.x to Maven
 2,
 and overcome most of the problems I've had on the way, but there's one
 issue
 I can't work out.

 Our current (Maven 1.x) build, we have a customized goal which produces an
 exploded ear which in turn contains an exploded war - (our current
 practise
 is for developers to deploy fully exploded ears/wars on their own JBoss
 servers while developing.).  We do this by unwaring any bundled war
 dependencies in the exploded ear.

 Is there any (simple) way to produce the same kind of fully exploded ear
 in
 M2?

 I've looked at war:exploded, which will build the exploded war, but then
 the
 ear plugin will look for the .war artifact in the repository when trying
 to
 bundle it's dependencies, so the exploded war wouldn't be used when
 packaging the ear?

 I've also looked at the maven-explosion plugin, which could possibly work
 for us, but it seems inefficient to war/ear the original artifacts and
 then
 unpack them to explode them when their exploded directories already exist.

 Thanks for your help,

 Brian Wainwright
 Developer
 Burns E-Commerce
 Mansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UK
 http://www.burnsecs.com
 mailto:[EMAIL PROTECTED]


 --
 View this message in context:
 http://www.nabble.com/Exploded-WAR-in-exploded-EAR-t1468379.html#a3968873
 Sent from the Maven - Users forum at Nabble.com.


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




Re: [m2] Aggregated Javadoc dependency problems

2006-04-18 Thread Brett Porter
This was reported recently by Jules. I intended to revisit it before
releasing the plugin.

If it isn't in JIRA already, would you mid filing it?

Thanks,
Brett

On 4/19/06, Wendy Smoak [EMAIL PROTECTED] wrote:
 The 'mvn javadoc:javadoc' command works fine with the latest plugin
 built from source and this in struts/action/trunk/pom.xml:

 reporting
  plugins
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
  /plugin
   /plugins
 /reporting

 It drops into each module and builds the javadoc there.  However, if I
 add configuration and try to get aggregated Javadoc at the top level:
configuration
  aggregatetrue/aggregate
/configuration

 It seems to build the aggregated Javadoc okay, but then when starts
 descending into each module it fails complaining Cannot find
 symbol... about things like commons-logging and the Servlet api.
 These are declared as dependencies at the module level.

 Am I configuring it correctly?

 Thanks,
 Wendy

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



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



Re: [M2] Force order of jar files in classpath

2006-04-18 Thread Brett Porter
Andreas,

I think you are missing my point. If you declare this:

dependency
  groupIdorg.testng/groupId
  artifactIdtestng/artifactId
  version4.7/version
  classifierjdk15/classifier
  exclusions
exclusion
  groupIdbsh/groupId
  artifactIdbsh/artifactId
/exclusion
  /exclusion
/dependency

This will be as if testng did not declare it and yours will be used
instead. It may be a good idea to make it optional in the testng pom
if it really is optional, as well.

I'd certainly be in favour of having testng split this functionality
into a separate JAR to make it simpler, but its not a requirement.
Maybe Jesse K has an opinion?

- Brett

On 4/19/06, Andreas Guther [EMAIL PROTECTED] wrote:
 Brett,

 Beanshell classes are included in both TestNG jar files (1.4 and 1.5).
 Probably to make the inclusion on the classpath easier.  There are also
 other dependencies included.

 It might be better to have different flavors of jar files for TestNG.  I
 often see projects that have a all-dependency jar file in addition to
 pure onces we the developer has to include all dependencies and that
 might be a good suggestion for testng as well.

 I am going to write an email to the testng user mailing list.

 Andreas


 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 17, 2006 5:18 PM
 To: Maven Users List
 Subject: Re: [M2] Force order of jar files in classpath

 On 4/18/06, Andreas Guther [EMAIL PROTECTED] wrote:
  Maybe it is indeed in this particular case a problem with the eclipse
  plug-in and the request should go against the eclipse plug-in to honor
  the order of dependencies within the pom.xml.

 I don't think either are deliberately maintaining the order of the
 pom, and because of transitive dependencies that would be fragile.
 Really what you want is to exclude test NG and its dependencies from
 your eclipse classpath because the eclipse testng plugin already takes
 care of it, right?

 Regardless, I'm not sure why the bsh from testng is added to the
 eclipse classpath. That could be a bug, or it could be that it is
 selected in preference to your own and just not seen during testing in
 Maven. Either way, the exclusions in your pom would solve the problem
 in eclipse.

 
  Regarding jaxb:  I am using the xjc with a modified
 jaxb2-maven-plugin.
  I have removed in the modified plug-in all Java 5 usage in order to
 get
  it to run with Jaxb1.
 
  Is there another jaxb1 plug-in available that might do the job for me?
 

 Someone has recently proposed contributing it to mojo.codehaus.org.

 - Brett

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



m2 uberjar (assembly jar-with-dependency-jars)

2006-04-18 Thread Geoffrey De Smet

First I considered using assembly's jar-with-dependencies,
but this has the problem that META-INF data gets lost (which gives 
various issues).


I 'd like to use some kind of uberjar: jar-with-dependency-jars,
basically a jar with all the other jars inside.

Is there any support for this planned in Maven 2?
In assembly or with a separate plugin?

--
With kind regards,
Geoffrey De Smet


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



Re: Exploded WAR in exploded EAR

2006-04-18 Thread brianwainwright

Thanks for the quick reply Kevin!

I feared that the solution may involve hacking the plugins!  It's
essentially what we had to do with Maven 1.x, but I'd just hoped that
there'd be a more complete solution in M2?

Although, to be honest, I don't mind hacky too much at the moment, I've
had to do that a fair bit to get our M2 build looking anything like our M1,
but I'm mainly putting that down to the plugins not being mature enough just
yet.

I'll take a look at the war and ear plugins and see what I can come up with. 
I like your movejsp target idea - we had written a similar Maven 1.x goal
to perform a similar step, so it's probably something I should add too to
keep our developers happy!

Brian Wainwright
Developer
Burns E-Commerce
Mansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UK 
http://www.burnsecs.com
mailto:[EMAIL PROTECTED]
 
--
View this message in context: 
http://www.nabble.com/Exploded-WAR-in-exploded-EAR-t1468379.html#a3969692
Sent from the Maven - Users forum at Nabble.com.


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



RE: Email Notifier Configuration

2006-04-18 Thread Xavier Frisaye
Hi everybody,

I've configured mail notifier in our pom like this :

ciManagement
systemcontinuum/system
notifiers
notifier
typemail/type
sendOnErrortrue/sendOnError
sendOnFailuretrue/sendOnFailure
sendOnWarningtrue/sendOnWarning
sendOnSuccessfalse/sendOnSuccess
configuration
address[EMAIL PROTECTED]/address
/configuration
/notifier
/notifiers
/ciManagement

But it seems to notify even in successful build.
Am i missing something?

Regards,

Xavier

-Original Message-
From: Kaare Nilsen [mailto:[EMAIL PROTECTED]
Sent: samedi 15 avril 2006 23:35
To: continuum-users@maven.apache.org
Subject: Re: Email Notifier Configuration


AFAIK you will need one notifier pr mailadress

/K

On 15/04/06, Andreas Guther [EMAIL PROTECTED] wrote:
 Hi,

 I am using continuum 1.0.2 with Maven 2.0.4.

 I am having problems finding detailed information about the email
 notifier configuration.

 From the few examples I could find I have the impression that there is
 always a mailing list to be used.  Is it possible to have multiple user
 addresses in the configuration part, something like in the example
 below?

 Where would be a good place to find more detailed configuration
 information than at
 http://maven.apache.org/continuum/guides/getting-started/index.html?

 Thanks in advance for any help.

 Andreas

 Would the multiple address entry as shown below be a valid
 configuration?

 ciManagement
 systemcontinuum/system
 urlhttp://my.company.com:8080/continuum//url
 notifiers
 notifier
 typemail/type
 sendOnSuccesstrue/sendOnSuccess
 configuration

 address[EMAIL PROTECTED]/address

 address[EMAIL PROTECTED]/address
 /configuration
 /notifier
 notifier
 typemail/type
 sendOnErrortrue/sendOnError
 configuration

 address[EMAIL PROTECTED]/address
 /configuration
 /notifier
 /notifiers
 /ciManagement





Re: Maven with C++ projects

2006-04-18 Thread dan tran
http://mojo.codehaus.org/maven-native/native-maven-plugin/

On 4/17/06, Vandermi Joao da Silva [EMAIL PROTECTED] wrote:

 Hi guys, I work with Maven2 and Continuum and it's very nice tools , but
 now I need work with C and C++ projects.
 How can work with C++ project in to maven2 projects. What the POM
 structure and how can use nar plugin? Can I use the report same java report,
 for example, documentation, changelog... ?
 Please send me a feedback.

 Best Regards







 Vandermi Silva
 RD MAO - Core Engines

 BenQ Eletroeletrônica Ltda.



 TEL +55(92) 2127-8015
 Mobile: +55(92) 8125-2248
 FAX +55(92) 2127-8102
 [EMAIL PROTECTED]
 www.BenQMobile.com
 Av. Djalma Batista, 536 - São Geraldo

 Manaus-AM
 Brasil










Re: Exploded WAR in exploded EAR

2006-04-18 Thread Kevin Galligan
Attaching a diff for the ear plugin. Its a diff from 380736 to my local vendor branch. There are some extra things, like the deploy repository is our local path, but you should be able to see what I did to the code from the diff file.
On 4/18/06, brianwainwright [EMAIL PROTECTED] wrote:
Thanks for the quick reply Kevin!I feared that the solution may involve hacking the plugins!It'sessentially what we had to do with Maven 1.x, but I'd just hoped thatthere'd be a more complete solution in M2?
Although, to be honest, I don't mind hacky too much at the moment, I'vehad to do that a fair bit to get our M2 build looking anything like our M1,but I'm mainly putting that down to the plugins not being mature enough just
yet.I'll take a look at the war and ear plugins and see what I can come up with.I like your movejsp target idea - we had written a similar Maven 1.x goalto perform a similar step, so it's probably something I should add too to
keep our developers happy!Brian WainwrightDeveloperBurns E-CommerceMansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UKhttp://www.burnsecs.com
mailto:[EMAIL PROTECTED]--View this message in context: http://www.nabble.com/Exploded-WAR-in-exploded-EAR-t1468379.html#a3969692
Sent from the Maven - Users forum 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]

Using maven to setup Eclipse plugin project

2006-04-18 Thread Hua

Hi experts,

We setup Eclipse project from Maven by using the following way:
1. Create project.xml file
2. Create project.property file
3. From command line type maven eclipse to create Eclipse project
4. From Eclipse, do File-Import... and Import existing project into the
workspace to import the project into Eclipse

Now we have a Eclipse plugin project and we use the way above to import the
plugin project into Eclipse, but a plugin dependency cannot be imported into
Eclipse. Although we can config the imported project by adding the Library
to add the plugin dependecy later on, but does Maven have any command to
setup a Eclipse plugin project, such as maven eclipse plugin ??

Any suggestions are appreciated,
Hua
--
View this message in context: 
http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.html#a3970214
Sent from the Maven - Users forum at Nabble.com.


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



[surefire] systemProperties-Style clarification

2006-04-18 Thread Jens Zastrow
see http://jira.codehaus.org/browse/MSUREFIRE-79

Which style to use for the System-Properties?

I have a lot of properties like:

cargo.resin3x.urlhttp://www.caucho.com/download/resin-3.0.18.zip/carg
o.resin3x.url

Must i convert them al to the more complex form to be compatible with
maven 2.0.4+ 
(old style does not work anymore)

property
namecargo.resin3x.url/name
valuehttp://www.caucho.com/download/resin-3.0.18.zip/value
/property


Thanks
Jens Zastrow
  


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



Re: Exploded WAR in exploded EAR

2006-04-18 Thread Wayne Fay
Just FYI Kevin... Either you didn't attach the diff, or it got chopped
in transit somewhere.

Wayne

On 4/18/06, Kevin Galligan [EMAIL PROTECTED] wrote:
 Attaching a diff for the ear plugin.  Its a diff from 380736 to my local
 vendor branch.  There are some extra things, like the deploy repository is
 our local path, but you should be able to see what I did to the code from
 the diff file.




 On 4/18/06, brianwainwright [EMAIL PROTECTED] wrote:
 
  Thanks for the quick reply Kevin!
 
  I feared that the solution may involve hacking the plugins!  It's
  essentially what we had to do with Maven 1.x, but I'd just hoped that
  there'd be a more complete solution in M2?
 
  Although, to be honest, I don't mind hacky too much at the moment, I've
  had to do that a fair bit to get our M2 build looking anything like our
 M1,
  but I'm mainly putting that down to the plugins not being mature enough
 just
  yet.
 
  I'll take a look at the war and ear plugins and see what I can come up
 with.
  I like your movejsp target idea - we had written a similar Maven 1.x
 goal
  to perform a similar step, so it's probably something I should add too to
  keep our developers happy!
 
  Brian Wainwright
  Developer
  Burns E-Commerce
  Mansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UK
  http://www.burnsecs.com
  mailto:[EMAIL PROTECTED]
 
  --
  View this message in context:
 http://www.nabble.com/Exploded-WAR-in-exploded-EAR-t1468379.html#a3969692
  Sent from the Maven - Users forum 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]




Re: m2 uberjar (assembly jar-with-dependency-jars)

2006-04-18 Thread Torsten Curdt
...on my disk :) give it a few more days and I will send a patch

 I 'd like to use some kind of uberjar: jar-with-dependency-jars,
 basically a jar with all the other jars inside.

 Is there any support for this planned in Maven 2?
 In assembly or with a separate plugin?

As part of the dependency plugin

cheers
--
Torsten

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



Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread Kathryn Huxtable
I use a custom archetype based on the 1.0-alpha-4 webapp archetype and added
appropriate .classpath and .project files for Eclipse using the Maven2
plugin for Eclipse. The .classpath doesn't generally need to change much
from project to project.

I also added our standard Spring setup and all...

-K


On 4/18/06 10:18 AM, Hua [EMAIL PROTECTED] wrote:

 
 Hi experts,
 
 We setup Eclipse project from Maven by using the following way:
 1. Create project.xml file
 2. Create project.property file
 3. From command line type maven eclipse to create Eclipse project
 4. From Eclipse, do File-Import... and Import existing project into the
 workspace to import the project into Eclipse
 
 Now we have a Eclipse plugin project and we use the way above to import the
 plugin project into Eclipse, but a plugin dependency cannot be imported into
 Eclipse. Although we can config the imported project by adding the Library
 to add the plugin dependecy later on, but does Maven have any command to
 setup a Eclipse plugin project, such as maven eclipse plugin ??
 
 Any suggestions are appreciated,
 Hua
 --
 View this message in context:
 http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.htm
 l#a3970214
 Sent from the Maven - Users forum at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



Help me about changes plugin

2006-04-18 Thread Vijay Shanker
As per requirement, I have to prepares reports about changes in files between 
current version and previous version of files so could any body suggest me the 
approach for achieving this goal.

I got to know from maven website that there are two plugins neams as changes 
and changelog but when I click on those, I get page not found problem.

Looking for the help.

Thanks in advance.

Vijay

 


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

Re: Exploded WAR in exploded EAR

2006-04-18 Thread Kevin Galligan
Right-o.  I'll paste it inline...
** STARTING DIFF **
Index: src/main/java/org/apache/maven/plugin/ear/WebModule.java
===
--- src/main/java/org/apache/maven/plugin/ear/WebModule.java
(.../vendor/maven-ear-plugin/current)(revision 133)
+++ src/main/java/org/apache/maven/plugin/ear/WebModule.java
(.../trunk/maven-ear-plugin)(revision 133)
@@ -54,7 +54,12 @@
 writer.startElement( MODULE_ELEMENT );
 writer.startElement( WEB_MODULE );
 writer.startElement( WEB_URI_FIELD );
-writer.writeText( getUri() );
+
+if(explodedUri != null)
+writer.writeText(explodedUri);
+else
+writer.writeText( getUri() );
+
 writer.endElement(); // web-uri
 writer.startElement( CONTEXT_ROOT_FIELD );
 writer.writeText( getContextRoot() );
@@ -75,6 +80,23 @@
 contextRoot = getDefaultContextRoot( getArtifact() );
 }
 }
+
+/**
+ * A specific path uri.  This will allow a web application to be
referenced in a container without
+ * requiring full rebuild of the entire ear (exploded webapp).
Relative path to the webapp project
+ * recommended.
+ *
+ * @parameter
+ */
+private String explodedUri;
+
+//public String getUri()
+//{
+//if(explodedUri != null)
+//return explodedUri;
+//else
+//return super.getUri();
+//}

 /**
  * Returns the context root to use for the web module.
Index: pom.xml
===
--- pom.xml(.../vendor/maven-ear-plugin/current)(revision 133)
+++ pom.xml(.../trunk/maven-ear-plugin)(revision 133)
@@ -1,27 +1,46 @@
-?xml version=1.0 encoding=UTF-8?project
-  parent
-artifactIdmaven-plugin-parent/artifactId
-groupIdorg.apache.maven.plugins/groupId
-version2.0.1/version
-  /parent
-  modelVersion4.0.0/modelVersion
-  artifactIdmaven-ear-plugin/artifactId
-  packagingmaven-plugin/packaging
-  nameMaven Ear plugin/name
-  version2.2-SNAPSHOT/version
-  dependencies
-dependency
-  groupIdorg.apache.maven/groupId
-  artifactIdmaven-project/artifactId
-/dependency
-dependency
-  groupIdorg.apache.maven/groupId
-  artifactIdmaven-archiver/artifactId
-  version2.0.1/version
-/dependency
-dependency
-  groupIdorg.codehaus.plexus/groupId
-  artifactIdplexus-utils/artifactId
-/dependency
-  /dependencies
+?xml version=1.0 encoding=UTF-8?project
+  parent
+artifactIdmaven-plugin-parent/artifactId
+groupIdorg.apache.maven.plugins/groupId
+version2.0.1/version
+  /parent
+  modelVersion4.0.0/modelVersion
+  artifactIdmaven-ear-plugin/artifactId
+  packagingmaven-plugin/packaging
+  nameMaven Ear plugin/name
+  version2.2-SNAPSHOT/version
+
+  distributionManagement
+snapshotRepository
+  idsnapshots/id
+  nameMaven Central Plugins Development Repository/name
+  urlfile:/nyddb01/d$/Data/maven-repository/url
+/snapshotRepository
+repository
+  idrepo1/id
+  nameMaven Central Plugins Repository/name
+  urlfile:/nyddb01/d$/Data/maven-repository/url
+/repository
+site
+  idwebsite/id
+  urlscp://minotaur.apache.org/www/maven.apache.org/plugins//url
+/site
+  /distributionManagement
+
+
+  dependencies
+dependency
+  groupIdorg.apache.maven/groupId
+  artifactIdmaven-project/artifactId
+/dependency
+dependency
+  groupIdorg.apache.maven/groupId
+  artifactIdmaven-archiver/artifactId
+  version2.0.1/version
+/dependency
+dependency
+  groupIdorg.codehaus.plexus/groupId
+  artifactIdplexus-utils/artifactId
+/dependency
+  /dependencies
 /project
\ No newline at end of file

Property changes on: .
___
Name: svn:ignore
   + target



** ENDING DIFF **



On 4/18/06, Wayne Fay [EMAIL PROTECTED] wrote:

 Just FYI Kevin... Either you didn't attach the diff, or it got chopped
 in transit somewhere.

 Wayne

 On 4/18/06, Kevin Galligan [EMAIL PROTECTED] wrote:
  Attaching a diff for the ear plugin.  Its a diff from 380736 to my local
  vendor branch.  There are some extra things, like the deploy repository
 is
  our local path, but you should be able to see what I did to the code
 from
  the diff file.
 
 
 
 
  On 4/18/06, brianwainwright [EMAIL PROTECTED] wrote:
  
   Thanks for the quick reply Kevin!
  
   I feared that the solution may involve hacking the plugins!  It's
   essentially what we had to do with Maven 1.x, but I'd just hoped that
   there'd be a more complete solution in M2?
  
   Although, to be honest, I don't mind hacky too much at the moment,
 I've
   had to do that a fair bit to get our M2 build looking anything like
 our
  M1,
   but 

Plugin repository issue

2006-04-18 Thread Mark Misurak
Hello. I'm having an issue with setting up a plugin repository on a
development server (I'm setting up this repository so that our
organization's developers will use the development server's repository
instead of Ibiblio). In my pom.xml for my project saved locally, I have
the following: 
 
project 
... 
repositories 
  repository 
idcentral/id 
urlhttp://myorg.ca/maven2/url 
  /repository 
/repositories 
 
pluginRepositories 
  pluginRepository 
idcentral/id 
urlhttp://myorg.ca/maven2/url 
  /pluginRepository 
/pluginRepositories 
... 
/project 
 
When I run mvn clean on the project, I see the following error: 
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
exist or no valid version could be found 
 
When I set the plugin repository back to Ibiblio, clean works fine. 
 
Essentially, the dev server's repository works fine (ordinary jars
download just fine), but the server's plugin repository does not. How do
I set up my plugin repository correctly? 




This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential
information.  Any unauthorized use, disclosure, distribution, copying or
dissemination is strictly prohibited.  If you receive this transmission in
error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne
ou aux personnes à qui il est adressé. Il peut contenir des informations
privilégiées ou confidentielles. Toute utilisation, divulgation, distribution,
copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas
le destinataire de ce message, veuillez en informer l'expéditeur immédiatement
et lui remettre l'original.




Re: Help me about changes plugin

2006-04-18 Thread ian . d . stewart
There are a number of dead links on maven.apache.org.  The plugin
documentation links are the most visible, primarily because those are the
ones that long term Maven users are most interested in (personal
opinion/observation here.  Any relation to objective fact is purely
coincidental).

Is this something that the Maven team is aware of, and what, if anything,
can we as users do to help us help ourselves (beyond opening issues in
JIRA)?


Thanks,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078



   
  Vijay Shanker   
   
  [EMAIL PROTECTED]To:   Maven Users List 
users@maven.apache.org   
  e.com   cc:  
   
   Subject:  Help me about changes 
plugin  
  04/18/2006 11:45  
   
  AM
   
  Please respond to 
   
  Maven Users  
   
  List 
   

   




As per requirement, I have to prepares reports about changes in files
between current version and previous version of files so could any body
suggest me the approach for achieving this goal.

I got to know from maven website that there are two plugins neams as
changes and changelog but when I click on those, I get page not found
problem.

Looking for the help.

Thanks in advance.

Vijay




-
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: Help me about changes plugin

2006-04-18 Thread Lee Meador
Put this in your pom.xml to add a report showing what has changed in the
version control during the last 30 days. There are some config settings you
can add that change just what is shown in the report.

reporting
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdchangelog-maven-plugin/artifactId
/plugin
/plugins
/reporting

When you do a mvn site, it will generate the reports as html and put them
under the 'target' folder.

You also have to be sure and set the scm section in your pom so it knows
how to talk to the version control:

 scm
 
connectionscm:svn:svn://subversion.company.com/project/trunk/base//connection
 
developerConnectionscm:svn:svn://subversion.company.com/project/trunk/base//developerConnection
 url/url
 /scm

You can find the right connection url by going to a blank working folder and
doing this from command line:

mvn scm:checkout -DconnectionUrl=scm:svn:svn://sub...

with the same thing as is in the connection tag. When it checks out your
project, you have it right.

There used to be some info at http://mojo.codehaus.org/*changelog*-*maven*-*
plugin*/howto.htmlhttp://mojo.codehaus.org/changelog-maven-plugin/howto.html
but it seems to point back to
http://maven.apache.org/plugins/maven-changelog-plugin now and that doesn't
have anything there.

I think the 'changes' plugin is used to generate a page for the site showing
what has changed between version 1.1 and 1.2 for example. I'm not really
sure.

-- Lee Meador

On 4/18/06, Vijay Shanker [EMAIL PROTECTED] wrote:

 As per requirement, I have to prepares reports about changes in files
 between current version and previous version of files so could any body
 suggest me the approach for achieving this goal.

 I got to know from maven website that there are two plugins neams as
 changes and changelog but when I click on those, I get page not found
 problem.

 Looking for the help.

 Thanks in advance.

 Vijay






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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Re: Testing with JUnit 4

2006-04-18 Thread Tiago Fernandez
Thanks again Wayne.
So all we can do is wait, but no problem :-)

On 4/18/06, Wayne Fay [EMAIL PROTECTED] wrote:

 This was discussed in a thread titled [M2] surefire plugin and JUnit
 4 on April 9-10. Please check the Maven User list archive.

 If you have any additional questions after reading that email thread,
 feel free to post back...

 Wayne

 On 4/17/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
  Hello,
 
  Does Maven already work with JUnit 4? I've noticed it only runs JUnit
  3.xtest cases... is there a way to get it working with
  4.x?
 
  Thanx,
  --
  Tiago Fernandez
  http://www.tiago182.spyw.com
 



RE: Help me about changes plugin

2006-04-18 Thread Vijay Shanker
Hi Lee,
 
Thanks a lot. It is great help to me, I will try to use changelog plugin as per 
your suggestion and let you know shortly. I think if changes plugin works as 
you explained then that is what we are looking for.
 
Thanks again.
 
Vijay
 
 
 
From: [EMAIL PROTECTED] on behalf of Lee Meador
Sent: Tue 4/18/2006 11:25 AM
To: Maven Users List
Subject: Re: Help me about changes plugin



Put this in your pom.xml to add a report showing what has changed in the
version control during the last 30 days. There are some config settings you
can add that change just what is shown in the report.

reporting
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdchangelog-maven-plugin/artifactId
/plugin
/plugins
/reporting

When you do a mvn site, it will generate the reports as html and put them
under the 'target' folder.

You also have to be sure and set the scm section in your pom so it knows
how to talk to the version control:

 scm
 
connectionscm:svn:svn://subversion.company.com/project/trunk/base//connection
 
developerConnectionscm:svn:svn://subversion.company.com/project/trunk/base//developerConnection
 url/url
 /scm

You can find the right connection url by going to a blank working folder and
doing this from command line:

mvn scm:checkout -DconnectionUrl=scm:svn:svn://sub...

with the same thing as is in the connection tag. When it checks out your
project, you have it right.

There used to be some info at http://mojo.codehaus.org/*changelog*-*maven*-*
plugin*/howto.htmlhttp://mojo.codehaus.org/changelog-maven-plugin/howto.html
but it seems to point back to
http://maven.apache.org/plugins/maven-changelog-plugin now and that doesn't
have anything there.

I think the 'changes' plugin is used to generate a page for the site showing
what has changed between version 1.1 and 1.2 for example. I'm not really
sure.

-- Lee Meador

On 4/18/06, Vijay Shanker [EMAIL PROTECTED] wrote:

 As per requirement, I have to prepares reports about changes in files
 between current version and previous version of files so could any body
 suggest me the approach for achieving this goal.

 I got to know from maven website that there are two plugins neams as
 changes and changelog but when I click on those, I get page not found
 problem.

 Looking for the help.

 Thanks in advance.

 Vijay






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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]



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

Re: [m1] AspectJ plugin and Clover

2006-04-18 Thread Lukas Theussl

Wim,

I am not a clover nor an aspectj expert, that's why I am probably 
confused by the test project attached to MPCLOVER-47. First, just 
running 'aspectj' fails the build, so I cannot reproduce already half 
the alleged bug. Second, the aspectj:compile is defined as a preGoal of 
java:compile, but this is never called before clover starts to work. 
Just putting aspectj:compile as a preGoal to, say, clover, I get the 
desired result, ie the clover report is generated when running 'site'.


Maybe you can clarify that with a clearer test project, and comment on 
MPCLOVER-47?


Thanks,
-Lukas



Wim Deblauwe wrote:

Hi,

is any work being done to get AspectJ plugin to work with Clover? I am
testing with the latest version of the aspectj plugin and I also get bug
MPCLOVER-47 (http://jira.codehaus.org/browse/MPCLOVER-47). This bug is a
real blocker to add aspectj support to my module. I don't want to lose the
Clover reports!

regards,

Wim



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



Re: [surefire] systemProperties-Style clarification

2006-04-18 Thread dan tran
property
   namecargo.resin3x.url/name
   valuehttp://www.caucho.com/download/resin-3.0.18.zip/value
/property


is the correct format.

-D


On 4/18/06, Jens Zastrow [EMAIL PROTECTED] wrote:

 see http://jira.codehaus.org/browse/MSUREFIRE-79

 Which style to use for the System-Properties?

 I have a lot of properties like:

 cargo.resin3x.urlhttp://www.caucho.com/download/resin-3.0.18.zip/carg
 o.resin3x.url

 Must i convert them al to the more complex form to be compatible with
 maven 2.0.4+
 (old style does not work anymore)

 property
namecargo.resin3x.url/name
valuehttp://www.caucho.com/download/resin-3.0.18.zip/value
 /property


 Thanks
 Jens Zastrow



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




Re: Maven and WSAD or RAD

2006-04-18 Thread justin_fung
I've found that the eclipse:eclipse task works very nicely at setting up 
your workspace as WSAD is built upon Eclipse. I would imagine RAD is no 
different but I have no exposure to RAD.

The only other things you'll need to do are:
Add a Java - classpath variable in your settings to M2_REPO pointing to 
your local repository
Change the settings in Java - Compiler to allow using multiple output 
locations for source folders

HTH... also Mike, in all fairness, the nabble archives and whatnot are not 
all that easy to find or use (and not spidered all that well in google). 
If you have nothing good to say, don't say anything at all.


-j

---
Justin Fung
[EMAIL PROTECTED]
Sr. Analyst, Business Systems
IT Banking Systems, e-Business
HSBC Bank Canada
http://www.hsbc.ca
p: (604) 643-6605
f: (604) 643-6727








Serge Emmanuel Pagop [EMAIL PROTECTED]
04/18/2006 06:53 AM
Please respond to Maven Users List

 
To: Maven Users List users@maven.apache.org
cc: 
Subject:Re: Maven and WSAD or RAD

  Our Ref: 
Your Ref: 


Which local env. do u like to get at (runtime, compile, ...) ?

On 4/18/06, Mike Perham [EMAIL PROTECTED] wrote:

 Please check the archives.  This has been discussed ad infinitum.

 -Original Message-
 From: Aaron Freeman [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 17, 2006 10:54 PM
 To: Maven
 Subject: Maven and WSAD or RAD

 Is anyone using Maven with either WebSphere Studio Applicaiton Developer
 or Rational Application Developer? If so, how do you get the local
 environments to work properly? There are some things that the local
 environment needs to run, that are different than the way you would do
 it for a Maven project. For instance, if you have a web project, you
 have to put all the JAR files in the src/main/webapp/web-inf/lib folder
 in order for them to be included in the runtime path for the local
 environment. But as far as Maven goes, you shouldn't be putting these
 files in that fold because it does that for you when it generates the
 target. There is a similar issue with putting JAR files in the root of
 the EAR file project, also. I've come up with some ways to get around
 some of this, but it's really just a hack.

 Does anyone know of a good way to deal with this?

 Thanks!!

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




 
*** 
This email may contain confidential information, and is intended only for 
the named recipient and may be privileged.  Distribution or copying of 
this email by anyone other than the named recipient is prohibited. If you 
are not the named recipient, please notify us immediately and permanently 
destroy this email and all copies of it.  Internet email is not private, 
secure, or reliable.  No member of the HSBC Group is liable for any errors 
or omissions in the content or transmission of this email. Any opinions 
contained in this email are solely those of the author and, unless clearly 
indicated otherwise in writing, are not endorsed by any member of the HSBC 
Group. 
*** 
Ce courriel peut renfermer des renseignements confidentiels et privilégiés 
et s'adresse au destinataire désigné seulement.   La distribution ou la 
copie de ce courriel par toute personne autre que le destinataire désigné 
est interdite.  Si vous n'êtes pas le destinataire désigné, veuillez nous 
en aviser immédiatement et détruire de façon permanente ce courriel ainsi 
que toute copie de celui-ci. La transmission de courriel par Internet ne 
constitue pas un mode de transmission confidentiel, sécuritaire ou fiable. 
 Aucun membre du Groupe HSBC ne sera responsable des erreurs ou des 
omissions relatives au contenu ou à la transmission de ce courriel. 
L'auteur de ce courriel est seul responsable des opinions émises dans ce 
courriel, lesquelles, à moins  d'un avis contraire fourni par écrit, ne 
sont pas endossées par aucun membre du Groupe HSBC. 
*** 


Re: Testing with JUnit 4

2006-04-18 Thread Wayne Fay
Well you should be able to run JUnit4 tests under JUnit3 (and thus
Surefire) if you use the JUnit4TestAdapter approach... at least, I
think you should. ;-)

Wayne

On 4/18/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
 Thanks again Wayne.
 So all we can do is wait, but no problem :-)

 On 4/18/06, Wayne Fay [EMAIL PROTECTED] wrote:
 
  This was discussed in a thread titled [M2] surefire plugin and JUnit
  4 on April 9-10. Please check the Maven User list archive.
 
  If you have any additional questions after reading that email thread,
  feel free to post back...
 
  Wayne
 
  On 4/17/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
   Hello,
  
   Does Maven already work with JUnit 4? I've noticed it only runs JUnit
   3.xtest cases... is there a way to get it working with
   4.x?
  
   Thanx,
   --
   Tiago Fernandez
   http://www.tiago182.spyw.com
  
 




OutOfMemoryError causing build failure that doesn't occur from cmd line

2006-04-18 Thread SkipWalker

My multi-project builds a war and uses the tomcat:deploy plugin to deploy the
war via the tomcat manager app into tomcat.  

The build works fine from the command line.  However, when run by continuum,
the build keeps throwing an OutOfMemoryError when trying to deploy the app. 
I've increased the continuum app init and max heap sizes to 16 and 256 to no
effect.

I think the problem may be coming from tomcat or the plug, although it seems
to happen everytime within continuum, but rarely happens when run from the
command line.

The error looks like the following.  It occurrs at the very end of the build
when the deploy plugin runs.  


[INFO] Building war: C:\Builds\continuum\work\1\www\target\mywebapp.war
[INFO] [tomcat:deploy]
[INFO] Deploying war to http://devserver:80/mywebapp
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Java heap space
[INFO]

[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
[INFO]

[INFO] Total time: 2 minutes 19 seconds
[INFO] Finished at: Tue Apr 18 11:17:26 CDT 2006
[INFO] Final Memory: 13M/63M
[INFO]



Does anyone have any thoughts?  I suppose I can try and increase the heap
for tomcat as well.

Skip Walker
--
View this message in context: 
http://www.nabble.com/OutOfMemoryError-causing-build-failure-that-doesn%27t-occur-from-cmd-line-t1469294.html#a3971983
Sent from the Continuum - Users forum at Nabble.com.



Re: Testing with JUnit 4

2006-04-18 Thread Tiago Fernandez
I could run my tests with JUnit4TestAdapter in Eclipse, but not with Maven.
It ran only tests extending TestCase, perhaps I'm missing something...

Tiago

On 4/18/06, Wayne Fay [EMAIL PROTECTED] wrote:

 Well you should be able to run JUnit4 tests under JUnit3 (and thus
 Surefire) if you use the JUnit4TestAdapter approach... at least, I
 think you should. ;-)

 Wayne

 On 4/18/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
  Thanks again Wayne.
  So all we can do is wait, but no problem :-)
 
  On 4/18/06, Wayne Fay [EMAIL PROTECTED] wrote:
  
   This was discussed in a thread titled [M2] surefire plugin and JUnit
   4 on April 9-10. Please check the Maven User list archive.
  
   If you have any additional questions after reading that email thread,
   feel free to post back...
  
   Wayne
  
   On 4/17/06, Tiago Fernandez [EMAIL PROTECTED] wrote:
Hello,
   
Does Maven already work with JUnit 4? I've noticed it only runs
 JUnit
3.xtest cases... is there a way to get it working with
4.x?
   
Thanx,
--
Tiago Fernandez
http://www.tiago182.spyw.com



Bug #2050

2006-04-18 Thread cowwoc

Can someone please evaluate this issue?
http://jira.codehaus.org/browse/MNG-2050

I tried taking a look at the source-code but I don't know which
classloader is responsible.

Thank you,
Gili



signature.asc
Description: OpenPGP digital signature


RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-18 Thread Roye, Suhneel BGI SF
Sweet! This is exactly what I was looking for. Thanks for getting the
plugin updated so quickly.

There is one other small enhancement that would be nice - the generated
POJO's use capital letters to start variable names that represent
associated entities (other variables are fine). It would be nice (and
more standardized) if they could adhere to the first letter lowercase
rule when naming variables for associated entities.

Thanks again, Johann.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 6:08 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel

Yes, it would let you turn off generics ( 2 flags, jdk5 for generics and
ejb3 for annotations ) even if you are using jdk 1.5

About Log4j, I'll research some more, with my test I don't have the need
to include log4j in the pom.xml

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 8:58 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I haven't tried out the new snapshot yet - will it still let me use JDK
1.5 but only disable annotations (the documentation I read included a
JDK5 flag, but made no mention of turning off only annotations in JDK
1.5)?
I added the Log4J dependency to my POM, just like any other dependency.
I'm using Hibernate 3.1.2.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 5:12 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel

I just finished deploying a new snapshot that allows that, please refer
to:

http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/hbm2ja
va-m
ojo.html

Regards

Johann Reyes

Ps also I'm looking into the log4j dependency, how did you add it? And
also what exact version of hibernate are you using in your dependencies
list?



-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:15 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I got my problem figured out...I needed to add a dependency on log4j,
which looks like it's being used by the internals of the mojo. I now
have POJO's being generated from my Hibernate mapping files.

I'm using JDK 1.5, but I would like annotations disabled (I would still
like to use generics and autoboxing, however). I looked at the mojo API
and the HibernateExporterMojo has an isAnnotationsEnabled property,
which I would like to set to false. I tried setting it in various places
in my POM, but none worked:
1. configuration isAnnotationsEnabled=false 2.
configurationisAnnotationsEnabledfalse/isAnnotationsEnabled/confi
guration
3. hbm2java isAnnotationsEnabled=false 4.
hbm2javaisAnnotationsEnabledfalse/isAnnotationsEnabled/hbm2java

Can I manually disable annotations, and if so, where is the correct
place in my POM/Hibernate configuration to disable JDK 1.5 annotations?
I would like to avoid changing my Java version back to 1.4 just for this
goal, to avoid the creation of annotations in my POJO's.

Thanks much.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 1:32 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel;

Could you please run mvn -X hibernate3:hbm2java and send me the
output?

Also what jdk you are running?

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 3:34 PM
To: Maven Users List
Subject: hibernate3-maven-plugin:hbm2java - Setup Problems

I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
configuration
hibernate
 
configurationFile/src/main/resources/hibernate.cfg.xml/configurationF
ile
/hibernate
outputDirectory
hbm2java/src/main/java/hbm2java
/outputDirectory
/configuration
/plugin
.
.
.

Hibernate configuration snippet:
.
.
.
mapping resource=com/mycompany/app/TableOne.hbm.xml/
  

Checking in-use compiler?

2006-04-18 Thread Gwyn

Hi,
  I'm running Maven2 on WinXP, with a JDK 1.5 system, but when I try  build
some classes that use some 1.5 features, specifically
MessageFormat.format(String, Object... ), then I get a cannot find symbol
error on the compile. (The var-args is new in 1.5)

Compiling via Ant or IntelliJ using the same (as far as I know) JDK give
clean compiles.

  mvn -X doesn't give anything of any obvious help with regards to the
internal compiler version in use, just reporting javac, but echoing the
JDK that the batch job uses confirms it's the expected one (1.5.0_06).

 M2 doesn't have a bundled 1.4 javac does it?  Any suggestions or thoughts?

  The only 'odd' think about my pom.xml is that I call the xdoclet plugin to
run ejbdoclet, but I don't know if that's involved...

/Gwyn
--
View this message in context: 
http://www.nabble.com/Checking-in-use-compiler--t1469398.html#a3972335
Sent from the Maven - Users forum at Nabble.com.


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



RE: Checking in-use compiler?

2006-04-18 Thread Roye, Suhneel BGI SF
Take a look at this link:
http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 

You have to explicitly specify that you want to compile with Java 1.5

-Original Message-
From: Gwyn [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 10:06 AM
To: users@maven.apache.org
Subject: Checking in-use compiler?


Hi,
  I'm running Maven2 on WinXP, with a JDK 1.5 system, but when I try 
build some classes that use some 1.5 features, specifically
MessageFormat.format(String, Object... ), then I get a cannot find
symbol
error on the compile. (The var-args is new in 1.5)

Compiling via Ant or IntelliJ using the same (as far as I know) JDK give
clean compiles.

  mvn -X doesn't give anything of any obvious help with regards to the
internal compiler version in use, just reporting javac, but echoing
the JDK that the batch job uses confirms it's the expected one
(1.5.0_06).

 M2 doesn't have a bundled 1.4 javac does it?  Any suggestions or
thoughts?

  The only 'odd' think about my pom.xml is that I call the xdoclet
plugin to run ejbdoclet, but I don't know if that's involved...

/Gwyn
--
View this message in context:
http://www.nabble.com/Checking-in-use-compiler--t1469398.html#a3972335
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 
 
This message and any attachments are confidential, proprietary, and may be 
privileged.  If this message was misdirected, Barclays Global Investors (BGI) 
does not waive any confidentiality or privilege.  If you are not the intended 
recipient, please notify us immediately and destroy the message without 
disclosing its contents to anyone.  Any distribution, use or copying of this 
e-mail or the information it contains by other than an intended recipient is 
unauthorized.  The views and opinions expressed in this e-mail message are the 
author's own and may not reflect the views and opinions of BGI, unless the 
author is authorized by BGI to express such views or opinions on its behalf.  
All email sent to or from this address is subject to electronic storage and 
review by BGI.  Although BGI operates anti-virus programs, it does not accept 
responsibility for any damage whatsoever caused by viruses being passed.

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



RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-18 Thread Roye, Suhneel BGI SF
FYI, here's the stack trace that led me to believe that the
hibernate3-maven-plugin requires Log4J:

[INFO] [hibernate3:hbm2java]
[INFO]


[ERROR] FATAL ERROR
[INFO]


[INFO] null
org/apache/log4j/Category
[INFO]


[INFO] Trace
java.lang.ExceptionInInitializerError
at
org.codehaus.mojo.hibernate3.exporter.Hbm2JavaGeneratorMojo.createExport
er(Hbm2JavaGeneratorMojo.java:68)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateEx
porterMojo.java:93)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExpo
rterMojo.java:60)

at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:531)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:485)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:455)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:139)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@e7f6eb for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@e7f6eb for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category))
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:543)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:235)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:209)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at
org.hibernate.tool.hbm2x.POJOExporter.clinit(POJOExporter.java:19)
... 21 more
Caused by: org.apache.commons.logging.LogConfigurationException: No
suitable Log constructor [Ljava.lang.Class;@e7f6eb for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:413)

at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:529)
... 25 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:410)

... 26 more


-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 6:08 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel

Yes, it would let you turn off generics ( 2 flags, jdk5 for generics and
ejb3 for annotations ) even if you are using jdk 1.5

About Log4j, I'll research some more, with my test I don't have the need
to include log4j in the pom.xml

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 8:58 PM
To: Maven Users List
Subject: RE: 

RE: Plugin repository issue

2006-04-18 Thread EJ Ciramella
From Wayne Fay:

I think the problem is that some of these Maven poms are defining new
Repos which are added to the Repos list when they are added as
dependencies.

maven-help-plugin-2.0 has none defined
but it specifies maven-plugin-parent-2.0 as a dependency which specifies

  repositories
repository
  idsnapshots/id
  nameMaven Central Development Repository/name
  urlhttp://snapshots.maven.codehaus.org/maven2/url
  releases
enabledfalse/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idsnapshots/id
  nameMaven Central Plugins Development Repository/name
  urlhttp://snapshots.maven.codehaus.org/maven2/url
  releases
enabledfalse/enabled
  /releases
/pluginRepository
  /pluginRepositories

See here:
http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom

And then it has a bunch of other dependencies, which all have their
own poms and dependencies etc... So in all likelihood, somewhere in
that chain, I'm guessing that you are getting several new Repos and
PluginRepos added to your list.

This is certainly a bug in those poms. We've seen this before and I
believe it was agreed that it was not proper for hosted poms to
add/change Repos on the user out of the blue. It would be great if
there was an easy code solution to this problem, but I haven't looked
into it, and at the time the fix was to simply repair that one
specific pom.

So if we can find all the poms like this on Central and open a bunch
of MEV Jira bugs, Carlos will love us (not), but it should get rid of
your problems, EJ.

Wayne 

-Original Message-
From: Mark Misurak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 11:40 AM
To: users@maven.apache.org
Subject: Plugin repository issue

Hello. I'm having an issue with setting up a plugin repository on a
development server (I'm setting up this repository so that our
organization's developers will use the development server's repository
instead of Ibiblio). In my pom.xml for my project saved locally, I have
the following: 
 
project 
... 
repositories 
  repository 
idcentral/id 
urlhttp://myorg.ca/maven2/url 
  /repository 
/repositories 
 
pluginRepositories 
  pluginRepository 
idcentral/id 
urlhttp://myorg.ca/maven2/url 
  /pluginRepository 
/pluginRepositories 
... 
/project 
 
When I run mvn clean on the project, I see the following error: 
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
exist or no valid version could be found 
 
When I set the plugin repository back to Ibiblio, clean works fine. 
 
Essentially, the dev server's repository works fine (ordinary jars
download just fine), but the server's plugin repository does not. How do
I set up my plugin repository correctly? 




This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential
information.  Any unauthorized use, disclosure, distribution, copying or
dissemination is strictly prohibited.  If you receive this transmission in
error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne
ou aux personnes à qui il est adressé. Il peut contenir des informations
privilégiées ou confidentielles. Toute utilisation, divulgation, distribution,
copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas
le destinataire de ce message, veuillez en informer l'expéditeur immédiatement
et lui remettre l'original.



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



Re: OutOfMemoryError causing build failure that doesn't occur from cmd line

2006-04-18 Thread Emmanuel Venisse
maven builds are launch in an other jvm and not with continuum jvm. If you want to set jvm options 
for maven, you need to set MAVEN_OPTS env var.


Emmanuel

SkipWalker a écrit :

My multi-project builds a war and uses the tomcat:deploy plugin to deploy the
war via the tomcat manager app into tomcat.  


The build works fine from the command line.  However, when run by continuum,
the build keeps throwing an OutOfMemoryError when trying to deploy the app. 
I've increased the continuum app init and max heap sizes to 16 and 256 to no

effect.

I think the problem may be coming from tomcat or the plug, although it seems
to happen everytime within continuum, but rarely happens when run from the
command line.

The error looks like the following.  It occurrs at the very end of the build
when the deploy plugin runs.  



[INFO] Building war: C:\Builds\continuum\work\1\www\target\mywebapp.war
[INFO] [tomcat:deploy]
[INFO] Deploying war to http://devserver:80/mywebapp
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Java heap space
[INFO]

[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
[INFO]

[INFO] Total time: 2 minutes 19 seconds
[INFO] Finished at: Tue Apr 18 11:17:26 CDT 2006
[INFO] Final Memory: 13M/63M
[INFO]



Does anyone have any thoughts?  I suppose I can try and increase the heap
for tomcat as well.

Skip Walker
--
View this message in context: 
http://www.nabble.com/OutOfMemoryError-causing-build-failure-that-doesn%27t-occur-from-cmd-line-t1469294.html#a3971983
Sent from the Continuum - Users forum at Nabble.com.








Re: Modules and paths

2006-04-18 Thread ian . d . stewart
Relative paths are resolved relative to the current working directory.  You
can either use the system properties specified within the POM (e.g.,
{maven.war.warSourceDirectory}/WEB-INF/applicationContext-hibernate.xml) or
use a classpath: url (e.g., classpath:applicationContext-hibernate.xml)


HTH,
Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078



   
  Peter Karlsson
   
  peterkarlsson73@To:   users@maven.apache.org 
   
  yahoo.secc:  
   
   Subject:  Modules and paths  
   
  04/18/2006 07:03  
   
  AM
   
  Please respond to 
   
  Maven Users  
   
  List 
   

   




Hi, I have this line which reads my Spring bean declarations from the named
relative path.

file:WebContent/WEB-INF/applicationContext-hibernate.xml

When running the web module pom, this works correctly, however when running
the parent pom it cannot find the file. If I prepend MyWebModule to the
string it works fine again.

Shouldn't the path be relative it's own modules pom and not to the parent
pom?

BR
/Peter



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



Re: Email Notifier Configuration

2006-04-18 Thread Emmanuel Venisse

It's fixed in 1.0.3 that will be release soon

Emmanuel

Xavier Frisaye a écrit :

Hi everybody,

I've configured mail notifier in our pom like this :

ciManagement
systemcontinuum/system
notifiers
notifier
typemail/type
sendOnErrortrue/sendOnError
sendOnFailuretrue/sendOnFailure
sendOnWarningtrue/sendOnWarning
sendOnSuccessfalse/sendOnSuccess
configuration
address[EMAIL PROTECTED]/address
/configuration
/notifier
/notifiers
/ciManagement

But it seems to notify even in successful build.
Am i missing something?

Regards,

Xavier

-Original Message-
From: Kaare Nilsen [mailto:[EMAIL PROTECTED]
Sent: samedi 15 avril 2006 23:35
To: continuum-users@maven.apache.org
Subject: Re: Email Notifier Configuration


AFAIK you will need one notifier pr mailadress

/K

On 15/04/06, Andreas Guther [EMAIL PROTECTED] wrote:


Hi,

I am using continuum 1.0.2 with Maven 2.0.4.

I am having problems finding detailed information about the email
notifier configuration.

From the few examples I could find I have the impression that there is
always a mailing list to be used.  Is it possible to have multiple user
addresses in the configuration part, something like in the example
below?

Where would be a good place to find more detailed configuration
information than at
http://maven.apache.org/continuum/guides/getting-started/index.html?

Thanks in advance for any help.

Andreas

Would the multiple address entry as shown below be a valid
configuration?

ciManagement
   systemcontinuum/system
   urlhttp://my.company.com:8080/continuum//url
   notifiers
   notifier
   typemail/type
   sendOnSuccesstrue/sendOnSuccess
   configuration

address[EMAIL PROTECTED]/address

address[EMAIL PROTECTED]/address
   /configuration
   /notifier
   notifier
   typemail/type
   sendOnErrortrue/sendOnError
   configuration

address[EMAIL PROTECTED]/address
   /configuration
   /notifier
   /notifiers
   /ciManagement











Re: Email Notifier Configuration

2006-04-18 Thread Emmanuel Venisse

addresses are separated by ,, so in your case, it will be:

ciManagement
  systemcontinuum/system
  urlhttp://my.company.com:8080/continuum//url
  notifiers
notifier
  typemail/type
  sendOnSuccesstrue/sendOnSuccess
  configuration
address[EMAIL PROTECTED],[EMAIL PROTECTED]/address
  /configuration
/notifier
notifier
  typemail/type
  sendOnErrortrue/sendOnError
  configuration
address[EMAIL PROTECTED]/address
  /configuration
/notifier
  /notifiers
/ciManagement

Emmanuel

Andreas Guther a écrit :

Hi,

I am using continuum 1.0.2 with Maven 2.0.4.

I am having problems finding detailed information about the email
notifier configuration.


From the few examples I could find I have the impression that there is

always a mailing list to be used.  Is it possible to have multiple user
addresses in the configuration part, something like in the example
below?

Where would be a good place to find more detailed configuration
information than at
http://maven.apache.org/continuum/guides/getting-started/index.html?

Thanks in advance for any help.

Andreas

Would the multiple address entry as shown below be a valid
configuration?

ciManagement
systemcontinuum/system
urlhttp://my.company.com:8080/continuum//url
notifiers
notifier
typemail/type
sendOnSuccesstrue/sendOnSuccess
configuration

address[EMAIL PROTECTED]/address

address[EMAIL PROTECTED]/address
/configuration
/notifier
notifier
typemail/type
sendOnErrortrue/sendOnError
configuration

address[EMAIL PROTECTED]/address
/configuration
/notifier
/notifiers
/ciManagement









Re: Email Notifier Configuration

2006-04-18 Thread Wayne Fay
Given that the Maven standard is moving from comma-separated values in
a single XML element to multiple sub-elements under a single XML node
ie:
abcs
abcxyz/abc
abclmnop/abc
abcqwerty/abc
/abcs

It seems to make more sense to me that you follow that standard. ;-)

But having said that... email standards accept [EMAIL PROTECTED], [EMAIL 
PROTECTED],
[EMAIL PROTECTED] as valid send-to values. So the XML approach above adds
unnecessary complexity.

So I guess its entirely up to you.
Wayne

On 4/18/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 addresses are separated by ,, so in your case, it will be:

 ciManagement
   systemcontinuum/system
   urlhttp://my.company.com:8080/continuum//url
   notifiers
 notifier
   typemail/type
   sendOnSuccesstrue/sendOnSuccess
   configuration
 address[EMAIL PROTECTED],[EMAIL PROTECTED]/address
   /configuration
 /notifier
 notifier
   typemail/type
   sendOnErrortrue/sendOnError
   configuration
 address[EMAIL PROTECTED]/address
   /configuration
 /notifier
   /notifiers
 /ciManagement

 Emmanuel

 Andreas Guther a écrit :
  Hi,
 
  I am using continuum 1.0.2 with Maven 2.0.4.
 
  I am having problems finding detailed information about the email
  notifier configuration.
 
 From the few examples I could find I have the impression that there is
  always a mailing list to be used.  Is it possible to have multiple user
  addresses in the configuration part, something like in the example
  below?
 
  Where would be a good place to find more detailed configuration
  information than at
  http://maven.apache.org/continuum/guides/getting-started/index.html?
 
  Thanks in advance for any help.
 
  Andreas
 
  Would the multiple address entry as shown below be a valid
  configuration?
 
  ciManagement
systemcontinuum/system
urlhttp://my.company.com:8080/continuum//url
notifiers
notifier
typemail/type
sendOnSuccesstrue/sendOnSuccess
configuration
 
  address[EMAIL PROTECTED]/address
 
  address[EMAIL PROTECTED]/address
/configuration
/notifier
notifier
typemail/type
sendOnErrortrue/sendOnError
configuration
 
  address[EMAIL PROTECTED]/address
/configuration
/notifier
/notifiers
/ciManagement
 
 
 
 
 




Re: [M2] Is it possible to create an assembly w/o assembly.xml?

2006-04-18 Thread Gautham Pamu
Is this plugin multiple project aware. If I run the command from top level,
it is doing assembly only for the top project but not
for the children. Is there fix for this problem.

Thanks
Gautham Pamu

On 4/8/06, Gautham Pamu [EMAIL PROTECTED] wrote:

 HiJakub,

 I tried this mvn assembly:assembly -DdescriptorId=bin with mvn 2.0.3version 
 and I getting this error.. do we need to specify something in my
 pom.xml files... I don't have any assembly configuration in my pom


 [INFO] [assembly:assembly]
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error creating assembly

 Embedded error: You must set at least one file.
 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException : Error creating
 assembly
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
 ultLifecycleExecutor.java:559)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
 Goal(DefaultLifecycleExecutor.java:488)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
 (Defau
 ltLifecycleExecutor.java:458)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
 dleFailures(DefaultLifecycleExecutor.java:306)


 On 4/5/06, Jakub Pawlowicz [EMAIL PROTECTED]  wrote:
 
  Hi Szczepan,
 
  Try removing the maven.assembly. prefix, eg. use this:
  mvn assembly:assembly -DdescriptorId=bin
 
  It works perfectly for me (maven 2.0.3).
  HTH
 
  Regards,
  Jakub
 
  On Wed, 5 Apr 2006 13:53:35 +0200, Szczepan Faber wrote
   I tried all of them:
  
   mvn assembly:assembly -Dmaven.assembly.descriptorId=bin
   mvn assembly:assembly -
  Dmaven.assembly.descriptorId=jar-with-dependencies
   mvn assembly:assembly -Dmaven.assembly.descriptorId=src
  
   , but still:
  
   No assembly descriptors found.
  
   Do I need to download Pre-defined Descriptor Files from assembly
   plugin page?
  
   Thanks,
   Szczepan
  
   On 4/5/06, Valerio Schiavoni [EMAIL PROTECTED] wrote:
yes, there are pre-defined assembly descriptors.
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html
   
m2 assembly:assembly -Dmaven.assembly.descriptorId=bin
   
  or  m2 assembly:assembly -
  Dmaven.assembly.descriptorId=jar-with-dependencies
   
  or  m2 assembly:assembly -Dmaven.assembly.descriptorId=src
   
   
cheers,
valerio
   
On 4/5/06, Szczepan Faber  [EMAIL PROTECTED] wrote:

 Is it possible to create an assembly w/o assembly.xml (assembly
 descriptor)?


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


   
   
--
To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs
(how good is to be human indeed)
   
   
  
   -
   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]
 
 


 --
 -Gautham Pamu




--
-Gautham Pamu


m2 is assemly plugin mulitple project aware

2006-04-18 Thread Gautham Pamu
Hi Everyone,

Is assembly plugin multiple project aware ? I notice that is not running the
goal on child projects when you run the goal on top level
projects.

--
-Gautham Pamu


Re: m2 is assemly plugin mulitple project aware

2006-04-18 Thread ian . d . stewart
As far as I can tell, it is not.


Ian

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078



   
  Gautham Pamu
   
  [EMAIL PROTECTED]To:   Maven Users List 
users@maven.apache.org   
  il.com  cc:  
   
   Subject:  m2 is assemly plugin 
mulitple project aware   
  04/18/2006 02:13  
   
  PM
   
  Please respond to 
   
  Maven Users  
   
  List 
   

   




Hi Everyone,

Is assembly plugin multiple project aware ? I notice that is not running
the
goal on child projects when you run the goal on top level
projects.

--
-Gautham Pamu



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



Re: Maven and WSAD or RAD

2006-04-18 Thread Gautham Pamu
Hi Justin,

When you create the web project in rad, it add following variables to
.classpath but mvn eclipse does not seem to
add these variables.. is it possible to configure the eclipse plugin to add
these variables..

classpathentry kind=con path=com.ibm.wtp.server.java.core.container
/com.ibm.etools.websphere.portal.runtime.core.runtimeTarget.v51/wps.base.v51/

Thanks
Gautham Pamu

On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I've found that the eclipse:eclipse task works very nicely at setting up
 your workspace as WSAD is built upon Eclipse. I would imagine RAD is no
 different but I have no exposure to RAD.

 The only other things you'll need to do are:
 Add a Java - classpath variable in your settings to M2_REPO pointing to
 your local repository
 Change the settings in Java - Compiler to allow using multiple output
 locations for source folders

 HTH... also Mike, in all fairness, the nabble archives and whatnot are not
 all that easy to find or use (and not spidered all that well in google).
 If you have nothing good to say, don't say anything at all.


 -j

 ---
 Justin Fung
 [EMAIL PROTECTED]
 Sr. Analyst, Business Systems
 IT Banking Systems, e-Business
 HSBC Bank Canada
 http://www.hsbc.ca
 p: (604) 643-6605
 f: (604) 643-6727








 Serge Emmanuel Pagop [EMAIL PROTECTED]
 04/18/2006 06:53 AM
 Please respond to Maven Users List


 To: Maven Users List users@maven.apache.org
 cc:
 Subject:Re: Maven and WSAD or RAD

   Our Ref:
 Your Ref:


 Which local env. do u like to get at (runtime, compile, ...) ?

 On 4/18/06, Mike Perham [EMAIL PROTECTED] wrote:
 
  Please check the archives.  This has been discussed ad infinitum.
 
  -Original Message-
  From: Aaron Freeman [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 17, 2006 10:54 PM
  To: Maven
  Subject: Maven and WSAD or RAD
 
  Is anyone using Maven with either WebSphere Studio Applicaiton Developer
  or Rational Application Developer? If so, how do you get the local
  environments to work properly? There are some things that the local
  environment needs to run, that are different than the way you would do
  it for a Maven project. For instance, if you have a web project, you
  have to put all the JAR files in the src/main/webapp/web-inf/lib folder
  in order for them to be included in the runtime path for the local
  environment. But as far as Maven goes, you shouldn't be putting these
  files in that fold because it does that for you when it generates the
  target. There is a similar issue with putting JAR files in the root of
  the EAR file project, also. I've come up with some ways to get around
  some of this, but it's really just a hack.
 
  Does anyone know of a good way to deal with this?
 
  Thanks!!
 
  -
  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]
 
 



 ***
 This email may contain confidential information, and is intended only for
 the named recipient and may be privileged.  Distribution or copying of
 this email by anyone other than the named recipient is prohibited. If you
 are not the named recipient, please notify us immediately and permanently
 destroy this email and all copies of it.  Internet email is not private,
 secure, or reliable.  No member of the HSBC Group is liable for any errors
 or omissions in the content or transmission of this email. Any opinions
 contained in this email are solely those of the author and, unless clearly
 indicated otherwise in writing, are not endorsed by any member of the HSBC
 Group.
 ***
 Ce courriel peut renfermer des renseignements confidentiels et privilégiés
 et s'adresse au destinataire désigné seulement.   La distribution ou la
 copie de ce courriel par toute personne autre que le destinataire désigné
 est interdite.  Si vous n'êtes pas le destinataire désigné, veuillez nous
 en aviser immédiatement et détruire de façon permanente ce courriel ainsi
 que toute copie de celui-ci. La transmission de courriel par Internet ne
 constitue pas un mode de transmission confidentiel, sécuritaire ou fiable.
 Aucun membre du Groupe HSBC ne sera responsable des erreurs ou des
 omissions relatives au contenu ou à la transmission de ce courriel.
 L'auteur de ce courriel est seul responsable des opinions émises dans ce
 courriel, lesquelles, à moins  d'un avis contraire fourni par écrit, ne
 sont pas endossées par aucun membre du Groupe HSBC.
 ***




--
-Gautham Pamu


Re: [m2] Aggregated Javadoc dependency problems

2006-04-18 Thread Wendy Smoak
On 4/18/06, Brett Porter [EMAIL PROTECTED] wrote:

 This was reported recently by Jules. I intended to revisit it before
 releasing the plugin.

 If it isn't in JIRA already, would you mid filing it?

I didn't see it there, (but I also didn't see it mentioned in the
archives!) so:  http://jira.codehaus.org/browse/MJAVADOC-66

--
Wendy

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



Use local settings with Maven

2006-04-18 Thread Carlos Henriquez
Hi all, I'm using Continuum with Maven 2.0.2 and I'm trying to use my local
settings but I can't.

There is no user folder for Continuum because it runs as a service. I don't
want to use global settings (mavenDir/conf/settings.xml) but local settings.
Something like ~/.m2/settings.xml

I tried to run Continuum as a service with a Account specially made for it
(in the service properties) but nothing happen. Maven didn't see the
~/.m2/settings.xml file. Maybe the account wasn't set up properly.

Maybe I'm doing something wrong but I can't see it.


RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-18 Thread Johann Reyes
Hello Suhneel

Hmm looks like you are talking about the namingstrategy in hibernate, that
you can find about it here:

http://www.hibernate.org/hib_docs/v3/api/org/hibernate/cfg/NamingStrategy.ht
ml

Also thanks for the stacktrace, I'll have a fun weekend trying to tackle
this, lol. If you need more help just let me know.

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 1:16 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Sweet! This is exactly what I was looking for. Thanks for getting the
plugin updated so quickly.

There is one other small enhancement that would be nice - the generated
POJO's use capital letters to start variable names that represent
associated entities (other variables are fine). It would be nice (and
more standardized) if they could adhere to the first letter lowercase
rule when naming variables for associated entities.

Thanks again, Johann.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 17, 2006 6:08 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel

Yes, it would let you turn off generics ( 2 flags, jdk5 for generics and
ejb3 for annotations ) even if you are using jdk 1.5

About Log4j, I'll research some more, with my test I don't have the need
to include log4j in the pom.xml

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 8:58 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I haven't tried out the new snapshot yet - will it still let me use JDK
1.5 but only disable annotations (the documentation I read included a
JDK5 flag, but made no mention of turning off only annotations in JDK
1.5)?
I added the Log4J dependency to my POM, just like any other dependency.
I'm using Hibernate 3.1.2.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 5:12 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel

I just finished deploying a new snapshot that allows that, please refer
to:

http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/hbm2ja
va-m
ojo.html

Regards

Johann Reyes

Ps also I'm looking into the log4j dependency, how did you add it? And
also what exact version of hibernate are you using in your dependencies
list?



-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:15 PM
To: Maven Users List
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

I got my problem figured out...I needed to add a dependency on log4j,
which looks like it's being used by the internals of the mojo. I now
have POJO's being generated from my Hibernate mapping files.

I'm using JDK 1.5, but I would like annotations disabled (I would still
like to use generics and autoboxing, however). I looked at the mojo API
and the HibernateExporterMojo has an isAnnotationsEnabled property,
which I would like to set to false. I tried setting it in various places
in my POM, but none worked:
1. configuration isAnnotationsEnabled=false 2.
configurationisAnnotationsEnabledfalse/isAnnotationsEnabled/confi
guration
3. hbm2java isAnnotationsEnabled=false 4.
hbm2javaisAnnotationsEnabledfalse/isAnnotationsEnabled/hbm2java

Can I manually disable annotations, and if so, where is the correct
place in my POM/Hibernate configuration to disable JDK 1.5 annotations?
I would like to avoid changing my Java version back to 1.4 just for this
goal, to avoid the creation of annotations in my POJO's.

Thanks much.

-Original Message-
From: Johann Reyes [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 1:32 PM
To: 'Maven Users List'
Subject: RE: hibernate3-maven-plugin:hbm2java - Setup Problems

Hello Suhneel;

Could you please run mvn -X hibernate3:hbm2java and send me the
output?

Also what jdk you are running?

Regards

Johann Reyes

-Original Message-
From: Roye, Suhneel BGI SF [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 3:34 PM
To: Maven Users List
Subject: hibernate3-maven-plugin:hbm2java - Setup Problems

I am trying to set up the Hibernate3 plugin for Maven2. Specifically, I
would like to have the plugin generate POJO's from *.hbm.xml mapping
files.

Relevant portions of my project directory structure:
Hibernate Configuration: project/src/main/resources/hibernate.cfg.xml
Hibernate Mappings:
project/src/main/resources/com/mycompany/app/*.hbm.xml
Target directory for generated POJO's:
project/src/main/java/com/mycompany/app/*.java

POM snippet:
.
.
.
pluginRepositories
pluginRepository
idsnapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2/url
/pluginRepository
/pluginRepositories

.
.
.
plugin

RE: Checking in-use compiler?

2006-04-18 Thread Gwyn


Roye, Suhneel BGI SF wrote:
 
 Take a look at this link:
 http://maven.apache.org/plugins/maven-compiler-plugin/howto.html 
 
 You have to explicitly specify that you want to compile with Java 1.5
 

Hmm, so it appears... Thanks!

/Gwyn
--
View this message in context: 
http://www.nabble.com/Checking-in-use-compiler--t1469398.html#a3974270
Sent from the Maven - Users forum at Nabble.com.


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



RE: hibernate3-maven-plugin:hbm2java - Setup Problems

2006-04-18 Thread Gwyn

Hi,
  I'm no expert, but it looks to me as if the log4j connection is as a
result of clogging.  Whether it's as a result of implicit or explict config,
I've no idea...
/Gwyn
--
View this message in context: 
http://www.nabble.com/hibernate3-maven-plugin%3Ahbm2java---Setup-Problems-t1463811.html#a3974445
Sent from the Maven - Users forum at Nabble.com.


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



RE: Help me about changes plugin

2006-04-18 Thread Vijay Shanker
I have my cvs repository in C:/viewcvsinstall/CVSROOT and it has test1 
directory for my projects. I have defined following scm tag in my project's 
pom.xml but I get invalid scm tag error.
 
  scm

connectionscm:cvs|local|C:/viewcvsinstall/CVSROOT|test1/Project1/connection

developerConnectionscm:cvs|local|C:/viewcvsinstall/CVSROOT|Project1/${artifactId}/developerConnection
  /scm
 
While if I do checkout with following(at command prompt) then it works fine. We 
can see URL is same.
 
mvn scm:checkout 
-DconnectionUrl=scm:cvs|local|C:/viewcvsinstall/CVSROOT|test1/Project1
 
Please suggest the solution.
 
Thanks,
Vijay
 
 
From: [EMAIL PROTECTED] on behalf of Lee Meador
Sent: Tue 4/18/2006 11:25 AM
To: Maven Users List
Subject: Re: Help me about changes plugin



Put this in your pom.xml to add a report showing what has changed in the
version control during the last 30 days. There are some config settings you
can add that change just what is shown in the report.

reporting
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdchangelog-maven-plugin/artifactId
/plugin
/plugins
/reporting

When you do a mvn site, it will generate the reports as html and put them
under the 'target' folder.

You also have to be sure and set the scm section in your pom so it knows
how to talk to the version control:

 scm
 
connectionscm:svn:svn://subversion.company.com/project/trunk/base//connection
 
developerConnectionscm:svn:svn://subversion.company.com/project/trunk/base//developerConnection
 url/url
 /scm

You can find the right connection url by going to a blank working folder and
doing this from command line:

mvn scm:checkout -DconnectionUrl=scm:svn:svn://sub...

with the same thing as is in the connection tag. When it checks out your
project, you have it right.

There used to be some info at http://mojo.codehaus.org/*changelog*-*maven*-*
plugin*/howto.htmlhttp://mojo.codehaus.org/changelog-maven-plugin/howto.html
but it seems to point back to
http://maven.apache.org/plugins/maven-changelog-plugin now and that doesn't
have anything there.

I think the 'changes' plugin is used to generate a page for the site showing
what has changed between version 1.1 and 1.2 for example. I'm not really
sure.

-- Lee Meador

On 4/18/06, Vijay Shanker [EMAIL PROTECTED] wrote:

 As per requirement, I have to prepares reports about changes in files
 between current version and previous version of files so could any body
 suggest me the approach for achieving this goal.

 I got to know from maven website that there are two plugins neams as
 changes and changelog but when I click on those, I get page not found
 problem.

 Looking for the help.

 Thanks in advance.

 Vijay






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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]



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

RE: Plugin repository issue

2006-04-18 Thread Mark Misurak
Thanks for the reply. 
 
Unfortunately, I do not believe this is the problem. I cleaned out my local 
repository, then ran mvn clean on my project. The same error appeared: 
 
[ERROR] BUILD ERROR 
[INFO]  
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist 
or no valid version could be found 
 
The only pluginRepository listed in my pom was the development server. Nothing 
downloaded before the error appeared, so my central repository was definitely 
not overridden. 
 
Is there some additional configuration that I'm not aware of that plugin 
repositories require? For example, do I need to specify some sort of metadata 
in the repo somewhere?

[EMAIL PROTECTED] 04/18/06 12:39 pm 
From Wayne Fay:

I think the problem is that some of these Maven poms are defining new
Repos which are added to the Repos list when they are added as
dependencies.

maven-help-plugin-2.0 has none defined
but it specifies maven-plugin-parent-2.0 as a dependency which specifies

 repositories
   repository
 idsnapshots/id
 nameMaven Central Development Repository/name
 urlhttp://snapshots.maven.codehaus.org/maven2/url
 releases
   enabledfalse/enabled
 /releases
   /repository
 /repositories
 pluginRepositories
   pluginRepository
 idsnapshots/id
 nameMaven Central Plugins Development Repository/name
 urlhttp://snapshots.maven.codehaus.org/maven2/url
 releases
   enabledfalse/enabled
 /releases
   /pluginRepository
 /pluginRepositories

See here:
http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom

And then it has a bunch of other dependencies, which all have their
own poms and dependencies etc... So in all likelihood, somewhere in
that chain, I'm guessing that you are getting several new Repos and
PluginRepos added to your list.

This is certainly a bug in those poms. We've seen this before and I
believe it was agreed that it was not proper for hosted poms to
add/change Repos on the user out of the blue. It would be great if
there was an easy code solution to this problem, but I haven't looked
into it, and at the time the fix was to simply repair that one
specific pom.

So if we can find all the poms like this on Central and open a bunch
of MEV Jira bugs, Carlos will love us (not), but it should get rid of
your problems, EJ.

Wayne

-Original Message-
From: Mark Misurak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 11:40 AM
To: users@maven.apache.org
Subject: Plugin repository issue

Hello. I'm having an issue with setting up a plugin repository on a
development server (I'm setting up this repository so that our
organization's developers will use the development server's repository
instead of Ibiblio). In my pom.xml for my project saved locally, I have
the following:

project
...
repositories
 repository
   idcentral/id
   urlhttp://myorg.ca/maven2/url
 /repository
/repositories

pluginRepositories
 pluginRepository
   idcentral/id
   urlhttp://myorg.ca/maven2/url
 /pluginRepository
/pluginRepositories
...
/project

When I run mvn clean on the project, I see the following error:
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not
exist or no valid version could be found

When I set the plugin repository back to Ibiblio, clean works fine.

Essentially, the dev server's repository works fine (ordinary jars
download just fine), but the server's plugin repository does not. How do
I set up my plugin repository correctly?




This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential
information.  Any unauthorized use, disclosure, distribution, copying or
dissemination is strictly prohibited.  If you receive this transmission in
error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne
ou aux personnes à qui il est adressé. Il peut contenir des informations
privilégiées ou confidentielles. Toute utilisation, divulgation, distribution,
copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas
le destinataire de ce message, veuillez en informer l'expéditeur immédiatement
et lui remettre l'original.



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





This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential
information.  Any unauthorized use, disclosure, distribution, copying or
dissemination is strictly prohibited.  If you receive this transmission in
error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne
ou aux 

Re: Maven and WSAD or RAD

2006-04-18 Thread justin_fung
I think you've got a couple options here.

You could define a new JRE System library in your workspace and switch to 
that for the project 
or you could manually install the necessary JARs using mvn 
install:install-file (see the maven site for docs) and then define these 
dependencies on your POM.xml.

-j

---
Justin Fung
[EMAIL PROTECTED]
Sr. Analyst, Business Systems
IT Banking Systems, e-Business
HSBC Bank Canada
http://www.hsbc.ca
p: (604) 643-6605
f: (604) 643-6727








Gautham Pamu [EMAIL PROTECTED]
04/18/2006 11:17 AM
Please respond to Maven Users List

 
To: Maven Users List users@maven.apache.org
cc: 
Subject:Re: Maven and WSAD or RAD

  Our Ref: 
Your Ref: 


Hi Justin,

When you create the web project in rad, it add following variables to
.classpath but mvn eclipse does not seem to
add these variables.. is it possible to configure the eclipse plugin to 
add
these variables..

classpathentry kind=con 
path=com.ibm.wtp.server.java.core.container
/com.ibm.etools.websphere.portal.runtime.core.runtimeTarget.v51/wps.base.v51/

Thanks
Gautham Pamu

On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I've found that the eclipse:eclipse task works very nicely at setting up
 your workspace as WSAD is built upon Eclipse. I would imagine RAD is no
 different but I have no exposure to RAD.

 The only other things you'll need to do are:
 Add a Java - classpath variable in your settings to M2_REPO pointing 
to
 your local repository
 Change the settings in Java - Compiler to allow using multiple output
 locations for source folders

 HTH... also Mike, in all fairness, the nabble archives and whatnot are 
not
 all that easy to find or use (and not spidered all that well in google).
 If you have nothing good to say, don't say anything at all.


 -j

 ---
 Justin Fung
 [EMAIL PROTECTED]
 Sr. Analyst, Business Systems
 IT Banking Systems, e-Business
 HSBC Bank Canada
 http://www.hsbc.ca
 p: (604) 643-6605
 f: (604) 643-6727








 Serge Emmanuel Pagop [EMAIL PROTECTED]
 04/18/2006 06:53 AM
 Please respond to Maven Users List


 To: Maven Users List users@maven.apache.org
 cc:
 Subject:Re: Maven and WSAD or RAD

   Our Ref:
 Your Ref:


 Which local env. do u like to get at (runtime, compile, ...) ?

 On 4/18/06, Mike Perham [EMAIL PROTECTED] wrote:
 
  Please check the archives.  This has been discussed ad infinitum.
 
  -Original Message-
  From: Aaron Freeman [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 17, 2006 10:54 PM
  To: Maven
  Subject: Maven and WSAD or RAD
 
  Is anyone using Maven with either WebSphere Studio Applicaiton 
Developer
  or Rational Application Developer? If so, how do you get the local
  environments to work properly? There are some things that the local
  environment needs to run, that are different than the way you would do
  it for a Maven project. For instance, if you have a web project, you
  have to put all the JAR files in the src/main/webapp/web-inf/lib 
folder
  in order for them to be included in the runtime path for the local
  environment. But as far as Maven goes, you shouldn't be putting these
  files in that fold because it does that for you when it generates the
  target. There is a similar issue with putting JAR files in the root of
  the EAR file project, also. I've come up with some ways to get around
  some of this, but it's really just a hack.
 
  Does anyone know of a good way to deal with this?
 
  Thanks!!
 
  -
  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]
 
 



 ***
 This email may contain confidential information, and is intended only 
for
 the named recipient and may be privileged.  Distribution or copying of
 this email by anyone other than the named recipient is prohibited. If 
you
 are not the named recipient, please notify us immediately and 
permanently
 destroy this email and all copies of it.  Internet email is not private,
 secure, or reliable.  No member of the HSBC Group is liable for any 
errors
 or omissions in the content or transmission of this email. Any opinions
 contained in this email are solely those of the author and, unless 
clearly
 indicated otherwise in writing, are not endorsed by any member of the 
HSBC
 Group.
 ***
 Ce courriel peut renfermer des renseignements confidentiels et 
privilégiés
 et s'adresse au destinataire désigné seulement.   La distribution ou la
 copie de ce courriel par toute personne 

[ANN] Mevenide's Maven2 Netbeans integration 2.1 released

2006-04-18 Thread Milos Kleint
Hello,

The Mevenide team is proud to announce an initial release of Mevenide2
Netbeans 2.1. It's IDE integration for Maven2 project management and
build tool. It allows to open Maven2 projects in the IDE directly,
helps with writing the Maven project files etc.

Noteworthy in 2.1:
- updated maven embedder, now on par with command line mvn.
- more reliable project loading
- project dependency graph and multimodule graph.
- execution of arbitrary goals on projects, Netbeans-style war deployment.
- many bugfixes

Get a more complete list of features and screenshots, along with 
download and installation instructions at
http://docs.codehaus.org/display/MEVENIDE/MevenideNetbeans2.0

Have fun.

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



Re: Use local settings with Maven

2006-04-18 Thread Emmanuel Venisse

1- Continuum can run as a service only with a real account
2- Continuum 1.0.2 doesn't load correctly settings because it use old maven api. This problem is 
fixed in 1.0.3


Emmanuel

Carlos Henriquez a écrit :

Hi all, I'm using Continuum with Maven 2.0.2 and I'm trying to use my local
settings but I can't.

There is no user folder for Continuum because it runs as a service. I don't
want to use global settings (mavenDir/conf/settings.xml) but local settings.
Something like ~/.m2/settings.xml

I tried to run Continuum as a service with a Account specially made for it
(in the service properties) but nothing happen. Maven didn't see the
~/.m2/settings.xml file. Maybe the account wasn't set up properly.

Maybe I'm doing something wrong but I can't see it.





Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread Hua

Hello K.

Thank you for the reply. I need everyone in our team to run maven and setup
the plugin project in Eclipse. I cannot expect them to change .classpath
file manually. Does maven have a command maven eclipse plugin or something
like that, so we can import the plugin project with its plugin dependency
into Eclipse??

Thanks,
Hua
--
View this message in context: 
http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.html#a3974975
Sent from the Maven - Users forum at Nabble.com.


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



Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread Kathryn Huxtable
Not that I know of. That's why I made the archetype. -K

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas

On 4/18/06 2:22 PM, Hua [EMAIL PROTECTED] wrote:

 
 Hello K.
 
 Thank you for the reply. I need everyone in our team to run maven and setup
 the plugin project in Eclipse. I cannot expect them to change .classpath
 file manually. Does maven have a command maven eclipse plugin or something
 like that, so we can import the plugin project with its plugin dependency
 into Eclipse??
 
 Thanks,
 Hua
 --
 View this message in context:
 http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.htm
 l#a3974975
 Sent from the Maven - Users forum 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]



Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread Mark Misurak
Yes, there's a Maven plugin called Eclipse. Run the default goal just
once at the commandline, and your .classpath will be set for you. Just
don't forget to set the MAVEN_REPO variable in your build path before
you do so (Window - Preferences - Java - Build Path - Classpath
Variables). If you're using Maven 2, set the M2_REPO variable instead.

[EMAIL PROTECTED] 04/18/06 2:22 pm 

Hello K.

Thank you for the reply. I need everyone in our team to run maven and
setup
the plugin project in Eclipse. I cannot expect them to change .classpath
file manually. Does maven have a command maven eclipse plugin or
something
like that, so we can import the plugin project with its plugin
dependency
into Eclipse??

Thanks,
Hua
--
View this message in context:
http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.html#a3974975
Sent from the Maven - Users forum at Nabble.com.


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





This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential
information.  Any unauthorized use, disclosure, distribution, copying or
dissemination is strictly prohibited.  If you receive this transmission in
error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne
ou aux personnes à qui il est adressé. Il peut contenir des informations
privilégiées ou confidentielles. Toute utilisation, divulgation, distribution,
copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas
le destinataire de ce message, veuillez en informer l'expéditeur immédiatement
et lui remettre l'original.




Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread Kathryn Huxtable
But it doesn't do what one really wishes if one is using the M2Eclipse
plugin in eclipse, which is to get the dependencies from the POM file.

A fairly standard .classpath file using the M2Eclipse plugin would look
something like:

?xml version=1.0 encoding=UTF-8?
classpath
   classpathentry kind=src path=src/main/java/
   classpathentry kind=src path=src/main/resources/
   classpathentry output=target/test-classes kind=src
   path=src/test/java/
   classpathentry output=target/test-classes kind=src
   path=src/test/resources/
   classpathentry kind=con
 path=org.eclipse.jdt.launching.JRE_CONTAINER/
   classpathentry kind=con
  path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/
   classpathentry kind=output path=target/classes/
/classpath 

See the difference? I find the eclipse plugin in Maven to be irrelevant,
unless I'm distributing the project to another institution.

-K


--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas

On 4/18/06 2:31 PM, Mark Misurak [EMAIL PROTECTED] wrote:

 Yes, there's a Maven plugin called Eclipse. Run the default goal just
 once at the commandline, and your .classpath will be set for you. Just
 don't forget to set the MAVEN_REPO variable in your build path before
 you do so (Window - Preferences - Java - Build Path - Classpath
 Variables). If you're using Maven 2, set the M2_REPO variable instead.
 
 [EMAIL PROTECTED] 04/18/06 2:22 pm 
 
 Hello K.
 
 Thank you for the reply. I need everyone in our team to run maven and
 setup
 the plugin project in Eclipse. I cannot expect them to change .classpath
 file manually. Does maven have a command maven eclipse plugin or
 something
 like that, so we can import the plugin project with its plugin
 dependency
 into Eclipse??
 
 Thanks,
 Hua
 --
 View this message in context:
 http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.htm
 l#a3974975
 Sent from the Maven - Users forum at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 This email and/or any documents in this transmission is intended for the
 addressee(s) only and may contain legally privileged or confidential
 information.  Any unauthorized use, disclosure, distribution, copying or
 dissemination is strictly prohibited.  If you receive this transmission in
 error, please notify the sender immediately and return the original.
 
 Ce courriel et tout document dans cette transmission est destiné à la personne
 ou aux personnes à qui il est adressé. Il peut contenir des informations
 privilégiées ou confidentielles. Toute utilisation, divulgation, distribution,
 copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas
 le destinataire de ce message, veuillez en informer l'expéditeur immédiatement
 et lui remettre l'original.
 
 


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



Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread justin_fung
I'm not quite sure I follow.

Between eclipse:eclipse, install:install-file, the maven dependencies 
plugin and the various options you have with the POM, I haevn't had a 
reason to code a custom eclipse plugin.

Every one of my dependencies is managed inside the POM.xml file and I am 
using WSAD 5.1 (based on Eclipse 2.1)

-j

---
Justin Fung
[EMAIL PROTECTED]
Sr. Analyst, Business Systems
IT Banking Systems, e-Business
HSBC Bank Canada
http://www.hsbc.ca
p: (604) 643-6605
f: (604) 643-6727








Kathryn Huxtable [EMAIL PROTECTED]
04/18/2006 12:46 PM
Please respond to Maven Users List

 
To: Maven Users List users@maven.apache.org
cc: 
Subject:Re: Using maven to setup Eclipse plugin project

  Our Ref: 
Your Ref: 


But it doesn't do what one really wishes if one is using the M2Eclipse
plugin in eclipse, which is to get the dependencies from the POM file.

A fairly standard .classpath file using the M2Eclipse plugin would look
something like:

?xml version=1.0 encoding=UTF-8?
classpath 
   classpathentry kind=src path=src/main/java/
   classpathentry kind=src path=src/main/resources/
   classpathentry output=target/test-classes kind=src
   path=src/test/java/
   classpathentry output=target/test-classes kind=src
   path=src/test/resources/
   classpathentry kind=con
 path=org.eclipse.jdt.launching.JRE_CONTAINER/
   classpathentry kind=con
  path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/
   classpathentry kind=output path=target/classes/
/classpath 

See the difference? I find the eclipse plugin in Maven to be irrelevant,
unless I'm distributing the project to another institution.

-K


--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas

On 4/18/06 2:31 PM, Mark Misurak [EMAIL PROTECTED] wrote:

 Yes, there's a Maven plugin called Eclipse. Run the default goal just
 once at the commandline, and your .classpath will be set for you. Just
 don't forget to set the MAVEN_REPO variable in your build path before
 you do so (Window - Preferences - Java - Build Path - Classpath
 Variables). If you're using Maven 2, set the M2_REPO variable instead.
 
 [EMAIL PROTECTED] 04/18/06 2:22 pm 
 
 Hello K.
 
 Thank you for the reply. I need everyone in our team to run maven and
 setup
 the plugin project in Eclipse. I cannot expect them to change .classpath
 file manually. Does maven have a command maven eclipse plugin or
 something
 like that, so we can import the plugin project with its plugin
 dependency
 into Eclipse??
 
 Thanks,
 Hua
 --
 View this message in context:
 http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.htm
 l#a3974975
 Sent from the Maven - Users forum at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 This email and/or any documents in this transmission is intended for the
 addressee(s) only and may contain legally privileged or confidential
 information.  Any unauthorized use, disclosure, distribution, copying or
 dissemination is strictly prohibited.  If you receive this transmission 
in
 error, please notify the sender immediately and return the original.
 
 Ce courriel et tout document dans cette transmission est destiné à la 
personne
 ou aux personnes à qui il est adressé. Il peut contenir des informations
 privilégiées ou confidentielles. Toute utilisation, divulgation, 
distribution,
 copie, ou diffusion non autorisée est strictement défendue. Si vous 
n'êtes pas
 le destinataire de ce message, veuillez en informer l'expéditeur 
immédiatement
 et lui remettre l'original.
 
 


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



 
*** 
This email may contain confidential information, and is intended only for 
the named recipient and may be privileged.  Distribution or copying of 
this email by anyone other than the named recipient is prohibited. If you 
are not the named recipient, please notify us immediately and permanently 
destroy this email and all copies of it.  Internet email is not private, 
secure, or reliable.  No member of the HSBC Group is liable for any errors 
or omissions in the content or transmission of this email. Any opinions 
contained in this email are solely those of the author and, unless clearly 
indicated otherwise in writing, are not endorsed by any member of the HSBC 
Group. 
*** 
Ce courriel peut renfermer des renseignements confidentiels et privilégiés 
et s'adresse au destinataire désigné seulement.   La distribution ou la 

Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread Mark Misurak
Ah yes, I see what you mean - I use M2Eclipse as well, so I should have known 
that's what you meant.

[EMAIL PROTECTED] 04/18/06 2:46 pm 
But it doesn't do what one really wishes if one is using the M2Eclipse
plugin in eclipse, which is to get the dependencies from the POM file.

A fairly standard .classpath file using the M2Eclipse plugin would look
something like:

?xml version=1.0 encoding=UTF-8?
classpath   
  classpathentry kind=src path=src/main/java/
  classpathentry kind=src path=src/main/resources/
  classpathentry output=target/test-classes kind=src
  path=src/test/java/
  classpathentry output=target/test-classes kind=src
  path=src/test/resources/
  classpathentry kind=con
path=org.eclipse.jdt.launching.JRE_CONTAINER/
  classpathentry kind=con
 path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/
  classpathentry kind=output path=target/classes/
/classpath

See the difference? I find the eclipse plugin in Maven to be irrelevant,
unless I'm distributing the project to another institution.

-K


--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas

On 4/18/06 2:31 PM, Mark Misurak [EMAIL PROTECTED] wrote:

Yes, there's a Maven plugin called Eclipse. Run the default goal just
once at the commandline, and your .classpath will be set for you. Just
don't forget to set the MAVEN_REPO variable in your build path before
you do so (Window - Preferences - Java - Build Path - Classpath
Variables). If you're using Maven 2, set the M2_REPO variable instead.

[EMAIL PROTECTED] 04/18/06 2:22 pm 

Hello K.

Thank you for the reply. I need everyone in our team to run maven and
setup
the plugin project in Eclipse. I cannot expect them to change .classpath
file manually. Does maven have a command maven eclipse plugin or
something
like that, so we can import the plugin project with its plugin
dependency
into Eclipse??

Thanks,
Hua
--
View this message in context:
http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.htm
l#a3974975
Sent from the Maven - Users forum at Nabble.com.


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





This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential
information.  Any unauthorized use, disclosure, distribution, copying or
dissemination is strictly prohibited.  If you receive this transmission in
error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne
ou aux personnes à qui il est adressé. Il peut contenir des informations
privilégiées ou confidentielles. Toute utilisation, divulgation, distribution,
copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas
le destinataire de ce message, veuillez en informer l'expéditeur immédiatement
et lui remettre l'original.




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





This email and/or any documents in this transmission is intended for the
addressee(s) only and may contain legally privileged or confidential
information.  Any unauthorized use, disclosure, distribution, copying or
dissemination is strictly prohibited.  If you receive this transmission in
error, please notify the sender immediately and return the original.

Ce courriel et tout document dans cette transmission est destiné à la personne
ou aux personnes à qui il est adressé. Il peut contenir des informations
privilégiées ou confidentielles. Toute utilisation, divulgation, distribution,
copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas
le destinataire de ce message, veuillez en informer l'expéditeur immédiatement
et lui remettre l'original.




Running Doxia from Subversion

2006-04-18 Thread Elliot Metsger

Hi Everyone,

I'm on Linux, Java 1.4.2, Maven 2.0.4.

It looks like there are some neat improvments being added to the Maven Site
mojo [0].  I'm attempting to learn what elements can be placed into the site
descriptor, and to puzzle out the behavior I am seeing with the menu ...
inherit=bottom/ element.

To that end I've started to dig into the Site mojo and discovered most of
the information I need/want is a part of Doxia.  So I've started digging
into Doxia.  I've not quite got my head around figuring out the possible
elements that are allowed to go into a site descriptor.  I've been spending
time with DefaultDecorationModelInheritanceAssembler to figure out the menu
inheritance and the classes in org.apache.maven.doxia.site.decoration.

Anyway, when I'm rendering my site using the Site mojo (built from svn
successfully - [1]) things like breadcrumbs don't seem to be rendering like
I would expect, and things like menu inheritance seem funny.  So I attempted
to build Doxia from source, and I'm running into problems - I can 'mvn
install' ok, but I can't query for the version of the installed artifact
using 'mvn help:describe'.  Any help is appreciated

Thanks, Elliot


[0]: per http://docs.codehaus.org/display/MAVEN/Sites+and+Inheritence
[1]: http://www.nabble.com/Running-maven-site-plugin-from-svn-t1462915.html


Here are the steps I've taken and the errors I'm receiving:

1. Removed existing Doxia artifacts from local repository (rm -rf'ed
~/.m2/repository/org/apache/maven/doxia*)

2. Checked out Doxia from Subversion - r395007 ('svn co
https://svn.apache.org/repos/asf/maven/doxia/trunk')

3. Built Doxia: 'mvn install -DupdateReleaseInfo=true'
- I notice that Maven attempts to get snapshot jars, even though I don't
have any defined in ~/.m2/settings.xml (I presume that the snapshot settings
are defined in the pom's of the Doxia artifacts)
- All jars seem to be installed: selected output:
[INFO] Installing /home/esm/src/doxia/trunk/pom.xml to
/home/esm/.m2/repository/org/apache/maven/doxia/doxia/1.0-alpha-8-SNAPSHOT/doxia-1.0-alpha-8-SNAPSHOT.pom
... snip ...
[INFO] Installing
/home/esm/src/doxia/trunk/doxia-modules/doxia-module-twiki/target/doxia-module-twiki-1.0-alpha-8-SNAPSHOT.jar
to
/home/esm/.m2/repository/org/apache/maven/doxia/doxia-module-twiki/1.0-alpha-8-SNAPSHOT/doxia-module-twiki-1.0-alpha-8-SNAPSHOT.jar

4. BUT, I can't query Doxia using 'mvn help:describe':
[EMAIL PROTECTED] doxia-decoration-model]$ mvn help:describe
-DartifactId=doxia-decoration-model -DgroupId=org.apache.maven.doxia
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]

[INFO] Building Doxia Decoration Model
[INFO]task-segment: [help:describe] (aggregator-style)
[INFO]

[INFO] [help:describe]
[INFO] artifact org.apache.maven.doxia:doxia-decoration-model: checking for
updates from central
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:198)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163)
at
org.apache.maven.plugins.help.DescribeMojo.lookupPluginDescriptor(DescribeMojo.java:307)
at
org.apache.maven.plugins.help.DescribeMojo.execute(DescribeMojo.java:212)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

RE: Email Notifier Configuration

2006-04-18 Thread Andreas Guther
Of course, that makes sense!  A comma separated list of addresses is a valid 
email address!

But how would I have guessed that?  I guess I could have, but I did not :(

Regarding Wayne's reply:  I think the configuration should support the multiple 
address entry (list of addresses) as well, which would be more an XML 
conformant way to do it and probably easier to guess by user lacking of 
complete documentation.

Thanks for the answer.

Andreas



-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 10:58 AM
To: continuum-users@maven.apache.org
Subject: Re: Email Notifier Configuration

addresses are separated by ,, so in your case, it will be:

ciManagement
   systemcontinuum/system
   urlhttp://my.company.com:8080/continuum//url
   notifiers
 notifier
   typemail/type
   sendOnSuccesstrue/sendOnSuccess
   configuration
 address[EMAIL PROTECTED],[EMAIL PROTECTED]/address
   /configuration
 /notifier
 notifier
   typemail/type
   sendOnErrortrue/sendOnError
   configuration
 address[EMAIL PROTECTED]/address
   /configuration
 /notifier
   /notifiers
/ciManagement

Emmanuel

Andreas Guther a écrit :
 Hi,
 
 I am using continuum 1.0.2 with Maven 2.0.4.
 
 I am having problems finding detailed information about the email
 notifier configuration.
 
From the few examples I could find I have the impression that there is
 always a mailing list to be used.  Is it possible to have multiple user
 addresses in the configuration part, something like in the example
 below?
 
 Where would be a good place to find more detailed configuration
 information than at
 http://maven.apache.org/continuum/guides/getting-started/index.html?
 
 Thanks in advance for any help.
 
 Andreas
 
 Would the multiple address entry as shown below be a valid
 configuration?
 
 ciManagement
   systemcontinuum/system
   urlhttp://my.company.com:8080/continuum//url
   notifiers
   notifier
   typemail/type
   sendOnSuccesstrue/sendOnSuccess
   configuration
   
 address[EMAIL PROTECTED]/address
   
 address[EMAIL PROTECTED]/address
   /configuration
   /notifier
   notifier
   typemail/type
   sendOnErrortrue/sendOnError
   configuration
   
 address[EMAIL PROTECTED]/address
   /configuration
   /notifier
   /notifiers
   /ciManagement
 
 
 
 
 




Re: Using maven to setup Eclipse plugin project

2006-04-18 Thread Kathryn Huxtable
I didn't code a custom Eclipse plugin. I am using the Eclipse plugin
referenced on the maven.apache.org website. It allows you to treat your
repository as a container with dependencies loaded from the pom.xml file.

Using it, you do not have to run mvn eclipse:eclipse each time you make a
dependency change in your pom.xml.

I find this convenient and useful. Your mileage may vary.

-K

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas

On 4/18/06 2:49 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I'm not quite sure I follow.
 
 Between eclipse:eclipse, install:install-file, the maven dependencies
 plugin and the various options you have with the POM, I haevn't had a
 reason to code a custom eclipse plugin.
 
 Every one of my dependencies is managed inside the POM.xml file and I am
 using WSAD 5.1 (based on Eclipse 2.1)
 
 -j
 
 ---
 Justin Fung
 [EMAIL PROTECTED]
 Sr. Analyst, Business Systems
 IT Banking Systems, e-Business
 HSBC Bank Canada
 http://www.hsbc.ca
 p: (604) 643-6605
 f: (604) 643-6727
 
 
 
 
 
 
 
 
 Kathryn Huxtable [EMAIL PROTECTED]
 04/18/2006 12:46 PM
 Please respond to Maven Users List
 
  
 To: Maven Users List users@maven.apache.org
 cc: 
 Subject:Re: Using maven to setup Eclipse plugin project
 
   Our Ref: 
 Your Ref:
 
 
 But it doesn't do what one really wishes if one is using the M2Eclipse
 plugin in eclipse, which is to get the dependencies from the POM file.
 
 A fairly standard .classpath file using the M2Eclipse plugin would look
 something like:
 
 ?xml version=1.0 encoding=UTF-8?
 classpath 
classpathentry kind=src path=src/main/java/
classpathentry kind=src path=src/main/resources/
classpathentry output=target/test-classes kind=src
path=src/test/java/
classpathentry output=target/test-classes kind=src
path=src/test/resources/
classpathentry kind=con
  path=org.eclipse.jdt.launching.JRE_CONTAINER/
classpathentry kind=con
   path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/
classpathentry kind=output path=target/classes/
 /classpath 
 
 See the difference? I find the eclipse plugin in Maven to be irrelevant,
 unless I'm distributing the project to another institution.
 
 -K
 
 
 --
 Kathryn Huxtable
 Middleware Architect
 Core Middleware
 Information Technology, a division of Information Services
 The University of Kansas
 
 On 4/18/06 2:31 PM, Mark Misurak [EMAIL PROTECTED] wrote:
 
 Yes, there's a Maven plugin called Eclipse. Run the default goal just
 once at the commandline, and your .classpath will be set for you. Just
 don't forget to set the MAVEN_REPO variable in your build path before
 you do so (Window - Preferences - Java - Build Path - Classpath
 Variables). If you're using Maven 2, set the M2_REPO variable instead.
 
 [EMAIL PROTECTED] 04/18/06 2:22 pm 
 
 Hello K.
 
 Thank you for the reply. I need everyone in our team to run maven and
 setup
 the plugin project in Eclipse. I cannot expect them to change .classpath
 file manually. Does maven have a command maven eclipse plugin or
 something
 like that, so we can import the plugin project with its plugin
 dependency
 into Eclipse??
 
 Thanks,
 Hua
 --
 View this message in context:
 
http://www.nabble.com/Using-maven-to-setup-Eclipse-plugin-project-t1468793.ht
m
 l#a3974975
 Sent from the Maven - Users forum at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 This email and/or any documents in this transmission is intended for the
 addressee(s) only and may contain legally privileged or confidential
 information.  Any unauthorized use, disclosure, distribution, copying or
 dissemination is strictly prohibited.  If you receive this transmission
 in
 error, please notify the sender immediately and return the original.
 
 Ce courriel et tout document dans cette transmission est destiné à la
 personne
 ou aux personnes à qui il est adressé. Il peut contenir des informations
 privilégiées ou confidentielles. Toute utilisation, divulgation,
 distribution,
 copie, ou diffusion non autorisée est strictement défendue. Si vous
 n'êtes pas
 le destinataire de ce message, veuillez en informer l'expéditeur
 immédiatement
 et lui remettre l'original.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  
 ***
 This email may contain confidential information, and is intended only for
 the named recipient and may be privileged.  Distribution or copying of
 this email by anyone other than the named recipient is prohibited. 

Re: Tomcat plugin

2006-04-18 Thread lsacco

I’m attempting to use your plug-in for deploying to Tomcat.  It says it’s
successful but I don’t see the application deployed in any way.  Can you
advise?

My pertinent information:

Tomcat 5.0.28 (note that I’m not trying to precompile JSP so this should be
ok, no?)
Maven 1.0.2
plugin version 1.2.1

Project.properties:
maven.tomcat.manager.url=http://localhost:8080/manager
maven.tomcat.username=admin
maven.tomcat.password=admin
maven.tomcat.jsp.precompile=false

maven.xml:
goal name=deploy
description=Deploy everything to the tomcat
server
 
j:forEach items=${web_projects} var=web_project
indexVar=projectNumber
echodeploy/echo
m:reactor basedir=${basedir}/..
   
includes=${web_project}/project.xml postProcessing=true
ignoreFailures=true
goals=tomcat:deploy /
/j:forEach
/goal
 
Output:
__  __

|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

deploy:

[echo] deploy

Starting the reactor...

Our processing order:

QCTPCNCustomerLogWeb

+

| Processing QCTPCNCustomerLogWeb

| Memory: 3M/4M

+

build:start:

 

war:init:

 

tomcat:init:

[echo] Found context file
c:\PVCS\Agile9\ProductDataManagement\J2EEProjects\

QCTPCNCustomerLog\QCTPCNCustomerLogMaven\..\QCTPCNCustomerLogWeb/src/webapp/META

-INF/context.xml

[echo] found /QCTPCN in context file

 

war:war-resources:

[copy] Copying 1 file to
C:\PVCS\Agile9\ProductDataManagement\J2EEProjects\Q

CTPCNCustomerLog\QCTPCNCustomerLogWeb\WebContent

[copy] Copying 1 file to
C:\PVCS\Agile9\ProductDataManagement\J2EEProjects\Q

CTPCNCustomerLog\QCTPCNCustomerLogWeb\WebContent\WEB-INF

 

tomcat:_jspc:

[echo] maven.tomcat.jsp.precompile = 'false' skipping pre-compile

 

java:prepare-filesystem:

 

java:compile:

[echo] Compiling to
c:\PVCS\Agile9\ProductDataManagement\J2EEProjects\QCTPCN

CustomerLog\QCTPCNCustomerLogMaven\..\QCTPCNCustomerLogWeb/build

[echo]

==

 

  NOTE: Targetting JVM 1.4, classes

  will not run on earlier JVMs

 

==

 

 

java:jar-resources:

 

test:prepare-filesystem:

 

test:test-resources:

 

test:compile:

[echo] No test source files to compile.

 

$

[echo] No tests to run.

 

war:webapp:

[echo] Assembling webapp QCTPCNCustomerLogWeb

 

tomcat:jspc:

 

war:war:

[echo] Building WAR QCTPCNCustomerLogWeb

[jar] Building jar:
C:\PVCS\Agile9\ProductDataManagement\J2EEProjects\QCTPCN

CustomerLog\QCTPCNCustomerLogWeb\dist\QCTPCN.war

 

tomcat:_deploy:

[echo] ctx '/QCTPCN'
file:c:\PVCS\Agile9\ProductDataManagement\J2EEProjects\

QCTPCNCustomerLog\QCTPCNCustomerLogMaven\..\QCTPCNCustomerLogWeb/dist/QCTPCNCust

omerLogWeb/QCTPCN.war

BUILD SUCCESSFUL

Total time: 8 seconds

Finished at: Tue Apr 18 10:49:36 PDT 2006

--
View this message in context: 
http://www.nabble.com/Tomcat-plugin-t1386937.html#a3978438
Sent from the Maven - Users forum at Nabble.com.


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



[ANN] JAVAWUG BOF XVII / Friday 28th April 2006 @ 19:00 / Oracl e City of London

2006-04-18 Thread Peter Pilgrim


Dear All

The JAVAWUG (Java Web User Group) has rescheduled the BOF XVIII (Number 
17) from Thursday 20th April to now Friday 20th April 2006.


The birds-of-feather will still take place at the same venue, Oracle's 
City of London office between 7-9:30 pm. The presentations are and

the confirmed speakers are:


 Prashanth, S.
 ``J2EE: Security on Websphere''

 Peter Pilgrim
``Experiences With WebWork''

Afterwards members can retire to the nearby the ``All Bar One''
pub/restaurant for more in depth discussion dinner,
food and drink ...

The address is:
Oracle City Of London
One South Place
London,
England
EC2M 2RB.



If you would like to attend, please REGISTER so that you can
be added to the SECURITY DETAIL

Join the http://groups.google.com/group/javawug JAVAWUG at Google Groups
and ``Send an Email to the list you are attending''

Alternatively send mail to myself at peter dot pilgrim at credit-suisse.com
and duncan dot mills at oracle.com

Here is some relevant travel information:

By Underground: -
Moorgate: Take the Moorgate East exit, turn right, one block to South
Place.
Bank: Take the Northern line to Moorgate.
Liverpool Street: Take the Broadgate exit, turn right onto South Place


Map: http://www.oracle.com/global/uk/corporate/locations/citymap.html

The venue has graciously been organised by Duncan Mills of Oracle Corp.
We all appreciate this generous gift.

http://www.javawug.com/

http://jroller.com/page/peter_pilgrim

PS: The presentations will be recorded and I hope to upload them all
Google Video Site. search against JAVAWUG for the last video uploads.


====

--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )
   __ _ _ _
  / //__  // ___// ___/   +  Serverside Java
 / /___/ // /__ / /__ +  Struts
/ // ___// ___// ___/ +  Expresso Committer
 __/ // /__ / /__ / /__   +  Independent Contractor
/___///////   +  Intrinsic Motivation
On Line Resume
   ||
   \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''


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



m2 How to add generated source to the compilation path from a new plugin

2006-04-18 Thread Gautham Pamu
Hi Everyone,

I am new to maven plugin development. I developed a plugin which generates
source code, how do i add the output directory
of the generated code to the compilation path. Is there some annotation I
need to set in the MOJO ?

axistools-maven-plugin does generate code and adds to the compilation path
but I dont know how they do it.

Thanks
-Gautham Pamu


Re: m2 How to add generated source to the compilation path from a new plugin

2006-04-18 Thread dan tran
see build-helper-maven-plugin source.

-D


On 4/18/06, Gautham Pamu [EMAIL PROTECTED] wrote:

 Hi Everyone,

 I am new to maven plugin development. I developed a plugin which generates
 source code, how do i add the output directory
 of the generated code to the compilation path. Is there some annotation I
 need to set in the MOJO ?

 axistools-maven-plugin does generate code and adds to the compilation path
 but I dont know how they do it.

 Thanks
 -Gautham Pamu




Re: best way to choose between development/production files

2006-04-18 Thread Wayne Fay
Hi Janos,

I believe the proper Maven2 way of doing this would be with a single
set of files for all deployment environments with variable
substitution using values derived from profiles.

Then you issue mvn package -P dev and it uses the values from
profile dev when filtering the property files.

Here's an example:
project/web/pom.xml
  build
resources
  resource
directorysrc/main/resources/directory
filteringtrue/filtering
  /resource
/resources

project/profiles.xml
profilesXml
  activeProfiles
activeProfilelocal/activeProfile
  /activeProfiles
  profiles
profile
  idlocal/id
  activation
activeByDefaulttrue/activeByDefault
  /activation
  properties
proj.web.context/local/proj.web.context
proj.web.urilocal.war/proj.web.uri
  /properties
/profile
profile
  iddev/id
  properties
proj.web.context/proj212/proj.web.context
proj.web.uriweb-2.1.2.war/proj.web.uri
  /properties
/profile
  /profiles
/profilesXml


project/web/src/main/resources/META-INF/application.xml
  module
web
  web-uri${proj.web.uri}/web-uri
  context-root${proj.web.context}/context-root
/web
  /module


Then when the filter resources step occurs, your property values are
substituted for the variables in the resources, depending on which
profile you want to use for this build.

HTH.
Wayne

On 4/18/06, Janos Mucsi [EMAIL PROTECTED] wrote:
 Ray

 Thanks, I start to understand profiles. However, I
 would like to see how you would use a property that a
 profile sets to copy additional resources. Any sample
 pom.xml?

 Let's say my directory structure is like this:
 src
   main
  java
  resources
  devresources
   test
 ..

 I would like to (over)write some files from
 devresources over the files coming from resources.

 Thanks.

 Janos

 --- Ray Tsang [EMAIL PROTECTED] wrote:

  sound like you should use profiles or resource
  filters
 
 
 http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 
 http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files?
 
  ray,
 
  On 4/18/06, Janos Mucsi [EMAIL PROTECTED] wrote:
   Hi
 Some resource files are different in
  development, so I want to overwrite the production
  files when building for dev.
 src
  main
   java
   conf
development
production
  
  
 What is the smartest way to overlay some files?
  Using an embedded Ant script? Where do I specify the
  switch condition? On the command line? By the way,
  what is also the best way to lay out the
  directories?
  
  
 Thanks.
 Janos
  
  
   -
   Love cheap thrills? Enjoy PC-to-Phone  calls to
  30+ countries for just 2¢/min with Yahoo! Messenger
  with Voice.
  
 


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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




Re: Mojo File array parameter and system properties

2006-04-18 Thread Wayne Fay
First off, I haven't done a lot of Maven plugin development, so take
this with a grain of salt.

I don't believe this error is simply due to the fact that you're
trying to pass a string value into a File property. I think its also
because your mojo is expecting an array of files.

Other people have asked how to pass in an array of values from the
command line on this list, and the general response was you just
can't.

So I'd just plan on putting all your file values etc in the pom.xml
file itself for this mojo, and not trying to pass the properties thru
the command line.

Wayne

On 4/18/06, Beyer,Nathan [EMAIL PROTECTED] wrote:
 I'm building a Maven 2 Plugin (as a MOJO) and I have a parameter that's
 a java.io.File array and I'm trying to figure out how I would create an
 expression for passing this as a system property. Currently, the
 parameter is configured as follows.

/**
 * p
 * The list of report file paths (relative to the project root).
 * /p
 *
 * @parameter expression=${reportPaths}
 * @required
 */
private File[] reportPaths;


 The parameter will get setup as I expect (an array of File instances)
 when I use either of the following configurations in a POM.

configuration
reportPaths
reportPathtest_report_1.xml/reportPath
/reportPaths
/configuration

configuration
reportPaths
java.io.Filetest_report_1.xml/java.io.File
/reportPaths
/configuration

 How would I setup this parameter via a System Property on the command
 line? I've tried a couple of things, like the following, but I get an
 error about not being able to assign the entry because the input is a
 String and the expected class is a File[].

 mvn mygroup:myartifact:mygoal -DreportPaths=test_report_1.xml

 Additionally, I've tried changing the type to an ArrayList and can setup
 the parameter via the POM, but I still can't get the system property to
 parse anything.

 Any suggestions? Are there any documents for plugin development that are
 more detailed than the Mojo API, the development mini guide and the
 configuring a plugin mini guide? I've tried searching, but I haven't
 found much.

 Thanks.

 -Nathan




 -
 CONFIDENTIALITY NOTICE This message and any included attachments
 are from Cerner Corporation and are intended only for the
 addressee. The information contained in this message is
 confidential and may constitute inside or non-public information
 under international, federal, or state securities laws.
 Unauthorized forwarding, printing, copying, distribution, or use of
 such information is strictly prohibited and may be unlawful. If you
 are not the addressee, please promptly delete this message and
 notify the sender of the delivery error by e-mail or you may call
 Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
 (816)221-1024. ---


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