RE: [m2] Using the integration-test phase

2006-03-31 Thread Vincent Massol
Hi Wendy,

I don't know if this is useful to you but here's attached an example POM of
using Cargo and m2.

Hope it helps,
-Vincent

PS: This is described in the m2 book going live soon...

> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: mardi 28 mars 2006 01:22
> To: Maven Users List
> Subject: [m2] Using the integration-test phase
> 
> If I have some tests that [will eventually] use the Cargo API to start
> a container, that need to be run after the package phase (so that the
> war file exists) and that I want excluded from the test phase... is
> this (see below) close?
> 
> The only problem with it is that the *ServerTest classes never get
> compiled.  I assume this is because they are excluded from the test
> phase.  Do I also need to configure the compiler plugin to work during
> the integration test phase?
> 
> Then I found this post in which (I think) Vincent is advocating having
> the 'ServerTest' classes in a different module entirely:
>  users/200405.mbox/[EMAIL PROTECTED]>
> (If I go that route, what would the  be for the module that
> only contains in-container tests?)
> 
> A list of references, the complete , and some output are here:
>http://wiki.wsmoak.net/cgi-bin/wiki.pl?Cargo
> 
> Advice on whether I'm headed in the right direction would be
> appreciated.  There are a few threads on this in the archives, but
> those developers were using Ant to start the container and I couldn't
> work out how their tests were getting compiled.
> 
>
>  ...
>
>  ...
>  
>  
> org.apache.maven.plugins
> maven-surefire-plugin
> 
>   
> surefire-it
> integration-test
> 
>   
>   **/*ServerTest.java
>   
> 
> 
>   test
> 
>   
> 
> 
>
>   **/*ServerTest.java
>
> 
>  
>  
>
>   
> 
> Thanks,
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



  4.0.0
  
org.apache.geronimo.samples.daytrader
daytrader
1.0-SNAPSHOT
  
  daytrader-tests
  DayTrader :: Functional Tests
  pom
  DayTrader Functional Tests
  

  org.apache.geronimo.samples.daytrader
  daytrader-ear
  1.0-SNAPSHOT
  ear
  provided


  org.codehaus.cargo
  cargo-core-uberjar
  0.8-SNAPSHOT
  test


  org.codehaus.cargo
  cargo-ant
  0.8-SNAPSHOT
  test


  junit
  junit
  3.8.1
  test


  httpunit
  httpunit
  1.6.1
  test

  
  

src/it



  
org.apache.maven.plugins
maven-compiler-plugin

  

  testCompile

  

  
  
org.apache.maven.plugins
maven-surefire-plugin

  
integration-test

  test

  

  
  
org.codehaus.cargo
cargo-maven2-plugin

  false
  
geronimo1x
geronimo.log
cargo.log

  http://www.apache.org/dist/geronimo/1.0/geronimo-tomcat-j2ee-1.0.zip
  ${installDir}

  


  
start-container
pre-integration-test

  start
  deploy


  

  
org.apache.geronimo.samples.daytrader
daytrader-ear
ear

  ${basedir}/src/deployment/geronimo/plan.xml

http://localhost:8080/daytrader
  

  

  
  
stop-container
post-integration-test

  stop

  

  

  


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

RE: Referring parent POM in child POM

2006-03-31 Thread Sharma, Jaikumar
Thanks alexandre!

-Original Message-
From: Alexandre Poitras [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 01, 2006 9:56 AM
To: Maven Users List
Subject: Re: Referring parent POM in child POM


I guess you want to use import to reuse common configuration which usually
done using a parent pom.

Unfortunately,  I think  there is no official guide yet but do a search on
parent pom in this list and you'll find tons of informations. Basically, you
just need to add a  element to your pom and your project pom will
inherit the parent pom configuration values (those inheritable).


On 3/31/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
> Dear Maven users,
>
> Newbie in M2; I have been using Ant for quite some time now, in Ant we 
> can refer / import another Ant build script using 'import' statement; 
> I want to know, how this could be accomplished in M2 ?
>
> Thanks for your help in advance!
>
> Regards, Jaikumar
>
> BM__MailAutoSig_
>
>
>
> Jaikumar Sharma
>
> Sr.Software Development Engineer
>
>
>
> Barco Control Rooms
>
> A-5, Sector - 5,
>
> Noida. India 201 301.
>
> Tel +91 120-2421-651 to 659  Ext.313
>
> Fax+91 120 2421 691
>
>   http://www.barco.com
>
>   mailto:[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 liability for any delays. If you have
> received this message in error, please contact the sender and delete the
> message. Thank you.
>
>


--
Alexandre Poitras
Québec, Canada

-
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 liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


RE: Referring parent POM in child POM

2006-03-31 Thread Sharma, Jaikumar
Thanks Wayne Fay. I would try this!

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 01, 2006 9:55 AM
To: Maven Users List
Subject: Re: Referring parent POM in child POM


This is covered in the "Getting Started with Maven" documentation.
Specifically, jump down to the "Multiple Modules" section. Essentially,
you will need to use the  tag in your children poms.

http://maven.apache.org/getting-started.html

Wayne

On 3/31/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
> Dear Maven users,
>
> Newbie in M2; I have been using Ant for quite some time now, in Ant we

> can refer / import another Ant build script using 'import' statement; 
> I want to know, how this could be accomplished in M2 ?
>
> Thanks for your help in advance!
>
> Regards, Jaikumar
>
> BM__MailAutoSig_
>
>
>
> Jaikumar Sharma
>
> Sr.Software Development Engineer
>
>
>
> Barco Control Rooms
>
> A-5, Sector - 5,
>
> Noida. India 201 301.
>
> Tel +91 120-2421-651 to 659  Ext.313
>
> Fax+91 120 2421 691
>
>   http://www.barco.com
>
>   mailto:[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 liability for any delays. If you have
> received this message in error, please contact the sender and delete
the
> message. Thank you.
>
>
- - - - - - - 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.


Re: Maven Webstart Plugin

2006-03-31 Thread Tim Kettler

Jeff,

you can check out the plugin from:

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-jar-plugin/

and then do the modifications mentioned here:

http://mail-archives.apache.org/mod_mbox/maven-dev/200603.mbox/[EMAIL PROTECTED]

-Tim

[EMAIL PROTECTED] schrieb:

Tim / Geoffrey,

Would it be at all possible to email me a modified maven-jar-plugin.jar with
the corrections in place?

mailto:[EMAIL PROTECTED]

Thanks again for all the help,

Jeff
--
View this message in context: 
http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3697399
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] Adding a non-artifact to a plugin's classpath

2006-03-31 Thread Brett Porter
Can you clarify classpath? Is it looking in the current classloader,
the context classloader, or something else?

Maybe creating a classloader and setting the thread context
classloader will help:

ClassLoader oldCCL = Thread.getContextClassLoader();
ClassLoader cl = new URLClassLoader( new URL[] { file.toURL() } );
Thread.setContextClassLoader( cl );

// call 3rd party code

Thread.setContextClassLoader( oldCCL );

If not, to do it from the mojo, you could probably do it by grabbing
the current classloader and casting it to a RealmClassLoader, then
adding the URL. It's sort of assuming implementation details of Maven,
but they aren't likely to change :)

HTH,
Brett

On 3/31/06, Martin Cooper <[EMAIL PROTECTED]> wrote:
> I'm writing my own Mojo that needs to be able to read a file that's in the
> classpath. The catch is that the file must be either dyamically generated,
> or part of the source tree of the project that's invoking my plugin. Since
> it's not part of some other artifact, I'm not seeing how I can get the file
> into the classpath for my plugin.
>
> Is there a way to add a non-artifact (e.g. file system directory) to the
> classpath for a plugin? Either configuring this in the POM (i.e. an
> equivalent to adding a directory as a path location in a taskdef classpath
> in Ant) or having code in the Mojo do this would be fine, with a slight
> preference for the latter.
>
> BTW, the code that reads the file in question is 3rd party code, and I don't
> have an alternative way to feed the file to that code, unfortunately. It has
> to be in the classpath.
>
> Thanks!
>
> --
> Martin Cooper
>
>

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



Re: Referring parent POM in child POM

2006-03-31 Thread Alexandre Poitras
I guess you want to use import to reuse common configuration which
usually done using a parent pom.

Unfortunately,  I think  there is no official guide yet but do a
search on parent pom in this list and you'll find tons of
informations. Basically, you just need to add a  element to
your pom and your project pom will inherit the parent pom
configuration values (those inheritable).


On 3/31/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
> Dear Maven users,
>
> Newbie in M2; I have been using Ant for quite some time now, in Ant we can
> refer / import another Ant build script using 'import' statement; I want to
> know, how this could be accomplished in M2 ?
>
> Thanks for your help in advance!
>
> Regards, Jaikumar
>
> BM__MailAutoSig_
>
>
>
> Jaikumar Sharma
>
> Sr.Software Development Engineer
>
>
>
> Barco Control Rooms
>
> A-5, Sector - 5,
>
> Noida. India 201 301.
>
> Tel +91 120-2421-651 to 659  Ext.313
>
> Fax+91 120 2421 691
>
>   http://www.barco.com
>
>   mailto:[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 liability for any delays. If you have
> received this message in error, please contact the sender and delete the
> message. Thank you.
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: Referring parent POM in child POM

2006-03-31 Thread Wayne Fay
This is covered in the "Getting Started with Maven" documentation.
Specifically, jump down to the "Multiple Modules" section.
Essentially, you will need to use the  tag in your children
poms.

http://maven.apache.org/getting-started.html

Wayne

On 3/31/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
> Dear Maven users,
>
> Newbie in M2; I have been using Ant for quite some time now, in Ant we can
> refer / import another Ant build script using 'import' statement; I want to
> know, how this could be accomplished in M2 ?
>
> Thanks for your help in advance!
>
> Regards, Jaikumar
>
> BM__MailAutoSig_
>
>
>
> Jaikumar Sharma
>
> Sr.Software Development Engineer
>
>
>
> Barco Control Rooms
>
> A-5, Sector - 5,
>
> Noida. India 201 301.
>
> Tel +91 120-2421-651 to 659  Ext.313
>
> Fax+91 120 2421 691
>
>   http://www.barco.com
>
>   mailto:[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 liability for any delays. If you have
> received this message in error, please contact the sender and delete the
> message. Thank you.
>
>


eclipse plug-in now compiles project

2006-03-31 Thread gdub

Hi-

I'm wondering if this is a bug or just
intended new behavior. I also don't
know if it is a plug-in issue or a
Maven application issue.

Recently, I installed 2.02 on my laptop
(I use 2.01 at the office). The
eclipse:eclipse target on the laptop
tries (and fails) to compile my project.
This doesn't occur on my office machine.

What this means is that I can't take
uncompilable code with me on the road
without manually configuring eclipse.

If this is an intended behavior, is there
a property recognized by the eclipse
plug-in that turns it off?

TIA,

 -dub




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



Referring parent POM in child POM

2006-03-31 Thread Sharma, Jaikumar
Dear Maven users,
 
Newbie in M2; I have been using Ant for quite some time now, in Ant we can
refer / import another Ant build script using 'import' statement; I want to
know, how this could be accomplished in M2 ?
 
Thanks for your help in advance!
 
Regards, Jaikumar

BM__MailAutoSig_

 

Jaikumar Sharma

Sr.Software Development Engineer

 

Barco Control Rooms

A-5, Sector - 5,

Noida. India 201 301.

Tel +91 120-2421-651 to 659  Ext.313

Fax+91 120 2421 691

  http://www.barco.com

  mailto:[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 liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


Re: Downloading local cached jars

2006-03-31 Thread Wayne Fay
Type "mvn -X ..." to see the debugging & info messages. It should help
explain the time delay.

Most likely, yes, Maven is trying to download these dependencies from
Central (Ibiblio) repo and any other repos you have defined.

Wayne

On 3/31/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> Hi folks,
> I have a few 3rd party jars installed into my local repository, but each
> time I call the maven install plugin the output tells me maven is
> downloading the jars (and it takes some time to 'download' each jar).
>
> Am I missing some point here? Is maven looking for this artifacts at the web
> repositories?
>
> One of my theories is that if I had a intranet maven repository properly
> configured maven would look for this artifacts there, it would see that
> there are no new versions and quickly would keep using the local cache. Is
> this right?
>
>
> --
> "Minds are like parachutes, they work best when open."
>
> Bruno Patini Furtado
> Software Developer
> webpage: http://bpfurtado.net
> software development blog: http://bpfurtado.livejournal.com
>
>


After building project - edited SCM Url reverts back to default

2006-03-31 Thread Gunnar Hillert
Hi,

I am having an annoying issue with an edited SCM url. I am using profiles in my 
Maven2 POM and since continuum runs on the same box Subversion is running, I 
use a 
special profile in my POM where I use scm:svn:file:///var/repositories/... etc. 
for my SVN repository instead my default one, which uses SSH (svn+ssh://...).

I am doing the following steps:

Created a new Continuum project by importing my pom.xml. Continuum seems to be 
always using the default profile so it has the wrong SCM settings - So I click 
'edit' under 'Continuum Project' and change my SCM url to 
scm:svn:file:///...etc. Afterwards I execute the project and everything builds 
successfully. However, all my changes under 'Continuum Project' are changed 
back to their initial values. 

This is not only true for the 'Scm Url' but also for 'Project Name' and 
'Version'. 

I originally used Continuum 1.0.2 but switched to 1.0.3 as I hoped this will 
solve my issue - but no luck so far. I could not find any direct JIRA entry for 
this - but this issue seems to be related to issue: CONTINUUM-548, which is 
still unresolved. This is a major issue for me!!

In case I am missing something - I am grateful for any hints you can provide  - 
if this is a bug, is there still a chance to get this fixed for the final 1.0.3 
release?

Thank you very much!

Regards,

Gunnar

PS:

A side note: when I enter the number 1 into field 'version', then after saving 
it, it is showing 'true'. When I enter 0 then it is showing 'false'. I am 
assuming this is a bug? This happened in 1.0.3 (snapshot)



"" made the following
 annotations on 03/31/06 14:31:49
__

NOTICE: This e-mail (including attachments) may contain information that is 
confidential and legally privileged. If you are not the intended recipient, you 
are hereby notified that you have received this document in error and that any 
review, dissemination, distribution or copying of this message is strictly 
prohibited. If you have received this in error, please notify the sender 
immediately by replying to this message and then deleting it.  Thank you for 
your cooperation.

==



mvn release

2006-03-31 Thread Christophe . LALLEMENT
I try to prepare  a release with maven.
My project is under cvs and i try this command line:
mvn  -e release:prepare 
-Dproject.scm.developerConnection=scm:cvs:pserver:[EMAIL 
PROTECTED]:/archi:my_module_dir
And i have this error descirbe below.

I use maven 2.0.3 with jdk 1.5.0_06.
The scm plugin work fine with the same scm url (scm:checkout)

it means cvs is not supported by release plugin ?

Thx
Christophe

[INFO] An error is occurred in the status process.

Embedded error: Can't load the scm provider.
The scm url is invalid.
[INFO] 

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error is 
occurred in the status process.
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
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 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error is 
occurred in the status process.
at 
org.apache.maven.plugins.release.PrepareReleaseMojo.checkForLocalModifications(PrepareReleaseMojo.java:513)
at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:200)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: org.apache.maven.scm.ScmException: Can't load the scm provider.
at 
org.apache.maven.plugins.release.helpers.ScmHelper.getScmRepository(ScmHelper.java:120)
at 
org.apache.maven.plugins.release.helpers.ScmHelper.getStatus(ScmHelper.java:185)
at 
org.apache.maven.plugins.release.PrepareReleaseMojo.checkForLocalModifications(PrepareReleaseMojo.java:509)
... 19 more
Caused by: org.apache.maven.scm.repository.ScmRepositoryException: The scm 
url is invalid.
at 
org.apache.maven.scm.provider.cvslib.CvsScmProvider.makeProviderScmRepository(CvsScmProvider.java:98)
at 
org.apache.maven.scm.manager.plexus.DefaultScmManager.makeScmRepository(DefaultScmManager.java:135)
at 
org.apache.maven.plugins.release.helpers.ScmHelper.getScmRepository(ScmHelper.java:83)
... 21 more
*
This message and any attachments (the "message") are confidential and intended 
solely for the addressee(s).
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to 
alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or
falsified.
  
Ce message et toutes les pieces jointes (ci-apres le "message") sont 
confidentiels et etablis a l'intention exclusive de ses
destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout 
message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de 
ce message s'il a ete altere, deforme ou falsifie.
*


Downloading local cached jars

2006-03-31 Thread Bruno Patini Furtado
Hi folks,
I have a few 3rd party jars installed into my local repository, but each
time I call the maven install plugin the output tells me maven is
downloading the jars (and it takes some time to 'download' each jar).

Am I missing some point here? Is maven looking for this artifacts at the web
repositories?

One of my theories is that if I had a intranet maven repository properly
configured maven would look for this artifacts there, it would see that
there are no new versions and quickly would keep using the local cache. Is
this right?


--
"Minds are like parachutes, they work best when open."

Bruno Patini Furtado
Software Developer
webpage: http://bpfurtado.net
software development blog: http://bpfurtado.livejournal.com


Re: Managing external non-Maven repository JAR files

2006-03-31 Thread justin_fung
Sorry for the stupid question!!

http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html

I found my own answer. It doesn't show up on google when searching for 
"Maven JAR dependencies" ;)

-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








[EMAIL PROTECTED]
03/31/2006 04:09 PM
Please respond to "Maven Users List"

 
To: "Maven Users List" 
cc: 
Subject:Managing external non-Maven repository JAR files

  Our Ref: 
Your Ref: 


I have some "legacy" JAR files that I am porting over from an existing 
application. They do not exist in the central Maven repository and ideally 

I would like to avoid having to manually create pom.xml files and dropping 

them into my company's "local" repository.

What is the best practice for pulling these into a Maven project? Is there 

a quick and dirty way to create a pom.xml file for these JAR's? I've 
noticed that you can define a dependency's scope to be "system", however 
this means I have to maintain the library at a system level which isn't 
exactly what I was looking for.

Any help or code snippets would be greatly appreciated!

-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 
*** 
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. 
*** 


 
*** 
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. 
**

Managing external non-Maven repository JAR files

2006-03-31 Thread justin_fung
I have some "legacy" JAR files that I am porting over from an existing 
application. They do not exist in the central Maven repository and ideally 
I would like to avoid having to manually create pom.xml files and dropping 
them into my company's "local" repository.

What is the best practice for pulling these into a Maven project? Is there 
a quick and dirty way to create a pom.xml file for these JAR's? I've 
noticed that you can define a dependency's scope to be "system", however 
this means I have to maintain the library at a system level which isn't 
exactly what I was looking for.

Any help or code snippets would be greatly appreciated!

-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 
*** 
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: Pom's of spring-core (etc) 1.2.7

2006-03-31 Thread Kathryn Huxtable
Yes, and for my team's own use I've hacked versions of the 2.0-m3 spring
poms. Basically, I just copied the 2.0-m1 poms and edited the versions.

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

On 3/31/06 4:51 PM, "Alexandre Poitras" <[EMAIL PROTECTED]> wrote:

> This was quoted from a mail of Carlos Sanchez on the devs list on march 21 :
> "Alef from Spring got in touch with me about m2 support and I asked him
> to add the poms to spring cvs so people can contribute, i've ping him
> again."
> 
> I guess it's coming :)
> 
> On 3/27/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
>> I notice there aren't any poms for 1.2.7 on Ibiblio.
>> It must be a lot of work maintaining those pom's
>> and I hope Spring will maintain them themselves soon,
>> but will the poms be available for 1.2.8?
>> 
>> In spring-richclient (and my internal project) we 're waiting on those
>> of 1.2.7 to upgrade to 1.2.7 :)
>> 
>> Thanks for all the great work.
>> 
>> --
>> With kind regards,
>> Geoffrey De Smet
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> --
> Alexandre Poitras
> Québec, Canada
> 
> -
> 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: Pom's of spring-core (etc) 1.2.7

2006-03-31 Thread Alexandre Poitras
This was quoted from a mail of Carlos Sanchez on the devs list on march 21 :
"Alef from Spring got in touch with me about m2 support and I asked him
to add the poms to spring cvs so people can contribute, i've ping him
again."

I guess it's coming :)

On 3/27/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
> I notice there aren't any poms for 1.2.7 on Ibiblio.
> It must be a lot of work maintaining those pom's
> and I hope Spring will maintain them themselves soon,
> but will the poms be available for 1.2.8?
>
> In spring-richclient (and my internal project) we 're waiting on those
> of 1.2.7 to upgrade to 1.2.7 :)
>
> Thanks for all the great work.
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



RE: filtering of MANIFEST.MF?

2006-03-31 Thread Mike Perham
If you are trying to filter custom properties, you need to add a
filters.properties which explicitly enumerates your filter variables.
See the Getting Started guide to filtering.  It is wrong when it says
you can just filter straight from a system property into your
src/main/resources/application.properties file.

-Original Message-
From: Rob Dickens [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 4:25 PM
To: Maven Users List
Subject: filtering of MANIFEST.MF?

Dear Maven Users,

I've so far discovered how to merge in my own manifest file entries:

   
 org.apache.maven.plugins
 maven-jar-plugin
 
   
 src/main/resources/META-INF/MANIFEST.MF

My question now is, how can I filter this? (substitute the value of each
${property})

I tried adding the following, but it doesn't appear to work:

   
 
   
src/main/resources
true
   
 
   

Any ideas?

Rob

-
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: what plugins r required for multiproject builds???

2006-03-31 Thread Alexandre Poitras
If you speak of Maven 2, the answer is none. Multiproject builds are
supported out of the box (the Maven reactor handles it).

On 3/29/06, raja bangaru <[EMAIL PROTECTED]> wrote:
> Can anyone tell me
>
> what plugins r required for multiproject build??? in eclipse IDE???
>
> like
> mulitproject
> dashboard...etc..
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: Non-java projects

2006-03-31 Thread Wayne Fay
Yes I know someone has been talking about a C# compiler/plugin...

Search User@ and Dev@ Maven lists, you're bound to find something.

Wayne

On 3/31/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> I think there are for ruby and .net. I remember some mails about it.
> The best way to know would be to search in the mailing list archives.
>
> On 3/31/06, Arnaud Bailly <[EMAIL PROTECTED]> wrote:
> > Hi to all,
> > I think there is some support for "alien" projects in maven. Is this
> > true and what is the status of such features ?
> > I would like to use maven to build projects with mixed languages :
> > C++, python, ruby would be first choices. When I say build, I say of
> > course unit testing, compilation, report generation...
> >
> > regards,
> > --
> > Arnaud Bailly, Dr. - Ingénieur de Recherche
> > NORSYS
> > 1, rue de la Cense des Raines
> > ZAC du Moulin
> > 59710 ENNEVELIN
> > Tel : (33) 3 28 76 56 76
> > Mob : (33) 6 17 12 19 78
> > Fax : (33) 3 28 76 57 00
> > Web : http://www.norsys.fr
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] eclipse:add-maven-repo fails if pom.xml is in execution directory

2006-03-31 Thread Alexandre Poitras
There is definetly something wrong in your POM because I have done
this operation lot of time before and it works (well on a Linux box),
Please copy it if you want us to help you :)

On 3/29/06, Stefan Fritz <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> the eclipse plugin seems to have a similar problme as the archetype plugin.
> It fails if the command is executed in a directory with a pom.xml file:
>
>
> C:\dev\trunk\mvn eclipse:add-maven-repo -Declipse.workspace=C:\dev\work\test
> [INFO] Scanning for projects...
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: sonic.dev:esb
> POM Location: C:\dev\trunk\sonic\src\pom.xml
>
> Reason: Parse error reading POM. Reason: Duplicated tag: 'artifactId'
> (position: START_TAG seen ...<
> /version>\r\n\t\t\t\t... @34:17)
>
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Parse error reading
> POM. Reason: Duplicated tag: '
> artifactId' (position: START_TAG seen
> ...\r\n\t\t\t\t... @34:17)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
> 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
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.InvalidProjectModelException: Parse
> error reading POM. Reason: D
> uplicated tag: 'artifactId' (position: START_TAG seen
> ...\r\n\t\t\t\t... @34:1
> 7)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.
> java:1290)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.
> java:1250)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBu
> ilder.java:1067)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBu
> ilder.java:1155)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuil
> der.java:672)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMa
> venProjectBuilder.java:414)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java
> :190)
> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
> at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
> ... 11 more
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
> Duplicated tag: 'artifactId' (p
> osition: START_TAG seen ...\r\n\t\t\t\t... @34:17)
> at
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parsePlugin(MavenXpp3Reader.java:2865)
> at
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Reader.java:753)
> at
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2224)
> at
> org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4422)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.
> java:1286)
> ... 20 more
> [INFO]
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Mar 29 08:40:42 CEST 2006
> [INFO] Final Memory: 1M/2M
> [INFO]
> 
>
>
> Is this a known issue?
>
> Regards
> Stefan
>
> PS: The pom is valid and has no duplicate tags!!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: Problem with own jar as dependencies

2006-03-31 Thread Alexandre Poitras
You want to install the dependency in your local repository ??
If so, you need to run "mvn install:install-file" because your jar is
not a maven project, just a dependency you need to put in your
repository.

On 3/29/06, Venkatagopalaraju <[EMAIL PROTECTED]> wrote:
> Dear Maven Users,
>
>   I am using our own jars as dependencies in my pom.xml. In this 
> task, I used command line options as
>
> set -Dversion=1.0
> set -Dartifactid=struts
> set -DgroupId=localjars
> set -Dpackaging=jar  -Dgeneratepom=true
>
> and I created my own jar directory structure as
>
> C:\Documents and 
> Settings\xmraju\.m2\repository\localjars\struts\1.0\struts-1.0.jar
>
> and my pom.xml is...
>
> http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   4.0.0
>   citistreet.id.util
>   cs-struts-base
>   jar
>   1.0
>   Maven Quick Start Archetype
>   http://maven.apache.org
>   
>   classes
>   classes
>   ${artifactId}-${version}
>   src
>   
> 
>  org.apache.maven.plugins
>  maven-compiler-plugin
>  
>1.5
> 1.5
> 
> 
>   
> true
> org.apache.maven.plugins
> maven-source-plugin
> 
>   
> attach-sources
> 
>   jar
> 
>   
> 
>   
>
> 
>
>
>citistreet.id.util
>cs-util
>1.0
>  
>  
>   localjars
>   struts
>   1.0
>   
>  
>
>target/site
>
> 
>
> When I try to run this pom.xml by using "mvn clean package", I found below 
> error as Unable to get resource from repository central...But I am getting 
> build successful. Could you please let me know, What I need to do...and where 
> I did mistake...?
>  Help me Please
>
>
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://repo1.maven.org/maven2/localjars/struts/1.0/struts-1.0.pom
> [WARNING] Unable to get resource from repository central 
> (http://repo1.maven.org
> /maven2)
>
>


--
Alexandre Poitras
Québec, Canada

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



Fwd: [M2] Is FTP maven2 site deploy supported?

2006-03-31 Thread Alexandre Poitras
-- Forwarded message --
From: Alexandre Poitras <[EMAIL PROTECTED]>
Date: Mar 31, 2006 5:40 PM
Subject: Re: [M2] Is FTP maven2 site deploy supported?
To: Jens Riboe <[EMAIL PROTECTED]>


>From : http://maven.apache.org/guides/mini/guide-site.html

"Currently, only SSH is supported, as above which copies to the host
www.mycompany.com in the path /www/docs/project/."
So I guess the answer is no unfortunately :(

On 3/29/06, Jens Riboe <[EMAIL PROTECTED]> wrote:
> I have FTP download (depends) and upload (deploy) working. /Thanks
>
> However, here's next problem: Is FTP supported for site:deploy?
> [INFO] [site:deploy]
> [INFO] Wagon protocol 'ftp' doesn't support directory copying
>
> Am I missing some additional setups?
> (I have distributionManagement/site configured in my pom)
>
> Thanks in advance,
> /jens
>
> -Original Message-
> From: Jens Riboe [mailto:[EMAIL PROTECTED]
> Sent: 29 March 2006 15:26
> To: Maven Users List
> Cc: [EMAIL PROTECTED]
> Subject: RE: [M2] Is FTP maven2 repository supported?
>
> >> It is supported but there some *undocumented* steps to perform,
> Will it be documented?
>
> >> I can give you the complete listing
> Yes, please!
>
> I have copied wagon-ftp-1.0-alpha-6.jar into the maven\lib, but I guess its 
> transitive depend set need to be there as well?
>
> /Jens
>
>
>
> -Original Message-
> From: Alexandre Poitras [mailto:[EMAIL PROTECTED]
> Sent: 29 March 2006 13:21
> To: Maven Users List
> Subject: Re: [M2] Is FTP maven2 repository supported?
>
> It is supported but there some *undocumented* steps to perform, ie
> copying some libs in maven\lib directory. I can give you the complete
> listing in like two hours once I am at my job.
>
> On 3/29/06, Jens Riboe <[EMAIL PROTECTED]> wrote:
> > I have succeed with FTP upload (deploy), but was surprised to find out
> > that FTP download (repo/depends) failed.
> >
> > [WARNING] repository metadata for: 'artifact
> > org.apache.maven.wagon:wagon-ftp' could not be retrieved from
> > repository: myFTPsite due to an error: Unsupported Protocol: 'ftp':
> > Cannot find wagon which supports the requested protocol: ftp
> >
> > Am I missing something?
> > Or, is ftp m2 repo not supported? If not, will it be supported soon?
> >
> > Thanks for your help.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
> -
> 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]
>
>


--
Alexandre Poitras
Québec, Canada


--
Alexandre Poitras
Québec, Canada

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



Re: [M2] Is FTP maven2 repository supported?

2006-03-31 Thread Alexandre Poitras
Done :
http://jira.codehaus.org/browse/MNG-2195
Sorry if it took me some times, I had some health issues this week :)

On 3/30/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> It'd be better if you open a jira issue with the docs so they end in
> the maven site
>
> On 3/29/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> > It is supported but there some *undocumented* steps to perform, ie
> > copying some libs in maven\lib directory. I can give you the complete
> > listing in like two hours once I am at my job.
> >
> > On 3/29/06, Jens Riboe <[EMAIL PROTECTED]> wrote:
> > > I have succeed with FTP upload (deploy), but was surprised to find out
> > > that FTP download (repo/depends) failed.
> > >
> > > [WARNING] repository metadata for: 'artifact
> > > org.apache.maven.wagon:wagon-ftp' could not be retrieved from
> > > repository: myFTPsite due to an error: Unsupported Protocol: 'ftp':
> > > Cannot find wagon which supports the requested protocol: ftp
> > >
> > > Am I missing something?
> > > Or, is ftp m2 repo not supported? If not, will it be supported soon?
> > >
> > > Thanks for your help.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Alexandre Poitras
> > Québec, Canada
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> I could give you my word as a Spaniard.
> No good. I've known too many Spaniards.
>  -- The Princess Bride
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: Non-java projects

2006-03-31 Thread Alexandre Poitras
I think there are for ruby and .net. I remember some mails about it.
The best way to know would be to search in the mailing list archives.

On 3/31/06, Arnaud Bailly <[EMAIL PROTECTED]> wrote:
> Hi to all,
> I think there is some support for "alien" projects in maven. Is this
> true and what is the status of such features ?
> I would like to use maven to build projects with mixed languages :
> C++, python, ruby would be first choices. When I say build, I say of
> course unit testing, compilation, report generation...
>
> regards,
> --
> Arnaud Bailly, Dr. - Ingénieur de Recherche
> NORSYS
> 1, rue de la Cense des Raines
> ZAC du Moulin
> 59710 ENNEVELIN
> Tel : (33) 3 28 76 56 76
> Mob : (33) 6 17 12 19 78
> Fax : (33) 3 28 76 57 00
> Web : http://www.norsys.fr
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: Generated Resources are not packaged

2006-03-31 Thread Alexandre Poitras
Just declare your resources directory in the "build/resources" section
of your pom or
generate the sources in the "src/main/resources" directory, which is
the default resources directory.


On 3/31/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using the ant-run plugin to generate some sources and have a seperate
> ant-run config to generate some property-files (in the generate-resource
> phase).
> When I tell maven to run everything and package it all up in a JAR, the
> generated resources are NOT inside the JAR. I only found the possibility in
> the ant-run plugin to add a source-root, but nothing like a resource-root...
> Can anybody tell me how I could get all my resources in the JAR?
>
> Thanks,
>
> Roland
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: simple way of changin scope for dependencies?

2006-03-31 Thread Alexandre Poitras
Take a look at the profiles :
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

I think the dependenciesManagement section is what you are looking for.

On 3/31/06, Mikael Andersson <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a pom used with the jetty6 plugin and myfaces (via the archetype),
> for the jetty plugin to work properly I had to change from provided to
> compile for a depency and add a couple of tomcat jars.
>
> I wonder if there is a nice and simple way of changing the scope of certain
> dependencies without editing the pom file all the time, like using profiles
> or environment variables? Otherwise I will probably forget to change the pom
> and bundle those jars with the war running on tomcat :(
>
> Had a quick go with -DscopeVal=compile and then in the pom
> ${scopeVal} , which failed. I am relatively new to maven2 and
> not that familiar with the more advanced stuff, so help please :)
>
> Thanks,
>  Micke
>
>


--
Alexandre Poitras
Québec, Canada

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



filtering of MANIFEST.MF?

2006-03-31 Thread Rob Dickens

Dear Maven Users,

I've so far discovered how to merge in my own manifest file entries:

  
org.apache.maven.plugins
maven-jar-plugin

  
src/main/resources/META-INF/MANIFEST.MFmanifestFile>


My question now is, how can I filter this? (substitute the value of  
each ${property})


I tried adding the following, but it doesn't appear to work:

  

  
src/main/resources
true
  

  

Any ideas?

Rob

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



Re: Big thanks to Wayne Fay!

2006-03-31 Thread Alexandre Poitras
Yup kudos to you Wayne :) You deserve it!

On 3/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I told you, Wayne.  They're coming for you!  Better run and hide before
> it's too late!!
>
> j/k.  Kudos on the kudos :)
>
>
> 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
>
>
>
>   "Wayne Fay"
>   <[EMAIL PROTECTED]To:   "Maven Users List" 
> 
>   om>  cc:
>Subject:  Re: Big thanks to 
> Wayne Fay!
>   03/30/2006 04:33
>   PM
>   Please respond to
>   "Maven Users
>   List"
>
>
>
>
>
> Hey thanks Jason. I'm just fortunate to have extra time at work the
> last 2 weeks. We are starting a new project next week and so I'll
> probably slow it down a bit when that gets going. ;-)
>
> Wayne
>
>
> On 3/30/06, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> > I just have to say wow at Wayne Fay's effort on the user's list. Double
> wow.
> >
> > I don't think I've ever seen a user help other users so much, it's quite
> > incredible. Thanks so much for your effort!
> >
> > --
> > jvz.
> >
> > Jason van Zyl
> > jason at maven.org
> > http://maven.apache.org
> >
> > you are never dedicated to something you have complete confidence in.
> > No one is fanatically shouting that the sun is going to rise tomorrow.
> > They know it is going to rise tomorrow. When people are fanatically
> > dedicated to political or religious faiths or any other kind of
> > dogmas or goals, it's always because these dogmas or
> > goals are in doubt.
> >
> >   -- Robert Pirzig, Zen and the Art of Motorcycle Maintenance
> >
> > -
> > 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]
>
>


--
Alexandre Poitras
Québec, Canada

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



simple way of changin scope for dependencies?

2006-03-31 Thread Mikael Andersson
Hi,
I have a pom used with the jetty6 plugin and myfaces (via the archetype),
for the jetty plugin to work properly I had to change from provided to
compile for a depency and add a couple of tomcat jars.

I wonder if there is a nice and simple way of changing the scope of certain
dependencies without editing the pom file all the time, like using profiles
or environment variables? Otherwise I will probably forget to change the pom
and bundle those jars with the war running on tomcat :(

Had a quick go with -DscopeVal=compile and then in the pom
${scopeVal} , which failed. I am relatively new to maven2 and
not that familiar with the more advanced stuff, so help please :)

Thanks,
 Micke


Re: Maven Webstart Plugin

2006-03-31 Thread [EMAIL PROTECTED]

Tim / Geoffrey,

Would it be at all possible to email me a modified maven-jar-plugin.jar with
the corrections in place?

mailto:[EMAIL PROTECTED]

Thanks again for all the help,

Jeff
--
View this message in context: 
http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3697399
Sent from the Maven - Users forum at Nabble.com.


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



Re: Maven Webstart Plugin

2006-03-31 Thread [EMAIL PROTECTED]

Hi Tim,

Thanks, that got me pretty close. I am now throwing the LifeCycleException
detailed in that JIRA entry you showed me. This means I need to find the
source for the:

" /org/apache/maven/plugins/maven-jar-plugin "

so I can create a corrected jar ... 

I do appreciate the help.

--
Jeff
--
View this message in context: 
http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3697193
Sent from the Maven - Users forum at Nabble.com.


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



Re: Any ideas on why adding a single line of code would cause this error

2006-03-31 Thread MTedesco
Think I'm all set on this. Apparently under the test branch some 
directories got created (i.e from sunfire) and presented a problem. I just 
deleted the class files
and rerun the lifecycles. It ok now 

-- Thanks,

--



"Wayne Fay" <[EMAIL PROTECTED]> 
03/31/2006 02:28 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Any ideas on why adding a single line of code would cause this error






What's the "single line of code"?? Can you send it?

Wayne

On 3/31/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
>   I've added a single line of code to the maven test app (my-app) and
> received the below error message.
>
> Any ideas?
>
> C:\evergreen\MavenMy-App>mvn test
> [INFO] Scanning for projects...
> [INFO]
> 

> [INFO] Building Maven Quick Start Archetype
> [INFO]task-segment: [test]
> [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] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Setting reports dir: C:\MavenMy-App\target/surefire-reports
>
> ---
>  T E S T S
> ---
> java.lang.ClassFormatError: com/mycompany/app/AppTest (Illegal Field 
name
> "has inconsistent hierarchy")
>at java.lang.ClassLoader.defineClass0(Native Method)
>at java.lang.ClassLoader.defineClass(Unknown Source)
>at java.security.SecureClassLoader.defineClass(Unknown Source)
>
> --
> Michael Tedesco
> Evergreen Investments - Technology
> Email: [EMAIL PROTECTED]
> P: 617-210-3515
> C: 978-590-8022
> --
>



Re: [m2.0.3] Embedder - setAlignWithUser ignored

2006-03-31 Thread Jason van Zyl

Rollo, Dan wrote:
I'm not sure I understand how the branching/merging will pan out. 
Seems like this particular change could be pretty easy, like:



private void detectUserInstallation()
{
if ( new File( userHome, ".m2" ).exists() &&

localRepositoryDirectory == null)

{
alignWithUserInstallation = true;
}
}



Should I create a bug report issue for this MavenEmbedder bug?


That's the best plan. I'm working on the branch right now.


Thanks,
Dan

On 3/30/06, Rollo, Dan <[EMAIL PROTECTED]> wrote:

Cool. Just to verify if I'm thinking correctly: Would the "correct"
usage be:

1. setLocalRepositoryDirectory();
2. alignWithUserInstallation(false);
3. mavenEmbedder.start();

Thanks,
Dan

PS: Any chance this fix could make it into 2.0.4?


probably no, it's a rather big change on the branch.

Milos 


--
This e-mail and any files transmitted with it may contain privileged or 
confidential information.
It is solely for use by the individual for whom it is intended, even if 
addressed incorrectly.
If you received this e-mail in error, please notify the sender; do not 
disclose, copy, distribute,
or take any action in reliance on the contents of this information; and delete 
it from
your system. Any other use of this e-mail is prohibited.

Thank you for your compliance.
--

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






--
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

A man enjoys his work when he understands the whole and when he
is responsible for the quality of the whole

 -- Christopher Alexander

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



RE: [m2.0.3] Embedder - setAlignWithUser ignored

2006-03-31 Thread Rollo, Dan
I'm not sure I understand how the branching/merging will pan out. 
Seems like this particular change could be pretty easy, like:

> private void detectUserInstallation()
> {
> if ( new File( userHome, ".m2" ).exists() &&
localRepositoryDirectory == null)
> {
> alignWithUserInstallation = true;
> }
> }


Should I create a bug report issue for this MavenEmbedder bug?

Thanks,
Dan

On 3/30/06, Rollo, Dan <[EMAIL PROTECTED]> wrote:
> Cool. Just to verify if I'm thinking correctly: Would the "correct"
> usage be:
>
> 1. setLocalRepositoryDirectory();
> 2. alignWithUserInstallation(false);
> 3. mavenEmbedder.start();
>
> Thanks,
> Dan
>
> PS: Any chance this fix could make it into 2.0.4?

probably no, it's a rather big change on the branch.

Milos 

--
This e-mail and any files transmitted with it may contain privileged or 
confidential information.
It is solely for use by the individual for whom it is intended, even if 
addressed incorrectly.
If you received this e-mail in error, please notify the sender; do not 
disclose, copy, distribute,
or take any action in reliance on the contents of this information; and delete 
it from
your system. Any other use of this e-mail is prohibited.

Thank you for your compliance.
--

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



Re: Any ideas on why adding a single line of code would cause this error

2006-03-31 Thread MTedesco
/**
 * Rigourous Test :-)
 */
public void testApp()
{
   System.out.println("In AppTest testApp()");
assertTrue( true );
}




"Wayne Fay" <[EMAIL PROTECTED]> 
03/31/2006 02:28 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Any ideas on why adding a single line of code would cause this error






What's the "single line of code"?? Can you send it?

Wayne

On 3/31/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
>   I've added a single line of code to the maven test app (my-app) and
> received the below error message.
>
> Any ideas?
>
> C:\evergreen\MavenMy-App>mvn test
> [INFO] Scanning for projects...
> [INFO]
> 

> [INFO] Building Maven Quick Start Archetype
> [INFO]task-segment: [test]
> [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] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Setting reports dir: C:\MavenMy-App\target/surefire-reports
>
> ---
>  T E S T S
> ---
> java.lang.ClassFormatError: com/mycompany/app/AppTest (Illegal Field 
name
> "has inconsistent hierarchy")
>at java.lang.ClassLoader.defineClass0(Native Method)
>at java.lang.ClassLoader.defineClass(Unknown Source)
>at java.security.SecureClassLoader.defineClass(Unknown Source)
>
> --
> Michael Tedesco
> Evergreen Investments - Technology
> Email: [EMAIL PROTECTED]
> P: 617-210-3515
> C: 978-590-8022
> --
>




Re: deploy works, but release:perform fails to deploy

2006-03-31 Thread Konstantin Polyzois
When I looked in to the source for the release plugin it actually executed
maven from there, so I guess that's where the strange output is coming

On 3/31/06, Julian Wood <[EMAIL PROTECTED]> wrote:
>
> The questions I would ask myself if I saw this output are:
>
> 1. It looks like you issued an mvn command - why does maven think you
> issued an m2 command? You should maybe resolve that and make sure mvn
> -version is 2.0.3
> 2. Did you really have a BUILD ERROR and a BUILD SUCCESSFUL in the
> same output? I have never seen that before (doesn't mean it can't
> happen).
> 3. It tells you to check your dist management section. Maybe you
> should post that to the list (or even the pom in it's entirety). I
> know you say it works for deployment, but still...
>
> You might want to take a gander at this page, which walks you through
> the release process:
>
> http://wiki.ucalgary.ca/page/LearningCommons/Documentation/
> Project_Versioning_-_Best_Practices
>
> J
>
>
> On 30-Mar-06, at 8:32 PM, Craig McDaniel wrote:
>
> > I don't mean to pester, but the release plugin is my primary reason
> > for upgrading to maven 2 (and will solve my biggest headaches right
> > now). I've spent several hours browsing docs and googling to no avail.
> > I will be happy to provide any additional info that may be necessary.
> >
> > On 3/30/06, Craig McDaniel <[EMAIL PROTECTED]> wrote:
> >> I can run 'mvn deploy' and it works just fine. I ran release:prepare
> >> and it also worked fine. When I run release:perform, I get the
> >> following error:
> >>
> >> $ mvn -e release:perform
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Reactor build order:
> >> [INFO]   Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO] Searching repository for plugin with prefix: 'release'.
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Building Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
> >> [INFO]task-segment: [release:perform] (aggregator-style)
> >> [INFO]
> >> -
> >> ---
> >> [INFO] [release:perform]
> >> [INFO] Checking out the project to perform the release ...
> >>
> >> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> >>
> >> [INFO] Scanning for projects...
> >> [INFO] Reactor build order:
> >> [INFO]   Unnamed - com.shps.da:sandbox:pom:1.0
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Building Unnamed - com.shps.da:sandbox:pom:1.0
> >> [INFO]task-segment: [deploy]
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Skipping missing optional mojo:
> >> org.apache.maven.plugins:maven-site-plugin:attach-d
> >> escriptor
> >> [INFO] Preparing javadoc:jar
> >> [INFO] [javadoc:javadoc]
> >> [INFO] Not executing Javadoc as the project is not a Java
> >> classpath-capable package
> >> [INFO] [javadoc:jar {execution: attach-javadocs}]
> >> [INFO] Not executing Javadoc as the project is not a Java
> >> classpath-capable package
> >> [INFO] [source:jar {execution: attach-sources}]
> >> [INFO] NOT adding java-sources to attached artifacts for
> >> packaging: 'pom'.
> >> [INFO] [install:install]
> >> [INFO] Installing d:\cwn\sandbox\target\checkout\pom.xml to
> >> C:\Documents and Settings\s008
> >> 254\.m2\repository\com\shps\da\sandbox\1.0\sandbox-1.0.pom
> >> [INFO]
> >> -
> >> ---
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Failed to configure plugin parameters for:
> >> org.apache.maven.plugins:maven-deploy-pl
> >> ugin:2.2
> >>
> >> check that the following section of the pom.xml is present and
> >> correct:
> >>
> >> 
> >>   
> >>   
> >> repo
> >> Repository Name
> >> scp://host/path/to/repo
> >>   
> >>   
> >>   
> >> repo
> >> Repository Name
> >> scp://host/path/to/repo
> >>   
> >> 
> >>
> >> Cause: Class
> >> 'org.apache.maven.artifact.repository.ArtifactRepository '
> >> cannot be instantia
> >> ted
> >> [INFO]
> >> -
> >> ---
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >> -
> >> ---
> >> [INFO] Total time: 2 seconds
> >> [INFO] Finished at: Thu Mar 30 13:32:23 EST 2006
> >> [INFO] Final Memory: 4M/9M
> >> [INFO]
> >> -
> >> ---
> >> [INFO]
> >> -
> >> ---
> >> [INFO] BUILD SUCCES

RE: [M2] Generate JavaDoc for test classes under src/test/java

2006-03-31 Thread Andreas Guther
In that case I wrote a utility class supporting test cases which I
documented in an article on our internal Wiki. Since it is re-usable and
can be used in lots of our tests, it is actually nice to have the
JavaDoc for the class.

In the article I wanted to add links to the JavaDoc documenting the
utility class as a reference.

Right now I am using a reference to the XRef doc of the class, but it
would be actually better to have the JavaDoc in my eyes.

Andreas


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 11:03 AM
To: Maven Users List
Subject: Re: [M2] Generate JavaDoc for test classes under src/test/java

Just curious, why do you want Javadocs for test files?

Wayne

On 3/31/06, Andreas Guther <[EMAIL PROTECTED]> wrote:
> Problem: Generate JavaDoc for test classes under src/test/java using
the Maven JavaDoc plug-in.
>
> Question:
> Is there a way to tell the maven-javadoc-plugin
(http://maven.apache.org/plugins/maven-javadoc-plugin/configuration.html
) to include java classes under the src/test/java folder as well?
Currently I only get JavaDoc from the src/main/java tree. The
maven-jxr-plugin


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



Re: Any ideas on why adding a single line of code would cause this error

2006-03-31 Thread Wayne Fay
What's the "single line of code"?? Can you send it?

Wayne

On 3/31/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
>   I've added a single line of code to the maven test app (my-app) and
> received the below error message.
>
> Any ideas?
>
> C:\evergreen\MavenMy-App>mvn test
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Building Maven Quick Start Archetype
> [INFO]task-segment: [test]
> [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] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Setting reports dir: C:\MavenMy-App\target/surefire-reports
>
> ---
>  T E S T S
> ---
> java.lang.ClassFormatError: com/mycompany/app/AppTest (Illegal Field name
> "has inconsistent hierarchy")
>at java.lang.ClassLoader.defineClass0(Native Method)
>at java.lang.ClassLoader.defineClass(Unknown Source)
>at java.security.SecureClassLoader.defineClass(Unknown Source)
>
> --
> Michael Tedesco
> Evergreen Investments - Technology
> Email: [EMAIL PROTECTED]
> P: 617-210-3515
> C: 978-590-8022
> --
>


Any ideas on why adding a single line of code would cause this error

2006-03-31 Thread MTedesco
Hi,
   I've added a single line of code to the maven test app (my-app) and 
received the below error message.

Any ideas? 

C:\evergreen\MavenMy-App>mvn test
[INFO] Scanning for projects...
[INFO] 

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [test]
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\MavenMy-App\target/surefire-reports

---
 T E S T S
---
java.lang.ClassFormatError: com/mycompany/app/AppTest (Illegal Field name 
"has inconsistent hierarchy")
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)

--
Michael Tedesco
Evergreen Investments - Technology
Email: [EMAIL PROTECTED]
P: 617-210-3515
C: 978-590-8022
--

Re: deploy works, but release:perform fails to deploy

2006-03-31 Thread Georges Polyzois
Great documentation on the Maven release process - please see to that this
reaches the Maven documentation.

/Georges

On 3/31/06, Julian Wood <[EMAIL PROTECTED]> wrote:
> Thanks Kieran!
>
> I was actually asked to submit it as a guide some time ago, but
> haven't heard anything since.
>
> http://jira.codehaus.org/browse/MNG-2038
>
> J
>
> On 31-Mar-06, at 10:39 AM, Kieran Brady wrote:
>
> >>
> >> You might want to take a gander at this page, which walks you through
> >> the release process:
> >>
> >> http://wiki.ucalgary.ca/page/LearningCommons/Documentation/
> >> Project_Versioning_-_Best_Practices
> >>
> >> J
> >>
> >
> > Great document!
> >
> > Bookmarked :)
> >
> > Cheers,
> > Kieran
> >
>
> --
> Julian Wood <[EMAIL PROTECTED]>
>
> Software Engineer
> Teaching & Learning Centre
> University of Calgary
>
> http://tlc.ucalgary.ca
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
//Georges
--
"In God we trust, all others we monitor"
   - NSA, Intercept Operator's motto, 1970

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



Re: [M2] Generate JavaDoc for test classes under src/test/java

2006-03-31 Thread Wayne Fay
Just curious, why do you want Javadocs for test files?

Wayne

On 3/31/06, Andreas Guther <[EMAIL PROTECTED]> wrote:
> Problem: Generate JavaDoc for test classes under src/test/java using the 
> Maven JavaDoc plug-in.
>
> Question:
> Is there a way to tell the maven-javadoc-plugin 
> (http://maven.apache.org/plugins/maven-javadoc-plugin/configuration.html) to 
> include java classes under the src/test/java folder as well?  Currently I 
> only get JavaDoc from the src/main/java tree. The maven-jxr-plugin


Re: [M2] How to sign a jar file

2006-03-31 Thread TJ Greenier
Mark,

I tried your suggestion first since I had already attempted that one once.
It worked perfectly!  What I was overlooking was how to get the
2.1-SNAPSHOTversion into my repository.

Thanks again!
TJ

On 3/30/06, Mark Hewett <[EMAIL PROTECTED]> wrote:
>
> We are using the following.
>
> 
>   maven-jar-plugin
>   
> 
>   
> sign
>   
> 
>   
>   
> ${project.build.directory}/${project.build.finalName
> }.jar
> ${ project.build.directory}/signed/${
> project.build.finalName}.jar
> ${keystore.location}
> ${keystore.storepass}
> ${ keystore.keypass}
> ${keystore.alias}
>   
> 
>
> The keystore properties are defined in our parent POM, but you can
> just hard code them
>
> You will also need to enable snapshots, since this needs the
> 2.1-SNAPSHOT version of the maven-jar-plugin. See
> http://maven.apache.org/guides/development/guide-testing-development-plugins.html
> .
>
> This also seems to install the signed JAR into the repository, in
> place of the unsigned JAR.
>
> Hope this helps.
> Mark
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[M2] Generate JavaDoc for test classes under src/test/java

2006-03-31 Thread Andreas Guther
Problem: Generate JavaDoc for test classes under src/test/java using the Maven 
JavaDoc plug-in.

Question:
Is there a way to tell the maven-javadoc-plugin 
(http://maven.apache.org/plugins/maven-javadoc-plugin/configuration.html) to 
include java classes under the src/test/java folder as well?  Currently I only 
get JavaDoc from the src/main/java tree. The maven-jxr-plugin 
(http://maven.apache.org/plugins/maven-jxr-plugin -- page not found, by the 
way) gives me the source code for both main and test, but I would like to have 
the JavaDoc.  

In addition it would be interesting to get the generated java classed into the 
JavaDoc as well.

I found the following thread in the mailing list, which raises the same 
question, but seems to remain unanswered: "Adding custom source paths to 
javadoc" by Erik van Zijst.  Maybe some who reads this mail has figured it out 
and can tell me how to configure the maven JavaDoc plug-in?

Thanks in advance for any hint.

Andreas
 
 



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



dependencies in parent pom's

2006-03-31 Thread Henrik Østerlund Gram
Hello,

I'm using maven2 ant tasks and trying to figure out why it does not
fetch the dependencies I think it should fetch...  in this example I'm
trying to fetch spring 1.2.6 with it. Here's what I have in my
build.xml:

http://www.ibiblio.org/maven2"/>

  
  


It fetches spring-1.2.6.jar and commons-logging-1.0.4 - that's it. 
But from studying the spring-1.2.6 pom, it includes spring-full and
spring-parent pom's and the spring-full pom specifies several more
artifacts that are not declared optional..  such as aopalliance and
oro. Why are these not downloaded?  I can't find any explanation
why... as far as I have understood the what's in the xml schema, I
think it should download those too..

For reference:

http://www.ibiblio.org/maven2/org/springframework/spring/1.2.6/spring-1.2.6.pom
http://www.ibiblio.org/maven2/org/springframework/spring-full/1.2.6/spring-full-1.2.6.pom
http://www.ibiblio.org/maven2/org/springframework/spring-parent/1.2.6/spring-parent-1.2.6.pom

Hope someone can help shed some light on this.

Thanks.

Henrik Gram

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



Re: deploy works, but release:perform fails to deploy

2006-03-31 Thread Julian Wood

Thanks Kieran!

I was actually asked to submit it as a guide some time ago, but  
haven't heard anything since.


http://jira.codehaus.org/browse/MNG-2038

J

On 31-Mar-06, at 10:39 AM, Kieran Brady wrote:



You might want to take a gander at this page, which walks you through
the release process:

http://wiki.ucalgary.ca/page/LearningCommons/Documentation/
Project_Versioning_-_Best_Practices

J



Great document!

Bookmarked :)

Cheers,
Kieran



--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca



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



RE: Re: deploy works, but release:perform fails to deploy

2006-03-31 Thread Kieran Brady
>
>You might want to take a gander at this page, which walks you through  
>the release process:
>
>http://wiki.ucalgary.ca/page/LearningCommons/Documentation/ 
>Project_Versioning_-_Best_Practices
>
>J
>

Great document! 

Bookmarked :)

Cheers,
Kieran

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



Re: deploy works, but release:perform fails to deploy

2006-03-31 Thread Julian Wood

The questions I would ask myself if I saw this output are:

1. It looks like you issued an mvn command - why does maven think you  
issued an m2 command? You should maybe resolve that and make sure mvn  
-version is 2.0.3
2. Did you really have a BUILD ERROR and a BUILD SUCCESSFUL in the  
same output? I have never seen that before (doesn't mean it can't  
happen).
3. It tells you to check your dist management section. Maybe you  
should post that to the list (or even the pom in it's entirety). I  
know you say it works for deployment, but still...


You might want to take a gander at this page, which walks you through  
the release process:


http://wiki.ucalgary.ca/page/LearningCommons/Documentation/ 
Project_Versioning_-_Best_Practices


J


On 30-Mar-06, at 8:32 PM, Craig McDaniel wrote:


I don't mean to pester, but the release plugin is my primary reason
for upgrading to maven 2 (and will solve my biggest headaches right
now). I've spent several hours browsing docs and googling to no avail.
I will be happy to provide any additional info that may be necessary.

On 3/30/06, Craig McDaniel <[EMAIL PROTECTED]> wrote:

I can run 'mvn deploy' and it works just fine. I ran release:prepare
and it also worked fine. When I run release:perform, I get the
following error:

$ mvn -e release:perform
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
[INFO]   Maven Quick Start Archetype
[INFO]   Maven Quick Start Archetype
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO]  
- 
---

[INFO] Building Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
[INFO]task-segment: [release:perform] (aggregator-style)
[INFO]  
- 
---

[INFO] [release:perform]
[INFO] Checking out the project to perform the release ...

THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - com.shps.da:sandbox:pom:1.0
[INFO]   Maven Quick Start Archetype
[INFO]   Maven Quick Start Archetype
[INFO]  
- 
---

[INFO] Building Unnamed - com.shps.da:sandbox:pom:1.0
[INFO]task-segment: [deploy]
[INFO]  
- 
---

[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-d
escriptor
[INFO] Preparing javadoc:jar
[INFO] [javadoc:javadoc]
[INFO] Not executing Javadoc as the project is not a Java
classpath-capable package
[INFO] [javadoc:jar {execution: attach-javadocs}]
[INFO] Not executing Javadoc as the project is not a Java
classpath-capable package
[INFO] [source:jar {execution: attach-sources}]
[INFO] NOT adding java-sources to attached artifacts for  
packaging: 'pom'.

[INFO] [install:install]
[INFO] Installing d:\cwn\sandbox\target\checkout\pom.xml to
C:\Documents and Settings\s008
254\.m2\repository\com\shps\da\sandbox\1.0\sandbox-1.0.pom
[INFO]  
- 
---

[ERROR] BUILD ERROR
[INFO]  
- 
---

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-pl
ugin:2.2

check that the following section of the pom.xml is present and  
correct:



  
  
repo
Repository Name
scp://host/path/to/repo
  
  
  
repo
Repository Name
scp://host/path/to/repo
  


Cause: Class  
'org.apache.maven.artifact.repository.ArtifactRepository'

cannot be instantia
ted
[INFO]  
- 
---

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

[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Mar 30 13:32:23 EST 2006
[INFO] Final Memory: 4M/9M
[INFO]  
- 
---
[INFO]  
- 
---

[INFO] BUILD SUCCESSFUL
[INFO]  
- 
---

[INFO] Total time: 13 seconds
[INFO] Finished at: Thu Mar 30 13:32:23 EST 2006
[INFO] Final Memory: 3M/6M
[INFO]  
- 
---


Now, I have  defined in my top-level pom.xml.
So why is deploy working and not release:perform?

Thanks.
--
Craig McDaniel




--
Craig McDaniel

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



--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucal

Re: Maven Webstart Plugin

2006-03-31 Thread Tim Kettler

Forgot this:

the webstart-maven-plugin depends on the keytools-maven-plugin from the mojo project so 
you have to checkout and install that as well (before you build the webstart-plugin).


-Tim


Tim Kettler schrieb:

Hi Jeff,

I have the following in my .m2/settings.xml...

-

  

  default
  

  spike.releases.3dparty
  Repository for third party libraries
  file:///C:/MavenRepo

  



  snapshots
  

  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
  
true
  
  
false
  

  

  

  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
  
true
  
  
false
  

  

  

  
default
  

-

...and then just do an 'mvn -P default,snapshots install'. Due to 
http://jira.codehaus.org/browse/MJAR-31 the webstart-plugin won't work 
out of the box. You will have to check out the sources of the jar plugin 
and patch it according to:


http://mail-archives.apache.org/mod_mbox/maven-dev/200603.mbox/[EMAIL PROTECTED] 



and then 'mvn install' it.

Hope this helps
-Tim

[EMAIL PROTECTED] schrieb:

Thanks Geoffrey,

I checked it out of SVN and ran mvn install. It would appear that the
project refers to many dependencies that are not available in the
repository, and so the install fails. Is there any place I can get a
working, ready to use version of this plugin?

Regards,
Jeff



[...]

-
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 Webstart Plugin

2006-03-31 Thread Tim Kettler

Hi Jeff,

I have the following in my .m2/settings.xml...

-

  

  default
  

  spike.releases.3dparty
  Repository for third party libraries
  file:///C:/MavenRepo

  



  snapshots
  

  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
  
true
  
  
false
  

  

  

  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
  
true
  
  
false
  

  

  

  
default
  

-

...and then just do an 'mvn -P default,snapshots install'. Due to 
http://jira.codehaus.org/browse/MJAR-31 the webstart-plugin won't work out of the box. You 
will have to check out the sources of the jar plugin and patch it according to:


http://mail-archives.apache.org/mod_mbox/maven-dev/200603.mbox/[EMAIL PROTECTED]

and then 'mvn install' it.

Hope this helps
-Tim

[EMAIL PROTECTED] schrieb:

Thanks Geoffrey,

I checked it out of SVN and ran mvn install. It would appear that the
project refers to many dependencies that are not available in the
repository, and so the install fails. Is there any place I can get a
working, ready to use version of this plugin?

Regards,
Jeff



[...]

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



RE: Where is org.apache.maven.scm.providers.svn.settings.Settings?

2006-03-31 Thread Zsolt
Can you provide me some instructions how to do that?

>-Original Message-
>From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 30, 2006 4:12 PM
>To: scm-users@maven.apache.org
>Subject: Re: Where is org.apache.maven.scm.providers.svn.settings.Settings?
>
>It's a generated class. If you want it, you must build with maven2.
>
>Emmanuel
>
>Zsolt a écrit :
>> I have checked out the sources from the trunk but cannot compile because
>for
>> example the class below is missing:
>>
>> org.apache.maven.scm.providers.svn.settings.Settings
>>
>> Where can I find it?
>>
>> Zsolt
>>
>>
>>
>>
>>
>>



Re: RE : mvn eclipse:eclipse -- requires install first -- bug/oversight?

2006-03-31 Thread Matt McGill
Aha - yup, that describes the issue exactly (for others, note that  
the JIRA title mis-identifies the source of the trouble, but a  
comment clarifies). And thanks for your suggested command line for a  
faster build!


-Matt

On Mar 31, 2006, at 10:38 AM, Olivier Lamy wrote:


Have a look : http://jira.codehaus.org/browse/MECLIPSE-3

More a quicker in a multi-modules project is : mvn
-Dmaven.test.skip=true clean compile eclipse:clean eclipse:eclipse

- Olivier

-Message d'origine-
De : Matt McGill [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 31 mars 2006 17:35
À : Maven Users List
Objet : Re: mvn eclipse:eclipse -- requires install first --
bug/oversight?


I think I was just hung up on the same problem, but I want to clarify
to make sure. When you say that eclipse:eclipse requires you to
install before generating the .project and .classpath files, you mean
before generating the *correct* .project and .classpath files, right?
That's what's been driving me crazy - I run mvn eclipse:clean
eclipse:eclipse on the root pom of a multi-module project for which
artifacts do already exist in the local repository and suddenly all
of the project references between modules are gone, and every
dependency is resolved using the local repository. If I run mvn
eclipse:clean install eclipse:eclipse, the project references are  
fixed.


Are we talking about the same thing, then? Either way, this behavior
is not intuitive to me.

-Matt

On Mar 29, 2006, at 8:12 PM, Gordon Henriksen wrote:


Hi everyone,

Bit of a problem. There's a workaround, but the workaround is
precisely the problem. Here goes…

mvn eclipse:eclipse requires that I install my local projects
before it will generate the .project and .classpath files for
Eclipse. This makes total sense for external dependencies;
the .classpath needs to reference an .jar file somewhere, so
putting them in ~/.m2/repository makes a lot of sense. Fine and
dandy. But for a project like such:

my-root-project/ { packaging: pom }
   my-lib/ { packaging: jar }
   my-webapp/ { packaging: war, dependencies: { my-lib } }

When I run mvn eclipse:eclipse, the Eclipse .classpath file
references the adjacent my-lib project, not my-lib that resides in
the ~/.m2/repository. Therefore, the install doesn't seem as if it
should be necessary for the local projects. Yet the Eclipse plugin
insists upon it. Further, it is damaging to our workflow, since we
have to make sure our code compiles before we can add a dependency
to pom.xml and successfully push those to Eclipse. Besides that,
forcing the install of a project before we can even get our IDE set
up seems very backwards; by definition, the projects in question
are under development, so publishing them to even the per-user
repository is premature.

In fact, since I prefer not to have the possibility of out-of-
sync .classpath and .project files, I've prohibited checking these
files in. So our checkout directions look like this:

mkdir my-enterprise
cd my-enterprise
svn co svn+ssh://my.host/my-enterprise/trunk .
mvn install  # <-- 
mvn eclipse:eclipse

Is there a reason this is the case? Or should I file an RFE and
look into making a patch?

Other Eclipse+Maven users:
Should I allow checkin of .classpath and .project, even at the risk
of them falling out of sync with pom.xml?
Does it sound like I'm missing the zen of making these tools
cooperate?

— G


-
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 e-mail, any attachments and the information contained therein  
("this message") are confidential and intended solely for the use  
of the addressee(s). If you have received this message in error  
please send it back to the sender and delete it. Unauthorized  
publication, use, dissemination or disclosure of this message,  
either in whole or in part is strictly prohibited.

**
Ce message électronique et tous les fichiers joints ainsi que  les  
informations contenues dans ce message ( ci après "le message" ),  
sont confidentiels et destinés exclusivement à l'usage de la   
personne à laquelle ils sont adressés. Si vous avez reçu ce message  
par erreur, merci  de le renvoyer à son émetteur et de le détruire.  
Toutes diffusion, publication, totale ou partielle ou divulgation  
sous quelque forme que se soit non expressément autorisées de ce  
message, sont interdites.

**


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




--

RE : RE : [M2] Changelog plugin

2006-03-31 Thread Olivier Lamy
Fill an issue.
If you want the actual release version documentation build it from svn :
svn co
https://svn.mojo.codehaus.org/mojo/tags/changelog-maven-plugin-2.0-beta-
1/ && cd  changelog-maven-plugin-2.0-beta-1 && mvn site

Made the svn from the one in the apache maven sandbox.

- Olivier
-Message d'origine-
De : Siegmann Daniel, NY [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 31 mars 2006 17:46
À : 'Maven Users List'
Objet : RE: RE : [M2] Changelog plugin


Thanks, but I'm looking for the plugin's project website, not the
repository code. Whoever is responsible for maven.apache.org needs to
fix the link on http://maven.apache.org/plugins/index.html.

~Daniel

> -Original Message-
> From: Olivier Lamy [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 31, 2006 10:08 AM
> To: 'Maven Users List'
> Subject: RE : [M2] Changelog plugin
> 
> 
> This one (and others) has been move to apache.
> Actually in sandox :
> http://svn.apache.org/viewcvs.cgi/maven/sandbox/plugins/
> And renamed to maven-changelog-plugin.(groupId changed too)
> 
> - Olivier

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



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



RE: RE : [M2] Changelog plugin

2006-03-31 Thread Siegmann Daniel, NY
Thanks, but I'm looking for the plugin's project website, not the repository
code. Whoever is responsible for maven.apache.org needs to fix the link on
http://maven.apache.org/plugins/index.html.

~Daniel

> -Original Message-
> From: Olivier Lamy [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 31, 2006 10:08 AM
> To: 'Maven Users List'
> Subject: RE : [M2] Changelog plugin
> 
> 
> This one (and others) has been move to apache.
> Actually in sandox : 
> http://svn.apache.org/viewcvs.cgi/maven/sandbox/plugins/
> And renamed to maven-changelog-plugin.(groupId changed too)
> 
> - Olivier

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



RE : mvn eclipse:eclipse -- requires install first -- bug/oversight?

2006-03-31 Thread Olivier Lamy
Have a look : http://jira.codehaus.org/browse/MECLIPSE-3

More a quicker in a multi-modules project is : mvn
-Dmaven.test.skip=true clean compile eclipse:clean eclipse:eclipse

- Olivier

-Message d'origine-
De : Matt McGill [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 31 mars 2006 17:35
À : Maven Users List
Objet : Re: mvn eclipse:eclipse -- requires install first --
bug/oversight?


I think I was just hung up on the same problem, but I want to clarify  
to make sure. When you say that eclipse:eclipse requires you to  
install before generating the .project and .classpath files, you mean  
before generating the *correct* .project and .classpath files, right?  
That's what's been driving me crazy - I run mvn eclipse:clean  
eclipse:eclipse on the root pom of a multi-module project for which  
artifacts do already exist in the local repository and suddenly all  
of the project references between modules are gone, and every  
dependency is resolved using the local repository. If I run mvn  
eclipse:clean install eclipse:eclipse, the project references are fixed.

Are we talking about the same thing, then? Either way, this behavior  
is not intuitive to me.

-Matt

On Mar 29, 2006, at 8:12 PM, Gordon Henriksen wrote:

> Hi everyone,
>
> Bit of a problem. There's a workaround, but the workaround is
> precisely the problem. Here goes…
>
> mvn eclipse:eclipse requires that I install my local projects
> before it will generate the .project and .classpath files for  
> Eclipse. This makes total sense for external dependencies;  
> the .classpath needs to reference an .jar file somewhere, so  
> putting them in ~/.m2/repository makes a lot of sense. Fine and  
> dandy. But for a project like such:
>
> my-root-project/ { packaging: pom }
>my-lib/ { packaging: jar }
>my-webapp/ { packaging: war, dependencies: { my-lib } }
>
> When I run mvn eclipse:eclipse, the Eclipse .classpath file
> references the adjacent my-lib project, not my-lib that resides in  
> the ~/.m2/repository. Therefore, the install doesn't seem as if it  
> should be necessary for the local projects. Yet the Eclipse plugin  
> insists upon it. Further, it is damaging to our workflow, since we  
> have to make sure our code compiles before we can add a dependency  
> to pom.xml and successfully push those to Eclipse. Besides that,  
> forcing the install of a project before we can even get our IDE set  
> up seems very backwards; by definition, the projects in question  
> are under development, so publishing them to even the per-user  
> repository is premature.
>
> In fact, since I prefer not to have the possibility of out-of-
> sync .classpath and .project files, I've prohibited checking these  
> files in. So our checkout directions look like this:
>
> mkdir my-enterprise
> cd my-enterprise
> svn co svn+ssh://my.host/my-enterprise/trunk .
> mvn install  # <-- 
> mvn eclipse:eclipse
>
> Is there a reason this is the case? Or should I file an RFE and
> look into making a patch?
>
> Other Eclipse+Maven users:
> Should I allow checkin of .classpath and .project, even at the risk
> of them falling out of sync with pom.xml?
> Does it sound like I'm missing the zen of making these tools  
> cooperate?
>
> — G
>
>
> -
> 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 e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 


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



Re: mvn eclipse:eclipse -- requires install first -- bug/oversight?

2006-03-31 Thread Matt McGill
I think I was just hung up on the same problem, but I want to clarify  
to make sure. When you say that eclipse:eclipse requires you to  
install before generating the .project and .classpath files, you mean  
before generating the *correct* .project and .classpath files, right?  
That's what's been driving me crazy - I run mvn eclipse:clean  
eclipse:eclipse on the root pom of a multi-module project for which  
artifacts do already exist in the local repository and suddenly all  
of the project references between modules are gone, and every  
dependency is resolved using the local repository. If I run mvn  
eclipse:clean install eclipse:eclipse, the project references are fixed.


Are we talking about the same thing, then? Either way, this behavior  
is not intuitive to me.


-Matt

On Mar 29, 2006, at 8:12 PM, Gordon Henriksen wrote:


Hi everyone,

Bit of a problem. There's a workaround, but the workaround is  
precisely the problem. Here goes…


mvn eclipse:eclipse requires that I install my local projects  
before it will generate the .project and .classpath files for  
Eclipse. This makes total sense for external dependencies;  
the .classpath needs to reference an .jar file somewhere, so  
putting them in ~/.m2/repository makes a lot of sense. Fine and  
dandy. But for a project like such:


my-root-project/ { packaging: pom }
   my-lib/ { packaging: jar }
   my-webapp/ { packaging: war, dependencies: { my-lib } }

When I run mvn eclipse:eclipse, the Eclipse .classpath file  
references the adjacent my-lib project, not my-lib that resides in  
the ~/.m2/repository. Therefore, the install doesn't seem as if it  
should be necessary for the local projects. Yet the Eclipse plugin  
insists upon it. Further, it is damaging to our workflow, since we  
have to make sure our code compiles before we can add a dependency  
to pom.xml and successfully push those to Eclipse. Besides that,  
forcing the install of a project before we can even get our IDE set  
up seems very backwards; by definition, the projects in question  
are under development, so publishing them to even the per-user  
repository is premature.


In fact, since I prefer not to have the possibility of out-of- 
sync .classpath and .project files, I've prohibited checking these  
files in. So our checkout directions look like this:


mkdir my-enterprise
cd my-enterprise
svn co svn+ssh://my.host/my-enterprise/trunk .
mvn install  # <-- 
mvn eclipse:eclipse

Is there a reason this is the case? Or should I file an RFE and  
look into making a patch?


Other Eclipse+Maven users:
Should I allow checkin of .classpath and .project, even at the risk  
of them falling out of sync with pom.xml?
Does it sound like I'm missing the zen of making these tools  
cooperate?


— G


-
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] supported languages by maven-site-plugin

2006-03-31 Thread Wayne Fay
In my pom, I call those:
  Maven.Snapshots
  Maven Snapshots Repository
  http://snapshots.maven.codehaus.org/maven2/

  apache.snapshots
  Apache Development Repository
  http://cvs.apache.org/maven-snapshot-repository

I don't honestly know what the difference is. Add both to your pom. ;-)

Wayne


On 3/31/06, Dario Luis Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
> Hi Wayne,
> What is the official Maven snapshot repository ?
> So far I've found two: http://snapshots.maven.codehaus.org/maven2 and
> http://cvs.apache.org/maven-snapshot-repository.
> Is that correct ?
> Thanks,
> Dário
>
> Wayne Fay wrote:
>
> >I understand what you're saying, but unless you check the source code
> >yourself and verify that pt_BR has been checked in to the project
> >source files, then its simply comments from an optimistic developer!
> >;-)
> >
> >No idea what the release schedule is for that plugin. Contact the
> >developer(s) directly if you need to know specifics.
> >
> >Also, add the Maven Snapshot to your pom.xml so you get
> >maven-site-plugin 2.0-SNAPSHOT. It includes several more languages
> >than 2.0-beta-4.
> >
> >Wayne
> >
> >
> >On 3/30/06, Dario Luis Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi Wayne,
> >>
> >>It's already done according to 'mave-site-plugin' web page, but it seems
> >>like it's not released yet.
> >>Any idea when a new release is coming up ? The one I have is 2-0-beta-4.
> >>
> >>Dário
> >>
> >>Wayne Fay wrote:
> >>
> >>
> >>
> >>>All languages are "supported" but not all have been "implemented".
> >>>This was just discussed a couple emails ago on Users list. Look for
> >>>the emails with subject "which locales are supported by
> >>>maven-site-plugin?"
> >>>
> >>>Feel free to write a pt_BR properties file and contribute back via JIRA.
> >>>
> >>>Wayne
> >>>
> >>>
> >>>On 3/30/06, Dario Luis Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> Hi there,
> 
> I've been trying to generate a project site using pt_BR as language, but
> it doesn't seem to work, even though the maven-site-plugin says it is
> supported.
> By looking at maven-site-plugin code, I found out it was not able to
> locate the 'site-plugin_pt_BR.properties ' file, which should be inside
> the maven-site-plugin jar artifact. I've tried to find it in the latest
> version (2.0-beta-4), but was not there either.
> Does anybody have any idea ?
> 
> Thanks,
> Dário
> 
> 
> 
> 
> 
> 
> -
> 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 : [M2] Changelog plugin

2006-03-31 Thread Olivier Lamy
This one (and others) has been move to apache.
Actually in sandox :
http://svn.apache.org/viewcvs.cgi/maven/sandbox/plugins/
And renamed to maven-changelog-plugin.(groupId changed too)

- Olivier


-Message d'origine-
De : Siegmann Daniel, NY [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 31 mars 2006 17:04
À : 'Maven Users List'
Objet : [M2] Changelog plugin


The link from the Maven website to the changelog plugin page
(http://mojo.codehaus.org/changelog-maven-plugin) is broken ("Page Not
Found"). Is there a new site for this plugin, or is the page just gone?

Thanks,
--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139

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



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
** 


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



Re: Quick explanation requested

2006-03-31 Thread Gareth Western
Well, once you have set up an internal repository, Maven can do anything
that it does with a normal repository. Some of the benefits of having an
internal repository are:

1) Faster downloads / Less use of your own Internet bandwidth
2) Machines that may not have access to the Internet might still be able to
access your internal one
3) You can easily add your own artifacts / artifacts that may not yet be
available on ibiblio or another public repository, such as some of the Sun
Jars, or alternative versions.

There is some documentation regarding repositories at
http://maven.apache.org/guides/introduction/introduction-to-repositories.html

Maven-Proxy is a very useful tool for setting up an internal repository.
It's available from http://maven-proxy.codehaus.org/.

I've heard bits and pieces of more "official" tools being developed for a
similar purpose to maven-proxy, but I don't think any are yet publicly
released.

Cheers,

Gareth



On 3/31/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> Oh Ok thanks for the explanation I think the internal repository idea is
> more what I had in mind. What can Mahven do in terms of this feature and
> is there any documentation for it?
>
> -- Thanks, Mike
>
>


RE: Quick explanation requested

2006-03-31 Thread MTedesco
Thanks, For the explanation Johann




"Johann Reyes" <[EMAIL PROTECTED]> 
03/31/2006 09:13 AM
Please respond to
"Maven Users List" 


To
"'Maven Users List'" 
cc

Subject
RE: Quick explanation requested






Hello Miike

About point 2:

You would need to manually add (mvn install:install-file) a dependency 
when
they cannot be found in ibiblio. In the example that you gave, that jar
along others from Sun (like Transaction, and Mail) it wouldn't be found in
ibiblio thanks to licensing issues about the distribution of the jar, it
cannot be added to ibiblio thus you have to manually go and download the 
jar
from Sun and install it. 
Regards

Johann Reyes

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 8:59 AM
To: Maven Users List
Subject: Quick explanation requested

I'd appreciate if someone can shed some light on 2 points.

1) Why is it a good idea to have a complete app stored on ibiblio 
including source? Is there any safeguards as to who can download these 
projects (i.e. what security is in place, for example if someone knows or 
guesses your artifactId)?

2) Why would we initate the following command below, if we get all the 
plugin components initally when we download any goal the first time?
mvn install:install-file -DgroupId=javax.activation 
-DartifactId=activation -Dversion=1.0.2 
  -Dpackaging=jar -Dfile=/ 

Thanks.
--
Miike Tedesco
--



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




Re: Quick explanation requested

2006-03-31 Thread MTedesco
Oh Ok thanks for the explanation I think the internal repository idea is 
more what I had in mind. What can Mahven do in terms of this feature and 
is there any documentation for it?

-- Thanks, Mike 

--



"Gareth Western" <[EMAIL PROTECTED]> 
03/31/2006 09:34 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Quick explanation requested






Hi,

You would only have an app stored on ibiblio if you were willing to
distribute your application (along with the source), and as long as your
application's licensing is compatible with this. AFAIK there are no
"safeguards" on ibiblio. It's a publicly-browsable repository which people
can use to retrieve code on which their own application relies. I would
guess that you don't need to upload your application to ibiblio anyway.
Perhaps you're confusing ibiblio with creating your own internal 
repository,
the latter of which you COULD upload your own applications for internal
downloads, etc.?

Cheers,

Gareth

On 3/31/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> I'd appreciate if someone can shed some light on 2 points.
>
> 1) Why is it a good idea to have a complete app stored on ibiblio
> including source? Is there any safeguards as to who can download these
> projects (i.e. what security is in place, for example if someone knows 
or
> guesses your artifactId)?
>
> 2) Why would we initate the following command below, if we get all the
> plugin components initally when we download any goal the first time?
> mvn install:install-file -DgroupId=javax.activation
> -DartifactId=activation -Dversion=1.0.2
>   -Dpackaging=jar -Dfile=/
>
> Thanks.
> --
> Miike Tedesco
> --
>



Re: How to copy the build to shared filesystem

2006-03-31 Thread Wayne Fay
No, we don't currently use Continuum. But I'm working on implementing
it in our organization, moving some M2 builds to it, etc.

Wayne

On 3/31/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:
> Thanks Wayne for answering my question. Do you use continuum for automation
> of your build.  What scm do you use and do you tag the build using maven
> goals or are you using some shell script which executes the cvs command. If
> you tag it, how do you specify the tag name in your scm url and how does
> continuum know this new tag name ?
>
> Thanks
> Gautham Pamu
>
> On 3/30/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > I generally tag before a build, then pull the tag, and build/test it.
> > We use a combination of project name plus timestamp for daily/test
> > builds. This seems to be a pretty widely-used practice.
> >
> > Then if we decide to go RC or full release for a given tag, we can
> > either retag it with a more descriptive tag ie project_1.0.0_RC1 or
> > project_1.0.0_final or just keep track of the original tag in release
> > notes somewhere.
> >
> > As for copying the complete working directory, sounds like something
> > you will need to build yourself and add to Continuum if you can't find
> > it already implemented in the product.
> >
> > Wayne
> >
> >
> > On 3/30/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:
> > > maven install and deploy uploads the jars,poms to the local/remote
> > > repository but I want the copy the complete working directory
> > > files sourcecode etc to the shared file system.
> > >
> > > I also want to tag the module before starting the build, is it possible
> > to
> > > tag using continuum or maven goal
> > >
> > > >In order to name the current end of the main trunk of a module, use the
> > > command
> > >
> > >   >cvs rtag *Tagname my_module*
> > >
> > > I have another question, whats it the best practice for tag the code, is
> > it
> > > after build or before build and whats the convention followed for tag
> > names.
> > >
> > > Thanks
> > > Gautham Pamu
> > >
> > > On 3/30/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I don't use Continuum at this point, but can't you run a "mvn install"
> > > > or "mvn deploy" kind of command after the build successfully builds,
> > > > which will install/deploy your build to a specified location?
> > > >
> > > > Wayne
> > > >
> > > >
> > > > On 3/30/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:
> > > > > Hi Everyone,
> > > > >
> > > > > I am using Maven 1.0.2 and Continuum 1.0.2, I want to copy the
> > complete
> > > > > build to a shared file system. Whats the best way to acheive it,
> > > > > are they are plugins in maven or configuration in continuum to copy
> > the
> > > > > build to shared file system.
> > > > >
> > > > > --
> > > > > -Gautham Pamu
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -Gautham Pamu
> > >
> > >
> >
>
>
>
> --
> -Gautham Pamu
>
>


[M2] Changelog plugin

2006-03-31 Thread Siegmann Daniel, NY
The link from the Maven website to the changelog plugin page
(http://mojo.codehaus.org/changelog-maven-plugin) is broken ("Page Not
Found"). Is there a new site for this plugin, or is the page just gone?

Thanks,
--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139

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



Re: [2.0.3] Download maven-archetype-quickstart error

2006-03-31 Thread Kieran Brady

That version isn't in Ibiblio;

http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/

1.0-alpha-3 looks to be the latest one in there, try that instead.

Hope this helps.

Kieran

- Original Message - 
From: "Vitaly Berdinskikh" <[EMAIL PROTECTED]>

To: "'Maven Users List'" 
Sent: Friday, March 31, 2006 3:06 PM
Subject: [2.0.3] Download maven-archetype-quickstart error



Hi!


From log:
=

Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/0.1-alpha/maven-archetype-quickstart-0.1-alpha.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)

[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-quickstart
Version: 0.1-alpha

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
   mvn 
install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-quickstart 
\

   -Dversion=0.1-alpha -Dpackaging=jar -Dfile=/path/to/file


 org.apache.maven.archetypes:maven-archetype-quickstart:jar:0.1-alpha

from the specified remote repositories:
 central (http://repo1.maven.org/maven2)

=

 %(




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



Re: How to checkout taged version of the code

2006-03-31 Thread ian . d . stewart
Hi Gautham,

By URL I assume you are referring to the [developer]connection element?
The purpose of this element is tell Maven (or Continuum in your case) how
to connect to your SCM repository.  Information related to operations
performed on the repository, including release tags, is out of scope for
that element.  That's what the tag element is for.

So, if your CVS repository resides on cvs.example.com, under
/usr/share/cvs, your SCM configuration for the release tag BRANCH_3_1_1
might look something like this:



scm:cvs:pserver:anoncvs:@cvs.example.com:/usr/share/cvs:myproj

scm:cvs:ext:[EMAIL 
PROTECTED]:/usr/share/cvs:myproj
  BRANCH_3_1_1


Documentation on the CVS connection format is available at
http://maven.apache.org/scm/cvs.html


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



   
  "Gautham Pamu"
   
  <[EMAIL PROTECTED]To:   "Maven Users List" 
   
  il.com>  cc:  
   
   Subject:  Re: How to checkout 
taged version of the code 
  03/31/2006 03:57  
   
  AM
   
  Please respond to 
   
  "Maven Users  
   
  List" 
   

   




Hi Ian,

We are using cvs as our scm. Can you send me how to specify the tag name in
the URL ?

Thanks
Gautham Pamu

On 3/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> You can specify the tag in the  portion of pom.xml:
>
> 
>   
>   
>   
>   
> 
>
> See
>
>
http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html#class_scm
>
> 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
>
>
>
>   "Gautham Pamu"
>   <[EMAIL PROTECTED]To:
> continuum-users@maven.apache.org, "Maven Users List" <
> users@maven.apache.org>
>   il.com>  cc:
>Subject:  How to checkout
> taged version of the code
>   03/30/2006 01:48
>   PM
>   Please respond to
>   "Maven Users
>   List"
>
>
>
>
>
> Hi,
>
> Is it possible to add maven 2 project to continuum to checkout tagged
> version of the code. Can you specify the tag in the connection URL.
>
> Thanks
> -Gautham Pamu
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
-Gautham Pamu



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



RE: Clover xml reports.

2006-03-31 Thread Vincent Massol
Hi Igor,

This is not yet implemented. Please file a JIRA issue for this.

Thanks
-Vincent

> -Original Message-
> From: Igor Czechowski [mailto:[EMAIL PROTECTED]
> Sent: vendredi 31 mars 2006 16:47
> To: users@maven.apache.org
> Subject: Clover xml reports.
> 
> Hi,
> 
> First of all, sorry I ask so trivial question, but I've started to
> play with maven 2 for few days and would like to generate Clover
> report in xml format. I can't find any property to specify raport
> type.
> 
> If somebody knows how to solve this straightforward problem, please let me
> know.
> 
> Thanks in advance
>   Igor
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]






___ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

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



Clover xml reports.

2006-03-31 Thread Igor Czechowski
Hi,

First of all, sorry I ask so trivial question, but I've started to
play with maven 2 for few days and would like to generate Clover
report in xml format. I can't find any property to specify raport
type.

If somebody knows how to solve this straightforward problem, please let me know.

Thanks in advance
  Igor

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



Re: [m2] eclipse plugin source download

2006-03-31 Thread Tom Huybrechts
On 3/29/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>
>
>
> I'm using a maven-proxy, but it doesn't seem to keep in cache failed
> request.
>
>
Maven-proxy has a configuration property to enable caching of failures:

repo.www-ibiblio-org.cache.failures=true


I've never checked if it works...


Re: Quick explanation requested

2006-03-31 Thread Gareth Western
Hi,

You would only have an app stored on ibiblio if you were willing to
distribute your application (along with the source), and as long as your
application's licensing is compatible with this. AFAIK there are no
"safeguards" on ibiblio. It's a publicly-browsable repository which people
can use to retrieve code on which their own application relies. I would
guess that you don't need to upload your application to ibiblio anyway.
Perhaps you're confusing ibiblio with creating your own internal repository,
the latter of which you COULD upload your own applications for internal
downloads, etc.?

Cheers,

Gareth

On 3/31/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
> I'd appreciate if someone can shed some light on 2 points.
>
> 1) Why is it a good idea to have a complete app stored on ibiblio
> including source? Is there any safeguards as to who can download these
> projects (i.e. what security is in place, for example if someone knows or
> guesses your artifactId)?
>
> 2) Why would we initate the following command below, if we get all the
> plugin components initally when we download any goal the first time?
> mvn install:install-file -DgroupId=javax.activation
> -DartifactId=activation -Dversion=1.0.2
>   -Dpackaging=jar -Dfile=/
>
> Thanks.
> --
> Miike Tedesco
> --
>


RE: Quick explanation requested

2006-03-31 Thread Johann Reyes
Hello Miike

About point 2:

You would need to manually add (mvn install:install-file) a dependency when
they cannot be found in ibiblio. In the example that you gave, that jar
along others from Sun (like Transaction, and Mail) it wouldn't be found in
ibiblio thanks to licensing issues about the distribution of the jar, it
cannot be added to ibiblio thus you have to manually go and download the jar
from Sun and install it. 
Regards

Johann Reyes

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 8:59 AM
To: Maven Users List
Subject: Quick explanation requested

I'd appreciate if someone can shed some light on 2 points.

1) Why is it a good idea to have a complete app stored on ibiblio 
including source? Is there any safeguards as to who can download these 
projects (i.e. what security is in place, for example if someone knows or 
guesses your artifactId)?

2) Why would we initate the following command below, if we get all the 
plugin components initally when we download any goal the first time?
mvn install:install-file -DgroupId=javax.activation 
-DartifactId=activation -Dversion=1.0.2 
  -Dpackaging=jar -Dfile=/ 

Thanks.
--
Miike Tedesco
--



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



[2.0.3] Download maven-archetype-quickstart error

2006-03-31 Thread Vitaly Berdinskikh
Hi!


From log:
=

Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/0.1-alpha/maven-archetype-quickstart-0.1-alpha.jar
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-quickstart
Version: 0.1-alpha

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command: 
mvn install:install-file -DgroupId=org.apache.maven.archetypes 
-DartifactId=maven-archetype-quickstart \
-Dversion=0.1-alpha -Dpackaging=jar -Dfile=/path/to/file


  org.apache.maven.archetypes:maven-archetype-quickstart:jar:0.1-alpha

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

=

 %(


Generated Resources are not packaged

2006-03-31 Thread Roland Asmann
Hi,

I am using the ant-run plugin to generate some sources and have a seperate 
ant-run config to generate some property-files (in the generate-resource 
phase).
When I tell maven to run everything and package it all up in a JAR, the 
generated resources are NOT inside the JAR. I only found the possibility in 
the ant-run plugin to add a source-root, but nothing like a resource-root...
Can anybody tell me how I could get all my resources in the JAR?

Thanks,

Roland


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



Quick explanation requested

2006-03-31 Thread MTedesco
I'd appreciate if someone can shed some light on 2 points.

1) Why is it a good idea to have a complete app stored on ibiblio 
including source? Is there any safeguards as to who can download these 
projects (i.e. what security is in place, for example if someone knows or 
guesses your artifactId)?

2) Why would we initate the following command below, if we get all the 
plugin components initally when we download any goal the first time?
mvn install:install-file -DgroupId=javax.activation 
-DartifactId=activation -Dversion=1.0.2 
  -Dpackaging=jar -Dfile=/ 

Thanks.
--
Miike Tedesco
--

Re: Maven Webstart Plugin

2006-03-31 Thread [EMAIL PROTECTED]

Thanks Geoffrey,

I checked it out of SVN and ran mvn install. It would appear that the
project refers to many dependencies that are not available in the
repository, and so the install fails. Is there any place I can get a
working, ready to use version of this plugin?

Regards,
Jeff

The error I get is as follows:

[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: mojo-sandbox
Version: 2-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM
'org.codehaus.mojo:mojo-sandbox' not found in r
epository: Unable to download the artifact from any repository

  org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
.. etc.
--
View this message in context: 
http://www.nabble.com/Maven-Webstart-Plugin-t1371503.html#a3689676
Sent from the Maven - Users forum at Nabble.com.


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



RE: [m2.0.3] idea:idea => StringIndexOutOfBoundsException

2006-03-31 Thread Johann Reyes
Hello Wesslan

One question, have you run mvn idea:idea previously with maven 2.0.2? 

Regards

Johann Reyes

-Original Message-
From: Wesslan [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 2:05 AM
To: users@maven.apache.org
Subject: [m2.0.3] idea:idea => StringIndexOutOfBoundsException


When I try run to mvn idea:idea for my project, I get the following
exception:

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

[INFO] Building secret app
[INFO]task-segment: [idea:idea]
[INFO]

[INFO] Preparing idea:idea
[INFO] No goals needed for project - skipping
[INFO] [idea:idea]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] String index out of range: -1
[INFO]

[INFO] Trace
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at java.lang.String.substring(String.java:1735)
at
org.apache.maven.plugin.idea.IdeaMojo.toRelative(IdeaMojo.java:395)
at
org.apache.maven.plugin.idea.IdeaMojo.getModuleFileUrl(IdeaMojo.java:409)
at
org.apache.maven.plugin.idea.IdeaMojo.addSourceFolder(IdeaMojo.java:382)
at
org.apache.maven.plugin.idea.IdeaMojo.rewriteModule(IdeaMojo.java:255)
at org.apache.maven.plugin.idea.IdeaMojo.execute(IdeaMojo.java:79)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.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
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Any ideas?

Regards Peter
--
View this message in context:
http://www.nabble.com/-m2.0.3-idea%3Aidea-%3D%3E-StringIndexOutOfBoundsExcep
tion-t1373009.html#a3684560
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: Problem hibernate3 plugin cfg2cfgxml

2006-03-31 Thread Johann Reyes
Hello Bigalk

At the moment the hibernate3 plugin is available as a snapshot only, you
don't need to download it, you just need to include the snapshot repository
in your pom.xml as noted here:


  
snapshots
http://snapshots.maven.codehaus.org/maven2
  


Or here:

http://maven.apache.org/guides/development/guide-testing-development-plugins
.html

Regards

Johann Reyes


-Original Message-
From: O. Bigalk [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 31, 2006 3:34 AM
To: users@maven.apache.org
Subject: RE: Problem hibernate3 plugin cfg2cfgxml



Johann Reyes-2 wrote:
> 
> Hi Bigalk
> 
> Right now the hibernate3-maven-plugin is available as a snapshot only and
> it
> is a maven 2.x plugin.
> 
> You can find information about the plugin here:
> 
> http://mojo.codehaus.org/hibernate3-maven-plugin
> ...
> 

Thank you for the link, but I did not find there any download link for a
plugin binary distribution.

Regards
Olaf Bigalk

--
View this message in context:
http://www.nabble.com/Problem-hibernate3-plugin-cfg2cfgxml-t1310262.html#a36
85566
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.0.3] idea:idea => StringIndexOutOfBoundsException

2006-03-31 Thread Wesslan

Found it!

I had the following in my pom:
 
   
${basedir} 
 
  *.sql 
 
   
 

and I had to add an "/" after  ${basedir}:
${basedir}/
--
View this message in context: 
http://www.nabble.com/-m2.0.3-idea%3Aidea-%3D%3E-StringIndexOutOfBoundsException-t1373009.html#a3689128
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m2] supported languages by maven-site-plugin

2006-03-31 Thread Dario Luis Coneglian Oliveros

Hi Wayne,
What is the official Maven snapshot repository ?
So far I've found two: http://snapshots.maven.codehaus.org/maven2 and 
http://cvs.apache.org/maven-snapshot-repository.

Is that correct ?
Thanks,
Dário

Wayne Fay wrote:


I understand what you're saying, but unless you check the source code
yourself and verify that pt_BR has been checked in to the project
source files, then its simply comments from an optimistic developer!
;-)

No idea what the release schedule is for that plugin. Contact the
developer(s) directly if you need to know specifics.

Also, add the Maven Snapshot to your pom.xml so you get
maven-site-plugin 2.0-SNAPSHOT. It includes several more languages
than 2.0-beta-4.

Wayne


On 3/30/06, Dario Luis Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
 


Hi Wayne,

It's already done according to 'mave-site-plugin' web page, but it seems
like it's not released yet.
Any idea when a new release is coming up ? The one I have is 2-0-beta-4.

Dário

Wayne Fay wrote:

   


All languages are "supported" but not all have been "implemented".
This was just discussed a couple emails ago on Users list. Look for
the emails with subject "which locales are supported by
maven-site-plugin?"

Feel free to write a pt_BR properties file and contribute back via JIRA.

Wayne


On 3/30/06, Dario Luis Coneglian Oliveros <[EMAIL PROTECTED]> wrote:


 


Hi there,

I've been trying to generate a project site using pt_BR as language, but
it doesn't seem to work, even though the maven-site-plugin says it is
supported.
By looking at maven-site-plugin code, I found out it was not able to
locate the 'site-plugin_pt_BR.properties ' file, which should be inside
the maven-site-plugin jar artifact. I've tried to find it in the latest
version (2.0-beta-4), but was not there either.
Does anybody have any idea ?

Thanks,
Dário






-
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: The generated ear file

2006-03-31 Thread Richard Sladek

1. Yes, if you want to have your classes in a jar, this involves a
multi-module approach - have a separate project for your classes with jar
packaging and another project with ear packaging, having a dependency to the
jar project.

2. If you want to exclude some dependencies from the ear but you need them
for compilation, change their scope to provided - this does exactly what you
need.

Regards,
Richard


Gerard Garrigan wrote:
> 
> Hello,
> 
> I have some issues that are slightly different to my last email on the
> topic.
> 
> I'm generating an ear file for a project. The requirement is that the
> java classes for that project are put into a jar prior to being included
> in the ear. Does this still fall under the multiple module approach or
> is there some other way of achieving this? Also when I generate the ear
> all the projects dependant jars are included. Is there some way of
> generating the ear without including all the jars as they are being set
> in the classpath already and they make the ear file very large?
> 
>  
> 
> Thanks again,
> 
> Ger Garrigan
> Software Engineer
> 
--
View this message in context: 
http://www.nabble.com/The-generated-ear-file-t1374035.html#a3687946
Sent from the Maven - Users forum at Nabble.com.


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



How to send all Maven-properties to the ant-run plugin

2006-03-31 Thread Roland Asmann
Hi,

Is there an easy way to send all the properties that are available in a 
Maven-build (user-defined props included) to the ant-run plugin?
I know I can explicitly send them by mapping them to ant-properties in the 
pom.xml, but I'd rather send the whole list along at once.

Thanks,

Roland


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



Cobertura report now reports test cases coverage

2006-03-31 Thread D D
Hi,

I just upgraded to 2.0.3 and made an update (-U). The cobertura plugin was 
covering my classes in main/java but now it also covers the classes in 
test/java. I cannot find any configuration option for this, so any idea ?

Thanks

David DIDIER


-
 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.Téléchargez la version 
beta.

How to create a JBoss *.sar?

2006-03-31 Thread roger.butenuth
Hello!

I am trying to create a *.sar archive with maven 2, without success.

I tried to use the ear plugin, but there are two problems:
* The archive contains an application.xml, which is not necessary
* The name is wrong (*.ear, not *.ear) and can not be changed in the plugin 
configuration

Is there anybody who can send me a working example pom.xml?
Google has not helped so far. :-(

Regards

Roger Butenuth


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



The generated ear file

2006-03-31 Thread Gerard Garrigan








Hello,

 

I have some issues that are slightly different to my last
email on the topic.

 

I’m generating an ear file for a project. The
requirement is that the java classes for that project are put into a jar prior
to being included in the ear. Does this still fall under the multiple module
approach or is there some other way of achieving this? Also when I generate the
ear all the projects dependant jars are included. Is there some way of
generating the ear without including all the jars as they are being set in the
classpath already and they make the ear file very large?

 

Thanks again,

 

Ger Garrigan
Software
Engineer

Castlewood House, Castlewood Ave,

Rathmines, Dublin 6, Ireland. 
Tel: 
+353 1 4060738   Fax:  +353 1 4060748 
www.precisionsoftware.com

 

 








Re: struts 1.2.9 checksum failure

2006-03-31 Thread Carlos Sanchez
I've computed the sha1 for the jar and the pom and look ok

On 3/30/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>
> It seems struts 1.2.9 POM checksum is wrong on ibiblio.
>
>
> [INFO] artifact struts:struts: checking for updates from central
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'da353354177574bb1a0e16bd3618fdcabfb2378c'; remote =
> 'da39a3ee5e6b4b0d255bfef95601890afd80709' - RETRYING
> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
> 'da353354177574bb1a0e16bd3618fdcabfb2378c'; remote =
> 'da39a3ee5e6b4b0d255bfef95601890afd80709' - IGNORING
>
> This message contains information that may be privileged or confidential and 
> is the property of the Capgemini Group. It is intended only for the person to 
> whom it is addressed. If you are not the intended recipient,  you are not 
> authorized to read, print, retain, copy, disseminate,  distribute, or use 
> this message or any part thereof. If you receive this  message in error, 
> please notify the sender immediately and delete all  copies of this message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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



Re: [ANN] Maven 2.0.3 Release

2006-03-31 Thread Piéroni Raphaël
Isn't that a intended ?

Raphaël

2006/3/31, Brett Porter <[EMAIL PROTECTED]>:
>
> It seems it was only sent to announce@maven.apache.org, not
> [EMAIL PROTECTED]
>
> - Brett
>
>


Re: [m2] How to package resource files in jar file

2006-03-31 Thread Gautham Pamu
Thanks Mang

On 3/30/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
>
> 
> 
>   
> ${basedir}
> 
>   *.xml
>   *.wsdl
> 
>   
> 
> 
>
> ---
> Mang Lau
> Software Developer
> MIS Member Services
> Ontario Teachers' Pension Plan Board
> T: 416-228-3148
> E: [EMAIL PROTECTED]
>
>
>
>
>
> "Gautham Pamu" <[EMAIL PROTECTED]>
> 03/30/2006 02:10 AM
> Please respond to
> "Maven Users List" 
>
>
> To
> "Maven Users List" 
> cc
>
> Subject
> [m2] How to package resource files in jar file
>
>
>
>
>
>
> Hi Everyone,
>
> I have following directory structure
>
> ProjectFolder
>- META-INF
>- com  directory (with java code)
>- sample.xml
>- pom.xml
>- xsd-includes directory
>- test.properties
>- sampleXSD.xsd
>- samplewsdl.wsdl
>
> How do configure the resources in pom.xml so that it package these
> xml,wsdl
> files in the jar file ?
> ${basedir}
> 
> ${basedir}
> META-INF
> xsd-includes
> 
> 
> 
> com
> 
>
> --
> -Gautham Pamu
>
>
>


--
-Gautham Pamu


Re: Problem executing native2ascii task

2006-03-31 Thread Richard Sladek

So, I found the solution by myself:

I was missing tools.jar in my classpath. I added it as a dependency to
plugin conf and now it works well.
--
View this message in context: 
http://www.nabble.com/Problem-executing-native2ascii-task-t1373419.html#a3685810
Sent from the Maven - Users forum at Nabble.com.


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



RE: Does continuum add any email notifiers automagically?

2006-03-31 Thread Stevenson, Chris
Thanks Emmanuel.

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2006 18:12
To: continuum-users@maven.apache.org
Subject: Re: Does continuum add any email notifiers automagically?

You can define it in ciManagement part of your pom

http://maven.apache.org/continuum/guides/getting-started/index.html

Stevenson, Chris a écrit :
> Hi,
>  
> I'd like to define in my pom (or in application.xml) a set of default 
> developers myself included who get all the build emails 
> (failures/success
> etc...) Can I do that? 
>  
> We are defined in the parent pom as developers but when I drop the pom 
> in we're not added as notifiers.
>  
> Thanks,
>  
> Chris
>  
> 
> Chris Stevenson
> 
> Dresdner Kleinwort Wasserstein
> 
>  
> 
>  
> 
> 
> --
> -- 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.
> --
> --
> 
> 
 --



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. 




Re: Problem executing native2ascii task

2006-03-31 Thread Richard Sladek

So, I found the solution by myself:

I was missing tools.jar in my classpath. I added it as a dependency to
plugin conf and now it works well.
--
View this message in context: 
http://www.nabble.com/Problem-executing-native2ascii-task-t1373419.html#a3685811
Sent from the Maven - Users forum at Nabble.com.


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



Re: How to copy the build to shared filesystem

2006-03-31 Thread Gautham Pamu
Thanks Wayne for answering my question. Do you use continuum for automation
of your build.  What scm do you use and do you tag the build using maven
goals or are you using some shell script which executes the cvs command. If
you tag it, how do you specify the tag name in your scm url and how does
continuum know this new tag name ?

Thanks
Gautham Pamu

On 3/30/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> I generally tag before a build, then pull the tag, and build/test it.
> We use a combination of project name plus timestamp for daily/test
> builds. This seems to be a pretty widely-used practice.
>
> Then if we decide to go RC or full release for a given tag, we can
> either retag it with a more descriptive tag ie project_1.0.0_RC1 or
> project_1.0.0_final or just keep track of the original tag in release
> notes somewhere.
>
> As for copying the complete working directory, sounds like something
> you will need to build yourself and add to Continuum if you can't find
> it already implemented in the product.
>
> Wayne
>
>
> On 3/30/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:
> > maven install and deploy uploads the jars,poms to the local/remote
> > repository but I want the copy the complete working directory
> > files sourcecode etc to the shared file system.
> >
> > I also want to tag the module before starting the build, is it possible
> to
> > tag using continuum or maven goal
> >
> > >In order to name the current end of the main trunk of a module, use the
> > command
> >
> >   >cvs rtag *Tagname my_module*
> >
> > I have another question, whats it the best practice for tag the code, is
> it
> > after build or before build and whats the convention followed for tag
> names.
> >
> > Thanks
> > Gautham Pamu
> >
> > On 3/30/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > >
> > > I don't use Continuum at this point, but can't you run a "mvn install"
> > > or "mvn deploy" kind of command after the build successfully builds,
> > > which will install/deploy your build to a specified location?
> > >
> > > Wayne
> > >
> > >
> > > On 3/30/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:
> > > > Hi Everyone,
> > > >
> > > > I am using Maven 1.0.2 and Continuum 1.0.2, I want to copy the
> complete
> > > > build to a shared file system. Whats the best way to acheive it,
> > > > are they are plugins in maven or configuration in continuum to copy
> the
> > > > build to shared file system.
> > > >
> > > > --
> > > > -Gautham Pamu
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > -Gautham Pamu
> >
> >
>



--
-Gautham Pamu


Re: Help needed to setup Continuum and Maven 2

2006-03-31 Thread Stefan Fritz

I have these files on the server.

Why do I get a NullpointerException and no "real" log mesage?

Thanks
Stefan

Gautham Pamu wrote:


Hi

You have modules defined in your pom.xml file so it is searching for these
files.
Do you also have services/pom.xml file on the myserver.com website. Even
copy these files
on the server.

Downloading
http://myserver.com/svn/trunk/sonic/src/esb/services/pom.xml?content-type=tex/plain

Thanks
Gautham Pamu

On 3/31/06, Stefan Fritz <[EMAIL PROTECTED]> wrote:
 


Hi,

I try to setup Continuum 1.0.2 on a Linux server.


I have added Maven 2.0.3 to my path
export MAVEN_HOME=/data/maven/maven
export M2_HOME=/data/maven/maven
PATH=$MAVEN_HOME/bin:$M2_HOME/bin:$PATH

I copied my settings.xml to ~/.m2/settings.xml  --> correct?
My pom.xml is in SVN.

When I try to add my pom to Continuum with the following URL:
http://myserver.com/svn/trunk/sonic/src/pom.xml?content-type=tex/plain
I get the: "Cannot build maven project from /tmp/continuum-1364.tmp.
Check the logs for more details."
/tmp/continuum-1364.tmp contains my pom.xml

I attached my pom.xml, my settings.xm and the wrapper.log

Did I miss something important or is that a bug?
Thanks for any advice ;-)

Regards
Stefan





   




--
-Gautham Pamu

 






RE: update in continuum

2006-03-31 Thread graham

I suspect the use case is similar to our own situation - we have an SCM package 
that is not directly supported by Maven / Continuum, and therefore we get the 
SCM server to shadow the code to the build server, with Continuum configured to 
run against the shadowed code.

The workaround is to define your scm entry as scm:local, pointing it to the 
shadowed files. Even if the use case is different (and the SCM is directly 
supported), you could still use this technique to stop Continuum from pulling 
files from an SCM, and just use the code that you deliberately provide in the 
file system.

The downside would be if you need the SCM setting to actually reflect your SCM 
package (ie. to be displayed on the site generation).

G

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: 30 March 2006 20:42
To: continuum-users@maven.apache.org
Subject: Re: update in continuum


No, and i don't see what is the use case.
Why do you want to run several times maven goals on the same code base?

Emmanuel

[EMAIL PROTECTED] a écrit :
> Is that possible in continuum to configure it so that it wont actually 
> update the source, instead just run the maven goals??
> 
> 
> 
> 
> 
> 
> 
> Thanks,
> Raghu 
> 

This email has been scanned by Postini.
For more information please visit http://www.postini.com



Problem executing native2ascii task

2006-03-31 Thread Richard Sladek

Hello, could anyone help me with executing native2ascii task from within
maven?

This is my conf:

org.apache.maven.plugins
maven-antrun-plugin

  
ant
ant-nodeps
1.6.5
  


  
compile

  run


  


  

  



And this is the exception I got:

Caused by: Error starting Sun's native2ascii:
at
org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:64)
at
org.apache.tools.ant.taskdefs.optional.native2ascii.DefaultNative2Ascii.convert(DefaultNative2Ascii.java:47)
at
org.apache.tools.ant.taskdefs.optional.Native2Ascii.convert(Native2Ascii.java:267)
at
org.apache.tools.ant.taskdefs.optional.Native2Ascii.execute(Native2Ascii.java:226)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
... 19 more
Caused by: java.lang.ClassNotFoundException: sun.tools.native2ascii.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.apache.tools.ant.taskdefs.optional.native2ascii.SunNative2Ascii.run(SunNative2Ascii.java:48)
... 26 more

I guess I have some configuration problem with my environment/classpath but
with pure Ant everything worked ok.
--
View this message in context: 
http://www.nabble.com/Problem-executing-native2ascii-task-t1373419.html#a3685733
Sent from the Maven - Users forum at Nabble.com.


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



Re: How to checkout taged version of the code

2006-03-31 Thread Gautham Pamu
Hi Ian,

We are using cvs as our scm. Can you send me how to specify the tag name in
the URL ?

Thanks
Gautham Pamu

On 3/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> You can specify the tag in the  portion of pom.xml:
>
> 
>   
>   
>   
>   
> 
>
> See
>
> http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html#class_scm
>
> 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
>
>
>
>   "Gautham Pamu"
>   <[EMAIL PROTECTED]To:
> continuum-users@maven.apache.org, "Maven Users List" <
> users@maven.apache.org>
>   il.com>  cc:
>Subject:  How to checkout
> taged version of the code
>   03/30/2006 01:48
>   PM
>   Please respond to
>   "Maven Users
>   List"
>
>
>
>
>
> Hi,
>
> Is it possible to add maven 2 project to continuum to checkout tagged
> version of the code. Can you specify the tag in the connection URL.
>
> Thanks
> -Gautham Pamu
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
-Gautham Pamu


RE: Problem hibernate3 plugin cfg2cfgxml

2006-03-31 Thread O. Bigalk


Johann Reyes-2 wrote:
> 
> Hi Bigalk
> 
> Right now the hibernate3-maven-plugin is available as a snapshot only and
> it
> is a maven 2.x plugin.
> 
> You can find information about the plugin here:
> 
> http://mojo.codehaus.org/hibernate3-maven-plugin
> ...
> 

Thank you for the link, but I did not find there any download link for a
plugin binary distribution.

Regards
Olaf Bigalk

--
View this message in context: 
http://www.nabble.com/Problem-hibernate3-plugin-cfg2cfgxml-t1310262.html#a3685566
Sent from the Maven - Users forum at Nabble.com.


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



Re: Problem hibernate3 plugin cfg2cfgxml

2006-03-31 Thread O. Bigalk

Hi Peter 

thank you for this information. 

Unfortunatly I am forced to use maven 1.0.2 by our business commandment and
therefor can not use the hibernate3-maven-plugin.

Best Regards
Olaf Bigalk
--
View this message in context: 
http://www.nabble.com/Problem-hibernate3-plugin-cfg2cfgxml-t1310262.html#a3685476
Sent from the Maven - Users forum at Nabble.com.


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



Re: Maven 1.0.2 documentation

2006-03-31 Thread Yuri Leikind
Thanks!!!

On Thu, 30 Mar 2006 16:54:14 +0200
"Arnaud HERITIER" <[EMAIL PROTECTED]> wrote:

>  http://maven.apache.org/maven-1.x/
>  
>  Arnaud
>  
>  On 3/30/06, Yuri Leikind <[EMAIL PROTECTED]> wrote:
>  >
>  > Hi everyone,
>  >
>  > I am going to support a project which uses Maven 1.0.2 as
>  > a project management tool.
>  >
>  > I've read the docs about Maven 2.0, played with it , and
>  > found it very easy to use, intuitive and powerful.
>  >
>  > But... I wasn't able to find a tutorial/reference for
>  > Maven 1.0.2 which I will actually have to use.
>  >
>  > Can anyone help?
>  >
>  > --
>  > Best regards,
>  >
>  > Yuri Leikind
>  > Senior Software Engineer
>  > tel.: +375 17 2388091 ext 126
>  > Email: [EMAIL PROTECTED]
>  > Skype: yuri_leikind
>  > SaM Solutions
>  > Minsk office, Belarus (+02 GMT)
>  > www.sam-solutions.net
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >


-- 
Best regards,

Yuri Leikind
Senior Software Engineer
tel.: +375 17 2388091 ext 126
Email: [EMAIL PROTECTED]
Skype: yuri_leikind
SaM Solutions
Minsk office, Belarus (+02 GMT)
www.sam-solutions.net

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