Re: Mail Notifier self-replication

2006-06-07 Thread Carlo Bonamico

Hi Shute,
I have the same problem and already created a jira bug report for this.

http://jira.codehaus.org/browse/CONTINUUM-678

It should be fixed in the source tree, but I am not sure when the next 
release will be.


Carlo

Shute, James wrote:

Hi,

I'm using 1.0.3 and am having a problem with one of my (Maven 1)
projects.  Every time the build runs it adds copies of the configured
Mail Notifiers, so I get an ever expanding number of emails.  It looks
like it's doubling each time.

Other projects are building ok.  The main difference with this one is
that it's a multi-project build, (i.e. my target is clean:clean
multiproject:install) - don't know if that's relevant or not.

The other difference is that when I imported the pom the initial mail
notifier it created looks slightly different to those for the other
projects, in that the ones that work have the 1st notifier with a From
value of Project, where as this one only has User notifiers.

I can't see anything in any of the mail archives that might help -
anybody got any ideas?

thanks

James

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.


  




Maven 2 and WTP

2006-06-07 Thread Zeiler Christian, Bedag
Hello

Yesterday I tried to convert a maven project into an eclipse wtp project
with the maven-eclipse-plugin. But unfortunately it doesn't work. Maven
doesn't create all off the needed files for eclipse so I wasn't able to
import the project in the server view of eclipse.

Maven: 2.04
WTP: 1.0
Eclipse: 3.2 RC7

I studied all the documentation under
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html and
searched the internet. I would really appreciate if anyone can provide
me a running real world example (not only hello world).

Cheers Christian   



RE: Self containment / Standalone maven ??

2006-06-07 Thread Artamonov, Juri
I tried also to use maven as standalone application and putting
libraries in one lib folder and then access Maven through Maven embedder
BUT repository has specially designed layout and in order to have lib
files as I need requires rewriting repository classes.

Best regards,
Juri.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 8:47 AM
To: users@maven.apache.org
Subject: Re: Self containment / Standalone maven ??


Martin was suggesting:

 Remove your repository and see what dependencies it downloads and 
 move that
result to the cd..

I tried to add my local repository to the remote list and set up a new
one by overriding the old local value.

Deleting (or moving in that matter) doesn't work, since the repository
is
(partly) locked. I can delete/move the repository outside of maven, sure
enough, but in that case it's back to Ant. Also, cleaning out my
repository will cause a 100MB+ download each time. 

So, any other suggestions to use maven for a specific pre-build project
in a non-networked environment?

Regards,
Michael.





-- 
_
Tele2 - The company that brings you small bills! http://www.tele2.nl


-
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] Unit tests and integration tests in the same module?

2006-06-07 Thread Vincent Massol
I don't believe it's currently possible within the same build module.

We started discussing it on
http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies

-Vincent

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: mardi 6 juin 2006 16:41
 To: Maven Users List
 Subject: [m2] Unit tests and integration tests in the same module?
 
 [moved from [EMAIL PROTECTED]
 
 Context:  We want to run both 'normal' unit tests, and integration
 tests that require a webapp to be deployed in a container, from the
 same module.
 
 On 6/5/06, Brett Porter [EMAIL PROTECTED] wrote:
  It *should* still be possible to achieve what you want currently (I
  thought Vincent's chapter discussed that, but I don't might be
  mistaken). It may take some effort, though, and I'm not sure of any
  existing examples. The 'integration-test' phase was meant to be a
  general hook to facilitate this where possible.
 
 The problem I keep running into is that there is only one
 build/testSourceDirectory, and there is no
 profile/build/testSourceDirectory in the model.  If that
 existed, it seems like you could get another execution of Surefire
 using a second source directory.
 
 You're hinting that it's possible, though... what am I missing?
 
 --
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

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



RE: [m2] Moving Surefire execution from test to integration-test

2006-06-07 Thread Vincent Massol


 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: mardi 6 juin 2006 19:53
 To: Maven Users List
 Subject: [m2] Moving Surefire execution from test to integration-test
 
 The Maven webapp archetype creates a structure with only
 src/main/webapp and src/main/resources.  It would seem, then, that we
 could put integration tests in this module, and not run into the
 problem of having both normal JUnit tests and integration tests in the
 same module.

I would put functional tests in a separate module. It's much cleaner and in
any case in order to run functional tests you need to have several
prerequisites:

- the WAR/EAR/etc is built (i.e. the corresponding module is built)
- the database is built and setup
- you need environment data applied (to your container config + possibly to
your WAR/EAR). Note that you'll usually want to store your container config
under a module so that it's version-controlled and managed.

Thus the general way I'd recommend is to have several modules. A WAR is only
a component but to execute it you need an application. An application is a
container + a configuration for the environment + the WAR/EAR/etc. This
requires several modules to achieve it.

That said, putting everything in one module could probably work for the
simple cases but right now it isn't possible with m2.

 To do this, I need to convince Surefire *not* to run during the test
 phase, but instead to run during integration-test, (preferably only
 when a profile is enabled.)
 
 Is there a way?  

I don't think so. What you can do is bind it to the integration-test phase
in an execution (see last section of the j2ee chapter in the m2 book).

 If I configure skiptrue/skip, then *all* of my
 executions get skipped. :(

-Vincent






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

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



Re: Best practices for multi-flavour build?

2006-06-07 Thread badaud

Nobody ever had this issue?
--
View this message in context: 
http://www.nabble.com/Best-practices-for-multi-flavour-build--t1741483.html#a4746228
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] Identifying projects and modules

2006-06-07 Thread Guillaume Bilodeau
I tried using the generateClient configuration parameter but I'm not getting 
the results I expected.  The build generated a huge JAR file 
(system2-ejb-1.0-client.jar) which contains pretty much every class that's 
already in the system2-ejb-1.0.jar, not only the interfaces.

Am I missing something here?  Ideally I would like to have a simple JAR file 
with only the EJB home and remote interfaces.  

Thanks,
GB


- Original Message 
From: John Casey [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, June 6, 2006 7:09:46 PM
Subject: Re: [M2] Identifying projects and modules

Actually, I believe you could simply turn system2 into a single project, and
specify it's packaging as 'ejb'. The ejb plugin has an option for generating
an ejb-client jar file, which you could then use in the dependency set of
the system1 project.

You might want to take a peek at
http://maven.apache.org/plugins/maven-ejb-plugin/ejb-mojo.html for more
information. I think you'd be looking for the 'generateClient' configuration
parameter for that mojo.

Other than that, and with what little information I have about the system,
it seems like a sane design.

HTH,

-john

On 6/6/06, Guillaume Bilodeau [EMAIL PROTECTED] wrote:

 Hi all,

 I have inherited two projects which I will be managing using Maven 2.0.  Both
 are Java EE-based, the first one sometimes talking to the second one using
 stateless session beans.  Both also should be sharing a large code base but
 currently are not, so there's a lot of duplication.

 I'm wondering how I should distribute these projects into M2 projects and
 modules.  Right now I'm leaning towards having 4 projects: system1, system2,
 system2-api and core.  The first two are self-explanatory, system2-api would
 contain the EJB interfaces required by system1 and implemented by system2,
 and core would eventually contain the result of refactoring the duplicated
 code.  The first two projects would depend on the last two, and system2-api
 would depend on core.

 Is this a correct approach or is there a better approach that I'm not
 seeing?

 Cheers,
 GB

 PS: To the person who answered me last time: thanks!  My problem was
 solved, but I couldn't find back the original message to confirm that and
 thank you.








Re: Best practices for multi-flavour build?

2006-06-07 Thread Kieran Brady

Fred,

This kind of problem is generally solved using build profiles in Maven. The 
'Better Builds with Maven' book covers this topic (free from 
http://www.mergere.com/ ).


A good starting point is here:

http://maven.apache.org/guides/introduction/introduction-to-profiles.html

and here:

http://docs.codehaus.org/display/MAVEN/Build+Profiles

We use profiles to capture customisations and modifications to webapps in 
terms of branding and configuration for different customers and their 
environments. So we have profiles unix,windows which are mutually exclusive, 
profiles dev,test,live which are mutually exclusive and then 
custA,custB,custC profiles which are also mutually excluive. When we are 
ready to release we build against (for example) unix,live,custA profiles.


HTH

Kieran

- Original Message - 
From: badaud [EMAIL PROTECTED]

To: users@maven.apache.org
Sent: Tuesday, June 06, 2006 1:34 PM
Subject: Best practices for multi-flavour build?




I have a project for multiple clients. Each client must receive a
ready-to-deploy package of ear files. The jar and war contained in those 
ear

files are usually just different by a few configuration files (but the
structure and the changes in these files can be quite complex).

Right now, we have a pesky ad hoc ant file, with ad hoc file extensions,
copy operations, separate Svn branches, a nightmare to maintain (not to
mention the long, tedious, manual and error prone build process).

I had some enjoyable experiences in the past with Maven and I'd like to 
make
the move for this project too. I'd also like to have all those config 
files

maintained in the trunk tree.

What would be the best way to :
- store and maintain those config files?
- easily generate one build for one client and another build for another
client?

Thanks for your advice

Best regards,

Fred
--
View this message in context: 
http://www.nabble.com/Best-practices-for-multi-flavour-build--t1741483.html#a4732364

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] Unit tests and integration tests in the same module?

2006-06-07 Thread Tomasz Pik

On 6/7/06, Vincent Massol [EMAIL PROTECTED] wrote:

I don't believe it's currently possible within the same build module.

We started discussing it on
http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies


What about:
* src/itest instead of src/it
* typeUnit/Integration/Functional/System/Custom/type instead of
 typeUnit/IT/Functional/System/Custom/type

Regards
Tomek

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



strange trouble on solaris

2006-06-07 Thread Olivier Lamy
Hi,
I have a junit test with contains the following code :

SimpleDateFormat simpleDateFormat = new SimpleDateFormat( -MM-dd,
Locale.FRANCE );
// harcoded date due to xmlunit comparaison
Date timeStamp = simpleDateFormat.parse( 2001-05-28 );
return DateTools.setNoonHour( timeStamp );

FastDateFormat.getInstance( -MM-dd'T'HH:mm:ss.SSSZZ
).format(date);

On windows+cygwin : 2001-05-28T12:00:00.000+02:00
On solaris with same user who start continuum exec junit with cli :
2001-05-28T12:00:00.000+02:00
The same junit with continuum says : 2001-05-28T12:00:00.000+00:00

Error says :
Expected attribute value '2001-05-28T12:00:00.000+02:00' but was
'2001-05-28T12:00:00.000+00:00' - comparing  at
/OTA_HotelAvailRS[1]/@TimeStamp to  at /OTA_HotelAvailRS[1]/@TimeStamp

I start continuum with $CONTINUUM_HOME/bin/plexus.sh  /dev/null 

The .profile contains :
...
LANG=en_US.ISO8859-15
export LANG

##opts maven
MAVEN_OPTS=-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1
export MAVEN_OPTS
...

I don't change anything on plexus.sh script.

Any ideas ??
Thanks,
--
Olivier




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 electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres le message ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 



RE: [m2] Unit tests and integration tests in the same module?

2006-06-07 Thread Jason Chaffee
I was able to do by using testng and not providing a testng.xml file for the 
test phase, but only for the integration-test phase.  It is kinda of a hack, 
but it works. 

-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 11:26 PM
To: 'Maven Users List'
Subject: RE: [m2] Unit tests and integration tests in the same module?

I don't believe it's currently possible within the same build module.

We started discussing it on
http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies

-Vincent

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: mardi 6 juin 2006 16:41
 To: Maven Users List
 Subject: [m2] Unit tests and integration tests in the same module?
 
 [moved from [EMAIL PROTECTED]
 
 Context:  We want to run both 'normal' unit tests, and integration
 tests that require a webapp to be deployed in a container, from the
 same module.
 
 On 6/5/06, Brett Porter [EMAIL PROTECTED] wrote:
  It *should* still be possible to achieve what you want currently (I
  thought Vincent's chapter discussed that, but I don't might be
  mistaken). It may take some effort, though, and I'm not sure of any
  existing examples. The 'integration-test' phase was meant to be a
  general hook to facilitate this where possible.
 
 The problem I keep running into is that there is only one
 build/testSourceDirectory, and there is no
 profile/build/testSourceDirectory in the model.  If that
 existed, it seems like you could get another execution of Surefire
 using a second source directory.
 
 You're hinting that it's possible, though... what am I missing?
 
 --
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.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] Unit tests and integration tests in the same module?

2006-06-07 Thread Jason Chaffee
I should add that I think this only works because there is a bug in surefire 
that doesn't run testng test classes correctly unless there is testng.xml file 
configured.

-Original Message-
From: Jason Chaffee [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 12:30 AM
To: Maven Users List
Subject: RE: [m2] Unit tests and integration tests in the same module?

I was able to do by using testng and not providing a testng.xml file for the 
test phase, but only for the integration-test phase.  It is kinda of a hack, 
but it works.

-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 11:26 PM
To: 'Maven Users List'
Subject: RE: [m2] Unit tests and integration tests in the same module?

I don't believe it's currently possible within the same build module.

We started discussing it on
http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies

-Vincent

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]
 Sent: mardi 6 juin 2006 16:41
 To: Maven Users List
 Subject: [m2] Unit tests and integration tests in the same module?
 
 [moved from [EMAIL PROTECTED]
 
 Context:  We want to run both 'normal' unit tests, and integration
 tests that require a webapp to be deployed in a container, from the
 same module.
 
 On 6/5/06, Brett Porter [EMAIL PROTECTED] wrote:
  It *should* still be possible to achieve what you want currently (I
  thought Vincent's chapter discussed that, but I don't might be
  mistaken). It may take some effort, though, and I'm not sure of any
  existing examples. The 'integration-test' phase was meant to be a
  general hook to facilitate this where possible.
 
 The problem I keep running into is that there is only one
 build/testSourceDirectory, and there is no
 profile/build/testSourceDirectory in the model.  If that
 existed, it seems like you could get another execution of Surefire
 using a second source directory.
 
 You're hinting that it's possible, though... what am I missing?
 
 --
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.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]


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



[m2] war plugin - need dependencies referenced in manifest but not in WEB-INF/lib

2006-06-07 Thread Arthur Crawford

Hi,
Is there a way to create a war with references to dependent jars in the 
manifest's classpath entry but NOT package them in WEB-INF/lib?.  I want 
to do this so I can have sevaral wars referencing the same shared jars 
in the top level of an ear.


This is the war plugin configuration I have used to turn on manifest 
generation.


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

Then I have tried scopeprovided/scope.  But although the jars are 
omitted from WEB-INF/lib as I want, neither do they appear the 
manifest.  Scope compile puts everything in the manifest but also in 
WEB-INF/lib.  Scope runtime has the same effect as scope compile (in 
this context).


I have looked through all the documentation and posts I can find on this 
but have seen no solution.  It seems like a common thing to want to do 
when packaging shared code in wars/ears.  If it's not possible with 
Maven out-of-the-box does anyone have any suggested fix or workaround?


I'm using Maven version 2.0.4 - war plugin version 2.0

Regards,

Arthur Crawford.

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



Re: [m2] war plugin - need dependencies referenced in manifest but not in WEB-INF/lib

2006-06-07 Thread Piéroni Raphaël

Hi,

use the provided scope in the war project. (this will work for the
web-inf/lib but i dunno for the manifest.mf

Raphaël


2006/6/7, Arthur Crawford art[EMAIL PROTECTED]:


Hi,
Is there a way to create a war with references to dependent jars in the
manifest's classpath entry but NOT package them in WEB-INF/lib?.  I want
to do this so I can have sevaral wars referencing the same shared jars
in the top level of an ear.

This is the war plugin configuration I have used to turn on manifest
generation.

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

Then I have tried scopeprovided/scope.  But although the jars are
omitted from WEB-INF/lib as I want, neither do they appear the
manifest.  Scope compile puts everything in the manifest but also in
WEB-INF/lib.  Scope runtime has the same effect as scope compile (in
this context).

I have looked through all the documentation and posts I can find on this
but have seen no solution.  It seems like a common thing to want to do
when packaging shared code in wars/ears.  If it's not possible with
Maven out-of-the-box does anyone have any suggested fix or workaround?

I'm using Maven version 2.0.4 - war plugin version 2.0

Regards,

Arthur Crawford.

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




Re: Creating a JBoss sar file, managing JBoss dependencies

2006-06-07 Thread Stephane Nicoll

The SarMojo is on codehaus.
http://mojo.codehaus.org/jboss-sar-maven-plugin/

The book does not say you can build a sar with the ear plugin. It says
you it's able to manage it. Just create it with the JBossSarMojo and
add it as a dependency of the ear project.

If you find the EAR plugin documentation thin, create an improvement
on jira.codehaus.org with suggestions/patch.

HTH,
Stéphane


On 6/6/06, Allan Brighton [EMAIL PROTECTED] wrote:


Hi all,

How can I create a JBoss sar file with maven2? I can't find the
jboss-sar plugin. The Better Builds with Maven book mentions that you
can create a sar file with the maven ear plugin, but how does that work?
The documentation for the ear plugin is rather thin... The sar file that
I need is simple: just a jar file (with the .sar suffix) that contains a
jboss-service.xml and some jar or class files.

The other issue is that I want to use a jar file from the jboss
server/lib dir (scheduler-plugin.jar), but it is not in any repository
and doesn't have a version. What is the best way to deal with that?

Thanks,
Allan


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





--
.::You're welcome ::.

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



Re: ear:generate-application-xml : ability to disable the context-root of a web module

2006-06-07 Thread Stephane Nicoll

Hi,

Thanks for filling an improvement[1]. It's scheduled for 2.3

Cheers,
Stéphane

[1] http://jira.codehaus.org/browse/MEAR-29

On 6/2/06, Thierry Barnier [EMAIL PROTECTED] wrote:

Hi,

I'm developping some  portlets, and bundling them into an EAR module.
I use a multi module POM architecture

the ear:generate-application-xml goal generate a context-root tag, when it
depends on a WAR module.
However, this line is problematic when you deploy a portlet, because it
seems illegal in this case.
(deployment fails)


My EAR config is as follow

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
version2.1/version
configuration
displayNameThierry Portlet/displayName
descriptionJBOSS portlet/description
modules
webModule
groupIdmyApp/groupId
artifactIdJBPortlet1-war/artifactId
!--contextRoot/portlet/contextRoot   My
problem goes here
/webModule
/modules
/configuration
/plugin

If i comment / remove the contextroot line, it takes the WAR filename as
context

It generates the following application.xml

application
  display-nameThierry Portlet/display-name
  descriptionJBOSS portlet/description
  module
web
  web-uriJBPortlet1-war-1.0.war/web-uri
  context-root/portlet/context-root I would like to
remove automatically this line
/web
  /module
/application

I would like to remove automatically the context-root line.

what could be the strategy?
=a noContextRoot tag added to the ear plugin config
=a way to specify that application-xml has to be generated regarding
portlet constraints?

Thanks for your help

Thierry





--
.::You're welcome ::.

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



Re: [proxy] troube with https repos ?

2006-06-07 Thread Franz Fehringer

I have exactly the same problem with the same site.
I opened MNG-2305 about it.

Franz

Matthias Wessendorf schrieb:

Hi,

I am behind a proxy and I have problems with https (for instance with
java.net, since it uses https).

Anybody noticed the same?

Thx,
Matthias




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

Re: Gernot Eger/T-Mobile/AT ist außer Haus. [Virus checked]

2006-06-07 Thread Roland Asmann
How nice of him to reply that to the mailing-list... Hope we don't get these 
kind of mails often!


On Wednesday 07 June 2006 05:40, Matthias Wessendorf wrote:
 this guy is out of his office.
 he is back on June 8th

 On 6/6/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:
  English please...
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 07, 2006 7:31 AM
  To: Maven Users List
  Subject: Gernot Eger/T-Mobile/AT ist außer Haus. [Virus checked]
 
 
 
  Ich werde ab  07.06.2006 nicht im Büro sein. Ich kehre zurück am
  08.06.2006.
 
  mfg
  Gernot Eger
 
 
 
 
  -
  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.


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



Re: [m2] war plugin - need dependencies referenced in manifest but not in WEB-INF/lib

2006-06-07 Thread a crawford

Hi, Piéroni, thanks.  But unfortunately the classpath entry for the
dependency is lost from manifest.mf when you use the scope provided.
Regards,
Arthur.

Piéroni Raphaël wrote:
 
 Hi,
 
 use the provided scope in the war project. (this will work for the
 web-inf/lib but i dunno for the manifest.mf
 
 Raphaël
 
 
 2006/6/7, Arthur Crawford art[EMAIL PROTECTED]:

 Hi,
 Is there a way to create a war with references to dependent jars in the
 manifest's classpath entry but NOT package them in WEB-INF/lib?.  I want
 to do this so I can have sevaral wars referencing the same shared jars
 in the top level of an ear.

 This is the war plugin configuration I have used to turn on manifest
 generation.

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

 Then I have tried scopeprovided/scope.  But although the jars are
 omitted from WEB-INF/lib as I want, neither do they appear the
 manifest.  Scope compile puts everything in the manifest but also in
 WEB-INF/lib.  Scope runtime has the same effect as scope compile (in
 this context).

 I have looked through all the documentation and posts I can find on this
 but have seen no solution.  It seems like a common thing to want to do
 when packaging shared code in wars/ears.  If it's not possible with
 Maven out-of-the-box does anyone have any suggested fix or workaround?

 I'm using Maven version 2.0.4 - war plugin version 2.0

 Regards,

 Arthur Crawford.

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


 
 

--
View this message in context: 
http://www.nabble.com/-m2--war-plugin---need-dependencies-referenced-in-manifest-but-not-in-WEB-INF-lib-t1746387.html#a4747737
Sent from the Maven - Users forum at Nabble.com.


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



Re: Gernot Eger/T-Mobile/AT ist außer Haus. [Virus checked]

2006-06-07 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 How nice of him to reply that to the mailing-list... Hope we don't
 get these kind of mails often!

I don't know if you can suppress these messages for certain receivers if
you activate the Out-Of-Office-assistant in Notes, Outlook or whatever
mail system he's using, so we'll have a bit fun the next couple of days :-)


Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFEhpeBQvObkgCcDe0RApu9AJ9JBh7rX38fNOdb0Z6Fp8EvVeqESACg4WQ8
S3CG7ccxHIAIHXDyIDz/HBM=
=uR1A
-END PGP SIGNATURE-

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



Re: Gernot Eger/T-Mobile/AT ist außer Haus. [Virus checked]

2006-06-07 Thread Roland Asmann
Well, if I remember correctly, it only sends out the mail once per sender... So 
it should be over now... :-)



On Wednesday 07 June 2006 11:08, Thorsten Heit wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

  How nice of him to reply that to the mailing-list... Hope we don't
  get these kind of mails often!

 I don't know if you can suppress these messages for certain receivers if
 you activate the Out-Of-Office-assistant in Notes, Outlook or whatever
 mail system he's using, so we'll have a bit fun the next couple of days :-)


 Thorsten
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.3 (MingW32)

 iD8DBQFEhpeBQvObkgCcDe0RApu9AJ9JBh7rX38fNOdb0Z6Fp8EvVeqESACg4WQ8
 S3CG7ccxHIAIHXDyIDz/HBM=
 =uR1A
 -END PGP SIGNATURE-

 -
 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: Creating a JBoss sar file, managing JBoss dependencies

2006-06-07 Thread allanb

Could someone post an example pom.xml file that uses the jboss-sar-maven
plugin. I tried the one below, but got an error saying that the plugin could
not be found. Do I need to specify a different repository? If so which url?
Where does it expect the jboss-service.xml file to be?

project
  modelVersion4.0.0/modelVersion
  parent
groupIdmygroupid/groupId
artifactIdmyapp/artifactId
version1.0-SNAPSHOT/version
  /parent
  artifactIdmyart/artifactId
  namemyname/name
  descriptionmydesc/description
  packagingsar/packaging  
  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjboss-sar-maven-plugin/artifactId
extensionstrue/extensions
  /plugin
/plugins
  /build
/project

...
[INFO] The plugin 'org.codehaus.mojo:jboss-sar-maven-plugin' does not exist
or no valid version could be found

--

Thanks,
Allan


--
View this message in context: 
http://www.nabble.com/Creating-a-JBoss-sar-file%2C-managing-JBoss-dependencies-t1740691.html#a4747946
Sent from the Maven - Users forum at Nabble.com.


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



[m2] Where to put log4j.properties file

2006-06-07 Thread ben short

Hi,

Where do I have to put my log4j.properties file in a ear file for it to be used?

I have tried adding it to /src/main/resources but it dosent get picked
up on the app server.

Ben

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



Assembly and multi-levels multi-modules

2006-06-07 Thread LECAN Damien
Hello,

I'm using maven-assembly-plugin with multi-modules projects, and it works fine 
for flat hierachy.
I mean for multi-modules projects as :

Parent
  +- Submodule1
  +- Submodule2

But for this kind of layout :

Parent:pom
  +- Submodule1:jar
  +- SubParent:pom
 +- Subsubmodule1:jar
 +- Subsubmodule2:jar

I am not able to build an assembly with all referenced modules (Submodule1, 
Subsubmodule1 and Subsubmodule2).
Moreover, assembly plugin tries to include module SubParent whereas it is a pom 
module !

How to assemble all my project ?
Is it possible to exclude all pom modules from assembly ? (without specifiying 
exclusion for each in assembly descriptor)

Thanks

Damien Lecan

--
Telematic Systems
B2i - Viveris Group France

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



[M2] log4j output does not display when running surefire plugin

2006-06-07 Thread Toni Price

When using the surefire plugin with maven 2.0.4, I want to be able to
configure log4j for logging.

I feel as though I have tried every conceivable configuration, but have not
yet been able to get log4j output to show up (to either the console or a
file). It appears to be configured from the correct file since this is
output to the console:

log4j:INFO Using URL [file:/snip.../target/classes/log4j_dev.properties]
for automatic log4j configuration of repository named [default].

I'm also pretty sure it's using this configuration file because it honours
various settings (e.g. log4j.debug=TRUE) that I put in it, and the log
output file is created in the location I specify.

However, even though the log file is created, none of my logging statements
show up in it from my unit tests (e.g. logger.debug(some debugging
message); etc.) -- and nor do they get printed to the console. Here is the
surefire plugin configuration in my pom.xml:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  configuration
systemProperties
  property
namelog4j.configuration/name
valuelog4j_${env}.properties/value
  /property
/systemProperties
useFilefalse/useFile
printSummarytrue/printSummary
testFailureIgnoretrue/testFailureIgnore
includes
  include**/Test*.java/include
/includes
  /configuration
/plugin

(the log4j config file name is set at build time via profiles)

I have also tried setting forkModenever/forkMode. Under the
pluginManagement section, I have tried both:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  version2.3-SNAPSHOT/version
/plugin

and

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  version2.2/version
/plugin

Here is my log4j config:
---
log4j.rootLogger=DEBUG, A0, A1

log4j.logger.org.apache.log4j.PropertyConfigurator=WARN
log4j.logger.org.apache.log4j.config.PropertySetter=WARN
log4j.logger.org.apache.log4j.rolling.RollingFileAppender=WARN

log4j.appender.A0=org.apache.log4j.ConsoleAppender
log4j.appender.A0.layout=org.apache.log4j.PatternLayout
log4j.appender.A0.layout.ConversionPattern=%-4r %-5p %-37.37c - %m%n

log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.File=target/logs/app.log
log4j.appender.A1.MaxFileSize=1000KB
log4j.appender.A1.MaxBackupIndex=1
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%5p %d [%t] %c - %m%n
---

Logging is a crucial thing that I really need to implement before going any
further with my project. I've searched on google and nabble but as yet not
come up with anything that's helped me solve this. Am I missing something
here? Is there something I've misconfigured or left out?

Thanks for any help
Toni

--
View this message in context: 
http://www.nabble.com/-M2--log4j-output-does-not-display-when-running-surefire-plugin-t1747117.html#a4748873
Sent from the Maven - Users forum at Nabble.com.


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



M2: renaming tld dependencies

2006-06-07 Thread Carsten Karkola
Hallo,

we have some war subprojects with different tld dependencies. Is there 
some possibility to rename the tlds during packaging. I'd like to strip of the 
version numbers to avoid modifications in the web.xml files.

regards, carsten


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



Re: Assembly and multi-levels multi-modules

2006-06-07 Thread Roland Asmann
Not 100% sure on this, but what if you try to make 2 assemblies here? the first 
one for the subsub-modules (inside the subparent)
and the second one with the result of the subparent (=assembly of 
subsub-modules) and submodule?
Not sure on how to do this, but it seems kind of logical this way to me...

Sorry if I was of no help!

Roland



On Wednesday 07 June 2006 12:11, LECAN Damien wrote:
 Hello,

 I'm using maven-assembly-plugin with multi-modules projects, and it works
 fine for flat hierachy. I mean for multi-modules projects as :

 Parent
   +- Submodule1
   +- Submodule2

 But for this kind of layout :

 Parent:pom
   +- Submodule1:jar
   +- SubParent:pom
  +- Subsubmodule1:jar
  +- Subsubmodule2:jar

 I am not able to build an assembly with all referenced modules (Submodule1,
 Subsubmodule1 and Subsubmodule2). Moreover, assembly plugin tries to
 include module SubParent whereas it is a pom module !

 How to assemble all my project ?
 Is it possible to exclude all pom modules from assembly ? (without
 specifiying exclusion for each in assembly descriptor)

 Thanks

 Damien Lecan

 --
 Telematic Systems
 B2i - Viveris Group France

 -
 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: renaming tld dependencies

2006-06-07 Thread Jorg Heymans

Try using the ant move task.

On 6/7/06, Carsten Karkola [EMAIL PROTECTED] wrote:


Hallo,

we have some war subprojects with different tld dependencies. Is there
some possibility to rename the tlds during packaging. I'd like to strip of
the
version numbers to avoid modifications in the web.xml files.

regards, carsten


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




Maven-EAR-Plugin - Including an EJB client in an EAR mystery

2006-06-07 Thread Stefan Arentz

I'm have a couple of projects that generate EAR files. These EARs are
not dependent on eachother and this works just fine.

However, now I want to include an EJB client jar from EAR 1 in EAR 2.
I can't find the right recipe to make this work.

I have this:

Project 1: Generates a project1.ear and an project1-ejb-1.0-client.jar
as artifacts.

Project 2: Tries to include project1-ejb-1.0-client.jar in the following manner:

project
  groupIdproject2/groupId
  artifactIdproject2-ear/artifactId
  packagingear/packaging

  dependencies
dependency
   groupIdproject1/groupId
   artifactIdproject1-ejb/artifactId
   version1.0-SNAPSHOT/version
   typeejb-client/type
/dependency
  /dependencies

 build
   finalNameproject2-${project.version}/finalName
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-ear-plugin/artifactId
   configuration
 displayNameProject2/displayName
 descriptionProject2/description
 version5/version
   modules
 webModule
groupIdproject2/groupId
artifactIdproject2-war/artifactId
contextRoot/foo/contextRoot
 /webModule
 javaModule
groupIdproject1/groupId
artifactIdproject1-ejb/artifactId
includeInApplicationXmltrue/includeInApplicationXml
 /javaModule
   /modules
   /configuration
 /plugin
   /plugins
 /build

/project

The error I'm getting is:

[ERROR] BUILD FAILURE
[INFO] 
[INFO] Artifact[project1:project1-ejb:jar] is not a dependency of the project.

Is this a shortcoming of the maven-ear-plugin maybe? In that it does
not recognize ejb-client as a module type?

S.

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



[m2] changes plugin configuration

2006-06-07 Thread Wim Deblauwe

Hi,

I would like to change the location of the changes.xml. The default is
currently src\changes\changes.xml, but I woud like to have it as
src\site\changes\changes.xml because I believe this is more part of the
site and should be put there. How can I configure this?

regards,

Wim


RE: One more simple question

2006-06-07 Thread Midtskogen, Erik
Hi EJ,

Are you talking about where dependency jars end up when
assembly:assembly runs?  If you are, then configure your assembly
descriptor like so:

assembly
.
.
.
dependencySets
dependencySet
outputDirectory/lib/outputDirectory
excludes

exclude${groupId}:${artifactId}/exclude
/excludes
/dependencySet
/dependencySets
.
.
.
/assembly

The exlude prevents the artifact from the package lifecycle (e.g. the
jar created by jar:jar) from getting copied into ./lib.

I'm just a Maven newbie, so I could be totally off base, but this is
what I'm doing to get my dependency jars into target/lib.

Hope this helps.

--Erik

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 6:30 PM
To: Maven Users List
Subject: One more simple question


By default, jars are placed in the root of target, how do you move them
to target/lib?  

***
The information in this email (including any attachments) is confidential and 
may be legally privileged.  Access to this e-mail by anyone other than the 
intended addressee is unauthorized.  If you are not the intended recipient of 
this message, any review, disclosure, copying, distribution, retention, or any 
action taken or omitted to be taken in reliance on it (including any 
attachments) is prohibited and may be unlawful.  If you are not the intended 
recipient, please reply to or forward a copy of this message to the sender and 
delete the message, all attachments, and any copies thereof from your system 
and destroy any printout thereof.

__
The information in this email (including any attachments) is confidential and 
may be legally privileged. Access to this e-mail by anyone other than the 
intended addressee is unauthorized. If you are not the intended recipient of 
this message, any review, disclosure, copying, distribution, retention, or any 
action taken or omitted to be taken in reliance on it (including any 
attachments) is prohibited and may be unlawful. If you are not the intended 
recipient, please reply to or forward a copy of this message to the sender and 
delete the message, all attachments, and any copies thereof from your system 
and destroy any printout thereof.

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



Re: [M2] log4j output does not display when running surefire plugin

2006-06-07 Thread Stephen Coy

Hi,

I usually just put my log4j config file in src/test/resources and it  
works fine.


I would have thought that having your unit tests dependent upon an  
environment variable would make them non-deterministic. Do you really  
need to do this?


In any event, other threads have suggested that there are issues with  
passing system properties to unit tests at the moment.


Steve C.


On 07/06/2006, at 8:23 PM, Toni Price wrote:



When using the surefire plugin with maven 2.0.4, I want to be able to
configure log4j for logging.

I feel as though I have tried every conceivable configuration, but  
have not
yet been able to get log4j output to show up (to either the console  
or a

file). It appears to be configured from the correct file since this is
output to the console:

log4j:INFO Using URL [file:/snip.../target/classes/ 
log4j_dev.properties]

for automatic log4j configuration of repository named [default].

I'm also pretty sure it's using this configuration file because it  
honours
various settings (e.g. log4j.debug=TRUE) that I put in it, and  
the log

output file is created in the location I specify.

However, even though the log file is created, none of my logging  
statements

show up in it from my unit tests (e.g. logger.debug(some debugging
message); etc.) -- and nor do they get printed to the console.  
Here is the

surefire plugin configuration in my pom.xml:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  configuration
systemProperties
  property
namelog4j.configuration/name
valuelog4j_${env}.properties/value
  /property
/systemProperties
useFilefalse/useFile
printSummarytrue/printSummary
testFailureIgnoretrue/testFailureIgnore
includes
  include**/Test*.java/include
/includes
  /configuration
/plugin

(the log4j config file name is set at build time via profiles)

I have also tried setting forkModenever/forkMode. Under the
pluginManagement section, I have tried both:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  version2.3-SNAPSHOT/version
/plugin

and

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  version2.2/version
/plugin

Here is my log4j config:
-- 
-

log4j.rootLogger=DEBUG, A0, A1

log4j.logger.org.apache.log4j.PropertyConfigurator=WARN
log4j.logger.org.apache.log4j.config.PropertySetter=WARN
log4j.logger.org.apache.log4j.rolling.RollingFileAppender=WARN

log4j.appender.A0=org.apache.log4j.ConsoleAppender
log4j.appender.A0.layout=org.apache.log4j.PatternLayout
log4j.appender.A0.layout.ConversionPattern=%-4r %-5p %-37.37c - %m%n

log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.File=target/logs/app.log
log4j.appender.A1.MaxFileSize=1000KB
log4j.appender.A1.MaxBackupIndex=1
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%5p %d [%t] %c - %m%n
-- 
-


Logging is a crucial thing that I really need to implement before  
going any
further with my project. I've searched on google and nabble but as  
yet not
come up with anything that's helped me solve this. Am I missing  
something

here? Is there something I've misconfigured or left out?

Thanks for any help
Toni

--
View this message in context: http://www.nabble.com/-M2--log4j- 
output-does-not-display-when-running-surefire-plugin- 
t1747117.html#a4748873

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: Maven-EAR-Plugin - Including an EJB client in an EAR mystery

2006-06-07 Thread Roland Asmann
The problem is the fact that you try to add it as a JAR (javaModule), but you 
have a dependency on it as
an ejb-client (typeejb-client/type).
Should it be just a jar, then you should remove the type, if it should be an 
EJB, replace javaModule with
ejbModule.

Roland



On Wednesday 07 June 2006 13:41, Stefan Arentz wrote:
 I'm have a couple of projects that generate EAR files. These EARs are
 not dependent on eachother and this works just fine.

 However, now I want to include an EJB client jar from EAR 1 in EAR 2.
 I can't find the right recipe to make this work.

 I have this:

 Project 1: Generates a project1.ear and an project1-ejb-1.0-client.jar
 as artifacts.

 Project 2: Tries to include project1-ejb-1.0-client.jar in the following
 manner:

 project
groupIdproject2/groupId
artifactIdproject2-ear/artifactId
packagingear/packaging

dependencies
  dependency
 groupIdproject1/groupId
 artifactIdproject1-ejb/artifactId
 version1.0-SNAPSHOT/version
 typeejb-client/type
  /dependency
/dependencies

   build
 finalNameproject2-${project.version}/finalName
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-ear-plugin/artifactId
 configuration
   displayNameProject2/displayName
   descriptionProject2/description
   version5/version
 modules
   webModule
  groupIdproject2/groupId
  artifactIdproject2-war/artifactId
  contextRoot/foo/contextRoot
   /webModule
   javaModule
  groupIdproject1/groupId
  artifactIdproject1-ejb/artifactId
  includeInApplicationXmltrue/includeInApplicationXml
   /javaModule
 /modules
 /configuration
   /plugin
 /plugins
   /build

 /project

 The error I'm getting is:

 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Artifact[project1:project1-ejb:jar] is not a dependency of the
 project.

 Is this a shortcoming of the maven-ear-plugin maybe? In that it does
 not recognize ejb-client as a module type?

  S.

 -
 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-EAR-Plugin - Including an EJB client in an EAR mystery

2006-06-07 Thread Stefan Arentz

On 6/7/06, Roland Asmann [EMAIL PROTECTED] wrote:

The problem is the fact that you try to add it as a JAR (javaModule), but you 
have a dependency on it as
an ejb-client (typeejb-client/type).
Should it be just a jar, then you should remove the type, if it should be an EJB, 
replace javaModule with
ejbModule.


Ok I have the right solution.

Keep the dependency type set to 'ejb-client'.

Then use:

ejbClientModule
  groupIdproject1/groupId
  artifactIdproject1-ejb/artifactId
  includeInApplicationXmltrue/includeInApplicationXml
/ejbClientModule

Maybe we should start a paypal fund and get someone to write real
documentation. Little things like this take hours to figure out. Big
waste of time.

S.

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



Re: [M2] log4j output does not display when running surefire plugin

2006-06-07 Thread Toni Price

The thing is though, it doesn't seem to be a problem with log4j *finding* the
configuration file. That seems ok.

When you say you usually just put your log4j config file in
src/test/resources, I assume you mean you use a default name (like
log4j.properties) and then put another log4j.properties in
src/main/resources for your production environment? If that's the case then
I'm not sure why that would be any more deterministic than having two log4j
properties files that are simply named differently for testing and
production (and the correct file name is chosen according to the
environment). I mean, somehow or another you need to have different
configurations for testing and production, right? I'm inclined to think that
naming the files differently is even possibly clearer, since then it should
be obvious from the file name which configuration is being used. Or have I
misunderstood? (Entirely possible!)

In any event, I've tried removing the systemProperties settings and putting
a log4j.properties in src/test/resources as you've suggested, but exactly
the same thing happens: log4j appears to be configured, but there's no
logging output other than statements from log4j itself. I'm probably missing
something obvious here, otherwise I'm sure lots more people would be having
this problem ... just wish I could see what it was :)


--
View this message in context: 
http://www.nabble.com/-M2--log4j-output-does-not-display-when-running-surefire-plugin-t1747117.html#a4751277
Sent from the Maven - Users forum at Nabble.com.


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



Re: Maven-EAR-Plugin - Including an EJB client in an EAR mystery

2006-06-07 Thread Roland Asmann
There's an ejbClientModule??? I haven't used ejb-client so far (only ejb), 
but at least I wasn't that far off! ;-)

Roland



On Wednesday 07 June 2006 15:28, Stefan Arentz wrote:
 On 6/7/06, Roland Asmann [EMAIL PROTECTED] wrote:
  The problem is the fact that you try to add it as a JAR (javaModule),
  but you have a dependency on it as an ejb-client
  (typeejb-client/type).
  Should it be just a jar, then you should remove the type, if it should
  be an EJB, replace javaModule with ejbModule.

 Ok I have the right solution.

 Keep the dependency type set to 'ejb-client'.

 Then use:

 ejbClientModule
groupIdproject1/groupId
artifactIdproject1-ejb/artifactId
includeInApplicationXmltrue/includeInApplicationXml
 /ejbClientModule

 Maybe we should start a paypal fund and get someone to write real
 documentation. Little things like this take hours to figure out. Big
 waste of time.

  S.

 -
 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: Assembly and multi-levels multi-modules

2006-06-07 Thread LECAN Damien
 Not 100% sure on this, but what if you try to make 2 
 assemblies here? the first one for the subsub-modules (inside 
 the subparent)
 and the second one with the result of the subparent 
 (=assembly of subsub-modules) and submodule?
 Not sure on how to do this, but it seems kind of logical this 
 way to me...
Yes it is logical, but I have much more than 2 multi-modules levels  I 
can't build an assembly for each level. 

Finally, I would need to merge all them at the end, and I don't know how I 
could do that.

Thanks

Damien

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



Re: depencency version required

2006-06-07 Thread John Casey

When you put versions into those dependencies in your ear project, and
*then* run `mvn help:effective-pom`, to you see the dependencyManagement
section?

If not, there is something wrong with your parent specification...it may be
something as simple as not using a relativePath/ where the others are, and
your parent POM isn't installed in the local repository...

At any rate, checking that first suggestion with effective-pom should help
determine whether inheritance is happening for this child project.

-john

On 6/6/06, Lee Meador [EMAIL PROTECTED] wrote:


Alexandre,

Thanks.

I did check the parent section in the problem project. It is there and
is
exactly like the parent section in some of the other children that do
work.

Also, the fact that other child projects are dependant on the same
children
used in the problem project, and everything works fine in those projects
suggests that the dependencyManagement ids are ok. Else those other
projects
would have the same problem.

-- Lee

On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

 Look like there is a mistake in your ear pom. My guess : you probably
 forgot to add the parent section or you made a mistake in the ids you
 supplied in the parent pom dependencyManagement section.

 On 6/5/06, Lee Meador [EMAIL PROTECTED] wrote:
  I have a parent project/pom and several children using the form
 ../child1.
 
  I put the versions for all the children projects in the parent pom (in
  dependencyManagement). They are all 1.0-SNAPSHOT.
 
  In all the child projects, when one depends on another, I don't put a
  version tag in the dependency section.
 
  In the child project for my ear, if I leave the version tag out, it
  complains dependencies.dependency.version is missing but the version
 is
  supplied in the parent's dependencyManagement section just like in all
 the
  other children.
 
  The other children have no problem.
 
  mvn help:effective-pom gives the same error about missing the
dependency
  version.
 
  This only happens in the one child and only as relates to the other
 children
  (of the same parent pom) upon which it is dependent. (For example, the
 ear
  is dependent on one war project and two ejb jar projects.)
 
  The only change I have to make to build successfully is to add the
 version
  tags into the ear child project's pom.
 
  Does anyone have any ideas of where to look for this problem?
 
  -- Lee Meador
  Sent from gmail. My real email address is [EMAIL PROTECTED]
 
 

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




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




RE: [m2] war plugin - need dependencies referenced in manifest but not in WEB-INF/lib

2006-06-07 Thread Mike Perham
We use an exclude rule for WEB-INF/lib/*.jar and a custom version of the
war plugin with MWAR-39 fixed. 

-Original Message-
From: Arthur Crawford [mailto:art[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 3:02 AM
To: users@maven.apache.org
Subject: [m2] war plugin - need dependencies referenced in manifest but
not in WEB-INF/lib

Hi,
Is there a way to create a war with references to dependent jars in the
manifest's classpath entry but NOT package them in WEB-INF/lib?.  I want
to do this so I can have sevaral wars referencing the same shared jars
in the top level of an ear.

This is the war plugin configuration I have used to turn on manifest
generation.

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

Then I have tried scopeprovided/scope.  But although the jars are
omitted from WEB-INF/lib as I want, neither do they appear the manifest.
Scope compile puts everything in the manifest but also in WEB-INF/lib.
Scope runtime has the same effect as scope compile (in this context).

I have looked through all the documentation and posts I can find on this
but have seen no solution.  It seems like a common thing to want to do
when packaging shared code in wars/ears.  If it's not possible with
Maven out-of-the-box does anyone have any suggested fix or workaround?

I'm using Maven version 2.0.4 - war plugin version 2.0

Regards,

Arthur Crawford.

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



install:install-file

2006-06-07 Thread SlinnHawkins, Jon (ELS)
 
Hi, 
 
I have just set up an internal (remote) repository for all our inhouse jars
etc  How can I use install:install-file to manually place jars into this
repo ?
 
Using 
 
mvn install:install-file -DgroupId=javax.xml -DartifactId=jax-qname
-Dversion=1.1 -Dpackaging=jar -Dfile=C:\Dev
Workspaces\blah\blah\jwsdp-shared\lib\jax-qname.jar -Dgeneratepom=true
-DlocalRepository=http://localhost/WAS_511_REPO
 
is just putting the jar into the ~/.m2./.. local repo
 
Any ideas, am i being stupid ?
 
Thanks

Jon
 
 


RE: [m2] Where to put log4j.properties file

2006-06-07 Thread SlinnHawkins, Jon (ELS)
 
Hi Ben, 

Which App Sever are you using ?  WebSphere ?



ben short [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hi,
 
 Where do I have to put my log4j.properties file in a ear file for it to be
used?
 
 I have tried adding it to /src/main/resources but it dosent get picked 
 up on the app server.
 
 Ben

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



Re: Maven-EAR-Plugin - Including an EJB client in an EAR mystery

2006-06-07 Thread Stefan Arentz

On 6/7/06, Roland Asmann [EMAIL PROTECTED] wrote:

There's an ejbClientModule??? I haven't used ejb-client so far (only ejb), 
but at least I wasn't that far off! ;-)


:-)

A beer if you can find it in the documentation. (Mhuahahahahahahahaha)

S.

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



Re: available plugins

2006-06-07 Thread Jamie Bisotti

On 6/6/06, John Casey [EMAIL PROTECTED] wrote:


mvn help:describe -Dplugin=plugin-prefix -Dfull=true

or

mvn help:describe
-Dplugin=plugin-groupId:plugin-artifactId[:plugin-version]
-Dfull=true

Watch out, though...you'll get all the configuration options for every
goal
contained in the plugin! We need to work on the output for the describe
mojo...it was sort of slapped together in a hurry.

-john

On 6/6/06, kvpetrov [EMAIL PROTECTED] wrote:


 maven1 used to have a command option -P that would show you help on a
 given
 plugin.

 Basically, I have a very simple question, how can I figure what are the
 goals of a particular plugin? How do I know for example that war plugin
 has
 a goal exploaded taking into account that it is not documented
anywhere?

 If it is not possible to see the goals of a plugin from a command prompt
 can
 I unpack the plugin jar and find out what are the goals available?
 --
 View this message in context:
 http://www.nabble.com/available-plugins-t1644486.html#a4738730
 Sent from the Maven - Users forum at Nabble.com.


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





Wow!  That really makes me miss good ole -P.

--
Jamie Bisotti


RE: [m2] Where to put log4j.properties file

2006-06-07 Thread Mike Perham
Containers usually have their own logging configuration.  WebSphere has
a config page in their admin console.  Jboss has a log4j.xml
configuration file.  Check the docs. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
ben short
Sent: Wednesday, June 07, 2006 9:04 AM
To: Maven Users List
Subject: Re: [m2] Where to put log4j.properties file

Jon,

Im using Glassfish

Ben

On 6/7/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:

 Hi Ben,

 Which App Sever are you using ?  WebSphere ?



 ben short [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]...
  Hi,
 
  Where do I have to put my log4j.properties file in a ear file for it

  to be
 used?
 
  I have tried adding it to /src/main/resources but it dosent get 
  picked up on the app server.
 
  Ben

 -
 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: Maven 2 and WTP

2006-06-07 Thread Jamie Bisotti

On 6/7/06, Zeiler Christian, Bedag [EMAIL PROTECTED] wrote:


Hello

Yesterday I tried to convert a maven project into an eclipse wtp project
with the maven-eclipse-plugin. But unfortunately it doesn't work. Maven
doesn't create all off the needed files for eclipse so I wasn't able to
import the project in the server view of eclipse.

Maven: 2.04
WTP: 1.0
Eclipse: 3.2 RC7

I studied all the documentation under
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html and
searched the internet. I would really appreciate if anyone can provide
me a running real world example (not only hello world).

Cheers Christian




If you expect to get any help, you are going to have to be more specific
about what the actual problem is.  What's is created?  What do you think is
missing?  What, if any, errors are Maven and/or Eclipse showing you?

--
Jamie Bisotti


Re: [m2] maven-release-plugin: how about a prompt for customizing commit comment during release preparation ?

2006-06-07 Thread Jorg Heymans

Sounds like a perfectly valid usecase to me, create a ticket on
jira.codehaus.org/browse/MRELEASE in case nobody else chips in here.

Jorg

On 6/6/06, Dario Luis Coneglian Oliveros [EMAIL PROTECTED] wrote:


Hi there,

I've been trying to use maven-release-plugin to prepare a release, but
whenever I do that, it fails since I have a SVN precommit hook that
integrates with an issue tracking system  which in turn waits for a
comment containing an issue number. Since release plugin adds its own
comment, such as [maven-release-plugin] prepare release ..., this
integration fails. So I was wondering if this could be prompted in the
same way for the release and next development iteration versions.
How about that ?

Please let me know any comments on this.
Thanks,
Dário



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




Re: Maven 2 and WTP

2006-06-07 Thread Paul Spencer

Please be aware their are Release Candidates of WTP v1.5 currently available. I
would encourage that any changes to the eclipse plugin support WTP 1.5.

Paul Spencer

RJamie Bisotti wrote:

On 6/7/06, Zeiler Christian, Bedag [EMAIL PROTECTED] wrote:


Hello

Yesterday I tried to convert a maven project into an eclipse wtp project
with the maven-eclipse-plugin. But unfortunately it doesn't work. Maven
doesn't create all off the needed files for eclipse so I wasn't able to
import the project in the server view of eclipse.

Maven: 2.04
WTP: 1.0
Eclipse: 3.2 RC7

I studied all the documentation under
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html and
searched the internet. I would really appreciate if anyone can provide
me a running real world example (not only hello world).

Cheers Christian




If you expect to get any help, you are going to have to be more specific
about what the actual problem is.  What's is created?  What do you think is
missing?  What, if any, errors are Maven and/or Eclipse showing you?




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



Re: install:install-file

2006-06-07 Thread Roland Asmann
You can't with install:install-file, you should use deploy:deploy-file!

Roland


On Wednesday 07 June 2006 16:01, SlinnHawkins, Jon (ELS) wrote:
 Hi,

 I have just set up an internal (remote) repository for all our inhouse jars
 etc  How can I use install:install-file to manually place jars into
 this repo ?

 Using

 mvn install:install-file -DgroupId=javax.xml -DartifactId=jax-qname
 -Dversion=1.1 -Dpackaging=jar -Dfile=C:\Dev
 Workspaces\blah\blah\jwsdp-shared\lib\jax-qname.jar -Dgeneratepom=true
 -DlocalRepository=http://localhost/WAS_511_REPO

 is just putting the jar into the ~/.m2./.. local repo

 Any ideas, am i being stupid ?

 Thanks

 Jon


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



RE: install:install-file

2006-06-07 Thread SlinnHawkins, Jon (ELS)
So I WAS being stupid ;-)

Thanks

 

-Original Message-
From: Roland Asmann [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Maven Users List
Subject: Re: install:install-file

You can't with install:install-file, you should use deploy:deploy-file!

Roland


On Wednesday 07 June 2006 16:01, SlinnHawkins, Jon (ELS) wrote:
 Hi,

 I have just set up an internal (remote) repository for all our inhouse 
 jars etc  How can I use install:install-file to manually place 
 jars into this repo ?

 Using

 mvn install:install-file -DgroupId=javax.xml -DartifactId=jax-qname
 -Dversion=1.1 -Dpackaging=jar -Dfile=C:\Dev 
 Workspaces\blah\blah\jwsdp-shared\lib\jax-qname.jar 
 -Dgeneratepom=true -DlocalRepository=http://localhost/WAS_511_REPO

 is just putting the jar into the ~/.m2./.. local repo

 Any ideas, am i being stupid ?

 Thanks

 Jon


-
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] war plugin - need dependencies referenced in manifest but not i

2006-06-07 Thread a crawford

Ahh... thanks Mike that's great.  That was one of the things I tried, and
then gave up on when it didn't
work (using war plugin v2.0).  Is it possible to get hold of the fixed war
plugin version 2.0.1, or am I better
off using the older 2.0-beta-2 for now and waiting for the next release.
Regards,
Arthur.
Mike Perham wrote:
 
 We use an exclude rule for WEB-INF/lib/*.jar and a custom version of the
 war plugin with MWAR-39 fixed. 
 
 -Original Message-
 From: Arthur Crawford [mailto:art[EMAIL PROTECTED] 
 Sent: Wednesday, June 07, 2006 3:02 AM
 To: users@maven.apache.org
 Subject: [m2] war plugin - need dependencies referenced in manifest but
 not in WEB-INF/lib
 
 Hi,
 Is there a way to create a war with references to dependent jars in the
 manifest's classpath entry but NOT package them in WEB-INF/lib?.  I want
 to do this so I can have sevaral wars referencing the same shared jars
 in the top level of an ear.
 
 This is the war plugin configuration I have used to turn on manifest
 generation.
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.0/version
 configuration
 archive
 manifest
 addClasspathtrue/addClasspath
 /manifest
 /archive
 /configuration
 /plugin
 
 Then I have tried scopeprovided/scope.  But although the jars are
 omitted from WEB-INF/lib as I want, neither do they appear the manifest.
 Scope compile puts everything in the manifest but also in WEB-INF/lib.
 Scope runtime has the same effect as scope compile (in this context).
 
 I have looked through all the documentation and posts I can find on this
 but have seen no solution.  It seems like a common thing to want to do
 when packaging shared code in wars/ears.  If it's not possible with
 Maven out-of-the-box does anyone have any suggested fix or workaround?
 
 I'm using Maven version 2.0.4 - war plugin version 2.0
 
 Regards,
 
 Arthur Crawford.
 
 -
 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]
 
 
 
--
View this message in context: 
http://www.nabble.com/-m2--war-plugin---need-dependencies-referenced-in-manifest-but-not-in-WEB-INF-lib-t1746387.html#a4752265
Sent from the Maven - Users forum at Nabble.com.


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



RE: install:install-file

2006-06-07 Thread Roland Asmann
You didn't hear ME say that! ;-)



On Wednesday 07 June 2006 16:23, SlinnHawkins, Jon (ELS) wrote:
 So I WAS being stupid ;-)

 Thanks



 -Original Message-
 From: Roland Asmann [mailto:[EMAIL PROTECTED]
 Sent: 07 June 2006 15:21
 To: Maven Users List
 Subject: Re: install:install-file

 You can't with install:install-file, you should use deploy:deploy-file!

 Roland

 On Wednesday 07 June 2006 16:01, SlinnHawkins, Jon (ELS) wrote:
  Hi,
 
  I have just set up an internal (remote) repository for all our inhouse
  jars etc  How can I use install:install-file to manually place
  jars into this repo ?
 
  Using
 
  mvn install:install-file -DgroupId=javax.xml -DartifactId=jax-qname
  -Dversion=1.1 -Dpackaging=jar -Dfile=C:\Dev
  Workspaces\blah\blah\jwsdp-shared\lib\jax-qname.jar
  -Dgeneratepom=true -DlocalRepository=http://localhost/WAS_511_REPO
 
  is just putting the jar into the ~/.m2./.. local repo
 
  Any ideas, am i being stupid ?
 
  Thanks
 
  Jon

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



Packaging Question

2006-06-07 Thread Shahid Faiz

Hi All,

I am new to maven. After studying some material on it, my understanding 
is every POM file should correspond to one JAR/WAR/EAR.


I have a scenario, my project contains some file which are only packaged 
if the target JVM version is 1.5 and some of them are included if target 
JVM version is 1.2. If i create one module for common files and two for 
different versions of JVM, but at the end I want one JAR file for 
1.2/1.3 and one for 1.5.


I don't want to have one JAR file for common classes and separate file 
JVM specific files.


Kindly tell me how can i do this, or refer me some material on this.


Regards
Shahid


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



Re: Packaging Question

2006-06-07 Thread Roland Asmann
Check out all the threads and docs about the maven-assemply-plugin...

Roland



On Wednesday 07 June 2006 16:34, Shahid Faiz wrote:
 Hi All,

 I am new to maven. After studying some material on it, my understanding
 is every POM file should correspond to one JAR/WAR/EAR.

 I have a scenario, my project contains some file which are only packaged
 if the target JVM version is 1.5 and some of them are included if target
 JVM version is 1.2. If i create one module for common files and two for
 different versions of JVM, but at the end I want one JAR file for
 1.2/1.3 and one for 1.5.

 I don't want to have one JAR file for common classes and separate file
 JVM specific files.

 Kindly tell me how can i do this, or refer me some material on this.


 Regards
 Shahid


 -
 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: Packaging Question

2006-06-07 Thread Geoffrey De Smet

What is your target JVM?

If it's the one on your developer's platform, take a look at profiles 
(see free M2 book) and make a profile with build sourcefolders 
excludes if the profile is JVM 1.2.


If you really want 2 different jars (to distribute), you need 2 
different pom.xml's (= different groupId:artifactId) so you can push 
them both to the repository.
But instead of doing it the good way (different source folders and A 
depends on B), you could hack it and make A and B use the same source 
folder and have no dependencies on each other.


Shahid Faiz wrote:

Hi All,

I am new to maven. After studying some material on it, my understanding 
is every POM file should correspond to one JAR/WAR/EAR.


I have a scenario, my project contains some file which are only packaged 
if the target JVM version is 1.5 and some of them are included if target 
JVM version is 1.2. If i create one module for common files and two for 
different versions of JVM, but at the end I want one JAR file for 
1.2/1.3 and one for 1.5.


I don't want to have one JAR file for common classes and separate file 
JVM specific files.


Kindly tell me how can i do this, or refer me some material on this.


Regards
Shahid


--
With kind regards,
Geoffrey De Smet


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



Re: [M2] Snapshots deployed to server not being found

2006-06-07 Thread Alexandre Poitras

Thank, in my case it was just a matter of definition order.

On 6/6/06, ben short [EMAIL PROTECTED] wrote:

Hi All,

Seems it was down to my maven config

Here is what I added to my settings.xml


profile
  idnexusalpha/id
- repositories
- repository
- releases
  updatePolicynever/updatePolicy
  /releases
- snapshots
  updatePolicynever/updatePolicy
  /snapshots
  idinternal-snapshot/id
  urlhttp://192.168.6.194/proximity/repository/url
  /repository
- repository
- releases
  updatePolicynever/updatePolicy
  enabledfalse/enabled
  /releases
- snapshots
  updatePolicyinterval:30/updatePolicy
  /snapshots
  idinternal-released/id
  urlhttp://192.168.6.194/proximity/repository/url
  /repository
  /repositories
  /profile
  /profiles

Hope this is a help to somebody.

Ben

On 6/6/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
 In my case, snapshots are configured correctly. In fact, it was
 working like a charm before. I have tried on several desktops just to
 be sure. I also seem to have problems with the Apache snapshot
 repository.

 On 6/5/06, Tamás Cservenák [EMAIL PROTECTED] wrote:
  Hi all,
 
  as for Proximity, i can only repeat my previous statement: Px currently logs
  every request (done by Px-webapp frontent servlet).
 
  My huntch is that you did not configure maven properly to use proximity as
  snapshot repos. Per default, maven does not have snapshot repo (as far as i
  know...).
 
  It could be a little awkward, but you should direct maven to proximity
  twice:
  once as central mirror and once as snapshot repo for your inhouse snapshots.
 
  There is no contradiction in this little trick, since your
  px-published-inhouse repo contains your own snapshots (px will not find them
  on any remote peer) -- these repos ARE disjunct, no?
 
  ~t~
 
  On 6/5/06, ben short [EMAIL PROTECTED] wrote:
  
   Tamás,
  
   There are logs, and I can see requests for the released version of the
   artifact im after, but nothing for the snapshot requests.
  
   I have tried the -U flag also.
  
   I havent tried what Olivier suggested yet, will try it tomorrow.
  
   Ben
  
   On 6/5/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
I'm not using proximity but Maven proxy at the moment.
   
On 6/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
   wrote:
 Same here...one thing I think I did that seemed to work was to throw
   the
 -U cmd on the compile, ie. mvn -U compile.  Try that and let us know
 if it works.

 --Rudy

 -Original Message-
 From: Paul Spencer [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 05, 2006 10:29 AM
 To: Maven Users List
 Subject: Re: [M2] Snapshots deployed to server not being found

 Ben,
 I have seen the same behavior.  Although I have not had time to
 determine what is
 the root cause, I think it may the IDE, Eclipse in my case, locking
   the
 dependency
 in the local repository and Maven not complaining when it can not
 replace the file.  Again
 I have not had time to verify this, it is just a hunch.

 Paul Spencer

 ben short wrote:
  Hi,
 
  I am trying to include a snapshot that has been deployed to our
  internal repository. When I do mvn compile, maven complains that it
  couldn't resolve the dependency.
 
  Is this a bug with maven 2.0.4?
 
  Ben
 
 
   -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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


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

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



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




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



[m2] Assembling modules and dependencies, pom vs jar

2006-06-07 Thread Andrew Niefer
I have what amounts to an aggregator pom that I use to create an assembly 
of a few different jars.

I do this by having my aggregator depend on the jars I want in my zip and 
using a dependencySet in my assembly descriptor.  It seems that 
assembly:assembly only actually puts anything in the zip if my aggregator 
has packaging jar.  This is not much of a problem if the jars I am 
assembling are already built and in my repo.

However,  I want to first build the jars instead of just getting them out 
of the repo.  So I add them as modules to my aggregator and must change my 
aggregator to have packaging pom.  I then use a moduleSet in my 
descriptor, but the assembly:assembly goal just creates empty zips.

Does anyone know why the assembly plugin only actually works when I have 
my packaging as jar?  Surely assembling a multi-module project into a zip 
is not something that should be very difficult.

-Andrew

JSP compiler plugin

2006-06-07 Thread Eugeny N Dzhurinsky
plugin
groupIdorg.codehaus.mojo/groupId


artifactIdjspc-maven-plugin/artifactId

executions
execution
idjspc/id
phasecompile/phase
goals
goalcompile/goal
/goals
configuration
inputWebXml./WEB-INF/web.xml/inputWebXml
injectStringnonexistent/injectString
outputWebXml/dev/null/outputWebXml
warSourceDirectory./warSourceDirectory
workingDirectoryjsp-compile/workingDirectory
/configuration
/execution
/executions
/plugin


for soem reason I'm getting this error:

[INFO] [jspc:compile {execution: jspc}]
[INFO] Built File: /MML/index.jsp
[WARN] Internal Error: File /WEB-INF/web.xml not found
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error

Embedded error: File /WEB-INF/tld/c.tld not found

But there is WEB-INF/tld directory inside module and it contains c.tld file.
Also WEB-INF/web.xml exists.

Any ideas what needs to be specified?

-- 
Eugene N Dzhurinsky

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



RE: [m2] war plugin - need dependencies referenced in manifest but not i

2006-06-07 Thread Mike Perham
I would try beta-2.  If it works fine for you, there's no need to mess
around with 2.0. 

-Original Message-
From: a crawford [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 9:27 AM
To: users@maven.apache.org
Subject: RE: [m2] war plugin - need dependencies referenced in manifest
but not i


Ahh... thanks Mike that's great.  That was one of the things I tried,
and then gave up on when it didn't work (using war plugin v2.0).  Is it
possible to get hold of the fixed war plugin version 2.0.1, or am I
better off using the older 2.0-beta-2 for now and waiting for the next
release.
Regards,
Arthur.
Mike Perham wrote:
 
 We use an exclude rule for WEB-INF/lib/*.jar and a custom version of 
 the war plugin with MWAR-39 fixed.
 
 -Original Message-
 From: Arthur Crawford [mailto:art[EMAIL PROTECTED]
 Sent: Wednesday, June 07, 2006 3:02 AM
 To: users@maven.apache.org
 Subject: [m2] war plugin - need dependencies referenced in manifest 
 but not in WEB-INF/lib
 
 Hi,
 Is there a way to create a war with references to dependent jars in 
 the manifest's classpath entry but NOT package them in WEB-INF/lib?.  
 I want to do this so I can have sevaral wars referencing the same 
 shared jars in the top level of an ear.
 
 This is the war plugin configuration I have used to turn on manifest 
 generation.
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.0/version
 configuration
 archive
 manifest
 addClasspathtrue/addClasspath
 /manifest
 /archive
 /configuration
 /plugin
 
 Then I have tried scopeprovided/scope.  But although the jars are 
 omitted from WEB-INF/lib as I want, neither do they appear the
manifest.
 Scope compile puts everything in the manifest but also in WEB-INF/lib.
 Scope runtime has the same effect as scope compile (in this context).
 
 I have looked through all the documentation and posts I can find on 
 this but have seen no solution.  It seems like a common thing to want 
 to do when packaging shared code in wars/ears.  If it's not possible 
 with Maven out-of-the-box does anyone have any suggested fix or
workaround?
 
 I'm using Maven version 2.0.4 - war plugin version 2.0
 
 Regards,
 
 Arthur Crawford.
 
 -
 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]
 
 
 
--
View this message in context:
http://www.nabble.com/-m2--war-plugin---need-dependencies-referenced-in-
manifest-but-not-in-WEB-INF-lib-t1746387.html#a4752265
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]



inhouse WebSphere repo

2006-06-07 Thread SlinnHawkins, Jon (ELS)
Hi, 
 
I'm trying to find a nice way of building a repository for all the IBM
WebSphere Application Server jars.
 
To explain a little background.
 
dev environment
Eclipse
Tomcat
 
Live environment
WebSphere Application Server 5.1
 
I would like to be able to build against the jars that are shipped with
WebSphere rather than the ones available via ibiblio or Sun.
 
So what i am trying to achieve is to create a repository that contains all
the jars from the /lib folder of the WAS installation.
 
I have seen the guide on the Maven site regarding the Sun Jars, and from
what i can see IBM seem to have even less naming conventions.
 
 
Has anyone done this kind of thing?
 
Does anyone build against IBM specific jars ?
 
Can anyone offer any thoughts ?
 
Thanks
 
Jon
 
 
 
 
 
 
 


Re: inhouse WebSphere repo

2006-06-07 Thread Nicolas De Loof


I'm using com.ibm as groupId for IBM jars (websphere  MQ) in my private 
repo.


If you are using lot's of IBM jars you may use a more specific groupIds 
like com.ibm.websphere


Nico.

SlinnHawkins, Jon (ELS) a écrit :
Hi, 
 
I'm trying to find a nice way of building a repository for all the IBM

WebSphere Application Server jars.
 
To explain a little background.
 
dev environment

Eclipse
Tomcat
 
Live environment

WebSphere Application Server 5.1
 
I would like to be able to build against the jars that are shipped with

WebSphere rather than the ones available via ibiblio or Sun.
 
So what i am trying to achieve is to create a repository that contains all

the jars from the /lib folder of the WAS installation.
 
I have seen the guide on the Maven site regarding the Sun Jars, and from

what i can see IBM seem to have even less naming conventions.
 
 
Has anyone done this kind of thing?
 
Does anyone build against IBM specific jars ?
 
Can anyone offer any thoughts ?
 
Thanks
 
Jon
 
 
 
 
 
 
 

  


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]



Re: [M2] log4j output does not display when running surefire plugin

2006-06-07 Thread Stephen Coy
I don't build log4j configuration into my production applications. I  
include it as part of the server configuration. I've found that doing  
it any other way frequently leads to classloader wars because many  
application/web servers have their own copy of log4j anyway.


Your test results are non-deterministic because they are dependent  
upon an environment variable. The results may change depending upon  
the value of that variable.


As for your log statements not appearing, how are you declaring your  
Loggers in the code?


Also, try to get  a simple log4j configuration working first.

Steve C.

On 07/06/2006, at 11:29 PM, Toni Price wrote:



The thing is though, it doesn't seem to be a problem with log4j  
*finding* the

configuration file. That seems ok.

When you say you usually just put your log4j config file in
src/test/resources, I assume you mean you use a default name (like
log4j.properties) and then put another log4j.properties in
src/main/resources for your production environment? If that's the  
case then
I'm not sure why that would be any more deterministic than having  
two log4j

properties files that are simply named differently for testing and
production (and the correct file name is chosen according to the
environment). I mean, somehow or another you need to have different
configurations for testing and production, right? I'm inclined to  
think that
naming the files differently is even possibly clearer, since then  
it should
be obvious from the file name which configuration is being used. Or  
have I

misunderstood? (Entirely possible!)

In any event, I've tried removing the systemProperties settings and  
putting
a log4j.properties in src/test/resources as you've suggested, but  
exactly

the same thing happens: log4j appears to be configured, but there's no
logging output other than statements from log4j itself. I'm  
probably missing
something obvious here, otherwise I'm sure lots more people would  
be having

this problem ... just wish I could see what it was :)


--
View this message in context: http://www.nabble.com/-M2--log4j- 
output-does-not-display-when-running-surefire-plugin- 
t1747117.html#a4751277

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]



EJB Client dependencies

2006-06-07 Thread Todd Nine

Hi all,
 I'm declaring an EJB client with the following decencies in a webapp, and
the common interfaces and beans for parameters and return values


  dependency
 groupIdata.partnership/groupId
 artifactIdpartnershipCommon/artifactId
 version1.0.0-SNAPSHOT/version
   /dependency
   dependency
 groupIdata.partnership/groupId
 artifactIdpartnershipEJB/artifactId
 version1.0.0-SNAPSHOT/version
 typeejb-client/type
   /dependency

This works for requiring the EJB client, however, I'm also receiving
partnershipBusiness, partnershipDataAccess, etc etc.  These are all required
in my EJB, but I don't want these transitive dependencies to be deployed on
the remote client (The webapp).  Short of an excludes directive in the
webapp when I declare the ejb client dependency, is there any parameter I
can use in the EJB plugin to exclude all decencies of the EJB on the client
side when I build the ejb client?

Thanks,
Todd


Re: EJB Client dependencies

2006-06-07 Thread Roland Asmann
Make them 'provided' in the ejb-client...

Roland



On Wednesday 07 June 2006 18:48, Todd Nine wrote:
 Hi all,
   I'm declaring an EJB client with the following decencies in a webapp, and
 the common interfaces and beans for parameters and return values


dependency
   groupIdata.partnership/groupId
   artifactIdpartnershipCommon/artifactId
   version1.0.0-SNAPSHOT/version
 /dependency
 dependency
   groupIdata.partnership/groupId
   artifactIdpartnershipEJB/artifactId
   version1.0.0-SNAPSHOT/version
   typeejb-client/type
 /dependency

 This works for requiring the EJB client, however, I'm also receiving
 partnershipBusiness, partnershipDataAccess, etc etc.  These are all
 required in my EJB, but I don't want these transitive dependencies to be
 deployed on the remote client (The webapp).  Short of an excludes directive
 in the webapp when I declare the ejb client dependency, is there any
 parameter I can use in the EJB plugin to exclude all decencies of the EJB
 on the client side when I build the ejb client?

 Thanks,
 Todd


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



Re: [M2] log4j output does not display when running surefire plugin

2006-06-07 Thread Toni Price

Well I knew it must have been something entirely dumb - as it turns out an
NPE was stopping my logging statements from being executed (duh!). This was
a case of looking in the wrong place ... I've had various problems with M2
plugins so I guess I was too quick to assume it was something to do with
surefire. Sorry for the trouble and thanks for your advice.

As a side question - and please forgive me labouring the point but it's
still not obvious to me - when you say you include your log4j configuration
as part of the server configuration, you would still need to deploy to (say)
a web container in a testing environment that's different from your live
server, so however it's configured the details may change. I still can't see
how you would automate this for deployment to both a development and live
environment without some sort of build switch (e.g. mvn -Denv=live [...])
and then decisions based on that - though I take your point about wanting to
avoid any classloader wars. I guess what I'm asking is, if you have the time
to elaborate on what you mean, I'd be interested to hear what you say.

Thanks ...
Toni


--
View this message in context: 
http://www.nabble.com/-M2--log4j-output-does-not-display-when-running-surefire-plugin-t1747117.html#a4755965
Sent from the Maven - Users forum at Nabble.com.


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



How to include externel .jar libraries into a a package?

2006-06-07 Thread Marc Weber
Hi. 

I want to create a package for a sourceforge project.

It contains 
src/javafiles.java 
and 
lib/somejar1,2,3,...jar

Now I want include the lib/somejar.jar
into the distribution but I don't know how to do this?

Unpack the jars and add the .class files using 
project
build
  resources
resource
  directory
?

Marc Weber

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



Wagon-webdav distribution - where to put username/password

2006-06-07 Thread Darren Hartford
Hey all,
I'm trying to distribute artifacts to a webdav server, but I do not seem
to know where to put the username/password.  When the webdav server
(apache 2.2) is un-secured, it works fine.

Configured Maven as follows:

Pom.xml
=
distributionManagement
repository
idmy-secure-repo/id
urldav:http://reposerver/myrepo/url
...
==

Then tried settings.xml
==
servers
server
  idmy-secure-repo/id
  usernameuserthingy/username
passwordpasswordthingy/password
..
==

Any ideas please?  If this is documented somewhere, please point me to
the location. Been 'working' with this for most of this week, a quick
answer would definitely help!

-D

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



[m2] How to include a file in a WAR file's /META-INF folder?

2006-06-07 Thread Mark Reynolds
If I include a file (not talking about MANIFEST.MF here) in 
src/main/resources/META-INF, it ends up in WEB-INF/classes/META-INF in 
the WAR file. What is the correct way to include a file in the WAR 
file's META-INF?


-- Mark R


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



ClearCase and Continuum

2006-06-07 Thread Mike Lundin

I'm very much a rookie with Continuum (and Maven for that matter) and am
trying to set up Continuum to work with my already existing ClearCase
views.  We're running ClearCase LT and I don't really want to go straight to
the viewstore.  The data in our streams is extensive and I would rather just
use the local view for updating and such and control that through the Ant
build.  Is there a way to do this and what would the SCM look like?

Any help would be greatly appreciated.

Thanks much,
Mike Lundin


RE: Wagon-webdav distribution - where to put username/password

2006-06-07 Thread Darren Hartford
Reposting on Wagon user list, although it's not that active...

Attempting to use an Apache 2.2 webdav server to distribute artifacts
(see below details).

*Require username/password authentication.
*Will be testing https right after, so please let me know of any issues
related to that as well :-)

Thanks,
-D

 -Original Message-
 From: Darren Hartford 
 Sent: Wednesday, June 07, 2006 2:11 PM
 To: users@maven.apache.org
 Subject: Wagon-webdav distribution - where to put username/password
 
 Hey all,
 I'm trying to distribute artifacts to a webdav server, but I 
 do not seem to know where to put the username/password.  When 
 the webdav server (apache 2.2) is un-secured, it works fine.
 
 Configured Maven as follows:
 
 Pom.xml
 =
 distributionManagement
 repository
 idmy-secure-repo/id
 urldav:http://reposerver/myrepo/url
 ...
 ==
 
 Then tried settings.xml
 ==
 servers
 server
   idmy-secure-repo/id
   usernameuserthingy/username
   passwordpasswordthingy/password
 ..
 ==
 
 Any ideas please?  If this is documented somewhere, please 
 point me to the location. Been 'working' with this for most 
 of this week, a quick answer would definitely help!
 
 -D

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



Re: Maven2 book version 1.1?

2006-06-07 Thread Carlos Sanchez

In Acrobat reader you can click on the Bookmarks tab and it gives you
all the sections of the book and you click on them and get placed in
the section you want.

On 6/4/06, Jo Vandermeeren [EMAIL PROTECTED] wrote:

Hi Carlos,

Clickable links in the table of contents would be nice too..

Cheers
Jo

On 6/2/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

 It will be done, sure. I think around end of June.






--
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: Wagon-webdav distribution - where to put username/password

2006-06-07 Thread Carlos Sanchez

I think it's due to a bug that was fixed in SVN, check
http://jira.codehaus.org/browse/WAGON-48

On 6/7/06, Darren Hartford [EMAIL PROTECTED] wrote:

Hey all,
I'm trying to distribute artifacts to a webdav server, but I do not seem
to know where to put the username/password.  When the webdav server
(apache 2.2) is un-secured, it works fine.

Configured Maven as follows:

Pom.xml
=
distributionManagement
repository
idmy-secure-repo/id
urldav:http://reposerver/myrepo/url
...
==

Then tried settings.xml
==
servers
server
  idmy-secure-repo/id
  usernameuserthingy/username
passwordpasswordthingy/password
..
==

Any ideas please?  If this is documented somewhere, please point me to
the location. Been 'working' with this for most of this week, a quick
answer would definitely help!

-D

-
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: inhouse WebSphere repo

2006-06-07 Thread SlinnHawkins, Jon (ELS)
Hi, 

How are you naming  versioning the jars within the com.ibm group

Cheres

Jon

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



Re: ClearCase and Continuum

2006-06-07 Thread Wim Deblauwe

I know there is someone using ClearCase LT, so it should work. Look at the
documentation on the SCM website on how to configure for ClearCase LT

regards,

Wim

2006/6/7, Mike Lundin [EMAIL PROTECTED]:


I'm very much a rookie with Continuum (and Maven for that matter) and am
trying to set up Continuum to work with my already existing ClearCase
views.  We're running ClearCase LT and I don't really want to go straight
to
the viewstore.  The data in our streams is extensive and I would rather
just
use the local view for updating and such and control that through the Ant
build.  Is there a way to do this and what would the SCM look like?

Any help would be greatly appreciated.

Thanks much,
Mike Lundin




Re: [m2] How to include a file in a WAR file's /META-INF folder?

2006-06-07 Thread Thierry Barnier

I put my jars in WEB-INF/lib

Adding the following section to my POM file

 build
   plugins
 plugin
   artifactIdmaven-war-plugin/artifactId
   configuration
 archive
   manifest
 addClasspathtrue/addClasspath
 classpathPrefix./lib/classpathPrefix
   /manifest
 /archive
   /configuration
 /plugin
   /plugins
 /build

Regards

Thierry

2006/6/7, Mark Reynolds [EMAIL PROTECTED]:


If I include a file (not talking about MANIFEST.MF here) in
src/main/resources/META-INF, it ends up in WEB-INF/classes/META-INF in
the WAR file. What is the correct way to include a file in the WAR
file's META-INF?

-- Mark R


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




Re: [OT] sample httpd.conf for use with wagon-http PUT

2006-06-07 Thread Carlos Sanchez

You should try wagon-webdav
http://maven.apache.org/wagon/wagon-providers/wagon-webdav/index.html

On 6/6/06, Darren Hartford [EMAIL PROTECTED] wrote:

Sorry, problem doesn't seem to be configuration after all:
http://jira.codehaus.org/browse/WAGONHTTP-8


 -Original Message-
 From: Darren Hartford
 Sent: Tuesday, June 06, 2006 3:35 PM
 To: users@maven.apache.org
 Subject: [OT] sample httpd.conf for use with wagon-http PUT

 I seem to be somewhat ignorant on how to get Apache 2.2 to
 accept files via PUT from Maven DistributionManagement.

 Does anyone have a known/tested httpd.conf configuration
 where you can distribute artifacts and sites via an http://
 url (using PUT in the wagon-http library)?

 Pom.xml
 =
distributionManagement
 repository
 idtestrepo/id
 urlhttp://mywebserver/testrepo//url
 .

 All my tests have failed, using various Limit,
 LimitExcept and Dav On configs.  A working example would be
 a big help!

 Thanks,
 -D

-
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: ClearCase and Continuum

2006-06-07 Thread Mike Lundin

I started there, and I've got it to the point that it shuts of the -vws
flag, but the setup shown in the documentation only shows examples for
ClearCase LT that use a central viewstore, which I would like to avoid if I
can.

On 6/7/06, Wim Deblauwe [EMAIL PROTECTED] wrote:


I know there is someone using ClearCase LT, so it should work. Look at the
documentation on the SCM website on how to configure for ClearCase LT

regards,

Wim

2006/6/7, Mike Lundin  [EMAIL PROTECTED]:

 I'm very much a rookie with Continuum (and Maven for that matter) and am

 trying to set up Continuum to work with my already existing ClearCase
 views.  We're running ClearCase LT and I don't really want to go
 straight to
 the viewstore.  The data in our streams is extensive and I would rather
 just
 use the local view for updating and such and control that through the
 Ant
 build.  Is there a way to do this and what would the SCM look like?

 Any help would be greatly appreciated.

 Thanks much,
 Mike Lundin






--
Mike Lundin


Re: [m2] How to include a file in a WAR file's /META-INF folder?

2006-06-07 Thread Mark Reynolds
Thanks for the quick response, however, my question has to do with how 
to add an arbitrary file to the WAR file's META-INF directory.


I am creating a properties file with some metadata about the state of 
the source with respect to source control (repository revision, date, 
url, etc.) that I want to include in the META-INF directory of each JAR 
and WAR file artifact produced by my Maven build.


I have no problem with JAR files. The generated resource is just dropped 
in the src/main/resources/META-INF directory. But if I do the same for a 
WAR file it ends up in WEB-INF/classes/META-INF.




Thierry Barnier wrote:

I put my jars in WEB-INF/lib

Adding the following section to my POM file

 build
   plugins
 plugin
   artifactIdmaven-war-plugin/artifactId
   configuration
 archive
   manifest
 addClasspathtrue/addClasspath
 classpathPrefix./lib/classpathPrefix
   /manifest
 /archive
   /configuration
 /plugin
   /plugins
 /build

Regards

Thierry

2006/6/7, Mark Reynolds [EMAIL PROTECTED]:


If I include a file (not talking about MANIFEST.MF here) in
src/main/resources/META-INF, it ends up in WEB-INF/classes/META-INF in
the WAR file. What is the correct way to include a file in the WAR
file's META-INF?

-- Mark R


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







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



[m2] PDF version of website docs?

2006-06-07 Thread Wendy Smoak

Maven 1 has the PDF Plugin, which produces a really nice PDF version
of the website docs.
* struts.apache.org/struts-shale/struts-shale.pdf

Is there anything comparable for Maven 2?

So far I've only found this: http://jira.codehaus.org/browse/DOXIA-53

--
Wendy

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



RE: One more simple question

2006-06-07 Thread rudy.bistrovich
That does work but you didn't need to do that prior to 2.0.4.

-Original Message-
From: Midtskogen, Erik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 8:44 AM
To: Maven Users List
Subject: RE: One more simple question

Hi EJ,

Are you talking about where dependency jars end up when
assembly:assembly runs?  If you are, then configure your assembly
descriptor like so:

assembly
.
.
.
dependencySets
dependencySet
outputDirectory/lib/outputDirectory
excludes

exclude${groupId}:${artifactId}/exclude
/excludes
/dependencySet
/dependencySets
.
.
.
/assembly

The exlude prevents the artifact from the package lifecycle (e.g. the
jar created by jar:jar) from getting copied into ./lib.

I'm just a Maven newbie, so I could be totally off base, but this is
what I'm doing to get my dependency jars into target/lib.

Hope this helps.

--Erik

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 6:30 PM
To: Maven Users List
Subject: One more simple question


By default, jars are placed in the root of target, how do you move them
to target/lib?  


***
The information in this email (including any attachments) is
confidential and may be legally privileged.  Access to this e-mail by
anyone other than the intended addressee is unauthorized.  If you are
not the intended recipient of this message, any review, disclosure,
copying, distribution, retention, or any action taken or omitted to be
taken in reliance on it (including any attachments) is prohibited and
may be unlawful.  If you are not the intended recipient, please reply to
or forward a copy of this message to the sender and delete the message,
all attachments, and any copies thereof from your system and destroy any
printout thereof.

__
The information in this email (including any attachments) is
confidential and may be legally privileged. Access to this e-mail by
anyone other than the intended addressee is unauthorized. If you are not
the intended recipient of this message, any review, disclosure, copying,
distribution, retention, or any action taken or omitted to be taken in
reliance on it (including any attachments) is prohibited and may be
unlawful. If you are not the intended recipient, please reply to or
forward a copy of this message to the sender and delete the message, all
attachments, and any copies thereof from your system and destroy any
printout thereof.

-
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] How to include a file in a WAR file's /META-INF folder?

2006-06-07 Thread Mark Reynolds

NM. Doh! Just put it under src/main/webapps/META-INF.

Mark Reynolds wrote:
Thanks for the quick response, however, my question has to do with how 
to add an arbitrary file to the WAR file's META-INF directory.


I am creating a properties file with some metadata about the state of 
the source with respect to source control (repository revision, date, 
url, etc.) that I want to include in the META-INF directory of each JAR 
and WAR file artifact produced by my Maven build.


I have no problem with JAR files. The generated resource is just dropped 
in the src/main/resources/META-INF directory. But if I do the same for a 
WAR file it ends up in WEB-INF/classes/META-INF.




Thierry Barnier wrote:

I put my jars in WEB-INF/lib

Adding the following section to my POM file

 build
   plugins
 plugin
   artifactIdmaven-war-plugin/artifactId
   configuration
 archive
   manifest
 addClasspathtrue/addClasspath
 classpathPrefix./lib/classpathPrefix
   /manifest
 /archive
   /configuration
 /plugin
   /plugins
 /build

Regards

Thierry

2006/6/7, Mark Reynolds [EMAIL PROTECTED]:


If I include a file (not talking about MANIFEST.MF here) in
src/main/resources/META-INF, it ends up in WEB-INF/classes/META-INF in
the WAR file. What is the correct way to include a file in the WAR
file's META-INF?

-- Mark R


-
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: Referencing Files from a Unit Test

2006-06-07 Thread Jimisola Laursen

Hi!

I had a glance at the same thing today as we are migration to Maven from
Ant.
Decided that putting the files under resources and using getResource was the
most convenient,
but I am a Maven newbie and there might be easier ways?


URL url = Class.getResource(/ + filename);

String absoluteFilename = url.getFile();

Regards,
Jimisola
--
View this message in context: 
http://www.nabble.com/Referencing-Files-from-a-Unit-Test-t1737229.html#a4760075
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m2] PDF version of website docs?

2006-06-07 Thread Wayne Fay

I've only ever seen the M1 plugin and the DOXIA bug myself. So, it
seems like nothing is available for M2 at this time.

Wayne

On 6/7/06, Wendy Smoak [EMAIL PROTECTED] wrote:

Maven 1 has the PDF Plugin, which produces a really nice PDF version
of the website docs.
 * struts.apache.org/struts-shale/struts-shale.pdf

Is there anything comparable for Maven 2?

So far I've only found this: http://jira.codehaus.org/browse/DOXIA-53

--
Wendy

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




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



How best to specify maven-proxy - in settings.xml or as repository in pom.xml?

2006-06-07 Thread Michael Waluk

I would love some advice...

I would like developers on my team to be able to checkout our maven project
from source control (Clearcase) and run the package goal on it to build it.
Ideally they need only install the maven eclipse plugin to execute that goal
within eclipse.

I've installed maven-proxy and loaded it with the dependencies and plugins
we use so far.  So finally to my question...

What is the best way to force all the developers to use maven-proxy?  Should
I specify it in the project pom.xml with repository and
pluginRepositorytags?  Or should I put the entire maven install into
Clearcase with a
settings.xml file that specifies it with a proxy or mirror tag?

Since the maven-proxy will server multiple projects in the future it seems
like we should put it in the maven install settings.xml.  Is that what teams
are doing out there in order to simplify developers' lives (putting the
maven install with settings.xml in source control)?  We should be able to
share standard settings like this with the team automatically (rather than
each developer having to set the same settings in their personal
settings.xml).  My first attempt was to put a settings.xml file in the
project's conf directory but that didn't seem to get noticed.

As an aside, when you start maven-proxy it spits out this advice:  Add the
following to your ~/build.properties file:
maven.repo.remote=http:/machine-name:/repository  What
build.propertiesdo they mean?

Thanks for any and all help in getting us started using Maven!
- Michael


Re: How to include externel .jar libraries into a a package?

2006-06-07 Thread Wayne Fay

Install each library jar into your local repository with the
install:install-file command... Just make up reasonable groupId and
artifactIds, and hopefully you know the version numbers.

mvn install:install-file -DgroupId={xyz} -DartifactId={abc}
-Dversion={1.2.3} -Dpackaging=jar -Dfile=lib/xyz-abc-1.2.3.jar
-Dgeneratepom=true

Then in your pom, add dependencies for each library jar you've just installed.

Before you do all this work, you might want to make sure the Jars
don't already exist in a Maven repository somewhere...

Wayne

On 6/7/06, Marc Weber [EMAIL PROTECTED] wrote:

Hi.

I want to create a package for a sourceforge project.

It contains
src/javafiles.java
and
lib/somejar1,2,3,...jar

Now I want include the lib/somejar.jar
into the distribution but I don't know how to do this?

Unpack the jars and add the .class files using
project
build
 resources
   resource
 directory
?

Marc Weber

-
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: inhouse WebSphere repo

2006-06-07 Thread Carlos Sanchez

You can submit your poms for inclusion in ibiblio making sure that
everybody follos some naming conventions

On 6/7/06, SlinnHawkins, Jon (ELS) [EMAIL PROTECTED] wrote:

Hi,

I'm trying to find a nice way of building a repository for all the IBM
WebSphere Application Server jars.

To explain a little background.

dev environment
Eclipse
Tomcat

Live environment
WebSphere Application Server 5.1

I would like to be able to build against the jars that are shipped with
WebSphere rather than the ones available via ibiblio or Sun.

So what i am trying to achieve is to create a repository that contains all
the jars from the /lib folder of the WAS installation.

I have seen the guide on the Maven site regarding the Sun Jars, and from
what i can see IBM seem to have even less naming conventions.


Has anyone done this kind of thing?

Does anyone build against IBM specific jars ?

Can anyone offer any thoughts ?

Thanks

Jon












--
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: How best to specify maven-proxy - in settings.xml or as repository in pom.xml?

2006-06-07 Thread Wayne Fay

We use ~/.m2/settings.xml for Maven-proxy configurations. If you use
repo in pom.xml, then your developers will always hit Central when
they build, which you probably want to avoid.

I believe the build.properties reference is simply leftover from M1
and can be safely ignored for those of us using M2.

Wayne

On 6/7/06, Michael Waluk [EMAIL PROTECTED] wrote:

I would love some advice...

I would like developers on my team to be able to checkout our maven project
from source control (Clearcase) and run the package goal on it to build it.
Ideally they need only install the maven eclipse plugin to execute that goal
within eclipse.

I've installed maven-proxy and loaded it with the dependencies and plugins
we use so far.  So finally to my question...

What is the best way to force all the developers to use maven-proxy?  Should
I specify it in the project pom.xml with repository and
pluginRepositorytags?  Or should I put the entire maven install into
Clearcase with a
settings.xml file that specifies it with a proxy or mirror tag?

Since the maven-proxy will server multiple projects in the future it seems
like we should put it in the maven install settings.xml.  Is that what teams
are doing out there in order to simplify developers' lives (putting the
maven install with settings.xml in source control)?  We should be able to
share standard settings like this with the team automatically (rather than
each developer having to set the same settings in their personal
settings.xml).  My first attempt was to put a settings.xml file in the
project's conf directory but that didn't seem to get noticed.

As an aside, when you start maven-proxy it spits out this advice:  Add the
following to your ~/build.properties file:
maven.repo.remote=http:/machine-name:/repository  What
build.propertiesdo they mean?

Thanks for any and all help in getting us started using Maven!
- Michael




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



Re: eclipse, wtp, maven and web apps

2006-06-07 Thread Alexandre Poitras

It isn't a problem, your ide compiling/debugging functionalities are
enough to write and test your code. In that case, you just need Maven
to produce a valid Eclipse project according to the pom. If it's still
bother you, just turn off Eclipse automatic build features and run
Maven from Eclipse as an external tool.

Most of the time I use Maven only to execute indivual goals while I
let continuum, which run on a different server, in charge of
retrieving the project lastest sources and deploying nightly builds on
our internal repository.

Work like a charm in our case.

On 6/6/06, kvpetrov [EMAIL PROTECTED] wrote:


Maven has an eclipse plugin that would create eclipse configuration for a WTP
web application.

Let's imagine that you have created a web application in maven and now you
want to work with it using Eclipse. You would do something like this:
mvn -Dwtpversion=1.0 eclipse:eclipse

Now, you open Eclipse, create a server (for example a Tomcat server), open
the project and publish it to the server you have just defined.
The publishing part I believe is wrong. WTP plugin starts assembling the
application for you which does not make any sense for me.

It will create a folder
workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/ROOT
and will copy your src/main/webapp into it. Then it will populate the
WEB-INF/lib folder with your dependencies, and finally will copy your
compiled classes under WEB-INF/classes.

Though this might work for you, it is definitely not the right approach. It
is not WTP plugin which should assemble the application. Maven already
creates the application in target/webapp This is the folder that needs to be
published.
--
View this message in context: 
http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4738255
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: How best to specify maven-proxy - in settings.xml or as repository in pom.xml?

2006-06-07 Thread Alexandre Poitras

You should declare repositories in both and mirrors in settings.xml. A
corporation wide parent pom is the best solution to define
repositories but you still need to define them in settings.xml to
handle 2 specific cases :

1) Being able to retrieve the parent pom.
2) Run indivual goals that don't need a pom.


On 6/7/06, Wayne Fay [EMAIL PROTECTED] wrote:

We use ~/.m2/settings.xml for Maven-proxy configurations. If you use
repo in pom.xml, then your developers will always hit Central when
they build, which you probably want to avoid.

I believe the build.properties reference is simply leftover from M1
and can be safely ignored for those of us using M2.

Wayne

On 6/7/06, Michael Waluk [EMAIL PROTECTED] wrote:
 I would love some advice...

 I would like developers on my team to be able to checkout our maven project
 from source control (Clearcase) and run the package goal on it to build it.
 Ideally they need only install the maven eclipse plugin to execute that goal
 within eclipse.

 I've installed maven-proxy and loaded it with the dependencies and plugins
 we use so far.  So finally to my question...

 What is the best way to force all the developers to use maven-proxy?  Should
 I specify it in the project pom.xml with repository and
 pluginRepositorytags?  Or should I put the entire maven install into
 Clearcase with a
 settings.xml file that specifies it with a proxy or mirror tag?

 Since the maven-proxy will server multiple projects in the future it seems
 like we should put it in the maven install settings.xml.  Is that what teams
 are doing out there in order to simplify developers' lives (putting the
 maven install with settings.xml in source control)?  We should be able to
 share standard settings like this with the team automatically (rather than
 each developer having to set the same settings in their personal
 settings.xml).  My first attempt was to put a settings.xml file in the
 project's conf directory but that didn't seem to get noticed.

 As an aside, when you start maven-proxy it spits out this advice:  Add the
 following to your ~/build.properties file:
 maven.repo.remote=http:/machine-name:/repository  What
 build.propertiesdo they mean?

 Thanks for any and all help in getting us started using Maven!
 - Michael



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




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



Re: How best to specify maven-proxy - in settings.xml or as repository in pom.xml?

2006-06-07 Thread Alexandre Poitras

By the way, the proxy element in settings.xml is used to specify a
HTTP proxy not a Maven-proxy.

On 6/7/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

You should declare repositories in both and mirrors in settings.xml. A
corporation wide parent pom is the best solution to define
repositories but you still need to define them in settings.xml to
handle 2 specific cases :

1) Being able to retrieve the parent pom.
2) Run indivual goals that don't need a pom.


On 6/7/06, Wayne Fay [EMAIL PROTECTED] wrote:
 We use ~/.m2/settings.xml for Maven-proxy configurations. If you use
 repo in pom.xml, then your developers will always hit Central when
 they build, which you probably want to avoid.

 I believe the build.properties reference is simply leftover from M1
 and can be safely ignored for those of us using M2.

 Wayne

 On 6/7/06, Michael Waluk [EMAIL PROTECTED] wrote:
  I would love some advice...
 
  I would like developers on my team to be able to checkout our maven project
  from source control (Clearcase) and run the package goal on it to build it.
  Ideally they need only install the maven eclipse plugin to execute that goal
  within eclipse.
 
  I've installed maven-proxy and loaded it with the dependencies and plugins
  we use so far.  So finally to my question...
 
  What is the best way to force all the developers to use maven-proxy?  Should
  I specify it in the project pom.xml with repository and
  pluginRepositorytags?  Or should I put the entire maven install into
  Clearcase with a
  settings.xml file that specifies it with a proxy or mirror tag?
 
  Since the maven-proxy will server multiple projects in the future it seems
  like we should put it in the maven install settings.xml.  Is that what teams
  are doing out there in order to simplify developers' lives (putting the
  maven install with settings.xml in source control)?  We should be able to
  share standard settings like this with the team automatically (rather than
  each developer having to set the same settings in their personal
  settings.xml).  My first attempt was to put a settings.xml file in the
  project's conf directory but that didn't seem to get noticed.
 
  As an aside, when you start maven-proxy it spits out this advice:  Add the
  following to your ~/build.properties file:
  maven.repo.remote=http:/machine-name:/repository  What
  build.propertiesdo they mean?
 
  Thanks for any and all help in getting us started using Maven!
  - Michael
 
 

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





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



Re: Maven 2 and WTP

2006-06-07 Thread Alexandre Poitras

The eclipse plugin works like a charm with WTP. I use it on a daily
basic. If your project structure respect Maven conventions, a simple
mvn -Dwtpversion=1.0 eclipse:eclipse does the trick.

On 6/7/06, Zeiler Christian, Bedag [EMAIL PROTECTED] wrote:

Hello

Yesterday I tried to convert a maven project into an eclipse wtp project
with the maven-eclipse-plugin. But unfortunately it doesn't work. Maven
doesn't create all off the needed files for eclipse so I wasn't able to
import the project in the server view of eclipse.

Maven: 2.04
WTP: 1.0
Eclipse: 3.2 RC7

I studied all the documentation under
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html and
searched the internet. I would really appreciate if anyone can provide
me a running real world example (not only hello world).

Cheers Christian





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



Error looking up lifecycle mapping to retrieve optional mojos

2006-06-07 Thread andreas.ebbert-karroum
Hi,
 
I've defined my own plugin (with the maven-plugin-tools-ant plugin) with it's 
own lifecycle and artifact handler. when I now try to use the plugin in another 
project, it works fine, but I'm getting this debug warning - and I have no 
clue, what it is about - can it be fixed, and if yes, how?
 
[DEBUG] Error looking up lifecycle mapping to retrieve optional mojos. 
Lifecycle ID: default. Error:
 Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mappin
g.LifecycleMappingtigerstripe-application.
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Component descriptor ca
nnot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingtigers
tripe-application.
at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at org.apache.maven.execution.MavenSession.lookup(MavenSession.java:120)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findOptionalMojosForLifecycle(Default
LifecycleExecutor.java:1106)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLife
cycleExecutor.java:994)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLif
ecycleExecutor.java:975)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
java:453)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
ifecycleExecutor.java:306)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
xecutor.java:273)
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)
 
My plugins component.xml:
 component-set
components
component

roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role
role-hinttigerstripe-application/role-hint

implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation
configuration
phases

generate-sourcesossj.jsr264:maven-tigerstripe-plugin:tigerstripe-generate/generate-sources

packageorg.apache.maven.plugins:maven-source-plugin:jar/package

installorg.apache.maven.plugins:maven-install-plugin:install/install
/phases
/configuration
/component
component

roleorg.apache.maven.artifact.handler.ArtifactHandler/role
role-hinttigerstripe-application/role-hint

implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation
configuration
extensionjar/extension
typetigerstripe-application/type
/configuration
/component
/components
/component-set

My plugins POM:
project xmlns=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;
  modelVersion4.0.0/modelVersion
  groupIdossj.jsr264/groupId
  artifactIdmaven-tigerstripe-plugin/artifactId
  packagingmaven-plugin/packaging
  nameMaven Wrapper for ant build script to use Tigerstripe Workbench/name
  version1.0/version
  urlhttp://maven.apache.org/url
  build
plugins
  plugin
artifactIdmaven-plugin-plugin/artifactId
dependencies
  dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-plugin-tools-ant/artifactId
version2.0.2/version
scoperuntime/scope
  /dependency
/dependencies
 

Re: JSP compiler plugin

2006-06-07 Thread Alexandre Poitras

Is c.tld located in src/main/resources/WEB-INF/tld?

On 6/7/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:

plugin
groupIdorg.codehaus.mojo/groupId


artifactIdjspc-maven-plugin/artifactId

executions
execution
idjspc/id
phasecompile/phase
goals
goalcompile/goal
/goals
configuration
inputWebXml./WEB-INF/web.xml/inputWebXml
injectStringnonexistent/injectString
outputWebXml/dev/null/outputWebXml
warSourceDirectory./warSourceDirectory
workingDirectoryjsp-compile/workingDirectory
/configuration
/execution
/executions
/plugin


for soem reason I'm getting this error:

[INFO] [jspc:compile {execution: jspc}]
[INFO] Built File: /MML/index.jsp
[WARN] Internal Error: File /WEB-INF/web.xml not found
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error

Embedded error: File /WEB-INF/tld/c.tld not found

But there is WEB-INF/tld directory inside module and it contains c.tld file.
Also WEB-INF/web.xml exists.

Any ideas what needs to be specified?

--
Eugene N Dzhurinsky

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



Skip instal//deploy

2006-06-07 Thread Sean Schofield

Is there a way to mark an artifact such that the install and deploy
are skipped?  In my case, there really is no need to have WAR files in
my local or public repositories.

Sean

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



Re: Skip instal//deploy

2006-06-07 Thread Alexandre Poitras

Just run 'compile' instead of install or deploy. They are the last
lifecycle phases so they are easy to skip :)

On 6/7/06, Sean Schofield [EMAIL PROTECTED] wrote:

Is there a way to mark an artifact such that the install and deploy
are skipped?  In my case, there really is no need to have WAR files in
my local or public repositories.

Sean

-
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: Skip instal//deploy

2006-06-07 Thread Alexandre Poitras

Oops I mean 'package'.

On 6/7/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

Just run 'compile' instead of install or deploy. They are the last
lifecycle phases so they are easy to skip :)

On 6/7/06, Sean Schofield [EMAIL PROTECTED] wrote:
 Is there a way to mark an artifact such that the install and deploy
 are skipped?  In my case, there really is no need to have WAR files in
 my local or public repositories.

 Sean

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





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



Re: How best to specify maven-proxy - in settings.xml or as repository in pom.xml?

2006-06-07 Thread Wayne Fay

I actually meant (but did not say explicitly) that we configure our
Maven Proxy as a Central mirror... This overrides Central and forces
everyone to use our Proxy, and helps to ensure that our builds are
repeatable etc as all required artifacts are available in our
corporate proxy.

Wayne

On 6/7/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

You should declare repositories in both and mirrors in settings.xml. A
corporation wide parent pom is the best solution to define
repositories but you still need to define them in settings.xml to
handle 2 specific cases :

1) Being able to retrieve the parent pom.
2) Run indivual goals that don't need a pom.


On 6/7/06, Wayne Fay [EMAIL PROTECTED] wrote:
 We use ~/.m2/settings.xml for Maven-proxy configurations. If you use
 repo in pom.xml, then your developers will always hit Central when
 they build, which you probably want to avoid.

 I believe the build.properties reference is simply leftover from M1
 and can be safely ignored for those of us using M2.

 Wayne

 On 6/7/06, Michael Waluk [EMAIL PROTECTED] wrote:
  I would love some advice...
 
  I would like developers on my team to be able to checkout our maven project
  from source control (Clearcase) and run the package goal on it to build it.
  Ideally they need only install the maven eclipse plugin to execute that goal
  within eclipse.
 
  I've installed maven-proxy and loaded it with the dependencies and plugins
  we use so far.  So finally to my question...
 
  What is the best way to force all the developers to use maven-proxy?  Should
  I specify it in the project pom.xml with repository and
  pluginRepositorytags?  Or should I put the entire maven install into
  Clearcase with a
  settings.xml file that specifies it with a proxy or mirror tag?
 
  Since the maven-proxy will server multiple projects in the future it seems
  like we should put it in the maven install settings.xml.  Is that what teams
  are doing out there in order to simplify developers' lives (putting the
  maven install with settings.xml in source control)?  We should be able to
  share standard settings like this with the team automatically (rather than
  each developer having to set the same settings in their personal
  settings.xml).  My first attempt was to put a settings.xml file in the
  project's conf directory but that didn't seem to get noticed.
 
  As an aside, when you start maven-proxy it spits out this advice:  Add the
  following to your ~/build.properties file:
  maven.repo.remote=http:/machine-name:/repository  What
  build.propertiesdo they mean?
 
  Thanks for any and all help in getting us started using Maven!
  - Michael
 
 

 -
 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: JSP compiler plugin

2006-06-07 Thread Max Cooper

Did I read that correctly that . is your warSourceDirectory?

I would expect many issues with that directory structure, though I am 
not sure if your current issue is related.


-Max

Alexandre Poitras wrote:

Is c.tld located in src/main/resources/WEB-INF/tld?

On 6/7/06, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:

plugin
groupIdorg.codehaus.mojo/groupId


artifactIdjspc-maven-plugin/artifactId

executions
execution
idjspc/id
phasecompile/phase
goals
goalcompile/goal
/goals
configuration
inputWebXml./WEB-INF/web.xml/inputWebXml
injectStringnonexistent/injectString
outputWebXml/dev/null/outputWebXml
warSourceDirectory./warSourceDirectory
workingDirectoryjsp-compile/workingDirectory
/configuration
/execution
/executions
/plugin


for soem reason I'm getting this error:

[INFO] [jspc:compile {execution: jspc}]
[INFO] Built File: /MML/index.jsp
[WARN] Internal Error: File /WEB-INF/web.xml not found
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Error

Embedded error: File /WEB-INF/tld/c.tld not found

But there is WEB-INF/tld directory inside module and it contains c.tld 
file.

Also WEB-INF/web.xml exists.

Any ideas what needs to be specified?

--
Eugene N Dzhurinsky

-
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: eclipse, wtp, maven and web apps

2006-06-07 Thread kvpetrov

I don't think turning off autobuild feature of Eclipse is a good idea. I like
Eclipse compiling my java classes on fly. There two problems with the
current behavior:
1) I don't want to waste my CPU on copying files back and forward taking
into account that the resulting application is not usable anyway because
Eclipse just can't build it right. Instead of trying to build it on its own
when you publish the app Eclipse should call appropriate maven goals when a
resource is touched. Basically, this is more of a problem for the Eclipse
maven plugin that can't get triggered when a particular resource is changed
within Eclipse project.

2) Because the resulted app is invalid I can not associate the project with
a server and start it within Eclipse.

Of course, I found ways around this problem but I still think that what
WTP+Maven do now is completely wrong. Eclipse can still compile java classes
on fly it does not prevent maven from correctly assembling the app and
providing it to WTP for deployment. 
--
View this message in context: 
http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4763221
Sent from the Maven - Users forum at Nabble.com.


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



Re: eclipse, wtp, maven and web apps

2006-06-07 Thread Alexandre Poitras

Well this may be possible in the future with the eclipse maven plugin. Anyway,
packaging a web app is not something you do regularly. I think you are
being a bit idealistic here. It's not optimal but in the mean time it
works correctly. Never seen any performance issue and I don't agree
with what you have defined as problems.

On 6/7/06, kvpetrov [EMAIL PROTECTED] wrote:


I don't think turning off autobuild feature of Eclipse is a good idea. I like
Eclipse compiling my java classes on fly. There two problems with the
current behavior:
1) I don't want to waste my CPU on copying files back and forward taking
into account that the resulting application is not usable anyway because
Eclipse just can't build it right. Instead of trying to build it on its own
when you publish the app Eclipse should call appropriate maven goals when a
resource is touched. Basically, this is more of a problem for the Eclipse
maven plugin that can't get triggered when a particular resource is changed
within Eclipse project.

2) Because the resulted app is invalid I can not associate the project with
a server and start it within Eclipse.

Of course, I found ways around this problem but I still think that what
WTP+Maven do now is completely wrong. Eclipse can still compile java classes
on fly it does not prevent maven from correctly assembling the app and
providing it to WTP for deployment.
--
View this message in context: 
http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4763221
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: eclipse, wtp, maven and web apps

2006-06-07 Thread Alexandre Poitras

By the way, when I speak about the Eclipse Maven plugin, I am speaking
about this one http://maven.apache.org/eclipse-plugin.html. I guess in
the future, there is going to be a more complete Maven builder
included.

On 6/7/06, Alexandre Poitras [EMAIL PROTECTED] wrote:

Well this may be possible in the future with the eclipse maven plugin. Anyway,
packaging a web app is not something you do regularly. I think you are
being a bit idealistic here. It's not optimal but in the mean time it
works correctly. Never seen any performance issue and I don't agree
with what you have defined as problems.

On 6/7/06, kvpetrov [EMAIL PROTECTED] wrote:

 I don't think turning off autobuild feature of Eclipse is a good idea. I like
 Eclipse compiling my java classes on fly. There two problems with the
 current behavior:
 1) I don't want to waste my CPU on copying files back and forward taking
 into account that the resulting application is not usable anyway because
 Eclipse just can't build it right. Instead of trying to build it on its own
 when you publish the app Eclipse should call appropriate maven goals when a
 resource is touched. Basically, this is more of a problem for the Eclipse
 maven plugin that can't get triggered when a particular resource is changed
 within Eclipse project.

 2) Because the resulted app is invalid I can not associate the project with
 a server and start it within Eclipse.

 Of course, I found ways around this problem but I still think that what
 WTP+Maven do now is completely wrong. Eclipse can still compile java classes
 on fly it does not prevent maven from correctly assembling the app and
 providing it to WTP for deployment.
 --
 View this message in context: 
http://www.nabble.com/eclipse%2C-wtp%2C-maven-and-web-apps-t1725424.html#a4763221
 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]



  1   2   >