Re: Maven 2.x documentation

2005-10-07 Thread Graham King

Jason,

 One thing I would love to see is how to setup maven to get one project 
to target different environments - dev, uat, live. For example each 
environment will want a different log4j.properties, some different 
tokens for filtering, etc.
 I keep thinking there must be a clean, simple way of doing this, but 
it escapes me.


 Thanks,
 Graham.

Jason van Zyl wrote:

Hi,

I'm working on the Maven Getting Started Guide (GSG), some mini guides
and some introductory material.

In the last week or so I've been trying to harvest popular topics off
the user list in order to create the introductory material users need
and mini guides which are supposed to be little howtos for getting
things done.

What I have still needs to be fleshed out a great deal but if anyone has
any ideas or topics for introductory material or mini guides please send
them my way. Or if you have submitted something and you know of a
particular JIRA issue you would like me to look at please send that my
way too.

http://people.apache.org/~jvanzyl/maven2/guides/toc.html

Also if you want to create a little guide I would be happy to add
it! :-)

I hope to complete all the material for the 2.0 final release. Any
feedback would be greatly appreciated.



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



Re: Facing trouble in setting local maven

2005-10-06 Thread Graham King

 Muralidhar,

 By default Maven will create its local repository in your home 
directory.  On Windows this will be C:\Document And Settings\[you 
username]\.


 To use a different directory, your need to set maven.home.local.
 See here for more details: 
http://maven.apache.org/reference/properties.html


 For example create a file called 'build.properties' in your home 
directory, and put this in it:


maven.home.local=C:\\maven\\repository

 All the best,
 Graham.


Muralidhar Y. wrote:

Hi I am facing a problem in setting maven local repository on my machine. I
have downloaded maven1.0 and set the path to bin and also set the class path
to lib folder. Now I crated a maven/repository on my local hard drive. When
I try to compile one maven project instead of looking into local maven
repository  it directly tries to download from internet sites. How do I say
maven not to download from websites when they are present in my local
repository and to look into local maven repository for desired dependencies.


Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com  
http://www.mercator.aero    
(Keep Smiling. Be happy All The Time.)





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



Re: M1 - More than 1 artefact

2005-10-06 Thread Graham King

 Simon,

 We have the same problem. We use one project but three 
build.properties files (build.dev.properties, build.uat.properties and 
build.live.properties).


 In maven.xml we have three top level goals 'dev', 'uat' and 'live', 
which source the right properties file. We then use those properties as 
tokens to replace in files and to select files to copy to the target 
directory.
 For example the build.{env}.properties file would define both 
'tomcat.home' and 'log4j.properties.file', and then we would do:


  
  
tofile="${maven.war.webapp.dir}/WEB-INF/classes/log4j.properties" 
overwrite="true" filtering="true" />


  this puts the right log4j file, with the right paths, in to the 
webapp directory, before the war is built.


 I'm not sure this is the best way to do it, and I would love to hear 
how other people have done it. I like Bent André Solheim's solution as well.


 Is there a canonical way to do this ? Every significant project must 
have the same issue.


 All the best,
 Graham.

Richardson, Simon (Treasury) wrote:

I would like the ability to create more than 1 artefact from a single
project.xml file.


Where the App-[env].jar file would contain configuration from src/conf/[env]
and no other src/conf directory.

 


I understand the underlying philosophy is 1 pom 1 artefact but I'm sure that
others must have come across similar problems and worked round them.

 


Regards

 


Simon

 


Simon Richardson
Technology
Tel: 020 7574 8838
E Mail: [EMAIL PROTECTED]  

 


HBOS Treasury Services plc
33 Old Broad Street
London
EC2N 1HZ

 



"MMS " made the following annotations.
--
For more information on HBOS Treasury Services, please visit 
http://www.HBOSTS.com

Or for details of our online FX & Deposit services, please go to 
http://www.HBOSdeal.com

HBOS Treasury Services plc is part of the HBOS Group, which also includes 
Halifax plc and Bank of Scotland.
Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 
2692890. Registered in England.
Authorised and regulated by the Financial Services Authority.

The information contained in this message is confidential and is intended for 
the addressee only. If you have received this message in error or there are any 
problems please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is strictly forbidden. This 
mail and any attachments have been scanned for viruses prior to leaving the 
HBOS Treasury Services plc network. HBOS Treasury Services plc will not be 
liable for direct, special, indirect or consequential damages arising from 
alteration of the contents of this message by a third party or as a result of 
any virus being passed on.

HBOS Treasury Services plc reserves the right to monitor and record e-mail 
messages sent to and from this address for the purposes of investigating or 
detecting any unauthorised use of its system and ensuring its effective 
operation.
==



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



Re: Plugin support for Hibernate 3.0

2005-08-04 Thread Graham King


 For what it's worth, I've been using the hibernate:schema-export task 
from Anthony Vito's version with Hibernate 3 for several months now and 
it works great.



On 5/24/05, Felipe Leme <[EMAIL PROTECTED]> wrote:

Hibernate plugin? Will it be updated to support 3.0 sometime soon?


I've been too busy lately and haven't realized this last comment:

http://jira.codehaus.org/browse/MPHIBERNATE-14#action_38344


If it works as Anthony says (and has the proper test cases :-), I would
gladly apply it. I will try to take a better look on it later next week
(this week unfortunately I won't be able to :-(

-- Felipe



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



Re: Compiling J2SE 5.0

2005-06-20 Thread Graham King

 In Maven 1.0 you put this in your project.properties:

maven.compile.source=1.5
maven.compile.target=1.5
maven.test.source=1.5
maven.javadoc.source=1.5

 I don't know if this has changed for 2.0

 Graham.


Nathaniel Stoddard wrote:

Another newbie question for you guys (big thanks by the way!):

How do I set up Maven so it will compile with a target and source of
1.5.  I know how to do this in Ant, and I can see the properties for
the "compiler:compiler" plugin, but I don't really understand where I
should set them.  I'm using Maven 2.0.

-
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: example hibernate3 configuration for maven?

2005-06-16 Thread Graham King

 Hibernate uses pretty much every other open source project ever written.

Try this:


dom4j
dom4j
1.6

true



   

commons-beanutils
commons-beanutils
1.7.0

true




commons-digester
commons-digester
1.6

true




commons-pool
commons-pool
1.2

true




commons-validator
commons-validator
1.1.4

true




commons-dbcp
commons-dbcp
1.2.1

true




commons-lang
commons-lang
2.0

true




commons-collections
commons-collections
3.1

true




  antlr
  antlr
  2.7.5
  
true
  


   
 hibernate
 hibernate
 3.0
 
true
 
   

   
 ehcache
 ehcache
 1.1
 
true
 
   

   
 cglib
 cglib
 2.0.2
 
true
 
   

   
 asm
 asm
 1.4
 
true
 
   


 Graham.

Mick Knutson wrote:
I am hoping someone can show me the dependancies for hibernate3 in 
maven. Please...


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



-
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: changelog plugin date quote problem

2005-06-15 Thread Graham King

 I'm on Windows XP (SP2) with Cygwin's cvs 1.11.17.

 The quotes work fine on the command line, but it seems cvslib doesn't 
like them.


 Does Netbeans's cvslib support SSH connections ? On the version I got 
from cvs the SSH2Connection part was commented out and marked as TBD.



Brett Porter wrote:

Graham, what CVS version and Windows version are you using?

This was introduced to fix this:
http://jira.codehaus.org/browse/MPCHANGELOG-47

The change worked with the cygwin executable I tested with (shouldn't
matter that it is cygwin, as the quotes are handled by the cmd.exe, I
thought)

- Brett

On 6/15/05, Graham King <[EMAIL PROTECTED]> wrote:


   I have been trying to use the maven-changelog-plugin 1.8.1 and 1.8.2 on
Windows connecting to a Linux pserver. It always reports no changes.

 Adding a log statement to CvsLogListener to print out the stderr shows:

cvs [server aborted]: Can't parse date/time:  "2005-05-16

 Changing CvsChangeLogGenerator.getScmDateArgument to remove the part
quoting the date range if the os is Windows fixes it.

 Could someone advise me on whether this is a setup problem my end or a
bug ? I'm happy to submit a patch - the change is very small.

 Thanks in advance,
 Graham.



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



changelog plugin date quote problem

2005-06-15 Thread Graham King
	I have been trying to use the maven-changelog-plugin 1.8.1 and 1.8.2 on 
Windows connecting to a Linux pserver. It always reports no changes.


 Adding a log statement to CvsLogListener to print out the stderr shows:

cvs [server aborted]: Can't parse date/time:  "2005-05-16

 Changing CvsChangeLogGenerator.getScmDateArgument to remove the part 
quoting the date range if the os is Windows fixes it.


 Could someone advise me on whether this is a setup problem my end or a 
bug ? I'm happy to submit a patch - the change is very small.


 Thanks in advance,
 Graham.

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



Maven source code link from site

2005-06-15 Thread Graham King


	The maven.apache.org site does not provide a way to get the maven 
source code. The Project Info / Source Repository page only has the 
viewcvs link. The only way I could find of getting the real URL was to 
browse to project.xml in viewcvs.


 Could the SVN link 
http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/ be included on 
the Source Repository page ? Maybe even with basic Subversion 
instructions (in the same way the CVS page does).


 On a related note the building-from-source page still mentions CVS 
instead of Subversion.


 Best Regards,
 Graham.

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



Re: [Mavenbook.org] What content would you like to see?

2005-06-09 Thread Graham King


Vincent Massol wrote:

Hi there,

Tim O'Brien and I have started a web site called http://www.mavenbook.org. 



 I don't know if the book will already include this, but I'd love to 
see more Enterprise (big E!) maven tips / recipes / best practices.
 For example how do you setup your project when you need to be able to 
deploy to a development site, a QA / testing site, and several live 
sites. Should it be 3 projects ? Should you have some maven.xml 
scripting to source the right properties and do site specific work ? Etc.


 Looking forward to the book.

 Graham.

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



Re: Problem in using Tomcat Web Server on a Linux OS as the Central repository

2005-05-25 Thread Graham King

 Deepa,

 The directory structure is /jars/-.jar

 So you need to copy your commons-digester to

 maven/commons-digester/jars/commons-digester-1.5.jar

 then maven should be able to find it.

 Graham.

[EMAIL PROTECTED] wrote:
Hi,   



   



I had used the Tomcat Web Server on a Linux OS as the Central repository
for downloading the dependent jar files. I had created a directory by
name "maven" under webapps folder of tomcat and placed the dependent jar
files in it with the same structure that Maven proposes. And used the
property maven.repo.remote=http://10.145.92.29:8081/maven in the
build.properties file.


   



I had got the following error:   



__  __

|  \/  |__ _Apache__ ___

| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~

|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2




Attempting to download commons-digester-1.5.jar.

WARNING: Failed to download commons-digester-1.5.jar.

The build cannot continue because of the following unsatisfied
dependency:




commons-digester-1.5.jar




Total time: 2 seconds

Finished at: Wed May 25 14:24:55 IST 2005

   



Is there any way through which I can download the dependent jar files
from a Web Server?




Regards,

Deepa







Confidentiality Notice


The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.


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



Re: Plugin support for Hibernate 3.0

2005-05-24 Thread Graham King

 Yes sorry I forgot. I had to patch the plugin. See here:

http://jira.codehaus.org/browse/MPHIBERNATE-14

 I used the version2and3comat.diff.

Jamie Bisotti wrote:

I haven't tried it, but I was under the impression that Hibernate
3.0's repackaging broke the plug-in.  Is that incorrect?

On 5/24/05, Graham King <[EMAIL PROTECTED]> wrote:


 Jamie,

 We use the hibernate:schema-export task with Hibernate 3.0 in exactly
the same way as we did for hibernate 2.1.6.
 I'm not sure about any other part of the Hibernate plugin.

 Graham.

Jamie Bisotti wrote:


What is the status of the Hibernate plugin?  Will it be updated to
support 3.0 sometime soon?


-
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: Plugin support for Hibernate 3.0

2005-05-24 Thread Graham King

 Jamie,

 We use the hibernate:schema-export task with Hibernate 3.0 in exactly 
the same way as we did for hibernate 2.1.6.

 I'm not sure about any other part of the Hibernate plugin.

 Graham.

Jamie Bisotti wrote:

What is the status of the Hibernate plugin?  Will it be updated to
support 3.0 sometime soon?


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




Re: Resource filtering wish

2005-05-23 Thread Graham King
 It's not just you - I went through a similar process. I heartily 
second your enhancement wish.


Jamie Bisotti wrote:

Why can't true, on a  element provide some
basic filtering, without requiring writing/modifying maven.xml?  For
example, why can't it apply system properties, or just properties in
general?

In my case, I want to put the CruiseControl build label (provided as
the "label" sys prop), into the MANIFEST.MF of the generated WAR file.
 In my MANIFEST.MF template, I've added: "Build-Label: @label@" and in
my project.xml, I've added true to the appropriate
 entry.  It was very non-obvious (please point me to the
docs if I missed it) that I also need to provide a java:jar-resources
preGoal in my maven.xml and explicitly state the token and the
replacement value.  Seems like Maven could scan filtered resources for
tokens and look to see if there was a corresponding property available
and use it by default.

Or maybe it's just me.



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