Please Unsubscribe me

2008-12-12 Thread Baeriswyl Kuno - Extern (IT-BA-MV)
I'd like to unsubscribe from this list. Apparently, the unsubscribtion 
procedure doens't work, since I've tried a few times and never got any 
confirmation. But the message are still coming in.

Can anybody help?

Thanks


Re: Please Unsubscribe me

2008-12-12 Thread Stelios Philippou
send  here
and wait

users-unsubscr...@maven.apache.org

Robert Orben  - Older people shouldn't eat health food, they need all the
preservatives they can get.

On Fri, Dec 12, 2008 at 9:59 AM, Baeriswyl Kuno - Extern (IT-BA-MV)
kuno.baeris...@sbb.ch wrote:

 I'd like to unsubscribe from this list. Apparently, the unsubscribtion
 procedure doens't work, since I've tried a few times and never got any
 confirmation. But the message are still coming in.

 Can anybody help?

 Thanks



Re: RAD 7 + EJB Stubs generation + Maven 2

2008-12-12 Thread Guillaume Boucherie
Hi,

Maybe you can try to use this plugin.
was6-maven-plugin http://mojo.codehaus.org/was6-maven-plugin/

CletteBou


On Thu, Dec 11, 2008 at 6:23 PM, Wayne Fay wayne...@gmail.com wrote:

  Embedded error: Unable to parse setupCmdLine: null\bin\setupCmdLine.bat
 (The
  system cannot
  find the path specified.)

 I don't have RAD so my ability to help with this specific issue is
 pretty limited. But where is this setupCmdLine.bat coming from -- is
 that in RAD somewhere? I'd assume the EJB stub generation tools assume
 you are running the tools from the RAD directories, and it is getting
 confused when it cannot find files it depends on during its execution.

 Find the setupCmdLine.bat file in your file system, and then try to
 find what files are invoking it, and either provide it to them as they
 require or find a way to stop them from invoking it.

 Wayne

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




Re: How to add test classes into jar?

2008-12-12 Thread Wayne Fay
 Simply, we can resolve it by adding test classes into jar (default
 packaging). Somebody could tell me how? Or any other suggestions would be
 appriciated.

You want to create and use a test-jar artifact. This is documented on
the Maven site and in various other places, eg:
http://stackoverflow.com/questions/174560/sharing-test-code-in-maven

Wayne

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



Re: How to have a single log4j.xml file in a multi-module project?

2008-12-12 Thread Stephen Connolly
In theory, yes, though I have not tried it myself

2008/12/11 CheapLisa l...@purpleblade.net


 so I could make a module for it say logging/pom.xml and then put a
 dependency to it in a parent pom that all sub-modules have as a
 parent-pom
 and this would work?

 thanks

 L



 Stephen Connolly-2 wrote:
 
  put it in a jar file (make a module just for it) and add that module
  as a dependency to all the projects that need it
 
  Sent from my iPod
 
  On 10 Dec 2008, at 20:35, CheapLisa l...@purpleblade.net wrote:
 
 
 
  I have a project with many modules (over 30) and some are nested 2-3
  deep.
 
  With Maven / Log4J I have to put two log4j.xml files in every module:
 src/main/resources/log4j.xml
 src/test/resources/log4j.xml
 
 This is usually the same file over and over again.
 
 1)
 How can I have one single log4j.xml file for all tests
  (src/test/resources/) and one log4j.xml file for
 all code (/src/main/resources/)
 
 2)
 How can I have one single log4j.xml file for all modules in the
  project?
 
 thanks
 
 L
  --
  View this message in context:
 
 http://www.nabble.com/How-to-have-a-single-log4j.xml-file-in-a-multi-module-project--tp20943438p20943438.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-have-a-single-log4j.xml-file-in-a-multi-module-project--tp20943438p20964994.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




AW: Please Unsubscribe me

2008-12-12 Thread Baeriswyl Kuno - Extern (IT-BA-MV)
well, that's what I have done yesterday and today for a couple of times...I 
really need to get out of the list, otherwise my account will be fluded ..
Kuno

-Ursprüngliche Nachricht-
Von: Stelios Philippou [mailto:stevo...@gmail.com]
Gesendet: Freitag, 12. Dezember 2008 09:08
An: Maven Users List
Betreff: Re: Please Unsubscribe me


send  here
and wait

users-unsubscr...@maven.apache.org

Robert Orben  - Older people shouldn't eat health food, they need all the 
preservatives they can get.

On Fri, Dec 12, 2008 at 9:59 AM, Baeriswyl Kuno - Extern (IT-BA-MV) 
kuno.baeris...@sbb.ch wrote:

 I'd like to unsubscribe from this list. Apparently, the unsubscribtion
 procedure doens't work, since I've tried a few times and never got any
 confirmation. But the message are still coming in.

 Can anybody help?

 Thanks


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



Re: Maven Jaxb plugin?

2008-12-12 Thread Jerome Lacoste
On Wed, Dec 10, 2008 at 12:33 PM, Anders Hammar and...@hammar.net wrote:

 Hi,

 Try the 'schemaDirectory' parameter. It's documented here:
 http://mojo.codehaus.org/jaxb2-maven-plugin/xjc-mojo.html

There are many jaxb plugins. We have tried

the codehaus mojo one, this one

   groupIdcom.sun.tools.xjc.maven2/groupId
artifactIdmaven-jaxb-plugin/artifactId

and

groupIdorg.jvnet.jaxb2.maven2/groupId
artifactIdmaven-jaxb2-plugin/artifactId

We've settled on the last one as it allowed us to easily pass jaxb extensions:

  args
arg-Xdefault-value/arg
  /args
  plugins
plugin
  groupIdorg.jvnet.jaxb2_commons/groupId
  artifactIddefault-value/artifactId
  version0.1-20071022/version !-- Downloaded from
https://jaxb2-commons.dev.java.net/ Version number defined after last
change in CVS... --
/plugin

J

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



Unusual multi-module structure

2008-12-12 Thread palexv

I need to implement such multi-module structure:
/app/pom.xml - pom for my web application
/module1/pom.xml - pom for module1 which is dependency of web app
...
/parent/pom.xml - parent pom

This is mostly done. The only question is root path in /app/pom.xml. When I
call build from parent pom it uses /parent path as root. Can I reconfigure
it to /app path? This is required for example for ant tasks


-- 
View this message in context: 
http://www.nabble.com/Unusual-multi-module-structure-tp20971968p20971968.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: I keep getting this messaeg This artifact has been relocated to javax.servlet:servlet-api:2.4-20040521

2008-12-12 Thread Fogleson, Allen
It just means that an artifact has been relocated within the repository. It's a 
warning but you can get rid of it by doing the following.

Within the pom's that have the servlet-api as a dependency just change it from:
...
groupIdWhatever groupid you have/groupId
artifactIdservlet-api/artifactId 
...

To:
...
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
...

Al

-Original Message-
From: miro [mailto:miroconn...@yahoo.com] 
Sent: Thursday, December 11, 2008 4:44 PM
To: users@maven.apache.org
Subject: I keep getting this messaeg This artifact has been relocated to 
javax.servlet:servlet-api:2.4-20040521


Please help me what is worng with this and what should i do to get rid of
this warning 
-- 
View this message in context: 
http://www.nabble.com/I-keep-getting-this-messaeg--This-artifact-has-been-relocated-to-javax.servlet%3Aservlet-api%3A2.4-20040521-tp20964763p20964763.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



how do you understand followSymLinks?

2008-12-12 Thread 苏林冲
Hi, all
The 
followSymLinkshttp://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html#followSymLinks
is a optional parameter of clean plugin. I could not see the real effect
when i run mvn clean:clean with -Dclean.followSymLinks=true.
Is there anyone tell me how this parameter works?
Thanks!
-- 
漠洋(苏琳冲)
SuLinchong
Phone   13656669328
Qq387973308
Msn  sulinch...@hotmail.com


Re: Unexpected version packaged in war

2008-12-12 Thread Edelson, Justin
This may or may not be the expected behavior. But first, just to be clear, the 
fact that the war and jar are in the same multi-module project is irrelevant. 
All that matters is the ordering of dependencies and the 'closeness' of various 
dependencies.

In your example, the two projectX dependencies have the same closeness (they 
are dependencies of dependencies). So the order in the pom is the determining 
factor.

Try running mvn -Dverbose=true dependency:tree

Justin

- Original Message -
From: Spam Trap junk-...@nc.rr.com
To: users@maven.apache.org users@maven.apache.org
Sent: Thu Dec 11 18:33:59 2008
Subject: Unexpected version packaged in war

So, I have a multi-module maven project consisting of a war project  
and a jar project.  The jar is a dependency of the war. I'm seeing  
some unexpected behavior around which dependencies get bundled up in  
WEB-INF/lib.  Namely, it seems like dependencies from the war  
project, either direct or transitive, are trumping dependencies of  
the jar (again, direct or transitive), regardless of version.  For  
example, my jar project depends on projectX-2.0.  The war depends on  
Y-1.1 which has a transitive dependency on projectX-1.0.  When the  
war gets built projectX-1.0 is what winds up in WEB-INF/lib.  I know  
I can work around this using excluded in the war; I'm more curious  
as to why this is happening.  Is it a bug or intended behavior.  If  
it's intended, what's the rationale?

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



Enforce plugin versions and reporting plugins

2008-12-12 Thread Nick Stolwijk
I've been trying to enforce my plugin versions with the enforcer
plugin and this works fine for plugins used during the build, but I am
a bit confused about the plugins used by the reporting section.

A few cases:

1. Declare reporting plugin in reporting section without a version
 -Enforcer plugins fails on plugin without a version
 - help:effective-pom doesn't show a version

2. Declare reporting plugin in reporting section with a version
- Enforcer plugin doesn't complain.
- help:effective-pom shows the version

3. Declare reporting plugin in reporting section without a version and
declare a build/pluginmanagement/plugin with a version
- Enforcer plugin doesn't complain.
- help:effective-pom doesn't show a version

Especially use case 3 seems a bit off.

I know of the issues with missing reporting/pluginmanagment tag, but
can this be solved in the requirepluginversions rule?

With regards,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl

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



Re: how do you understand followSymLinks?

2008-12-12 Thread Jörg Schaible
苏林冲 wrote at Freitag, 12. Dezember 2008 15:18:

 Hi, all
 The
 followSymLinkshttp://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html#followSymLinks
 is a optional parameter of clean plugin. I could not see the real effect
 when i run mvn clean:clean with -Dclean.followSymLinks=true. Is there
 anyone tell me how this parameter works? Thanks!

Well, did your target directory contained a symbolic link?

- Jörg



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



Re: RAD 7 + EJB Stubs generation + Maven 2

2008-12-12 Thread javed mandary
Salut,
 ah thanks a lot Guillaume!!!

cheers,
  Javed

On Fri, Dec 12, 2008 at 1:21 PM, Guillaume Boucherie 
guillaume.bouche...@gmail.com wrote:

 Hi,

 Maybe you can try to use this plugin.
 was6-maven-plugin http://mojo.codehaus.org/was6-maven-plugin/

 CletteBou


 On Thu, Dec 11, 2008 at 6:23 PM, Wayne Fay wayne...@gmail.com wrote:

   Embedded error: Unable to parse setupCmdLine: null\bin\setupCmdLine.bat
  (The
   system cannot
   find the path specified.)
 
  I don't have RAD so my ability to help with this specific issue is
  pretty limited. But where is this setupCmdLine.bat coming from -- is
  that in RAD somewhere? I'd assume the EJB stub generation tools assume
  you are running the tools from the RAD directories, and it is getting
  confused when it cannot find files it depends on during its execution.
 
  Find the setupCmdLine.bat file in your file system, and then try to
  find what files are invoking it, and either provide it to them as they
  require or find a way to stop them from invoking it.
 
  Wayne
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 



Re: Enforce plugin versions and reporting plugins

2008-12-12 Thread Baptiste MATHUS
 I'm not sure what you want to achieve. You want to enforce used plugin
versions without specifying them? If so, then I don't think enforcer-plugin
can do that. It's just here to check what was specified, not to modify the
model to put a version.

Which version of maven are you using? The core plugin should at least
display the inherited version number (beginning with maven 2.0.9 where the
super-pom fixed the plugin versions).

I might be wrong, but globally specifying is not the responsability of the
enforcer plugin. Enforcer will just check what you ask it to. Global
specification is to be put in dependency/pluginManagement.

Cheers.

2008/12/12 Nick Stolwijk nick.stolw...@gmail.com

 I've been trying to enforce my plugin versions with the enforcer
 plugin and this works fine for plugins used during the build, but I am
 a bit confused about the plugins used by the reporting section.

 A few cases:

 1. Declare reporting plugin in reporting section without a version
 -Enforcer plugins fails on plugin without a version
 - help:effective-pom doesn't show a version


 2. Declare reporting plugin in reporting section with a version
- Enforcer plugin doesn't complain.
- help:effective-pom shows the version

 3. Declare reporting plugin in reporting section without a version and
 declare a build/pluginmanagement/plugin with a version
- Enforcer plugin doesn't complain.
- help:effective-pom doesn't show a version

 Especially use case 3 seems a bit off.

 I know of the issues with missing reporting/pluginmanagment tag, but
 can this be solved in the requirepluginversions rule?

 With regards,

 Nick Stolwijk
 ~Java Developer~




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: [2.0.10 RC] please test

2008-12-12 Thread Dennis Lundberg
Brian E. Fox wrote:
 Hello,
 This RC fixes the SCP wagon problem identified in RC2 (MNG-3717). We
 have reverted the 2.0.x branch back to use wagon beta-2 where it was
 historically for stability. Users that require fixes for wagon beta-3+
 should use 2.1.0-M1 instead.

Then shouldn't we remove 2.0.10 from Fix Version in JIRA for
http://jira.codehaus.org/browse/MNG-3622

 
 
 Here's the list of issues fixed in 2.0.10:
 
 http://jira.codehaus.org/secure/ReleaseNote.jspa?version=14112styleName
 =HtmlprojectId=10500Create=Create
 
 And I've staged RC-5 here:
 
 http://people.apache.org/~brianf/staging-repository/org/apache/maven/apa
 che-maven/2.0.10-RC5/
 
 
 
 Please try it out and see if we have any remaining regressions over
 2.0.9.
 
 Thanks,
 Brian
 
 
 --
 Brian Fox
 Apache Maven PMC
 http://blogs.sonatype.com/brian/
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 


-- 
Dennis Lundberg

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



Re: Enforce plugin versions and reporting plugins

2008-12-12 Thread Jörg Schaible
Baptiste MATHUS wrote at Freitag, 12. Dezember 2008 16:38:

  I'm not sure what you want to achieve. You want to enforce used plugin
 versions without specifying them? If so, then I don't think
 enforcer-plugin can do that. It's just here to check what was specified,
 not to modify the model to put a version.
 
 Which version of maven are you using? The core plugin should at least
 display the inherited version number (beginning with maven 2.0.9 where the
 super-pom fixed the plugin versions).
 
 I might be wrong, but globally specifying is not the responsability of the
 enforcer plugin. Enforcer will just check what you ask it to. Global
 specification is to be put in dependency/pluginManagement.

And just to add: the report section does not inherit from the
pluginManagement - unfortunately.

- Jörg


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



MailingList inheritance

2008-12-12 Thread Nord, James
Hi all,
 
I have a parent project that defines all the repositores and plugin
configuration etc which contains a solitary mailing list.
 
Any project that inherits from this also inherits this mailing list and
I can find no way in the child pom of saying there are no mailing lists.
 
If I define a new mailing list then the parents list is removed - but if
I define an empty mailing list section using
mailingLists/ then the parents list is still inherited.  
 
How can I get a sub project to have no mailing lists?
 
/James

*
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only.  Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited.  If you have received this message in error, please immediately 
notify the postmas...@nds.com and destroy the original message.  Messages sent 
to and from NDS may be monitored.  NDS cannot guarantee any message delivery 
method is secure or error-free.  Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses.  We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission.  You should carry out your 
own virus checks before opening any attachment.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West 
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England 
and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**


JDepend Reporting Plugin in a Multi-Module Project

2008-12-12 Thread Harper, Brad
Does anyone have experience running the JDepend reporting plugin in a
multi-module project?

We've been able to successfully run the subject plugin [via site:site]
in individual projects with packaging types of jar and war, but when
performing

   mvn jdepend:generate

in the top-level project [which contains no source of its own], the
plugin fails with

   ...
   [INFO] [jdepend:generate]
   Directory does not exist: c:\workspace\dev\target\classes
   ...

Ultimately, the goal is to run 'site:site' for the top-level project
[which would run JDepend and other reporting plugins], followed by
'dashboard:dashboard'.

BTW, there isn't any configuration info
http://mojo.codehaus.org/jdepend-maven-plugin/.

Thanks.

Brad

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



Re: Enforce plugin versions and reporting plugins

2008-12-12 Thread Wendy Smoak
On Fri, Dec 12, 2008 at 7:28 AM, Nick Stolwijk nick.stolw...@gmail.com wrote:
 3. Declare reporting plugin in reporting section without a version and
 declare a build/pluginmanagement/plugin with a version
- Enforcer plugin doesn't complain.
- help:effective-pom doesn't show a version

 Especially use case 3 seems a bit off.

As Jörg mentioned, (and you discovered,) pluginManagement does not
apply to reporting plugins.

There are a couple of related issues in JIRA you might want to watch/vote for:

http://jira.codehaus.org/browse/MNG-2578 Make it possible to set
default versions for reporting-plugins (i.e. plugins under
reporting)

http://jira.codehaus.org/browse/MNG-1931 Add a reportingManagement section

-- 
Wendy

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



Re: AW: Please Unsubscribe me

2008-12-12 Thread Scott Ryan
Make sure you check you spam folder.  Sometimes the unsubscribes go  
there and if you don't confirm the unsubscribe it does not fully  
unsubscribe you.



Scott Ryan
President/CTO
Soaring Eagle L.L.C.
www.soaringeagleco.com
sc...@theryansplace.com
(303) 263-3044





On Dec 12, 2008, at 3:14 AM, Baeriswyl Kuno - Extern (IT-BA-MV) wrote:

well, that's what I have done yesterday and today for a couple of  
times...I really need to get out of the list, otherwise my account  
will be fluded ..

Kuno

-Ursprüngliche Nachricht-
Von: Stelios Philippou [mailto:stevo...@gmail.com]
Gesendet: Freitag, 12. Dezember 2008 09:08
An: Maven Users List
Betreff: Re: Please Unsubscribe me


send  here
and wait

users-unsubscr...@maven.apache.org

Robert Orben  - Older people shouldn't eat health food, they need  
all the preservatives they can get.


On Fri, Dec 12, 2008 at 9:59 AM, Baeriswyl Kuno - Extern (IT-BA-MV) kuno.baeris...@sbb.ch 
 wrote:


I'd like to unsubscribe from this list. Apparently, the  
unsubscribtion
procedure doens't work, since I've tried a few times and never got  
any

confirmation. But the message are still coming in.

Can anybody help?

Thanks



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




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



Re: Please Unsubscribe me

2008-12-12 Thread Wendy Smoak
On Fri, Dec 12, 2008 at 12:59 AM, Baeriswyl Kuno - Extern (IT-BA-MV)
kuno.baeris...@sbb.ch wrote:
 I'd like to unsubscribe from this list. Apparently, the unsubscribtion 
 procedure doens't work, since I've tried a few times and never got any 
 confirmation. But the message are still coming in.

 Can anybody help?

If you're having trouble with the automated procedure, then send an
email to users-ow...@maven.apache.org, which should reach one of the
(human) moderators.

-- 
Wendy

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



Re: Enforce plugin versions and reporting plugins

2008-12-12 Thread Heinrich Nirschl
On Fri, Dec 12, 2008 at 7:22 PM, Wendy Smoak wsm...@gmail.com wrote:
 On Fri, Dec 12, 2008 at 7:28 AM, Nick Stolwijk nick.stolw...@gmail.com 
 wrote:
 3. Declare reporting plugin in reporting section without a version and
 declare a build/pluginmanagement/plugin with a version
- Enforcer plugin doesn't complain.
- help:effective-pom doesn't show a version

 Especially use case 3 seems a bit off.

 As Jörg mentioned, (and you discovered,) pluginManagement does not
 apply to reporting plugins.

 There are a couple of related issues in JIRA you might want to watch/vote for:

 http://jira.codehaus.org/browse/MNG-2578 Make it possible to set
 default versions for reporting-plugins (i.e. plugins under
 reporting)

 http://jira.codehaus.org/browse/MNG-1931 Add a reportingManagement section

So the enforcer plugin should complain in this case, shouldn't it?

- Henry

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



How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa

Before the build takes place, I need to create a directory /target/somedir
and then copy some files from /src/main/resources/* to there.

How do I do this with maven?

thanks

cl
-- 
View this message in context: 
http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to mkdir and move files as part of build

2008-12-12 Thread Wei Tan
there is a maven plug-in that can run ant tasks, I remember



On Fri, Dec 12, 2008 at 2:25 PM, CheapLisa l...@purpleblade.net wrote:


 Before the build takes place, I need to create a directory
 /target/somedir
 and then copy some files from /src/main/resources/* to there.

 How do I do this with maven?

 thanks

 cl
 --
 View this message in context:
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




Re: How to mkdir and move files as part of build

2008-12-12 Thread Olivier Lamy
Hi,
The sample here [1] should help.

--
Olivier
[1] 
http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html

2008/12/12 CheapLisa l...@purpleblade.net:

 Before the build takes place, I need to create a directory /target/somedir
 and then copy some files from /src/main/resources/* to there.

 How do I do this with maven?

 thanks

 cl
 --
 View this message in context: 
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



RE: Enforce plugin versions and reporting plugins

2008-12-12 Thread Brian E. Fox
The reporting plugin / plugin interaction is a known issue. It's not easy to 
solve in the current 2.0.x code and I chose to release it anyway pending a more 
thorough fix down the road. Use case 3 is the only time it should show up.

The problem is that when you run site lifecycle phases, the reporting plugins 
are injected into the model in the plugin section, so there's no way for me to 
tell them apart. There's an open jira for this.

-Original Message-
From: Nick Stolwijk [mailto:nick.stolw...@gmail.com] 
Sent: Friday, December 12, 2008 9:28 AM
To: Maven Users List
Subject: Enforce plugin versions and reporting plugins

I've been trying to enforce my plugin versions with the enforcer
plugin and this works fine for plugins used during the build, but I am
a bit confused about the plugins used by the reporting section.

A few cases:

1. Declare reporting plugin in reporting section without a version
 -Enforcer plugins fails on plugin without a version
 - help:effective-pom doesn't show a version

2. Declare reporting plugin in reporting section with a version
- Enforcer plugin doesn't complain.
- help:effective-pom shows the version

3. Declare reporting plugin in reporting section without a version and
declare a build/pluginmanagement/plugin with a version
- Enforcer plugin doesn't complain.
- help:effective-pom doesn't show a version

Especially use case 3 seems a bit off.

I know of the issues with missing reporting/pluginmanagment tag, but
can this be solved in the requirepluginversions rule?

With regards,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl

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



RE: Re: [2.0.10 RC] please test

2008-12-12 Thread Brian E. Fox
That's a whole separate discussion, but one we've had before. The
mercury wagon will be used in 2.1.x so it will leave the old wagon just
for 2.0.x

-Original Message-
From: news [mailto:n...@ger.gmane.org] On Behalf Of Holger Hoffstaette
Sent: Thursday, December 11, 2008 10:28 AM
To: users@maven.apache.org
Subject: Re: [2.0.10 RC] please test

On Wed, 10 Dec 2008 21:14:29 -0500, Brian E. Fox wrote:

 This RC fixes the SCP wagon problem identified in RC2 (MNG-3717). We
have
 reverted the 2.0.x branch back to use wagon beta-2 where it was
 historically for stability. Users that require fixes for wagon beta-3+
 should use 2.1.0-M1 instead.

Why is the stable plugin version still called beta?

-h



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


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



Re: How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa

great.  I will try it.  Will it automatically create the directory if the
destination dir does not exist?
If now how do I make it create the directory?

thanks

L

Olivier Lamy wrote:
 
 Hi,
 The sample here [1] should help.
 
 --
 Olivier
 [1]
 http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html
 
 2008/12/12 CheapLisa l...@purpleblade.net:

 Before the build takes place, I need to create a directory
 /target/somedir
 and then copy some files from /src/main/resources/* to there.

 How do I do this with maven?

 thanks

 cl
 --
 View this message in context:
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983685.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa

great.  Do you remember the name of the plugin and have an example?

thanks

L


Wei Tan wrote:
 
 there is a maven plug-in that can run ant tasks, I remember
 
 
 
 On Fri, Dec 12, 2008 at 2:25 PM, CheapLisa l...@purpleblade.net wrote:
 

 Before the build takes place, I need to create a directory
 /target/somedir
 and then copy some files from /src/main/resources/* to there.

 How do I do this with maven?

 thanks

 cl
 --
 View this message in context:
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983705.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to mkdir and move files as part of build

2008-12-12 Thread Olivier Lamy
2008/12/12 CheapLisa l...@purpleblade.net:

 great.  I will try it.  Will it automatically create the directory if the
 destination dir does not exist?
Sure
 If now how do I make it create the directory?

 thanks

 L

 Olivier Lamy wrote:

 Hi,
 The sample here [1] should help.

 --
 Olivier
 [1]
 http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html

 2008/12/12 CheapLisa l...@purpleblade.net:

 Before the build takes place, I need to create a directory
 /target/somedir
 and then copy some files from /src/main/resources/* to there.

 How do I do this with maven?

 thanks

 cl
 --
 View this message in context:
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983685.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: How to mkdir and move files as part of build

2008-12-12 Thread Baptiste MATHUS
Somebody made me discover that recently: http://tinyurl.com/62f6ku ...

No offense, week-end is coming :-).
Cheers

2008/12/12 CheapLisa l...@purpleblade.net


 great.  Do you remember the name of the plugin and have an example?

 thanks

 L


 Wei Tan wrote:
 
  there is a maven plug-in that can run ant tasks, I remember
 
 
 
  On Fri, Dec 12, 2008 at 2:25 PM, CheapLisa l...@purpleblade.net wrote:
 
 
  Before the build takes place, I need to create a directory
  /target/somedir
  and then copy some files from /src/main/resources/* to there.
 
  How do I do this with maven?
 
  thanks
 
  cl
  --
  View this message in context:
 
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983063.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20983705.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: How to mkdir and move files as part of build

2008-12-12 Thread Wayne Fay
 Somebody made me discover that recently: http://tinyurl.com/62f6ku ...

 No offense, week-end is coming :-).
 Cheers

So long as CheapLisa continues sending emails like this without
doing even a modicum of her own reading/research, I think she's going
to have to accept an increasingly less than polite tone in the
responses. Especially on a Friday afternoon. ;-)

This list is pretty tolerant and largely flame-free, but we respond
much better to people who have done their homework (and Googling)
before asking questions that are very clearly answered with 5 minutes
of self-help before asking someone in the community to do their
work/searching for them...

Wayne

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



mvn changelog:changelog fails under Mac OSX 10.5, svn --non-interactive authorization failed

2008-12-12 Thread Laurent Perez
Hi

I recently opened http://jira.codehaus.org/browse/MCHANGELOG-91 , does
anyone on 10.5 have a workaround for this one ?
Unfortunately, I don't have access to a win32/nix system, and I'd like
to be able to use the changelog plugin.

Thanks if you can help
laurent

-- 
a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com
- Mobile world, technology and more/a

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



Re: mvn changelog:changelog fails under Mac OSX 10.5, svn --non-interactive authorization failed

2008-12-12 Thread Olivier Lamy
Maybe : 
http://blogs.exist.com/bporter/2008/02/25/working-around-non-interactive-problems-in-leopards-subversion/

--
Olivier

2008/12/12 Laurent Perez hak...@gmail.com:
 Hi

 I recently opened http://jira.codehaus.org/browse/MCHANGELOG-91 , does
 anyone on 10.5 have a workaround for this one ?
 Unfortunately, I don't have access to a win32/nix system, and I'd like
 to be able to use the changelog plugin.

 Thanks if you can help
 laurent

 --
 a href=http://in-pocket.blogspot.com;http://in-pocket.blogspot.com
 - Mobile world, technology and more/a

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



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



Re: Reusing assembly descriptors aka. sharing them between projects

2008-12-12 Thread Rusty Wright

Where is this documented on the maven site?


De Smet Ringo wrote:
 


-Original Message-
From: sirly...@gmail.com [mailto:sirly...@gmail.com] On 
Behalf Of John Stoneham

Sent: dinsdag 9 december 2008 6:27
To: Maven Users List
Subject: Re: Reusing assembly descriptors aka. sharing them 
between projects


Now, you can use it as a descriptorRef, just like 
jar-with-dependencies.


http://books.sonatype.com/maven-book/reference/assemblies.html
#d0e16265
has step-by-step instructions.


Weird that the Maven book has such a complicated setup. Here is an alternative

1) The assembly descriptor Maven module:

Create a POM with packaging type 'assembly-descriptor'. Put the following in 
the 'build' section of the POM:

extensions
  extension
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-2/version
  /extension
/extensions

And complete the rest of the POM as you like. Release the project and deploy it 
to your repository.
Put the file assembly-descriptor.xml under src/main/resources (note: *no* 
assemblies subfolder!)

2) Projects using the assembly descriptor

Configure the maven-assembly-plugin as follows:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-2/version
configuration
descriptors

descriptorsome-group-id:assembly-descriptor-artifactId:1.0/descriptor
/descriptors
/configuration
executions
execution
goals
goalattached/goal
/goals
phasepackage/phase
/execution
/executions
/plugin

I think this is much for the users of the assembly descriptor.

Ringo
*

Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen. 


This e-mail and any attachment thereto may contain information which is 
confidential and/or protected by intellectual property rights and are intended 
for the sole use of the addressees. Any use of the information contained herein 
(including but not limited to total or partial reproduction or distribution in 
any form) by other persons than the addressees is prohibited. If you have 
received this e-mail in error, please notify the sender and delete its contents.

Ce courriel et les annexes éventuelles peuvent contenir des informations 
confidentielles et/ou protégées par des droits de propriété intellectuelle. Ce 
message est adressé exclusivement à son (ses) destinataire(s). Toute 
utilisation du contenu de ce message (y compris la reproduction ou diffusion 
partielle ou complète sous toute forme) par une autre personne que le(s) 
destinataire(s) est formellement interdite. Si vous avez reçu ce message par 
erreur, veuillez prévenir l'expéditeur du message et en détruire le contenu.

*

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



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



Re: Reusing assembly descriptors aka. sharing them between projects

2008-12-12 Thread Wendy Smoak
On Fri, Dec 12, 2008 at 5:28 PM, Rusty Wright rusty.wri...@gmail.com wrote:

 Where is this documented on the maven site?

If you don't find it in the Assembly plugin docs [1], please consider
summarizing the info in this thread and submitting a patch to improve
them, or at least opening an issue pointing out the omission and
linking to this thread so someone else can pick it up.  Another option
is to add to the plugin's wiki page [2].

[1] http://maven.apache.org/plugins/maven-assembly-plugin/
[2] http://docs.codehaus.org/display/MAVENUSER/Assembly+Plugin

-- 
Wendy

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



RE: Up-to-date release

2008-12-12 Thread sverhagen

Hi, again.


Todd Thiessen wrote:
 
 Why would you expect developer 1's changes to be in the release?
 

Because the whole point of making releases is them to be reproducible.
If the contents of the release depends on the steps my dev did or did not
take, it's hardly reproducible.

Now, I'll admit that the tag corresponds to the actual released artifact. So
the release itself is reproducible. The path to it is much more difficult,
though. Namely, what is actually inside this release I can only learn from
doing a potentially large number of cumbersome compares of SVN revisions
against the tag.

I'll argue why I had the expectation that the state of the trunk was to be
released, rather than the state of someone's work area. As you all know,
Maven is doing three SVN operations when releasing:
1. Change trunk to have the release version number
2. Copy to tag
3. Change trunk to have next development snapshot number number
If step 1 was not designed to get into a state that is exactly what is going
to be in the release, it should have left out. Maven could have gone to the
tag directly. Doing so would have made the statement that the tag and only
the tag shows the state of the release.
Additionally, the release plugin asserts on local modifications. There would
have not been any point doing so, if releases weren't meant to fully
correspond to the trunk that this verification is done against. In my
opinion, this 'fully corresponding' only makes sense if everything is on the
same revision (for instance the head). As far as I am concerned it does not
need to be head, but having a mixture of revisions in your work area and
releasing it makes no sense to me, whatsoever.

(Where I'm talking about 'trunk' and 'head of trunk', this could just as
well have been some branch that I'm releasing from. Same story.)

Best regards, Sander.
-- 
View this message in context: 
http://www.nabble.com/Up-to-date-release-tp20925759p20986493.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Up-to-date release

2008-12-12 Thread sverhagen


Christian Schulte wrote:
 
 The maven-scm-plugin may be helpful.
 
 http://maven.apache.org/scm/maven-scm-plugin/update-mojo.html
 

My first response to this was: didn't he read my comment:



 I've attempted adding stategies to check if the releasing developer
 (developer 2) is up-to-date, using buildnumber-maven-plugin. Unsuccessful,
 since release plugin does its own local modifications prior to running the
 buildnumber plugin.
 

But SCM may actually be a lot less aggressive than buildnumber. So it's
actually a great idea to use SCM instead!

Which is still a bit tricky is that it will update and silently leave behind
conflicts. For instance, I just tried a release without having updated my
POM properly, which resulted in having:

pom.xml (mangled)
pom.xml.mine
pom.xml.r14815
pom.xml.r14818

This works well: build fails anyway on the mangled pom.xml which is a sign
to the developer that he should have updated ;-)
This will be more problematic: something else than the POM is mangled and
does not get picked up by compile or test, and goes into my release :-(

All'n'all... a good start... still thinking on it!

Thanks for that.
-- 
View this message in context: 
http://www.nabble.com/Up-to-date-release-tp20925759p20986559.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to add test classes into jar?

2008-12-12 Thread Linghua Wang
Thanks! I found out it based on your comments.  Followings is the details I
have done.

1. Add build snippet into pom.xml of project B. After the execution of
mvn:install, then .../src/main/java/ and /src/test/java were packaged
respectively and installed on my local repository.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
project
...
 build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
version2.2/version
executions
execution
goals
goaltest-jar/goal
/goals
/execution
/executions
/plugin
/plugins
/build
...
/project
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -

2. Add this dependency into project A.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
   !--The test myapp-hut--
dependency
groupIdcom.mycompany.hut/groupId
artifactIdmyapp-hut/artifactId
version1.0-SNAPSHOT/version
typetest-jar/type
scopetest/scope
/dependency
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -

3. Then mvn test, things go smoothly.

Thank again.

2008/12/12 Wayne Fay wayne...@gmail.com

  Simply, we can resolve it by adding test classes into jar (default
  packaging). Somebody could tell me how? Or any other suggestions would be
  appriciated.

 You want to create and use a test-jar artifact. This is documented on
 the Maven site and in various other places, eg:
 http://stackoverflow.com/questions/174560/sharing-test-code-in-maven

 Wayne

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




Re: How to mkdir and move files as part of build

2008-12-12 Thread CheapLisa

yea, I already googled.  I already to that before posting.  Nothing came up. 
What does modicum mean?

thanks



Wayne Fay wrote:
 
 Somebody made me discover that recently: http://tinyurl.com/62f6ku ...

 No offense, week-end is coming :-).
 Cheers
 
 So long as CheapLisa continues sending emails like this without
 doing even a modicum of her own reading/research, I think she's going
 to have to accept an increasingly less than polite tone in the
 responses. Especially on a Friday afternoon. ;-)
 
 This list is pretty tolerant and largely flame-free, but we respond
 much better to people who have done their homework (and Googling)
 before asking questions that are very clearly answered with 5 minutes
 of self-help before asking someone in the community to do their
 work/searching for them...
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-mkdir-and-move-files-as-part-of-build-tp20983063p20987174.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to have a single log4j.xml file in a multi-module project?

2008-12-12 Thread CheapLisa

OK, when I do this I get a cyclic reference and it does not work.

I have:
project_root/pom.xml  = this is referred to as my parent 
pom

and I have a sub-module for logging (has only the
/src/main/resources/log4j.xml
project_root/utils/logging/pom.xml
project_root/utils/logging/src/main/resources/log4j.xml

In the utils/logging/pom.xml I have this included
  dependency
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
  version1.2.15/version
  scopecompile/scope
  /dependency
  
so to use in every other project, I put in the top level (parent pom) 
this
dependency on
the logging sub-module:

dependencies
dependency
groupIdcom.acmegroupId
artifactIdlogging/artifactId
version1.0/version
scopecompile/scope
/dependency
/dependencies


and I do not touch any other module anywhere because in every pom
everywhere I have
the following reference to the parent pom:

parent
groupIdcom.acme/groupId
artifactIdacme.parent-pom/artifactId
version1.0/version
/parent

so the parent pom dependency is logging-1.0.jar but the first thing it tries
to compile also has
that dependency.


---
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] The projects in the reactor contain a cyclic reference: Edge between
'Vertex{label='com.avoce
nt.amp.patch:utils.logging'}' and
'Vertex{label='com.acme.patch:utils.logging'}' introduces t
o cycle in the graph com.acme:utils.logging -- com.acme.patch:utils.logging
[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: The projects in the reactor contain
a cyclic reference: Edge
 between 'Vertex{label='com.acme.patch:utils.logging'}' and
'Vertex{label='com.acme:utils.logging'}' introduces to cycle in the graph
com.acmepatch:utils.logging -- com.av
ocent.amp.patch:utils.logging
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:310)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)



Stephen Connolly-2 wrote:
 
 In theory, yes, though I have not tried it myself
 
 2008/12/11 CheapLisa l...@purpleblade.net
 

 so I could make a module for it say logging/pom.xml and then put a
 dependency to it in a parent pom that all sub-modules have as a
 parent-pom
 and this would work?

 thanks

 L



 Stephen Connolly-2 wrote:
 
  put it in a jar file (make a module just for it) and add that module
  as a dependency to all the projects that need it
 
  Sent from my iPod
 
  On 10 Dec 2008, at 20:35, CheapLisa l...@purpleblade.net wrote:
 
 
 
  I have a project with many modules (over 30) and some are nested 2-3
  deep.
 
  With Maven / Log4J I have to put two log4j.xml files in every module:
 src/main/resources/log4j.xml
 src/test/resources/log4j.xml
 
 This is usually the same file over and over again.
 
 1)
 How can I have one single log4j.xml file for all tests
  (src/test/resources/) and one log4j.xml file for
 all code (/src/main/resources/)
 
 2)
 How can I have one single log4j.xml file for all modules in the
  project?
 
 thanks
 
 L
  --
  View this message in context:
 
 http://www.nabble.com/How-to-have-a-single-log4j.xml-file-in-a-multi-module-project--tp20943438p20943438.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-have-a-single-log4j.xml-file-in-a-multi-module-project--tp20943438p20964994.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-have-a-single-log4j.xml-file-in-a-multi-module-project--tp20943438p20987209.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-12 Thread CheapLisa

I did this.  and if you do it, you will see no reference to surefire other
than surefire in the reporting section.

thanks


cl



Josh Suereth wrote:
 
 Also to follow that up,
 
 Although you didn't specify the maven-surefire-plugin, your build file has
 inherited it from the ethereal maven super pom.
 
 Type mvn help:effective-pom to see what your pom *really* looks like, so
 you
 can get an idea of how/what to configure for surefire.
 
 On Thu, Dec 11, 2008 at 7:46 PM, Josh Suereth
 joshua.suer...@gmail.comwrote:
 
 Lisa,


 The answer is that although Junit4 might support finding the @Test
 annotations, the maven surefire plugin (being backwards compatable, AND a
 completely different tool) looks for Test* *Test and *TestSuite.   You
 need
 to configure the maven-surefire-plugin (This is the part of maven that
 calls
 into junit) for junit4 conventions, or you won't get your desired
 behavior.

 -Josh


 On Thu, Dec 11, 2008 at 6:39 PM, CheapLisa l...@purpleblade.net wrote:


 I do not believe this has anything to do with it and I don't understand
 what
 you are saying.

 L



 mgainty wrote:
 
 
  place the groupId/artifactId/version in the dependencies in
  dependencyManagement Section of the parent pom
  project
...
dependencyManagement
  dependencies
dependency
  groupIdgroup-a/groupId
  artifactIdartifact-a/artifactId
  version1.0/version
 
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
 
  hth
  Martin
  __
  Disclaimer and confidentiality note
  Everything in this e-mail and any attachments relates to the official
  business of Sender. This transmission is of a confidential nature and
  Sender does not endorse distribution to any party other than intended
  recipient. Sender does not necessarily endorse content contained
 within
  this transmission.
 
 
 
 
  Date: Wed, 10 Dec 2008 12:44:45 -0800
  From: l...@purpleblade.net
  To: users@maven.apache.org
  Subject: Re: Is Maven / JUnit 4.x broken (annotations)
 
 
  I looked at my effective pom.  I have a dependency there on JUnit
 4.5.
  The only reference to surefire was maven-surefire-reports-plugin in
 the
  reporting section.
 
  how do I know that surefire is using my dependency of JUnit 4.5?  Is
  maven
  bundled with another version of JUnit and using an earlier version
 that
  I'm
  not aware of?
 
  How do I force the surefire plugin to use JUnit 4.5?
 
  thanks
 
  L
 
 
 
  John Stoneham wrote:
  
   On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa
 l...@purpleblade.net
   wrote:
   I have JUnit 4.5 as a dependency in my maven pom
   and I have imported annotations into my test case but
   it is not recognizing the @Test and @Ignore annotations.
  
   I still have to preface the method name with test
   and the @Ignore tests get executed.
  
   Is something broken?  What do I need to do to get this
   to work like expected and to take advantage of JUnit 4.x
   which has over a year of release now.
  
   Hm. Last time this happened to me it was because I was trying to
   repackage JUnit with a bunch of other things, and it turned out
   surefire was inspecting my POM to look for a junit:junit
 dependency,
   then pulling the version off that to determine whether to look for
   JUnit 4 tests.
  
   Sounds to me like surefire thinks your JUnit dependency is version
 3.
   We've got JUnit 4.4 configured here and it runs both 3- and 4-style
   tests properly.
  
   Is it possible to post the output of mvn help:effective-pom here?
  
   - John
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20943444.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
  _
  Send e-mail faster without improving your typing skills.
 
 http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
 

 --
 View this message in context:
 http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20964992.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



 
 

-- 
View this message in context: 
http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20987228.html
Sent from the Maven - Users mailing list 

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-12 Thread CheapLisa

What does group-a and artifact-a refer to?

so I have to do this in every pom in every sub-module?  Is there anything I
can do in the top level pom that will take care of the whole project?

What you are saying is that the surefire plugin is not JUnit4 enabled?

thanks

CL



mgainty wrote:
 
 
 place the groupId/artifactId/version in the dependencies in
 dependencyManagement Section of the parent pom
 project
   ...
   dependencyManagement
 dependencies
   dependency
 groupIdgroup-a/groupId
 artifactIdartifact-a/artifactId
 version1.0/version
 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
 
 hth
 Martin 
 __ 
 Disclaimer and confidentiality note 
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and
 Sender does not endorse distribution to any party other than intended
 recipient. Sender does not necessarily endorse content contained within
 this transmission. 
 
 
 
 
 Date: Wed, 10 Dec 2008 12:44:45 -0800
 From: l...@purpleblade.net
 To: users@maven.apache.org
 Subject: Re: Is Maven / JUnit 4.x broken (annotations)
 
 
 I looked at my effective pom.  I have a dependency there on JUnit 4.5.
 The only reference to surefire was maven-surefire-reports-plugin in the
 reporting section.
 
 how do I know that surefire is using my dependency of JUnit 4.5?  Is
 maven
 bundled with another version of JUnit and using an earlier version that
 I'm
 not aware of?
 
 How do I force the surefire plugin to use JUnit 4.5?
 
 thanks
 
 L
 
 
 
 John Stoneham wrote:
  
  On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa l...@purpleblade.net
  wrote:
  I have JUnit 4.5 as a dependency in my maven pom
  and I have imported annotations into my test case but
  it is not recognizing the @Test and @Ignore annotations.
 
  I still have to preface the method name with test
  and the @Ignore tests get executed.
 
  Is something broken?  What do I need to do to get this
  to work like expected and to take advantage of JUnit 4.x
  which has over a year of release now.
  
  Hm. Last time this happened to me it was because I was trying to
  repackage JUnit with a bunch of other things, and it turned out
  surefire was inspecting my POM to look for a junit:junit dependency,
  then pulling the version off that to determine whether to look for
  JUnit 4 tests.
  
  Sounds to me like surefire thinks your JUnit dependency is version 3.
  We've got JUnit 4.4 configured here and it runs both 3- and 4-style
  tests properly.
  
  Is it possible to post the output of mvn help:effective-pom here?
  
  - John
  
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
  
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20943444.html
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 _
 Send e-mail faster without improving your typing skills.
 http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
 

-- 
View this message in context: 
http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20987238.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: how do you understand followSymLinks?

2008-12-12 Thread 苏林冲
Until now, i have not got to known what a symbolic link.
So, i could not understand it. Maybe , would you please give
me a sample?

Thanks^_^

On Fri, Dec 12, 2008 at 11:25 PM, Jörg Schaible joerg.schai...@gmx.dewrote:

 苏林冲 wrote at Freitag, 12. Dezember 2008 15:18:

  Hi, all
  The
  followSymLinks
 http://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html#followSymLinks
 
  is a optional parameter of clean plugin. I could not see the real effect
  when i run mvn clean:clean with -Dclean.followSymLinks=true. Is there
  anyone tell me how this parameter works? Thanks!

 Well, did your target directory contained a symbolic link?

 - Jörg



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




-- 
漠洋(苏琳冲)
SuLinchong
Phone   13656669328
Qq387973308
Msn  sulinch...@hotmail.com


Re: how do you understand followSymLinks?

2008-12-12 Thread 苏林冲
On Sat, Dec 13, 2008 at 2:58 PM, 苏林冲 sulinchong1...@gmail.com wrote:

 Until now, i have not got to known what a symbolic link like.
 So, i could not understand it. Maybe , would you please give
 me a sample?

 Thanks^_^


 On Fri, Dec 12, 2008 at 11:25 PM, Jörg Schaible joerg.schai...@gmx.dewrote:

 苏林冲 wrote at Freitag, 12. Dezember 2008 15:18:

  Hi, all
  The
  followSymLinks
 http://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html#followSymLinks
 
  is a optional parameter of clean plugin. I could not see the real effect
  when i run mvn clean:clean with -Dclean.followSymLinks=true. Is
 there
  anyone tell me how this parameter works? Thanks!

 Well, did your target directory contained a symbolic link?

 - Jörg



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




 --
 漠洋(苏琳冲)
 SuLinchong
 Phone   13656669328
 Qq387973308
 Msn  sulinch...@hotmail.com




-- 
漠洋(苏琳冲)
SuLinchong
Phone   13656669328
Qq387973308
Msn  sulinch...@hotmail.com


Re: how do you understand followSymLinks?

2008-12-12 Thread Wayne Fay
 Until now, i have not got to known what a symbolic link.
 So, i could not understand it. Maybe , would you please give
 me a sample?

As (nearly) always, Wikipedia (or Google) is a good place to start
your reading about things like this:
http://en.wikipedia.org/wiki/Symbolic_Link

Wayne

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