RE: [m2eclipse-user] Re : Re :Re : Re : Re : Step by Step guide

2007-04-27 Thread Phill Moran
Dos your project have a long list of dependencies in it or just the maven
dependency container?
What version of eclipse are you using?
 
Phill

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: April 27, 2007 6:55 AM
To: [EMAIL PROTECTED]; users@maven.apache.org
Subject: [m2eclipse-user] Re : Re :Re : Re : Re : Step by Step guide


Thanks for the trick,
But I think that there's a problem with that plugin ! once I lunch a compile
goal I haave only this output for long time !! : 

[INFO] Scanning for projects...

and nothing else ! 

Thanks for helping
Nawfel BERAICH


- Message d'origine 
De : VUB Stefan Seidel [EMAIL PROTECTED]
À : [EMAIL PROTECTED]
Envoyé le : Vendredi, 27 Avril 2007, 8h32mn 51s
Objet : Re: [m2eclipse-user] Re :Re : Re : Re : Step by Step guide


Very heated discussion here... AFAICS you just have a very old version
of the plugin where the compile errors were not printed out in the
Eclipse console. Install the dev version from
http://m2eclipse.codehaus.org/update-dev/
and check whether is works better for you.

Stefan

Am Donnerstag, den 26.04.2007, 18:46 + schrieb [EMAIL PROTECTED]:
 I have no idea what Nawfel BERAICH means - please tell???
 Nawfel = my first name , BERAICH = my last name
 (^_^)
 
 Just run this from command prompt for now. You do not need to use
 the external - tools thing you just can. Once working re-run
 eclipse:eclipse in the project dir, add maven dependencies and your
 off
 
 but what I need is to compile through eclipse and have the same log as
 the one I have in the command prompt like :
 
 C:\works\workspaceM2\myAppName-v1.3\src\main\java\com\some\bl\domain
 \AClassDaoImpl.java:[127,87] cannot find symbol
 symbol  : class AClassDTO
 location: package com.some.dto
 
 because I have an existing project that uses Ant for builds and
 compiles and I have to mavenize it  
 
 
 
 Thanks for helping
 Nawfel BERAICH
 
 - Message d'origine 
 De : Phill Moran [EMAIL PROTECTED]
 À : [EMAIL PROTECTED]
 Envoyé le : Jeudi, 26 Avril 2007, 18h23mn 01s
 Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re :
 [m2eclipse-user] Re : Step by Step guide
 
 I have no idea what Nawfel BERAICH means - please tell???
  
 Just run this from command prompt for now. You do not need to use the
 external - tools thing you just can. Once working re-run
 eclipse:eclipse in the project dir, add maven dependencies and your
 off
  
 At least that is what I did
  
  
 Phill
 
 
 __
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: April 26, 2007 1:50 PM
 To: [EMAIL PROTECTED]
 Subject: [m2eclipse-user] Re : [m2eclipse-user] Re : [m2eclipse-user]
 Re : Step by Step guide
 
 
 
 do you mean that I have to add an external call to maven in external
 toolsprogramnew program and put the path to maven.bat then add
 'compile -X' in Arguments ??
 
 Nawfel BERAICH
 
 - Message d'origine 
 De : Phill Moran [EMAIL PROTECTED]
 À : [EMAIL PROTECTED]
 Envoyé le : Jeudi, 26 Avril 2007, 17h30mn 22s
 Objet : RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
 guide
 
 Forgot to mention that you should run this from the command line and
 get the POM right then move to Eclipse. Use the -X I mention below
  
 Phill
 
 
 __
 From: Phill Moran [mailto:[EMAIL PROTECTED] 
 Sent: April 26, 2007 12:59 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
 guide
 
 
 
 If you are using the straight up eclipse compile then it is somewhat
 filtered (not sure why). But you can do this from the command line or
 external-tools. What I would say is do it with the -X flag (turn on
 trace) or -e flag expanded stack trace. I don't think you need both
  
 Phill
 
 
 __
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: April 26, 2007 10:22 AM
 To: [EMAIL PROTECTED]
 Subject: [m2eclipse-user] Re : [m2eclipse-user] Re : Step by Step
 guide
 
 
 
 I'm speaking about this :
 
 [INFO]
 
 [INFO] Building Unnamed - com:AstreeTutelec:jar:1.3
 [INFO]task-segment: [package]
 [INFO]
 
 [INFO] resources:resources
 [INFO] Using default encoding to copy filtered resources.
 [INFO] compiler:compile
 [INFO] Nothing to compile - all classes are up to date
 [INFO] resources:testResources
 [INFO] Using default encoding to copy filtered resources.
 [INFO] compiler:testCompile
 [INFO] No sources to compile
 [INFO] surefire:test
 [INFO] No tests to run.
 [INFO] jar:jar
 [INFO] Building jar: C:\works\workspaceM2\TutelecOJV-v1.3\target
 \AstreeTutelec-1.3.jar
 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO

RE: Maven builds and eclipse

2007-04-18 Thread Phill Moran
Are they dependencies of included jars? Can you check the POMs of the jars you
included

-Original Message-
From: Kris Massey [mailto:[EMAIL PROTECTED] 
Sent: April 18, 2007 5:09 AM
To: users@maven.apache.org
Subject: Maven builds and eclipse

Hi all,

Im having some problems getting eclipse to work with the mvn eclipse:eclipse
task

My build creates the correct contents in the target file/WEB-INF/lib folder,
however when I run the eclipse task it picks up 3 extra jars, Ive got no idea
where from

The jars are to do with servlets, jsps and jsf. Im guessing that maven thinks
these jars are needed but when added they break the deployment process...

Has anyone had a problem along these lines before?

Im new to maven so sorry if thats a little vague for what you guys need

Any help/guidance would be useful

Thanks
Kris

Future Publishing Limited (registered company number 2008885) is a wholly owned
subsidiary of Future plc (registered company number 3757874), both of which are
incorporated in England and Wales and share the same registered address at
Beauford Court, 30 Monmouth Street, Bath BA1 2BW.

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to which they are addressed. If
you have received this email in error please reply to this email and then delete
it. Please note that any views or opinions presented in this email are solely
those of the author and do not necessarily represent those of Future.

The recipient should check this email and any attachments for the presence of
viruses. Future accepts no liability for any damage caused by any virus
transmitted by this email.

Future may regularly and randomly monitor outgoing and incoming emails and other
telecommunications on its email and telecommunications systems. By replying to
this email you give your consent to such monitoring.

*
Save resources: think before you print.

-
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 : Automate the import of generated eclipse project to the eclipse ?

2007-04-16 Thread Phill Moran
You could execute the eclipse:eclipse using external tools but I think (not
sure) you would have to do this in your current workspace to have it refresh

-Original Message-
From: Marouane Amraoui [mailto:[EMAIL PROTECTED] 
Sent: April 16, 2007 3:03 PM
To: Maven Users List
Subject: Maven : Automate the import of generated eclipse project to the eclipse
?

 

I generate my structure of eclipse project from maven.

 

I make a  .bat file for that purpose. And I used it as an external tools in
eclipse. 

 

When I execute this bat it generate me in  the workspace of eclipse my
multiproject structure . after that I must to go to the  File -- Import in
order to make there visible

In the eclipse. So my question there is something that can help me to automate
this step too. ie : I execute my external tools , it generate me my structure
project and  appear immediately 

In the eclipse, don't need to import them manually  :-) ???

 

Maven can give me this features or I need to explore eclipse api ? 

 

Thx 

 

---

Merouane AMRAOUI
Consultant Expert
Division Développement
Email.: [EMAIL PROTECTED]

Gsm  .: 065 19 60 99   
Tél. | Tel.: 022 98 70 70Téléc | Fax: 022 98 70 70 OMNIDATA , 74 Bv AbdelMoumen

 



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



RE: [m2] exec-maven-plugin fails because path containing spaces

2007-04-16 Thread Phill Moran
Surround them in quotes or use the dos short for. For instance program files
== progra~1 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Herscu
Sent: April 16, 2007 3:07 PM
To: users@maven.apache.org
Subject: [m2] exec-maven-plugin fails because path containing spaces

Hi all,

I am trying to run Ant 1.7 from within Maven 2 using the exec-maven-plugin.

   plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdexec-maven-plugin/artifactId
 executions
   execution
 phaseprocess-test-resources/phase
 goals
   goaljava/goal
 /goals
   /execution
 /executions
 configuration
   mainClassorg.apache.tools.ant.Main/mainClass
   workingDirectory${basedir}/workingDirectory
   arguments
 argument-buildfile/argument
 argument${basedir}/mybuild.xml/argument
   /arguments
 /configuration
   /plugin

It seems that there is a problem with Windows paths containing spaces.
Anyone knows about a decent workaround?

Thanks,
Adrian.

P.S. The error log:[[


BUILD FAILED
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at index 18:
file:/C:/Documents and
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
at java.net.URI$Parser.fail(URI.java:2816)
at java.net.URI$Parser.checkChars(URI.java:2989)
at java.net.URI$Parser.parseHierarchical(URI.java:3073)
at java.net.URI$Parser.parse(URI.java:3021)
at java.net.URI.init(URI.java:578)
at java.net.URI.create(URI.java:840)
... 20 more

Total time: 0 seconds
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
at
org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
at org.apache.tools.ant.Project.setAntLib(Project.java:313)
at org.apache.tools.ant.Project.initProperties(Project.java:309)
at org.apache.tools.ant.Project.init(Project.java:295)
at org.apache.tools.ant.Main.runBuild(Main.java:663)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:271)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.URISyntaxException: Illegal character in path at index 18:
file:/C:/Documents and
Settings/pm/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
at java.net.URI$Parser.fail(URI.java:2816)
at 

RE: [site-plugin] remote clean deploy area?

2007-04-12 Thread Phill Moran
I thought mvn clean did that  

-Original Message-
From: Wim Deblauwe [mailto:[EMAIL PROTECTED] 
Sent: April 12, 2007 10:57 AM
To: Maven Users List
Subject: [site-plugin] remote clean deploy area?

Hi,

is there a way to clean the deployment area with the site plugin. I have some
older files that are still in the deploy (or the staging) area and I would like
to clean them. Can the site plugin do this?

regards,

Wim

--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester


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



RE: Maven users in the industry

2007-04-11 Thread Phill Moran
Accenture uses it for build projects 

-Original Message-
From: Graham Leggett [mailto:[EMAIL PROTECTED] 
Sent: April 11, 2007 7:06 AM
To: Maven Users List
Cc: users@maven.apache.org
Subject: Re: Maven users in the industry

On Wed, April 11, 2007 10:00 am, Gilles Scokart wrote:

 Next week I have to make a presentation to my collegues.  I will try 
 to 'sell' maven, and I would like to say something like Look, Maven 
 is now very used in the industry, It's for instance used by 

 Did you know any companies using Maven, more particularily in Belgium 
 and Europe, but worlwide would be ok also?

It's being used within the Standard Bank group of companies.

Regards,
Graham
--



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


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



RE: Maven Site Published Time Stamp

2007-04-11 Thread Phill Moran
Yes you can add the HH:mm to the end of the format to get the time the site was
generated  

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: April 11, 2007 9:39 AM
To: Maven Users List
Subject: Re: Maven Site Published Time Stamp

On 4/11/07, Hodanics, Charles J. [EMAIL PROTECTED] wrote:
 I am curious if anyone knows of a way to include the time in the Last
 Published: date that is created in the header of a generated site.

There is an example of changing the position and formatting of the date in the
site plugin docs:

http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html

I haven't checked, but my guess is that it follows the usual SimpleDateFormat
rules:

http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html

--
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: Cleaning up the m2 repo?

2007-04-09 Thread Phill Moran
You have tried mvn -clean right? 

-Original Message-
From: Baz [mailto:[EMAIL PROTECTED] 
Sent: April 9, 2007 12:14 PM
To: Maven Users List
Subject: Cleaning up the m2 repo?

All,

Is there a way to code the m2 goal so that it can clean specific parts of the m2
repo? For example, delete m2/repository/com/aaa directory?
or even clean up everything?

Thanks.

B.

-
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: release:perform vs. scm:bootstrap

2007-04-09 Thread Phill Moran
Newbie to newbie here

From my understanding bootstrap does an initial checkout from SCM otherwise and
update is issued. 

The release perform actual creates a release of your application and version
change in your SCM. although I am not positive about the version change piece
but it does mark for release somehow

Phill

-Original Message-
From: Steven Rowe [mailto:[EMAIL PROTECTED] 
Sent: April 9, 2007 1:18 PM
To: Maven Users List
Subject: release:perform vs. scm:bootstrap

Hi,

I'm in the process of converting my (small) organization's Maven 1.X
infrastructure to Maven 2.

As a Maven 2 newbie, I'm curious about the differences between release:perform
and scm:bootstrap, and the reasons why both of these apparently very similar
goals co-exist in Maven2.  The latter seems to be more Maven-1.X-like, in that
you specify a list of actions to perform (the bootstrap goals), as opposed to
the former, which appears to be more Maven2-like (actions are declared via
lifecycle bindings).

Are these differences cosmetic only?  Does anyone use either one or the other
exclusively (and why)?  Or sometimes one, sometimes the other (again,
rationale?)?

Steve

-
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: [DEBUG] Skipping disabled repository

2007-03-28 Thread Phill Moran
I can help you with part. I would like to say I am not a newbie but that would
be lying. Here is how to install jars with a generated POM and checksums (MD5).
This assumes you have MD5 available 

http://maven.apache.org/general.html#importing-jars 

mvn install:install-file
  -Dfile=path-to-file
  -DgroupId=group-id
  -DartifactId=artifact-id
  -Dversion=version
  -Dpackaging=packaging
  -DgeneratePom=true
  -DcreateChecksums=true

Here is the plug in url for full details
http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html

Phill


-Original Message-
From: Farrukh S. Najmi [mailto:[EMAIL PROTECTED] 
Sent: March 28, 2007 9:43 PM
To: users@maven.apache.org
Subject: [DEBUG] Skipping disabled repository


Dear Colleagues,

I am a maven newbie and am very impressed with it.

I have been trying to set up an m2 repo as a shared repo for my open source
project at:

http://ebxmlrr.sourceforge.net/maven2/repository/

The reason I am doing so is to have it serve some jars that are currently not
available through maven repositories any where but are needed by new maven based
projects.

So here is what I did:

1. I added the jars I needed manually to my local ~/.m2/repository using mvn
install:install-file goal

2. I then manually copied selected parts of ~/.m2/repository tree using rcp to
my server

However, when I run mvn install on a module that depends upon the modules in
my team repo it does not get resolved.
When I turned debug on with mvn -e -X install I found that my team repo was
being skipped as it was considered disable:

[DEBUG] Skipping disabled repository freebXML Registry Repository

Now why would by team repo be disabled? I suggest maven2 include a reason for
the disablement in future.

I notice that the mvn install:install-file goal does not produce pom file or
md5 files and only produces jar file.
Could that be the cause of the repo getting disabled?

Are there options on mvn install:install-file goal that will generate pom file
and md5 file in local repo?

Is there a better way to create a shared team repo with jars that were created
from non-maven projects?

Lastly, where I can find a definitive reference on the structure of the
m2 repository?

Thank you for helping me get over the hump with maven2.

--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.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: [DEBUG] Skipping disabled repository

2007-03-28 Thread Phill Moran
My next thought would be to look at your setting.xml and ensure you have the
right config/access. Also can you post the actual message reported by maven when
trying 

-Original Message-
From: Farrukh S. Najmi [mailto:[EMAIL PROTECTED] 
Sent: March 28, 2007 10:36 PM
To: Maven Users List
Subject: Re: [DEBUG] Skipping disabled repository

Sorry I spoke too soon.

I had forgotten to remove the modules installed in my local ~/.m2/repository and
that is why things worked.
Once I remove those, again I was unable to find the entries in the remote team
repo.

So I am still not sure why by remote repo is disabled and what I need to do to
enable it again.

Any other suggestions from anyone?

Farrukh S. Najmi wrote:
 Hi Phil,

 You helped me with the most important part (sorry for not reading the 
 manual page).

 I used the following additional options:

  -DgeneratePom=true
  -DcreateChecksums=true

 and now the pom and md5 were generated and when I scp ed the new 
 structure over from local to shared repo all became well again.

 BTW I think someone should add an FAQ entry regarding [DEBUG] 
 Skipping disabled repository or why is my module not being found in my
repo.

 Thanks again for the terrific help.

 Phill Moran wrote:
   
 I can help you with part. I would like to say I am not a newbie but 
 that would be lying. Here is how to install jars with a generated POM and
checksums (MD5).
 This assumes you have MD5 available

 http://maven.apache.org/general.html#importing-jars

 mvn install:install-file
   -Dfile=path-to-file
   -DgroupId=group-id
   -DartifactId=artifact-id
   -Dversion=version
   -Dpackaging=packaging
   -DgeneratePom=true
   -DcreateChecksums=true

 Here is the plug in url for full details 
 http://maven.apache.org/plugins/maven-install-plugin/install-file-moj
 o.html

 Phill


 -Original Message-
 From: Farrukh S. Najmi [mailto:[EMAIL PROTECTED]
 Sent: March 28, 2007 9:43 PM
 To: users@maven.apache.org
 Subject: [DEBUG] Skipping disabled repository


 Dear Colleagues,

 I am a maven newbie and am very impressed with it.

 I have been trying to set up an m2 repo as a shared repo for my open 
 source project at:

 http://ebxmlrr.sourceforge.net/maven2/repository/

 The reason I am doing so is to have it serve some jars that are 
 currently not available through maven repositories any where but are 
 needed by new maven based projects.

 So here is what I did:

 1. I added the jars I needed manually to my local ~/.m2/repository 
 using mvn install:install-file goal

 2. I then manually copied selected parts of ~/.m2/repository tree 
 using rcp to my server

 However, when I run mvn install on a module that depends upon the 
 modules in my team repo it does not get resolved.
 When I turned debug on with mvn -e -X install I found that my team 
 repo was being skipped as it was considered disable:

 [DEBUG] Skipping disabled repository freebXML Registry Repository

 Now why would by team repo be disabled? I suggest maven2 include a 
 reason for the disablement in future.

 I notice that the mvn install:install-file goal does not produce 
 pom file or
 md5 files and only produces jar file.
 Could that be the cause of the repo getting disabled?

 Are there options on mvn install:install-file goal that will 
 generate pom file and md5 file in local repo?

 Is there a better way to create a shared team repo with jars that 
 were created from non-maven projects?

 Lastly, where I can find a definitive reference on the structure of 
 the
 m2 repository?

 Thank you for helping me get over the hump with maven2.

   
 


   


--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.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: How is CruiseControl compare to Continuum?

2007-03-26 Thread Phill Moran
Have you considered Luntbuild? 

-Original Message-
From: shinsato [mailto:[EMAIL PROTECTED] 
Sent: March 26, 2007 9:40 PM
To: users@maven.apache.org
Subject: Re: How is CruiseControl compare to Continuum?


CruiseControl works pretty well with Maven2, we picked it instead of Continuum
last year because there were some reports that Continuum might be immature
still. There are lots of opinions on the internet about Continuum and
CruiseControl, it would be interesting to hear what the Maven2 users here think
about Continuum.
--
View this message in context:
http://www.nabble.com/How-is-CruiseControl-compare-to-Continuum--tf3468344s177.h
tml#a9684871
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



RE: Newby Questions...

2007-03-23 Thread Phill Moran
Here is the link to add main class to jar

http://maven.apache.org/plugins/maven-jar-plugin/examples/executable-jar.html

 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: March 23, 2007 12:25 PM
To: Maven Users List
Subject: Re: Newby Questions...

I took a look at your zip file... Here's my feedback:

1. Put your i18n language files in:
thermota-cli\src\main\resources\com\agamura\thermota
Thermota.properties
Thermota_de.properties
Thermota_fr_CA.properties
etc

After adding these files, I was successfully able to test with multiple Locales
ie:
java com.agamura.thermota.Thermota
java -Duser.language=de com.agamura.thermota.Thermota java -Duser.language=fr
-Duser.country=CA com.agamura.thermota.Thermota

2. In your properties file, you have comman.Exit which should be command.Exit.

3. I created a jar-with-dependencies in thermota-cli by adding the following to
that pom:
build
plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-assembly-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   descriptorRefs

descriptorRefjar-with-dependencies/descriptorRef
   /descriptorRefs
   /configuration
   goals
   goalsingle/goal
   /goals
   /execution
   /executions
   /plugin
/plugins
  /build

This bundles all of your class files and those of your dependencies inside one
larger Jar that is more or less ready to run. However, at this moment, I did
not configure Maven to correctly insert the MainClass attribute inside the
Manifest.MF file, and so you cannot run it directly by using java -jar ... So I
just unzipped the Jar, and ran java directly from the command line.

I don't use Assembly much so I'm not positive how to configure it to generate
this Manifest file, but I assume this is possible.

Wayne

On 3/22/07, Giuseppe Greco [EMAIL PROTECTED] wrote:
 Right now there is just the default language... as soon as^I'm able to 
 build and run the application in English, I'll add some other 
 languages (configurable via command-line).

 j3d.

 Wayne Fay wrote:
  Where are your I18N properties files? I just see the one (default,
  English) properties file in thermota-cli. I assume you have another 
  lang or two already implemented, but did not include them in this 
  zip file for some reason?
 
  Wayne
 
  On 3/22/07, Giuseppe Greco [EMAIL PROTECTED] wrote:
  Hi guys,
 
  The source code of Thermota is avaialble at 
  http://developer.agamura.com/resources/thermota-20070322.zip
 
  j3d.
 
  Wayne Fay wrote:
   This mailing list does not accept most attachments; they are 
   automatically stripped by the email server.
  
   Is it possible for you to put a zip somewhere with the code, and 
   then perhaps one or more of us on this list can take a look at it?
  
   Wayne
  
   On 3/22/07, Giuseppe Greco [EMAIL PROTECTED] wrote:
   I've written an application to be used as a tutorial for Maven 
   projects. That application implements a virtual thermometer with 
   a command-line console, and consists of 3 modules: thermota-api 
   (the thermometer interface), thermota-core (the thermometer 
   implementation), and thermota-cli (the thermometer user interface).
  
   The code is complete and fully documented with javadoc, but in 
   order to close this tutorial project (and of course, share it 
   with you all), I need to integrate the I18N stuff and be able to 
   generate a release (or runnable distro).
  
   I read the book Better Builds with Maven, but I wasn't able to 
   figure out how to solve these two last issues.
  
   Shall I post the source of Thermota to this mailing-list hoping 
   that somebody could help me to finalize the POM?
  
   j3d.
  
Your properties files will generally go into 
src/main/resources. I'm not aware of any existing 
internationalized Hello World app built with Maven so if you 
build one, please let us know so others can benefit.
   
Wayne
   
On 3/22/07, Giuseppe Greco [EMAIL PROTECTED] wrote:
Thanks,
   
Is there somewhere a POM example? I'm not able to find any 
exhaustive example...
   
Where should I put the I16N *.properties files in the project 
structure? Even if I use a profile, I need to include the 
default resource bundle... Furthermore, what's about 
applications supporting more than one language?
   
It would be great if I could find an internationalized hello
  world
application built with Maven...
   
j3d.
   
 I think you are looking for maven 1)release and 2)profiles. 
 The
   first
 requires
 the release plug-in and the second will require a profile 
 for
  each
 language/jar

 -Original Message-
 From: 

RE: where to put log4j.properties

2007-03-23 Thread Phill Moran
src/main/resources or src/main/java/resources? Is there a standard placement for
this.  

-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: March 23, 2007 11:48 AM
To: Maven Users List
Subject: Re: where to put log4j.properties

src/main/resources

On 3/23/07, Adam Hardy [EMAIL PROTECTED] wrote:

 I am running the 'mvn site' and one of the reports is not working. To 
 get more info on the issue I'm trying to get logging working for it.
 Currently I see log4j complain like this:

 [INFO] Generate Jira Report report.
 log4j:WARN No appenders could be found for logger 
 (org.apache.commons.httpclient.HttpClient).
 log4j:WARN Please initialize the log4j system properly.
 [INFO] JIRA lives at: https://support.nomadsoft.com/jira
 [INFO] Login URL:

 https://support.nomadsoft.com/jira/login.jsp?os_destination=/secure/o
 s_username=adam.hardyos_password=*
 [ERROR] Error trying to login into JIRA. Cause is:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCe
 rtPathBuilderException: unable to find valid certification path to 
 requested target


 I figure I need to add my own log4j.properties to the classpath at 
 that stage in the built, possibly by configuring the maven-site-plugin 
 somehow like this:

build
  plugins
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-site-plugin/artifactId
 configuration
   something/
 /configuration

 but what do i put there to incorporate my log4j.properties onto the 
 classpath?


 Thanks
 Adam

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




--
Eric Redmond
http://codehaus.org/~eredmond


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



RE: where to put log4j.properties

2007-03-23 Thread Phill Moran
Huh, I had mine under src/test/resources as I saw this as a test requirement.   

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: March 23, 2007 2:45 PM
To: Maven Users List
Subject: Re: where to put log4j.properties

As Eric stated, src/main/resources is the standard placement for this.

Wayne

On 3/23/07, Phill Moran [EMAIL PROTECTED] wrote:
 src/main/resources or src/main/java/resources? Is there a standard 
 placement for this.

 -Original Message-
 From: Eric Redmond [mailto:[EMAIL PROTECTED]
 Sent: March 23, 2007 11:48 AM
 To: Maven Users List
 Subject: Re: where to put log4j.properties

 src/main/resources

 On 3/23/07, Adam Hardy [EMAIL PROTECTED] wrote:
 
  I am running the 'mvn site' and one of the reports is not working. 
  To get more info on the issue I'm trying to get logging working for it.
  Currently I see log4j complain like this:
 
  [INFO] Generate Jira Report report.
  log4j:WARN No appenders could be found for logger 
  (org.apache.commons.httpclient.HttpClient).
  log4j:WARN Please initialize the log4j system properly.
  [INFO] JIRA lives at: https://support.nomadsoft.com/jira
  [INFO] Login URL:
 
  https://support.nomadsoft.com/jira/login.jsp?os_destination=/secure/
  o
  s_username=adam.hardyos_password=*
  [ERROR] Error trying to login into JIRA. Cause is:
  sun.security.validator.ValidatorException: PKIX path building failed:
  sun.security.provider.certpath.SunCe
  rtPathBuilderException: unable to find valid certification path to 
  requested target
 
 
  I figure I need to add my own log4j.properties to the classpath at 
  that stage in the built, possibly by configuring the 
  maven-site-plugin somehow like this:
 
 build
   plugins
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-site-plugin/artifactId
  configuration
something/
  /configuration
 
  but what do i put there to incorporate my log4j.properties onto the 
  classpath?
 
 
  Thanks
  Adam
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Eric Redmond
 http://codehaus.org/~eredmond


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



RE: Newby Questions...

2007-03-22 Thread Phill Moran
I think you are looking for maven 1)release and 2)profiles. The first requires
the release plug-in and the second will require a profile for each language/jar

-Original Message-
From: Giuseppe Greco [mailto:[EMAIL PROTECTED] 
Sent: March 22, 2007 7:33 AM
To: users@maven.apache.org
Subject: Newby Questions...

Hi all,

I'm looking at Maven as a replacement for Ant.

I was able to create a small test application with Maven and it works fine. I
think Maven is really great!

Since I'm really new to Maven, I've two questions:

1. How do I generate an application distro (i.e. a JAR that contains
   all the modules required to run the program)?

2. How does Maven support I18N (i.e. where should I put the
   MyApp_en_US.properties file or how do I instruct Maven to include
   it in the package)?

Thanks,
j3d.


Giuseppe Greco
Via Carà 26
6928 Manno (TI)
Switzerland

call giuseppe.greco via Skype
phone:  +41 (0)91 604 67 65
mobile: +41 (0)79 590 33 06
email:  [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]



RE: Maven/eclipse project import problem

2007-03-20 Thread Phill Moran
Thanks for the reply. It is using the j2ee jre. In fact I removed to others from
Eclipse (not from system)

Still puzzled 

-Original Message-
From: Thorsten Heit [mailto:[EMAIL PROTECTED] 
Sent: March 20, 2007 8:05 AM
To: Maven Users List
Subject: Re: Maven/eclipse project import problem

Hi Phill,

 Problem:
 Damn thing picks 1.5.0.11 JDK instead of j2ee install even though the 
 j2ee is java_home. No JDK on path.
 Try deleting or adding new JDK or even tools.jar and after rebuild 
 eclipse removes it from library reference.
 Another side effect is the project does not actually compile the code 
 either.
 Copies my resources to the correct spot but that is it. PDE exception 
 of errors during build

Have you checked which JRE your Eclipse installation is using as the default
JRE? Perhaps the IDE is using a different one as you're using in the command
line...?

(Window - Preferences - Java - Installed JREs)


Cheers

Thorsten

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



Maven/eclipse project import problem

2007-03-19 Thread Phill Moran
Ladies and Gentlemen
 
Something is awry in my eclipse import and I am sure I have dome something dumb
since I can find no one else with the same issue. Here is the order of events I
take please let me know where I drove off the cliff
 
created a clean temp directory 
Copied working POM into it
executed mvn eclipse:eclipse
opened eclipse
executed import new project and selected above (non-child) directory
It finishes without error 
 
Problem:
Damn thing picks 1.5.0.11 JDK instead of j2ee install even though the j2ee is
java_home. No JDK on path.
Try deleting or adding new JDK or even tools.jar and after rebuild eclipse
removes it from library reference.
Another side effect is the project does not actually compile the code either.
Copies my resources to the correct spot but that is it. PDE exception of errors
during build
 
This is all on winXP, eclipse 3.2 (BEA version), Maven 2.0.5. Same POM compiles
just fine from command line
 
Phill


what's up with maven/nabble

2007-03-19 Thread Phill Moran
Get only timeouts. Any reason someone can share
 
Phill Moran
 


RE: what's up with maven/nabble

2007-03-19 Thread Phill Moran
It was dead for many days. But as usual you complain and the problem goes away.
Suddenly tonight no issues.

Thanks for the response though 

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: March 20, 2007 12:50 AM
To: Maven Users List
Subject: Re: what's up with maven/nabble

works for me. If you continue to have problems, you probably need to contact
nabble, or check with your own system administrators - the service is completely
hosted by Nabble.

On 20/03/07, Phill Moran [EMAIL PROTECTED] wrote:
 Get only timeouts. Any reason someone can share

 Phill Moran




--
Apache Maven - http://maven.apache.org
Better Builds with Maven book - http://library.mergere.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: MAVEN 2.0 and SCM-SVN

2007-03-11 Thread Phill Moran
Okay I'll recheck my structure but how does the source code get from
target/checkout to src/main ? 

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2007 1:51 AM
To: Maven Users List
Subject: Re: MAVEN 2.0 and SCM-SVN

if you configure maven correctly then:

  1. use svn to check out the source tree

  2. use eplipse:add-maven-repo adn eclipse:eclipse to setup your eclipse
workspace and projects

  3. Use jboss-maven-plugin or maven cargo to deploy

-D


On 3/10/07, Phill Moran [EMAIL PROTECTED] wrote:

 I think you are right. Here is the UC
 I develop on an windows box and use eclipse/spring and JUnit to test 
 locally.
 Source stored in SVN on remote Linux box I want to use maven to 
 compile and test on a remote Linux box. To do this I want maven to 
 check out code on remote Linux box If tests all work then deploy to a 
 jBoss on same box

 All works except this checkout or in general the getting source code 
 into correct directory

 I am now looking at continuum as it looks like that is its role in 
 this process.
 Of course not sure yet as I am still setting it up (conflicts on port 
 8080 for the jBoss - nothing is easy - lol)

 Let me know your thoughts and thanks for this help

 Sincerely,
Phill




 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: March 11, 2007 1:01 AM
 To: Maven Users List
 Subject: Re: MAVEN 2.0 and SCM-SVN

 there are JIRA filed against odd response. But they seem not blocking 
 issues

 I think you are trying to use maven scm in a odd way :-)

 What is your use case?  why do you want to scm:update after scm:checkout?:

 -D




 On 3/10/07, Phill Moran [EMAIL PROTECTED] wrote:
 
  I removed the following section from the POM listed below
 
  executions
 execution
 phasevalidate/phase
 configuration
 goals
 goalscm:checkout/goal
 /goals
 usernameuser/username
 passwordpassword/password
 /configuration
 /execution
  /executions
 
  The SCM section now simply looks like this:
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-scm-plugin/artifactId
  version1.0-beta-4/version
 
  Keeping in mind this project is in a standard maven layout.
 
  When I issue a mvn scm:checkout
 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'scm'.
  [INFO]
 
  
  --
  -- [INFO] Building Maven BidSpec Server Archetype
  [INFO]task-segment: [scm:checkout] (aggregator-style)
  [INFO]
 
  
  --
  --
  [INFO] [scm:checkout]
  [INFO] Removing /BidSpec/applications/emall/target/checkout
  [INFO] Executing: svn --username user --non-interactive checkout 
  https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout [INFO] 
  Working directory: /BidSpec/applications/emall/target
  [INFO] Unknown file status: ' '.
  [INFO]
  
  --
  --
  [INFO] BUILD SUCCESSFUL
  [INFO]
  
  --
  --
  [INFO] Total time: 19 seconds
  [INFO] Finished at: Sat Mar 10 23:12:57 EST 2007 [INFO] Final Memory:
  4M/9M [INFO]
  
  --
  -- I get that odd Unknown file status: ' '. line not sure if this 
  is significant
 
  Issueing a mvn scm:update esults in
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'scm'.
  [INFO]
 
  
  --
  -- [INFO] Building Maven BidSpec Server Archetype
  [INFO]task-segment: [scm:update] (aggregator-style)
  [INFO]
 
  
  --
  --
  [INFO] [scm:update]
  [INFO] Executing: svn --username user --non-interactive update 
  [INFO] Working directory: /BidSpec/applications/emall [INFO] Unknown 
  file
  status: 'S' in line Skipped '.'.
  [INFO] Storing revision in 'scm.revision' project property.
  [INFO]
  
  --
  --
  [INFO] BUILD SUCCESSFUL
  [INFO]
  
  --
  --
  [INFO] Total time: 14 seconds
  [INFO] Finished at: Sat Mar 10 23:14:33 EST 2007 [INFO] Final Memory:
  4M/9M [INFO]
  
  --
  --
 
  Another odd file status response
 
  The code is checked out but issuing a mvn install after reports no 
  sources to compile. So my guess is I have not configured or told mvn 
  to move the source to the src dir
 
  I am

RE: MAVEN 2.0 and SCM-SVN

2007-03-11 Thread Phill Moran
I was planning on using the subversion hooks to trigger maven to checkout
(refresh) its copy of src before building. I realize I can do this in a shell
script but thought Maven would do it naturally, it does just to the wrong dir

I recognize that it is standard for Maven to checkout to the target/checkout dir
but I guess I am unclear why this dir and not under src? Would this not mean we
have 2 copies of the source under this circumstance?

I have not tried to set the checkout dir in the SCM config section would this
suffice for me?

Thanks for the link I own a few of those books and have been through most of the
English articles

Phill


-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2007 11:53 AM
To: Maven Users List
Subject: Re: MAVEN 2.0 and SCM-SVN

I am very confused ehy you want to checkout source to src/main?

Isn't it already there?

btw, you have not explained about your usecase why you want to use scm:checkout
rather than direct svn checkout.  With this, I would like to perfer you back to
maven docs.

http://maven.apache.org/articles.html

-D


On 3/11/07, Phill Moran [EMAIL PROTECTED] wrote:

 Okay I'll recheck my structure but how does the source code get from 
 target/checkout to src/main ?

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: March 11, 2007 1:51 AM
 To: Maven Users List
 Subject: Re: MAVEN 2.0 and SCM-SVN

 if you configure maven correctly then:

 1. use svn to check out the source tree

 2. use eplipse:add-maven-repo adn eclipse:eclipse to setup your 
 eclipse workspace and projects

 3. Use jboss-maven-plugin or maven cargo to deploy

 -D


 On 3/10/07, Phill Moran [EMAIL PROTECTED] wrote:
 
  I think you are right. Here is the UC I develop on an windows box 
  and use eclipse/spring and JUnit to test locally.
  Source stored in SVN on remote Linux box I want to use maven to 
  compile and test on a remote Linux box. To do this I want maven to 
  check out code on remote Linux box If tests all work then deploy to 
  a jBoss on same box
 
  All works except this checkout or in general the getting source code 
  into correct directory
 
  I am now looking at continuum as it looks like that is its role in 
  this process.
  Of course not sure yet as I am still setting it up (conflicts on 
  port 8080 for the jBoss - nothing is easy - lol)
 
  Let me know your thoughts and thanks for this help
 
  Sincerely,
 Phill
 
 
 
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]
  Sent: March 11, 2007 1:01 AM
  To: Maven Users List
  Subject: Re: MAVEN 2.0 and SCM-SVN
 
  there are JIRA filed against odd response. But they seem not 
  blocking issues
 
  I think you are trying to use maven scm in a odd way :-)
 
  What is your use case?  why do you want to scm:update after
 scm:checkout?:
 
  -D
 
 
 
 
  On 3/10/07, Phill Moran [EMAIL PROTECTED] wrote:
  
   I removed the following section from the POM listed below
  
   executions
  execution
  phasevalidate/phase
  configuration
  goals
  goalscm:checkout/goal
  /goals
  usernameuser/username
  passwordpassword/password
  /configuration
  /execution
   /executions
  
   The SCM section now simply looks like this:
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-scm-plugin/artifactId
   version1.0-beta-4/version
  
   Keeping in mind this project is in a standard maven layout.
  
   When I issue a mvn scm:checkout
  
   [INFO] Scanning for projects...
   [INFO] Searching repository for plugin with prefix: 'scm'.
   [INFO]
  
   --
   --
   --
   -- [INFO] Building Maven BidSpec Server Archetype
   [INFO]task-segment: [scm:checkout] (aggregator-style)
   [INFO]
  
   --
   --
   --
   --
   [INFO] [scm:checkout]
   [INFO] Removing /BidSpec/applications/emall/target/checkout
   [INFO] Executing: svn --username user --non-interactive checkout 
   https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout 
   [INFO] Working directory: /BidSpec/applications/emall/target
   [INFO] Unknown file status: ' '.
   [INFO]
   --
   --
   --
   --
   [INFO] BUILD SUCCESSFUL
   [INFO]
   --
   --
   --
   --
   [INFO] Total time: 19 seconds
   [INFO] Finished at: Sat Mar 10 23:12:57 EST 2007 [INFO] Final Memory:
   4M/9M [INFO]
   --
   --
   --
   -- I get that odd Unknown file status: ' '. line not sure if 
   this is significant
  
   Issueing a mvn scm:update esults

RE: MAVEN 2.0 and SCM-SVN

2007-03-11 Thread Phill Moran
Gotcha thanks. Maybe I will write this up and post it for others to see since it
side tracked me for a few days

 

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2007 1:10 PM
To: Maven Users List
Subject: Re: MAVEN 2.0 and SCM-SVN

ah, what you want is a CI server, checkout Continuum, Cruisecontrol, hudson,
etc.

-D


On 3/11/07, Phill Moran [EMAIL PROTECTED] wrote:

 I was planning on using the subversion hooks to trigger maven to 
 checkout
 (refresh) its copy of src before building. I realize I can do this in 
 a shell script but thought Maven would do it naturally, it does just 
 to the wrong dir

 I recognize that it is standard for Maven to checkout to the 
 target/checkout dir but I guess I am unclear why this dir and not 
 under src? Would this not mean we have 2 copies of the source under 
 this circumstance?

 I have not tried to set the checkout dir in the SCM config section 
 would this suffice for me?

 Thanks for the link I own a few of those books and have been through 
 most of the English articles

 Phill


 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: March 11, 2007 11:53 AM
 To: Maven Users List
 Subject: Re: MAVEN 2.0 and SCM-SVN

 I am very confused ehy you want to checkout source to src/main?

 Isn't it already there?

 btw, you have not explained about your usecase why you want to use 
 scm:checkout rather than direct svn checkout.  With this, I would like 
 to perfer you back to maven docs.

 http://maven.apache.org/articles.html

 -D


 On 3/11/07, Phill Moran [EMAIL PROTECTED] wrote:
 
  Okay I'll recheck my structure but how does the source code get from 
  target/checkout to src/main ?
 
  -Original Message-
  From: Dan Tran [mailto:[EMAIL PROTECTED]
  Sent: March 11, 2007 1:51 AM
  To: Maven Users List
  Subject: Re: MAVEN 2.0 and SCM-SVN
 
  if you configure maven correctly then:
 
  1. use svn to check out the source tree
 
  2. use eplipse:add-maven-repo adn eclipse:eclipse to setup your 
  eclipse workspace and projects
 
  3. Use jboss-maven-plugin or maven cargo to deploy
 
  -D
 
 
  On 3/10/07, Phill Moran [EMAIL PROTECTED] wrote:
  
   I think you are right. Here is the UC I develop on an windows box 
   and use eclipse/spring and JUnit to test locally.
   Source stored in SVN on remote Linux box I want to use maven to 
   compile and test on a remote Linux box. To do this I want maven to 
   check out code on remote Linux box If tests all work then deploy 
   to a jBoss on same box
  
   All works except this checkout or in general the getting source 
   code into correct directory
  
   I am now looking at continuum as it looks like that is its role in 
   this process.
   Of course not sure yet as I am still setting it up (conflicts on 
   port 8080 for the jBoss - nothing is easy - lol)
  
   Let me know your thoughts and thanks for this help
  
   Sincerely,
  Phill
  
  
  
  
   -Original Message-
   From: Dan Tran [mailto:[EMAIL PROTECTED]
   Sent: March 11, 2007 1:01 AM
   To: Maven Users List
   Subject: Re: MAVEN 2.0 and SCM-SVN
  
   there are JIRA filed against odd response. But they seem not 
   blocking issues
  
   I think you are trying to use maven scm in a odd way :-)
  
   What is your use case?  why do you want to scm:update after
  scm:checkout?:
  
   -D
  
  
  
  
   On 3/10/07, Phill Moran [EMAIL PROTECTED] wrote:
   
I removed the following section from the POM listed below
   
executions
   execution
   phasevalidate/phase
   configuration
   goals
   goalscm:checkout/goal
   /goals
   usernameuser/username
   passwordpassword/password
   /configuration
   /execution
/executions
   
The SCM section now simply looks like this:
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-4/version
   
Keeping in mind this project is in a standard maven layout.
   
When I issue a mvn scm:checkout
   
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]
   

--
--
--
-- [INFO] Building Maven BidSpec Server Archetype
[INFO]task-segment: [scm:checkout] (aggregator-style)
[INFO]
   

--
--
--
--
[INFO] [scm:checkout]
[INFO] Removing /BidSpec/applications/emall/target/checkout
[INFO] Executing: svn --username user --non-interactive checkout 
https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout 
[INFO] Working directory: /BidSpec/applications/emall/target
[INFO] Unknown file

RE: MAVEN 2.0 and SCM-SVN

2007-03-10 Thread Phill Moran

/plugin

!-- Force compliance to Java 1.5 --

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId

version2.0/version

configuration

source1.5/source

target1.5/target

/configuration

/plugin

!-- Get Maven SCM plugin and run during and install --

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-scm-plugin/artifactId

version1.0-beta-4/version

executions

execution

phasevalidate/phase

configuration

goals

goalscm:checkout/goal

/goals

usernameuser/username

passwordpassword/password

/configuration

/execution

/executions

/plugin

/plugins

/build

reporting

plugins

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-javadoc-plugin/artifactId

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactId

maven-project-info-reports-plugin

/artifactId

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-jxr-plugin/artifactId

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-surefire-report-plugin/artifactId

/plugin

/plugins

/reporting

distributionManagement

site

idwebsite/id

urlfile:///my-company/applications/emall/www//url

/site

/distributionManagement

...

/project

Any help/suggestions would be much appreciated
Message to Dan Tran - Not useless that was a late night tired comment no offense
intended ;)
 
Phill

  _  

FromMax Bowsher [EMAIL PROTECTED] 
Subject Re: MAVEN 2.0 and SCM-SVN   
DateFri, 09 Mar 2007 09:59:37 GMT   
The thing you're missing is that the SCM code is usually used to do a

checkout in order to create a *temporary* working copy in order to build

a release from an SCM tag.



It's not at all clear what you are using it for, that you would find it

helpful to have it checking out under src.



Max.

  _  

From: Phill Moran [mailto:[EMAIL PROTECTED] 
Sent: March 8, 2007 9:21 PM
To: 'users@maven.apache.org'
Subject: MAVEN 2.0 and SCM-SVN


This could be a dumb questions but why does maven SCM default to checkout to
/target/checkout? I would expect it to go to a dir under src/java. It also seems
that the SCM plug-in does not allow this to be overridden. I have tried setting
sourceDirectory and the others to no avail. I am using the standard MAVEN dir
structure.
Unless I am missing something fundamental this issue makes the plug-in a little
useless
 
 


RE: MAVEN 2.0 and SCM-SVN

2007-03-10 Thread Phill Moran
I removed the following section from the POM listed below

executions
execution
phasevalidate/phase
configuration
goals
goalscm:checkout/goal
/goals
usernameuser/username
passwordpassword/password
/configuration
/execution
/executions

The SCM section now simply looks like this:
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-4/version

Keeping in mind this project is in a standard maven layout.

When I issue a mvn scm:checkout

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]

[INFO] Building Maven BidSpec Server Archetype
[INFO]task-segment: [scm:checkout] (aggregator-style)
[INFO]

[INFO] [scm:checkout]
[INFO] Removing /BidSpec/applications/emall/target/checkout
[INFO] Executing: svn --username user --non-interactive checkout
https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout
[INFO] Working directory: /BidSpec/applications/emall/target
[INFO] Unknown file status: ' '.
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 19 seconds
[INFO] Finished at: Sat Mar 10 23:12:57 EST 2007
[INFO] Final Memory: 4M/9M
[INFO] 
 I get that odd Unknown file status: ' '. line not sure if this is significant

Issueing a mvn scm:update esults in
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]

[INFO] Building Maven BidSpec Server Archetype
[INFO]task-segment: [scm:update] (aggregator-style)
[INFO]

[INFO] [scm:update]
[INFO] Executing: svn --username user --non-interactive update
[INFO] Working directory: /BidSpec/applications/emall
[INFO] Unknown file status: 'S' in line Skipped '.'.
[INFO] Storing revision in 'scm.revision' project property.
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 14 seconds
[INFO] Finished at: Sat Mar 10 23:14:33 EST 2007
[INFO] Final Memory: 4M/9M
[INFO] 

Another odd file status response

The code is checked out but issuing a mvn install after reports no sources to
compile. So my guess is I have not configured or told mvn to move the source to
the src dir

I am still preplexed.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: March 10, 2007 12:45 PM
To: Maven Users List
Subject: Re: MAVEN 2.0 and SCM-SVN

why do you need to do scm:checkout at validate phase? is n't source checkedout
by scm:bootstrap already validated?



take it out and try again

-D


On 3/9/07, Phill Moran [EMAIL PROTECTED] wrote:

 I am clearly missing something.
 I get an error on mvn scm:bootstrap (although the code is there) 
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'scm'.
 [INFO]

 --
 -- [INFO] Building Maven BidSpec Server Archetype
 [INFO]task-segment: [scm:bootstrap] (aggregator-style)
 [INFO]

 --
 --
 [INFO] [scm:bootstrap]
 [INFO] Removing /BidSpec/applications/emall/target/checkout
 [INFO] Executing: svn --username pmoran --non-interactive checkout 
 https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout [INFO] 
 Working directory: /BidSpec/applications/emall/target
 [INFO] Unknown file status: ' '.
 [INFO]
 --
 --
 [ERROR] BUILD ERROR
 [INFO]
 --
 --
 [INFO] Can't run goal null
 Embedded error: Error while executing process.
 java.io.IOException: mvn: not found
 [INFO]
 --
 -- [INFO] For more information, run Maven with the -e switch [INFO]
 --
 --
 [INFO] Total time: 19 seconds
 [INFO] Finished at: Sat Mar 10 01:17:17 EST 2007 [INFO] Final Memory: 
 4M/9M [INFO]
 --
 --

 I execute the following commands

RE: MAVEN 2.0 and SCM-SVN

2007-03-10 Thread Phill Moran
I think you are right. Here is the UC
I develop on an windows box and use eclipse/spring and JUnit to test locally.
Source stored in SVN on remote Linux box
I want to use maven to compile and test on a remote Linux box. To do this I want
maven to check out code on remote Linux box
If tests all work then deploy to a jBoss on same box

All works except this checkout or in general the getting source code into
correct directory

I am now looking at continuum as it looks like that is its role in this process.
Of course not sure yet as I am still setting it up (conflicts on port 8080 for
the jBoss - nothing is easy - lol)

Let me know your thoughts and thanks for this help

Sincerely,
Phill


 

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2007 1:01 AM
To: Maven Users List
Subject: Re: MAVEN 2.0 and SCM-SVN

there are JIRA filed against odd response. But they seem not blocking issues

I think you are trying to use maven scm in a odd way :-)

What is your use case?  why do you want to scm:update after scm:checkout?:

-D




On 3/10/07, Phill Moran [EMAIL PROTECTED] wrote:

 I removed the following section from the POM listed below

 executions
execution
phasevalidate/phase
configuration
goals
goalscm:checkout/goal
/goals
usernameuser/username
passwordpassword/password
/configuration
/execution
 /executions

 The SCM section now simply looks like this:
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 version1.0-beta-4/version

 Keeping in mind this project is in a standard maven layout.

 When I issue a mvn scm:checkout

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'scm'.
 [INFO]

 --
 -- [INFO] Building Maven BidSpec Server Archetype
 [INFO]task-segment: [scm:checkout] (aggregator-style)
 [INFO]

 --
 --
 [INFO] [scm:checkout]
 [INFO] Removing /BidSpec/applications/emall/target/checkout
 [INFO] Executing: svn --username user --non-interactive checkout 
 https://ubiquitous001:1180/svn/branches/1.2/bidspec checkout [INFO] 
 Working directory: /BidSpec/applications/emall/target
 [INFO] Unknown file status: ' '.
 [INFO]
 --
 --
 [INFO] BUILD SUCCESSFUL
 [INFO]
 --
 --
 [INFO] Total time: 19 seconds
 [INFO] Finished at: Sat Mar 10 23:12:57 EST 2007 [INFO] Final Memory: 
 4M/9M [INFO]
 --
 -- I get that odd Unknown file status: ' '. line not sure if this is 
 significant

 Issueing a mvn scm:update esults in
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'scm'.
 [INFO]

 --
 -- [INFO] Building Maven BidSpec Server Archetype
 [INFO]task-segment: [scm:update] (aggregator-style)
 [INFO]

 --
 --
 [INFO] [scm:update]
 [INFO] Executing: svn --username user --non-interactive update [INFO] 
 Working directory: /BidSpec/applications/emall [INFO] Unknown file 
 status: 'S' in line Skipped '.'.
 [INFO] Storing revision in 'scm.revision' project property.
 [INFO]
 --
 --
 [INFO] BUILD SUCCESSFUL
 [INFO]
 --
 --
 [INFO] Total time: 14 seconds
 [INFO] Finished at: Sat Mar 10 23:14:33 EST 2007 [INFO] Final Memory: 
 4M/9M [INFO]
 --
 --

 Another odd file status response

 The code is checked out but issuing a mvn install after reports no 
 sources to compile. So my guess is I have not configured or told mvn 
 to move the source to the src dir

 I am still preplexed.

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]
 Sent: March 10, 2007 12:45 PM
 To: Maven Users List
 Subject: Re: MAVEN 2.0 and SCM-SVN

 why do you need to do scm:checkout at validate phase? is n't source 
 checkedout by scm:bootstrap already validated?



 take it out and try again

 -D


 On 3/9/07, Phill Moran [EMAIL PROTECTED] wrote:
 
  I am clearly missing something.
  I get an error on mvn scm:bootstrap (although the code is there) 
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'scm'.
  [INFO]
 
  
  --
  -- [INFO] Building Maven

RE: Worst documentation in the whole apache projects

2006-01-19 Thread Phill Moran
This is an interesting thread one that strikes at the heart of open source in
the marketplace. A product paid for or not needs to be complete, functional and
correct. To stop short is just that. The documentation like QA testing is
required to consider the job complete. I am a long time coder and much prefer
the excitement of coding than the effort of documenting. I am also a new adopter
to Maven and cannot move over until this is closer to a complete product. Core
developers should complete documentation like test cases during checking, the
same goes for plug-ins.
A main concern around raised later in this thread about major open source
project that fail/die (e.g. XDoclet). It is hard to justify ones expense of time
to install, learn and configure a product if it is likely to fade away.

All that being said I add this email in the hopes that this excellent product
will continue to grow and thrive

Phill

-Original Message-
From: Miguel Griffa [mailto:[EMAIL PROTECTED] 
Sent: January 19, 2006 10:21 AM
To: Maven Users List
Subject: Re: Worst documentation in the whole apache projects

very well said!
I thinnk this kind ot mail would be totally ok in a commercial and expensive
support forum of a build system, but definetly not an open source one.

I also think documentation is a strong - in maven, but that's why I've tried to
help on it a little, contributing is the way,

On 1/18/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

 You can choose:
 - using it with the documentation it has
 - create your own system and document it to the extent you want

 just good luck if you choose second option ;)

 On 1/18/06, Nanamura, Roberto [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there any way to improve all the documentation for the Maven.
 
  I will not use Maven anymore since there are a bunch of thing 
  missing from the documentation (and a lot of things do not work like 
  the J2EE archetype which is nowhere to be find and I am not the only 
  one to complain about it).
 
  It is good for a simple project (then again, why should I need maven 
  for a simple Hello World project?). But if you add a J2EE layer or 
  other components, it simpy does not have document (for example no 
  document for the topic: Guide to creating a multi-module build). 
  Then how should I create a multi-project maven? What is this 
  artifactId and groupID? What the hell it keeps on going to the 
  repo1.maven.org repository for my sub-projects? What are the examples? No
samples?
 
  The reference is a joke. How can a reference be so laconious? It is 
  a reference so every tag in the XML must have a good description 
  (even the description in the generated xml is better than the reference!).
 
  I do not recommend Maven to anyone starting a serious project for 
  lack of documentation and erroneous documentation.
 
  I spent the whole day try to make it work for a simple J2EE project, 
  then I had to google it several times for each error (it should be 
  in the document web-site).
  Whereas I would take one hour to create the directories, my build 
  and deployment ant targets.
 
  Thanks but I'd rather do not use it,
 
  Roberto
 
 
 

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




--
Miguel Griffa
Skype: miguel.griffa
Y!: m_griffa
MSN: [EMAIL PROTECTED]
Cell: 54-911-62519355


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



RE: Maven2 Book...when

2006-01-08 Thread Phill Moran
I think there is one due in April. Pro Apache Maven (Pro) (Paperback) by Milind
Parikh  is the book. Check it on Amazon

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: January 8, 2006 9:39 AM
To: Maven Users List
Subject: Maven2 Book...when

Greetings, just wondering if anyone is working on a comprehensive book on Maven
2.0? If so, when its due out?

/robert

-
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: Maven2 Book...when

2006-01-08 Thread Phill Moran
I believe its print was delayed to encompass version 2. Originally scheduled to
come out last year. 

-Original Message-
From: Eric Redmond [mailto:[EMAIL PROTECTED] 
Sent: January 8, 2006 1:11 PM
To: Maven Users List
Subject: Re: Maven2 Book...when

Is that book for Maven 1 or 2? I couldn't tell, but assume 1.

On 1/8/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

 The statement in amazon about that book is absolutely wrong, the 
 first and only book on Pro Apache Maven, when it's not the first, 
 neither the only one.

 On 1/8/06, Phill Moran [EMAIL PROTECTED] wrote:
  I think there is one due in April. Pro Apache Maven (Pro) 
  (Paperback) by
 Milind
  Parikh  is the book. Check it on Amazon
 
  -Original Message-
  From: Robert Taylor [mailto:[EMAIL PROTECTED]
  Sent: January 8, 2006 9:39 AM
  To: Maven Users List
  Subject: Maven2 Book...when
 
  Greetings, just wondering if anyone is working on a comprehensive 
  book
 on Maven
  2.0? If so, when its due out?
 
  /robert
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




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