[SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jason van Zyl

Hi,

I'm just trying to get some data on what protocol is used to retrieve  
artifacts. This question strictly relates to what you use for  
retrieval. Most people I have seen use a web server or a shared  
network drive, but I'd like to get some feedback.


[ ] Our team uses HTTP to retrieve our artifacts
[ ] Our team intends to use HTTP to retrieve our artifacts
[ ] Our team uses the filesystem
[ ] Our team does not use HTTP or the filesystem because  please  
say what protocol you use and the reason


Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

A language that doesn’t affect the way you think about programming is  
not worth knowing.


— Alan Perlis




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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Felix Knecht



[X ] Our team uses HTTP to retrieve our artifacts


Regards
Felix

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



RE: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jörg Schaible
Jason van Zyl wrote:
 Hi,
 
 I'm just trying to get some data on what protocol is used to retrieve
 artifacts. This question strictly relates to what you use for
 retrieval. Most people I have seen use a web server or a shared
 network drive, but I'd like to get some feedback.
 
 [ ] Our team uses HTTP to retrieve our artifacts
 [ ] Our team intends to use HTTP to retrieve our artifacts
 [X] Our team uses the filesystem
 [ ] Our team does not use HTTP or the filesystem because  please
 say what protocol you use and the reason

Inhouse repo on Samba share.

- Jörg

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Giancarlo Degani
  [X ] Our team uses HTTP to retrieve our artifacts

Best regards.

Giancarlo

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



Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Jan Fredrik Wedén
Hi,

Could you not split this into two modules where your step 4 resides in
a module which dependes on another module containing the results from
1, 2 and 3? Seems like the most correct Maven-way if you are allowed
to split your codebase to accomplish this.

On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Hello everyone,

 First of all, I cannot overstate the beneficial effect that Maven has had on
 the
 development process at my organization.  To the devs: thanks for the great
 tool!

 I have a pom that specifies two executions of the compiler plugin, with
 different phases
 specified and different configs, but they're not both running.  (See pom
 excerpt below.)
 Is that expected?  Can I configure multiple executions of the compiler
 plugin with
 different configurations?  It seems like no - [1], [2], [3] - but I hope
 someone has an
 definitive answer.

 Here's some background on my problem, which I admit is fairly obscure.
 Basically, what I
 need to do is:

 1 Compile class A in package org.myorg, which is annotated with @WebService

 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
 compiled A.class

 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side bindings
 from the
 just-generated WSDL

 4 Compile non-generated classes that reference the just-generated client
 bindings. These
 live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and would
 have failed if
 compiled during step 1 because they reference code generated in step 3.

 I've included (what I hope are) the relevant sections of my pom below.

 PS: Do I need to do things this way?  Unfortunately, I think so.  Class
 org.myorg.A is a
 web service that needs to invoke other org.myorg.A web services arranged in
 a tree or mesh
 topology.  I've tried to break out the bindings, the SEI (A), and the
 classes that
 abstract the connection between As using the client bindings into
 submodules, but I've
 only managed to introduce circular dependencies.

 In the past, I've dealt with this sort of chicken-and-egg problem by
 generating WSDLs and
 code and then checking them into source control.  This feels bad, and makes
 updates if the
 interface of the SEI changes a hassle.  I'd much rather define a simple SEI
 annotated with
 @WebService and have the low-level stuff (WSDLs, client bindings) generated
 from that.

 [1]
 http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
 [2]
 http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
 PROTECTED]
 [3]
 http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
 PROTECTED]

 | plugin
 |   artifactIdmaven-compiler-plugin/artifactId
 |   executions
 |   execution
 |   idjaxws-pre-compilation-hack/id
 |   !-- Hack to specify order of plugin application --
 |   phaseprocess-sources/phase
 |   configuration
 |   source1.5/source
 |   target1.5/target
 |   includes
 |
 include${source.dir}/org/myorg/include
 |   /includes
 |   excludes
 |
 exclude${source.dir}/org/myorg/x/exclude
 |
 exclude${source.dir}/org/myorg/y/exclude
 |   /excludes
 |   goals
 |   goalcompile/goal
 |   /goals
 |   /configuration
 |   /execution
 |   execution
 |   idnormal-compilation/id
 |   !-- Hack to specify order of plugin application --
 |   phasecompile/phase
 |   configuration
 |   source1.5/source
 |   target1.5/target
 |   /configuration
 |   goals
 |   goalcompile/goal
 |   /goals
 |   /execution
 |   /executions
 | /plugin
 | plugin
 |   groupIdorg.codehaus.mojo/groupId
 |   artifactIdjaxws-maven-plugin/artifactId
 |   executions
 |   execution
 |   idmake-wsdl/id
 |   !-- Hack to specify order goals are run in --
 |   phasegenerate-resources/phase
 |   goals
 |   goalwsgen/goal
 |   /goals
 |   configuration
 |   seiorg.myorg.A/sei
 |   ...
 |   /configuration
 |   /execution
 |   execution
 |   idmake-client-bindings/id
 |   !-- Hack to specify order goals are run in --
 |   phaseprocess-resources/phase
 |   goals
 |   goalwsimport/goal
 |   /goals

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Dan Tran
[X ] Our team uses HTTP to retrieve our artifacts

On Tue, May 20, 2008 at 11:28 PM, Giancarlo Degani
[EMAIL PROTECTED] wrote:
  [X ] Our team uses HTTP to retrieve our artifacts

 Best regards.

 Giancarlo

 -
 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: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jan Fredrik Wedén
[X] Our team uses HTTP to retrieve our artifacts

A little on the side...
[X] Our team uses the filesystem (and *gasp* SCM) for .NET artifacts -
with intent to use HTTP for everything

-- 
- Jan Fredrik Wedén

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Martin Höller
 [X] Our team uses HTTP to retrieve our artifacts

- martin


signature.asc
Description: This is a digitally signed message part.


Re: MPIR 2.1 release?

2008-05-21 Thread Lukas Theussl


It's on our release plan [1] together with the site plugin, but we need 
to release maven-doxia-tools first.


-Lukas


[1] http://docs.codehaus.org/display/MAVEN/Doxia+Release+Plan



Kalle Korhonen wrote:

Doxia 1.0-alpha-11 was just released, am I right to assume that is the
version project-info-reports was waiting on as well and subsequently, MPIR
2.1 release should happen shortly?

Kalle


On Sun, Apr 20, 2008 at 11:45 AM, Dennis Lundberg [EMAIL PROTECTED]
wrote:



We need a release of maven-doxia-tools before it can be released.


Kalle Korhonen wrote:



What's up with maven-project-info-reports plugin (MPIR) 2.1 release?
According to

http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=11142fixfor=12621
,
there are no open issues left for 2.1. I couldn't find any details about
the
status of the plugin, either from the user or the dev list. Is there
something that's holding up the release that's not reflected in the JIRA?

Kalle





--
Dennis Lundberg

-
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: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Heck, Joe


On May 20, 2008, at 11:15 PM, Jason van Zyl wrote:

[X] Our team uses HTTP to retrieve our artifacts
[ ] Our team intends to use HTTP to retrieve our artifacts
[ ] Our team uses the filesystem
[X] Our team does not use HTTP or the filesystem because  please  
say what protocol you use and the reason


We also use SMB fileshare access.

-joe

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Chad La Joie

Our team uses HTTP to retrieve our artifacts

Jason van Zyl wrote:

Hi,

I'm just trying to get some data on what protocol is used to retrieve 
artifacts. This question strictly relates to what you use for retrieval. 
Most people I have seen use a web server or a shared network drive, but 
I'd like to get some feedback.


[ ] Our team uses HTTP to retrieve our artifacts
[ ] Our team intends to use HTTP to retrieve our artifacts
[ ] Our team uses the filesystem
[ ] Our team does not use HTTP or the filesystem because  please say 
what protocol you use and the reason


Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

A language that doesn’t affect the way you think about programming is 
not worth knowing.


— Alan Perlis




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



--
SWITCH
Serving Swiss Universities
--
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
[EMAIL PROTECTED], http://www.switch.ch


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Marat Radchenko
[X] Our team uses HTTP to retrieve our artifacts

On 5/21/08, Jason van Zyl [EMAIL PROTECTED] wrote:
 Hi,

  I'm just trying to get some data on what protocol is used to retrieve
 artifacts. This question strictly relates to what you use for retrieval.
 Most people I have seen use a web server or a shared network drive, but I'd
 like to get some feedback.

  [ ] Our team uses HTTP to retrieve our artifacts
  [ ] Our team intends to use HTTP to retrieve our artifacts
  [ ] Our team uses the filesystem
  [ ] Our team does not use HTTP or the filesystem because  please say
 what protocol you use and the reason

  Thanks,

  Jason

  --
  Jason van Zyl
  Founder,  Apache Maven
  jason at sonatype dot com
  --

  A language that doesn't affect the way you think about programming is not
 worth knowing.

  — Alan Perlis




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




Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Bruno Aranda
[X ] Our team uses HTTP to retrieve our artifacts

2008/5/21 Marat Radchenko [EMAIL PROTECTED]:
 [X] Our team uses HTTP to retrieve our artifacts

 On 5/21/08, Jason van Zyl [EMAIL PROTECTED] wrote:
 Hi,

  I'm just trying to get some data on what protocol is used to retrieve
 artifacts. This question strictly relates to what you use for retrieval.
 Most people I have seen use a web server or a shared network drive, but I'd
 like to get some feedback.

  [ ] Our team uses HTTP to retrieve our artifacts
  [ ] Our team intends to use HTTP to retrieve our artifacts
  [ ] Our team uses the filesystem
  [ ] Our team does not use HTTP or the filesystem because  please say
 what protocol you use and the reason

  Thanks,

  Jason

  --
  Jason van Zyl
  Founder,  Apache Maven
  jason at sonatype dot com
  --

  A language that doesn't affect the way you think about programming is not
 worth knowing.

  — Alan Perlis




 -
  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: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Mark Hobson
2008/5/21 Jason van Zyl [EMAIL PROTECTED]:
 [X] Our team uses HTTP to retrieve our artifacts

Mark

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



Eclipse Plugin and WTP Facets problem

2008-05-21 Thread Mario-Leander Reimer
Hi Maven2 users,

I have followed the instructions Using maven-eclipse-plugin in multi-module 
projects with WTP on the maven site and it is almost working correctly.

But some of the project facets for WTP are generated wrong:
- The EAR project uses 1.4 instead of 5.0 (jst.ear facet)
- The generated Eclipse application.xml also version 1.4 instead of 5.0
- The EJB project uses 2.1 instead of 3.0 (jst.ejb facet)

How do I make the maven-eclipse-plugin generate the correct values? Can I 
somehow set these manually?
I am using version 2.5.1 of the plugin.

Should I configure the plugin in the parent POM or in the individual module 
POMs?

Thanks for your advice and help.

Best regards,

Mario-Leander Reimer
Dipl.-Inf. (FH)
Teamleitung Publishing Solutions
---
VVA Networks GmbH
: medien mit zukunft
Elisabethstrasse 91
80797 München
Deutschland
---
Fon:+49 89 5908-2329
Mobil:  +49 173 5883541
---
[EMAIL PROTECTED]
www.vva-networks.de
---
HRB 33884 Düsseldorf
Geschäftsführer Rolf Christian Kassel
---
Ein Unternehmen der VVA Kommunikation
www.vva.de
---
omnisuite® - integrate. automate. communicate.
www.omnisuite.de
---
Besuchen Sie uns auf unserer Messeveranstaltung:
 drupa, 29.05.-11.06.2008, Düsseldorf, www.drupa.de

Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sie darf 
ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen, kopiert 
oder genutzt werden. Sollten Sie diese Nachricht versehentlich erhalten haben, 
bitten wir, den Absender (durch Antwort-E-Mail) hiervon unverzüglich zu 
informieren und die Nachricht zu löschen. Jede unerlaubte Nutzung oder 
Weitergabe des Inhalts dieser Nachricht, sei es vollständig oder teilweise, ist 
unzulässig.

This message (including any attachments) is confidential and may be privileged. 
It may be read, copied and used only by the intended recipient.
If you have received it in error please contact the sender (by return
E-Mail) immediately and delete this message. Any unauthorised use or 
dissemination of this message in whole or in part is strictly prohibited.



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



NetBeans6.0 mavenide plugin 3.1.1

2008-05-21 Thread John Coleman
Hi,

One of our developers just reinstalled Netbeans6.0 and as a consequence
pickud up the latest Maven plugin 3.1.1. Now his builds don't work
because the active profile set in his settings.xml is ignored in
preference to the active profile in the profiles.xml. Previously the
settings in settings.xml always took priority.

So what has changed, and how do we rectify this problem?

TIA,
John

Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


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



WAS6-plugin error

2008-05-21 Thread Lustig, Marc (Allianz Deutschland AG)
mvn package
..
[INFO] BUILD SUCCESSFUL
..
mvn was6:installApp
...
[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.codehaus.mojo.was6.WsInstallAppMojo.configureBuildScript(WsInstallAp
pMojo.java:54)


the pom.xml look like this:
plugin
groupIdorg.codehaus.mojo/groupId

artifactIdwas6-maven-plugin/artifactId
version1.0-alpha-2/version
executions
execution

idintegration-test/id

phaseintegration-test/phase
goals

goalwsStopServer/goal

goalinstallApp/goal

goalwsStartServer/goal
  /goals
/execution
/executions
configuration

wasHomec:/Programme/ibm/SDP70/runtimes/base_v61/wasHome
hostlocalhost/host
usernameadmin/username
password/password
!--

targetClusternameOfCluster/targetCluster
--

profileNameAppSrv01/profileName
!-- remember to import
certificate from remote site when deploying to a site with security
activated --
conntypeSOAP/conntype
port8880/port
verbosetrue/verbose
  !-- need to be false first time it's
deployed to a server -- 

updateExistingfalse/updateExisting
/configuration
/plugin

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



Re: Eclipse Plugin and WTP Facets problem

2008-05-21 Thread Martin Höller
On Wednesday 21 May 2008 Mario-Leander Reimer wrote:
 I have followed the instructions Using maven-eclipse-plugin in
 multi-module projects with WTP on the maven site and it is almost
 working correctly.

 But some of the project facets for WTP are generated wrong:
 - The EAR project uses 1.4 instead of 5.0 (jst.ear facet)
 - The generated Eclipse application.xml also version 1.4 instead of 5.0
 - The EJB project uses 2.1 instead of 3.0 (jst.ejb facet)

 How do I make the maven-eclipse-plugin generate the correct values? Can I
 somehow set these manually? I am using version 2.5.1 of the plugin.

Maybe this thread from last week helps:
http://www.nabble.com/maven-eclipse-plugin:-Facet-Issues-to17224408.html

hth,
- martin


signature.asc
Description: This is a digitally signed message part.


RE: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Beelen, M. - SPLXL
[X ] Our team uses HTTP to retrieve our artifacts 

-Original Message-
From: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 8:16 AM
To: Maven Users List
Subject: [SURVEY] How does your team retrieve artifacts?

Hi,

I'm just trying to get some data on what protocol is used to retrieve
artifacts. This question strictly relates to what you use for retrieval.
Most people I have seen use a web server or a shared network drive, but
I'd like to get some feedback.

[ ] Our team uses HTTP to retrieve our artifacts [ ] Our team intends to
use HTTP to retrieve our artifacts [ ] Our team uses the filesystem [ ]
Our team does not use HTTP or the filesystem because  please say
what protocol you use and the reason

Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

A language that doesn't affect the way you think about programming is
not worth knowing.

- Alan Perlis

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

**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain
confidential and privileged material intended for the addressee
only. If you are not the addressee, you are notified that no part
of the e-mail or any attachment may be disclosed, copied or
distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. 

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor
responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
Dutch Airlines) is registered in Amstelveen, The Netherlands, with
registered number 33014286 
**

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



Re: WAS6-plugin error

2008-05-21 Thread Tim Kettler

Hi,

I've never used the was-plugin, but looking at the documentation and 
source code, it seems that the default assumption of the 'installAp' 
goal is that it is running as part of a maven build.


The 'earFile' parameter is automatically populated with the current 
projects main artifact [1], which is obviously not available when you 
invoke the goal standalone. What should work, is that you specify the 
ear file explicitly on the command line:


  mvn -Dwas6.earFile=/path/to/my.ear  was6:installApp

Hope this helps
-Tim

[1] http://mojo.codehaus.org/was6-maven-plugin/installApp-mojo.html#earFile

Lustig, Marc (Allianz Deutschland AG) schrieb:

mvn package

..
[INFO] BUILD SUCCESSFUL
..

mvn was6:installApp

...
[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.codehaus.mojo.was6.WsInstallAppMojo.configureBuildScript(WsInstallAp
pMojo.java:54)


the pom.xml look like this:
plugin
groupIdorg.codehaus.mojo/groupId

artifactIdwas6-maven-plugin/artifactId
version1.0-alpha-2/version
executions
execution

idintegration-test/id

phaseintegration-test/phase
goals

goalwsStopServer/goal

goalinstallApp/goal

goalwsStartServer/goal
  /goals
/execution
/executions
configuration

wasHomec:/Programme/ibm/SDP70/runtimes/base_v61/wasHome
hostlocalhost/host
usernameadmin/username
password/password
!--

targetClusternameOfCluster/targetCluster
--

profileNameAppSrv01/profileName
!-- remember to import
certificate from remote site when deploying to a site with security
activated --
conntypeSOAP/conntype
port8880/port
verbosetrue/verbose
  !-- need to be false first time it's
deployed to a server -- 
	

updateExistingfalse/updateExisting
/configuration
/plugin

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



AW: WAS6-plugin error

2008-05-21 Thread Lustig, Marc (Allianz Deutschland AG)
ty for the hint, but this won't help as we want to use the was6-plugin for 
Continuous Integration (with Continuum), i. e. the deployment package will be 
build by Continuum in an arbitrary tmp-file, hence we don't no the path in 
advance.

The was6-plugin should either pick the deployment package up from the 
target-dir, or alternatively, from the local maven repo.

Is either of this possible?


-Ursprüngliche Nachricht-
Von: Tim Kettler [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 21. Mai 2008 10:58
An: Maven Users List
Betreff: Re: WAS6-plugin error

Hi,

I've never used the was-plugin, but looking at the documentation and 
source code, it seems that the default assumption of the 'installAp' 
goal is that it is running as part of a maven build.

The 'earFile' parameter is automatically populated with the current 
projects main artifact [1], which is obviously not available when you 
invoke the goal standalone. What should work, is that you specify the 
ear file explicitly on the command line:

   mvn -Dwas6.earFile=/path/to/my.ear  was6:installApp

Hope this helps
-Tim

[1] http://mojo.codehaus.org/was6-maven-plugin/installApp-mojo.html#earFile

Lustig, Marc (Allianz Deutschland AG) schrieb:
 mvn package
 ..
 [INFO] BUILD SUCCESSFUL
 ..
 mvn was6:installApp
 ...
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] null
 [INFO]
 
 [INFO] Trace
 java.lang.NullPointerException
 at
 org.codehaus.mojo.was6.WsInstallAppMojo.configureBuildScript(WsInstallAp
 pMojo.java:54)
 
 
 the pom.xml look like this:
 plugin
   groupIdorg.codehaus.mojo/groupId
   
 artifactIdwas6-maven-plugin/artifactId
   version1.0-alpha-2/version
   executions
   execution
   
 idintegration-test/id
   
 phaseintegration-test/phase
   goals
   
 goalwsStopServer/goal
   
 goalinstallApp/goal
   
 goalwsStartServer/goal
 /goals
   /execution
   /executions
   configuration
   
 wasHomec:/Programme/ibm/SDP70/runtimes/base_v61/wasHome
   hostlocalhost/host
   usernameadmin/username
   password/password
   !--
   
 targetClusternameOfCluster/targetCluster
   --
   
 profileNameAppSrv01/profileName
   !-- remember to import
 certificate from remote site when deploying to a site with security
 activated --
   conntypeSOAP/conntype
   port8880/port
   verbosetrue/verbose
 !-- need to be false first time it's
 deployed to a server -- 
   
 updateExistingfalse/updateExisting
   /configuration
   /plugin
 
 -
 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: NetBeans6.0 mavenide plugin 3.1.1

2008-05-21 Thread Milos Kleint
On 5/21/08, John Coleman [EMAIL PROTECTED] wrote:
 Hi,

  One of our developers just reinstalled Netbeans6.0 and as a consequence
  pickud up the latest Maven plugin 3.1.1. Now his builds don't work
  because the active profile set in his settings.xml is ignored in
  preference to the active profile in the profiles.xml. Previously the
  settings in settings.xml always took priority.

you mean the settings.xml profiles are not active when loading the
project or when building? that would be a bug. However I'm not sure
what the comments about priorities mean, I would assume both locations
would be checked and their active profiles activated.


  So what has changed, and how do we rectify this problem?

the major change was an upgrade of the maven embedder (which solved a
bunch of issues, but created a pile of it's own)

best steps to proceed would be to file a bug report against mevenide
and provide a sample project demonstrating the problem.

Milos


  TIA,
  John

  Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
 exercise control over the content of information in E-Mails. Any views and 
 opinions expressed may be personal to the sender and are not necessarily 
 those of Eurobase. Eurobase will not enter into any contractual obligations 
 in respect of any part of its business in any E-mail.

  Privileged / confidential information may be contained in this message and 
 /or any attachments. This E-mail is intended for the use of the addressee(s) 
 only and may contain confidential information. If you are not the / an 
 intended recipient, you are hereby notified that any use or dissemination of 
 this communication is strictly prohibited.  If you receive this transmission 
 in error, please notify us immediately, and then delete this E-mail.

  Neither the sender nor Eurobase accepts any liability whatsoever for any 
 defects of any kind either in or arising from this E-mail transmission. 
 E-Mail transmission cannot be guaranteed to be secure or error-free, as 
 messages can be intercepted, lost, corrupted, destroyed, contain viruses, or 
 arrive late or incomplete. Eurobase does not accept any responsibility for 
 viruses and it is your responsibility to scan any attachments.

  Eurobase Systems Limited is the main trading company in the Eurobase 
 International Group; registered in England and Wales as company number 
 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
 CM2 0RE, UK.


  -
  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: AW: WAS6-plugin error

2008-05-21 Thread Tim Kettler
I don't think this is possible. Why isn't just building the project (in 
Continuum) with 'mvn post-integration-test' or something like that an 
option?


Lustig, Marc (Allianz Deutschland AG) schrieb:

ty for the hint, but this won't help as we want to use the was6-plugin for 
Continuous Integration (with Continuum), i. e. the deployment package will be 
build by Continuum in an arbitrary tmp-file, hence we don't no the path in 
advance.

The was6-plugin should either pick the deployment package up from the 
target-dir, or alternatively, from the local maven repo.

Is either of this possible?


-Ursprüngliche Nachricht-
Von: Tim Kettler [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 21. Mai 2008 10:58

An: Maven Users List
Betreff: Re: WAS6-plugin error

Hi,

I've never used the was-plugin, but looking at the documentation and 
source code, it seems that the default assumption of the 'installAp' 
goal is that it is running as part of a maven build.


The 'earFile' parameter is automatically populated with the current 
projects main artifact [1], which is obviously not available when you 
invoke the goal standalone. What should work, is that you specify the 
ear file explicitly on the command line:


   mvn -Dwas6.earFile=/path/to/my.ear  was6:installApp

Hope this helps
-Tim

[1] http://mojo.codehaus.org/was6-maven-plugin/installApp-mojo.html#earFile

Lustig, Marc (Allianz Deutschland AG) schrieb:

mvn package

..
[INFO] BUILD SUCCESSFUL
..

mvn was6:installApp

...
[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.codehaus.mojo.was6.WsInstallAppMojo.configureBuildScript(WsInstallAp
pMojo.java:54)


the pom.xml look like this:
plugin
groupIdorg.codehaus.mojo/groupId

artifactIdwas6-maven-plugin/artifactId
version1.0-alpha-2/version
executions
execution

idintegration-test/id

phaseintegration-test/phase
goals

goalwsStopServer/goal

goalinstallApp/goal

goalwsStartServer/goal
  /goals
/execution
/executions
configuration

wasHomec:/Programme/ibm/SDP70/runtimes/base_v61/wasHome
hostlocalhost/host
usernameadmin/username
password/password
!--

targetClusternameOfCluster/targetCluster
--

profileNameAppSrv01/profileName
!-- remember to import
certificate from remote site when deploying to a site with security
activated --
conntypeSOAP/conntype
port8880/port
verbosetrue/verbose
  !-- need to be false first time it's
deployed to a server -- 
	

updateExistingfalse/updateExisting
/configuration
/plugin

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Arik Kfir


[X] Our team uses HTTP to retrieve our artifacts


-- 
Arik Kfir [EMAIL PROTECTED]




-Original Message-
From: Jason van Zyl [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Subject: [SURVEY] How does your team retrieve artifacts?
Date: Tue, 20 May 2008 23:15:44 -0700


Hi,

I'm just trying to get some data on what protocol is used to retrieve  
artifacts. This question strictly relates to what you use for  
retrieval. Most people I have seen use a web server or a shared  
network drive, but I'd like to get some feedback.

[ ] Our team uses HTTP to retrieve our artifacts
[ ] Our team intends to use HTTP to retrieve our artifacts
[ ] Our team uses the filesystem
[ ] Our team does not use HTTP or the filesystem because  please  
say what protocol you use and the reason

Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

A language that doesn’t affect the way you think about programming is  
not worth knowing.

— Alan Perlis




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



RE: NetBeans6.0 mavenide plugin 3.1.1

2008-05-21 Thread John Coleman
Hi Milos,

In profiles.xml we have an active profile called DEVTST that has a
property buildNumber.check as true, but in settings.xml we have activate
a profile called MYPROFILE that has buildNumber.check false. We do this
so that the buildnumber plugin doesn't check for developers, but does in
continuum.

It used to be the case that the property value in the settings.xml was
applied, but now it seems the profiles.xml value takes precedence. I
even used the new configuration dialog to activate the MYPROFILE, yet
the property gets its value from DEVTST.

I hope that is clear. We also seem to of found that a load of the
artifacts in the repositories could not be accessed until the
configuration dialog was used to choose a profile, even artifacts from
previously reliable external repos don't get found?

Regards,
John 

 -Original Message-
 From: Milos Kleint [mailto:[EMAIL PROTECTED] 
 Sent: 21 May 2008 10:02
 To: Maven Users List
 Subject: Re: NetBeans6.0 mavenide plugin 3.1.1
 
 On 5/21/08, John Coleman 
 [EMAIL PROTECTED] wrote:
  Hi,
 
   One of our developers just reinstalled Netbeans6.0 and as a 
  consequence  pickud up the latest Maven plugin 3.1.1. Now 
 his builds 
  don't work  because the active profile set in his settings.xml is 
  ignored in  preference to the active profile in the profiles.xml. 
  Previously the  settings in settings.xml always took priority.
 
 you mean the settings.xml profiles are not active when 
 loading the project or when building? that would be a bug. 
 However I'm not sure what the comments about priorities mean, 
 I would assume both locations would be checked and their 
 active profiles activated.
 
 
   So what has changed, and how do we rectify this problem?
 
 the major change was an upgrade of the maven embedder (which 
 solved a bunch of issues, but created a pile of it's own)
 
 best steps to proceed would be to file a bug report against 
 mevenide and provide a sample project demonstrating the problem.
 
 Milos
 
 
   TIA,
   John
 
   Eurobase International Limited and its subsidiaries 
 (Eurobase) are unable to exercise control over the content of 
 information in E-Mails. Any views and opinions expressed may 
 be personal to the sender and are not necessarily those of 
 Eurobase. Eurobase will not enter into any contractual 
 obligations in respect of any part of its business in any E-mail.
 
   Privileged / confidential information may be contained in 
 this message and /or any attachments. This E-mail is intended 
 for the use of the addressee(s) only and may contain 
 confidential information. If you are not the / an intended 
 recipient, you are hereby notified that any use or 
 dissemination of this communication is strictly prohibited.  
 If you receive this transmission in error, please notify us 
 immediately, and then delete this E-mail.
 
   Neither the sender nor Eurobase accepts any liability 
 whatsoever for any defects of any kind either in or arising 
 from this E-mail transmission. E-Mail transmission cannot be 
 guaranteed to be secure or error-free, as messages can be 
 intercepted, lost, corrupted, destroyed, contain viruses, or 
 arrive late or incomplete. Eurobase does not accept any 
 responsibility for viruses and it is your responsibility to 
 scan any attachments.
 
   Eurobase Systems Limited is the main trading company in 
 the Eurobase International Group; registered in England and 
 Wales as company number 02251162; registered address: Essex 
 House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
 
 
   
 -
   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]



idea plugin 2.2-SNAPSHOT

2008-05-21 Thread kace

Using the snapshot version has fixed my earlier problem with 2.1 of sources
files not being recognised but the directory structure I get when using 2.1
compared to 2.2-SNAPSHOT is different.

I have the following layout

projectName
   -- data(directory name)
   -- common(directory name)
-- common-core(directory name)
   -- hibernate(directory name)
-- hibernate-core(directory name)
   -- jpa(directory name)
-- jpa-core(directory name)

when using 2.1 I get the above structure layout but with the source
availability problem but with 2.2-SNAPSHOT I get the following layout

projectName
projectName-data(artifactId)
projectName-data-common(artifactId)
projectName-data-common-core(artifactId)
projectName-data-hibernate(artifactId)
projectName-data-hibernate-core(artifactId)
projectName-data-jpa(artifactId)
projectName-data-jpa-core(artifactId)

I am looking to get the first layout structure in IDEA.  Grateful for any
help.

Thanks..

..kace
-- 
View this message in context: 
http://www.nabble.com/idea-plugin-2.2-SNAPSHOT-tp17360214p17360214.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Michael McCallum
On Wed, 21 May 2008 18:15:44 Jason van Zyl wrote:
 [X] Our team uses HTTP to retrieve our artifacts
This is the third team i've been in that uses http(s), I was using scp for a 
while but its was just waaay too difficult for windows users to get working.

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



AW: Eclipse Plugin and WTP Facets problem

2008-05-21 Thread Mario-Leander Reimer
Hi Martin,

thanks for the link to the thread from last week. The problem described there 
is similar but not the same.

I have tried to manually add the additional facets jst.ear5.0/jst.ear to 
the EAR project and jst.ejb3.0/jst.ejb to the EJB project, but this will 
result in the duplicated facet entries as described in the thread, and thus 
doesn't work either.

I would have thought the maven-eclipse-plugin somehow uses the versions from 
the maven-ear-plugin and the maven-ejb-plugin (where I have set 5 and 3.0 as 
versions) to generate the correct values for the facet settings and the Eclipse 
generated application.xml descriptor.

So I guess it's a bug and I should file an issue (or perhaps attach it to the 
issue for the above thread).

Another question: Do you know whether the eclipse:m2eclipse goal is meant be 
used in combination with the WTP settings? For my project it generates some WTP 
files but the contents is partially missing or wrong.

Best regards,
Leander


 -Ursprüngliche Nachricht-
 Von: Martin Höller [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 21. Mai 2008 10:32
 An: Maven Users List
 Betreff: Re: Eclipse Plugin and WTP Facets problem

 On Wednesday 21 May 2008 Mario-Leander Reimer wrote:
  I have followed the instructions Using maven-eclipse-plugin in
  multi-module projects with WTP on the maven site and it is almost
  working correctly.
 
  But some of the project facets for WTP are generated wrong:
  - The EAR project uses 1.4 instead of 5.0 (jst.ear facet)
  - The generated Eclipse application.xml also version 1.4 instead of
  5.0
  - The EJB project uses 2.1 instead of 3.0 (jst.ejb facet)
 
  How do I make the maven-eclipse-plugin generate the correct values?
  Can I somehow set these manually? I am using version 2.5.1 of the
 plugin.

 Maybe this thread from last week helps:
 http://www.nabble.com/maven-eclipse-plugin:-Facet-Issues-
 to17224408.html

 hth,
 - martin

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



Assembly plugin with several descriptors

2008-05-21 Thread Dobri Kitipov
Hi all,
currently I am trying to execute an assembly that makes use of two
descriptors. I want to package a given artifact as a ZIP (i.e. my product
eclipse plugin) and then include it in an artifact (i.e. my product
distribution) that has a DIR and ZIP format set. The problem is that in the
first descriptor (D1) have ZIP format, but I have the same format into the
second descriptor (D2). As these two descriptors are specified to one given
assembly plugin they share one common finalName specified:
plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-2/version
configuration
finalNamemyproduct-${myproduct.version}/finalName
appendAssemblyIdfalse/appendAssemblyId
descriptors
descriptortools/eclipse/D1.xml/descriptor
descriptorassembly/D2.xml/descriptor
/descriptors
/configuration
/plugin

This causes a problem because when the first artifact (A1) is crearted it
has the name myproduct-${myproduct.version}.zip, then this artifact is
overridden by the second artifact (A2) created by D2 execution that need to
include the A1.
So, my question is is it possible to use different names for A1 and A1 when
their descriptors are executed toggether?


Additionally I can read into the assembly log the following note:
NOTE: If multiple descriptors or descriptor-formats are provided for this
project, the value of this file will be non-deterministic!

What does it mean? Does it mean that the order of the invocation/execution
of the descriptors is non-deterministic? or what?

Thank you in advance
Dobri


Re: Eclipse Plugin and WTP Facets problem

2008-05-21 Thread Martin Höller
On Wednesday 21 May 2008 Mario-Leander Reimer wrote:
 Another question: Do you know whether the eclipse:m2eclipse goal is meant
 be used in combination with the WTP settings?

No idea, I never used the m2eclipse mojo.

- martin


signature.asc
Description: This is a digitally signed message part.


Re: War dependency

2008-05-21 Thread ffbeltran

I have a similar scenario, with two webapps. I config the war plugin in
customer war:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
dependentWarExcludesWEB-INF/web.xml, index.jsp/dependentWarExcludes
!-- I want this two files of my customer war --
  /configuration
/plugin

I hope this help you. 

On the other hand, when i have a war dependency, the classes in this war are
not avaible for the project with the dependency. How can i import a war
dependency with this classes?

Sorry for my english.




zalym wrote:
 
 I have a base war, which has the UI layer, and custom wars per customer
 for content and other branding stuff.  I use the maven-war-plugin, for
 packaging the two wars into one, by adding the base war as a dependency to
 the customer war.
 
 The base war has a profile based resource filtering mechanism.  My issue
 is that when I overlay the wars with the customer war, the values have
 already been filtered, and hence no change is affected.  
 
 How do I filter the base war resources while packaging the customer war?
 
 Any help is appreciated.
 
 Regards,
 Saleem
 

-- 
View this message in context: 
http://www.nabble.com/War-dependency-tp10378044p17364168.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: NetBeans6.0 mavenide plugin 3.1.1

2008-05-21 Thread Milos Kleint
On 5/21/08, John Coleman [EMAIL PROTECTED] wrote:
 Hi Milos,

  In profiles.xml we have an active profile called DEVTST that has a
  property buildNumber.check as true, but in settings.xml we have activate
  a profile called MYPROFILE that has buildNumber.check false. We do this
  so that the buildnumber plugin doesn't check for developers, but does in
  continuum.

I'm not sure if something changed here, but it would be in maven
itself, not the maven integration in netbeans.
However I'd say your setup is somewhat non-standard in a way. I've
always assumed profiles.xml files are private in a sense they don't
get commited to svn. With that in mind it seems natural to me that the
global private settings in settings.xml are overriden by project
specific settings from profiles.xml.


I'd say if you want to have continuum to build it with checks on, that
should be the default in the sense it's in a profile that is
activated by default or is not in the profile at all, but in pom.xml
in non-profile section. then your settings.xml settings would kick in
and skip the checks and continuum (or anyone else for that matter)
would by default include the check in the process.




  It used to be the case that the property value in the settings.xml was
  applied, but now it seems the profiles.xml value takes precedence. I
  even used the new configuration dialog to activate the MYPROFILE, yet
  the property gets its value from DEVTST.

  I hope that is clear. We also seem to of found that a load of the
  artifacts in the repositories could not be accessed until the
  configuration dialog was used to choose a profile, even artifacts from
  previously reliable external repos don't get found?

hmm.. that's strange. Not sure if it's a problem in maven, mevenide or
your setup. if you have a sample application that documents the
problem, please file an issue, i'll look into it.

Milos


  Regards,

 John


   -Original Message-
   From: Milos Kleint [mailto:[EMAIL PROTECTED]
   Sent: 21 May 2008 10:02
   To: Maven Users List
   Subject: Re: NetBeans6.0 mavenide plugin 3.1.1
  
   On 5/21/08, John Coleman
   [EMAIL PROTECTED] wrote:
Hi,
   
 One of our developers just reinstalled Netbeans6.0 and as a
consequence  pickud up the latest Maven plugin 3.1.1. Now
   his builds
don't work  because the active profile set in his settings.xml is
ignored in  preference to the active profile in the profiles.xml.
Previously the  settings in settings.xml always took priority.
  
   you mean the settings.xml profiles are not active when
   loading the project or when building? that would be a bug.
   However I'm not sure what the comments about priorities mean,
   I would assume both locations would be checked and their
   active profiles activated.
  
   
 So what has changed, and how do we rectify this problem?
  
   the major change was an upgrade of the maven embedder (which
   solved a bunch of issues, but created a pile of it's own)
  
   best steps to proceed would be to file a bug report against
   mevenide and provide a sample project demonstrating the problem.
  
   Milos
  
   
 TIA,
 John
   
 Eurobase International Limited and its subsidiaries
   (Eurobase) are unable to exercise control over the content of
   information in E-Mails. Any views and opinions expressed may
   be personal to the sender and are not necessarily those of
   Eurobase. Eurobase will not enter into any contractual
   obligations in respect of any part of its business in any E-mail.
   
 Privileged / confidential information may be contained in
   this message and /or any attachments. This E-mail is intended
   for the use of the addressee(s) only and may contain
   confidential information. If you are not the / an intended
   recipient, you are hereby notified that any use or
   dissemination of this communication is strictly prohibited.
   If you receive this transmission in error, please notify us
   immediately, and then delete this E-mail.
   
 Neither the sender nor Eurobase accepts any liability
   whatsoever for any defects of any kind either in or arising
   from this E-mail transmission. E-Mail transmission cannot be
   guaranteed to be secure or error-free, as messages can be
   intercepted, lost, corrupted, destroyed, contain viruses, or
   arrive late or incomplete. Eurobase does not accept any
   responsibility for viruses and it is your responsibility to
   scan any attachments.
   
 Eurobase Systems Limited is the main trading company in
   the Eurobase International Group; registered in England and
   Wales as company number 02251162; registered address: Essex
   House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
   
   
   
   -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
   

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Matt Milliss

Our team uses the filesystem

Jason van Zyl wrote:

Hi,

I'm just trying to get some data on what protocol is used to retrieve 
artifacts. This question strictly relates to what you use for 
retrieval. Most people I have seen use a web server or a shared 
network drive, but I'd like to get some feedback.


[ ] Our team uses HTTP to retrieve our artifacts
[ ] Our team intends to use HTTP to retrieve our artifacts
[ ] Our team uses the filesystem
[ ] Our team does not use HTTP or the filesystem because  please 
say what protocol you use and the reason


Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

A language that doesn’t affect the way you think about programming is 
not worth knowing.


— Alan Perlis




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



RES: Problem with classloader in maven plugin

2008-05-21 Thread Claudio Ranieri
Anyone?
I want help the open source community, but I have this problem with classloader.

-Mensagem original-
De: Claudio Ranieri [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 20 de maio de 2008 07:47
Para: users@maven.apache.org
Assunto: Problem with classloader in maven plugin

Hi

I am trying to create a maven plugin to jboss wsconsume, but I have a problem 
with classloader in plugin.
My plugin is based in an ant task (WSConsumeTask).
I am using maven 2.0.8 on Windows machine.
When I created a simple Java project with libraries necessary, my code works.
How shown below:

public static void main(String[] args) {
  WSConsumeTask t = new WSConsumeTask();
  t.setWsdl(https://xxx/crypto?wsdl;);
  t.setVerbose(true);
  t.setKeep(true);
  t.execute();
}

But when I am using into maven plugin, I got problem with classloader.
I got this exception:

C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:7:
 cannot find symbol
symbol  : class Service
location: package javax.xml.ws
import javax.xml.ws.Service;
^
C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:8:
 cannot find symbol
symbol  : class WebEndpoint
location: package javax.xml.ws
import javax.xml.ws.WebEndpoint;
^
C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:9:
 cannot find symbol
symbol  : class WebServiceClient
location: package javax.xml.ws
import javax.xml.ws.WebServiceClient;

The plugin classloader doesn´t load the jaxws libraries. But this libraries was 
added in pom.xml of plugin.
I tried to add dependencies tag in my plugin config, but didn´t works. How 
shown below:

plugin
  groupIdjboss/groupId
  artifactIdmaven-jbossws-plugin/artifactId
  version1.0.0/version
  configuration
verbosetrue/verbose
keeptrue/keep
wsdlhttps://xxx/crypto?wsdl/wsdl
  /configuration
  dependencies
dependency
  groupIdjboss.jbossws/groupId
  artifactIdjaxws-tools/artifactId
  version3.0.1-native-2.0.4.GA/version
  scopecompile/scope
/dependency
dependency
  groupIdjboss.jbossws/groupId
  artifactIdjboss-jaxws/artifactId
  version3.0.1-native-2.0.4.GA/version
  scopecompile/scope
/dependency
  /dependencies
/plugin

I tried too to use an initClassLoader based in jaxws-maven-plugin source, how 
shown below:

   private String initClassLoader(ClassLoader parent) throws 
MojoExecutionException {
try {
List classpathFiles = 
project.getCompileClasspathElements();
URL[] urls = new URL[classpathFiles.size() + 4];
StringBuffer classPath = new StringBuffer();
for (int i = 0; i  classpathFiles.size(); ++i) {
getLog().debug((String)classpathFiles.get(i));
urls[i] = new 
File((String)classpathFiles.get(i)).toURL();
classPath.append((String)classpathFiles.get(i));
classPath.append(File.pathSeparatorChar);
}
urls[classpathFiles.size()] = new 
File(project.getBuild().getOutputDirectory()).toURL();

urls[classpathFiles.size() + 1] = 
getArtifact(jboss.jbossws:jboss-jaxws);

urls[classpathFiles.size() + 2] = 
getArtifact(jboss.jbossws:jaxws-tools);

File toolsJar = new 
File(System.getProperty(java.home),../lib/tools.jar);
if (!toolsJar.exists()) {
toolsJar = new 
File(System.getProperty(java.home),lib/tools.jar);
}
urls[classpathFiles.size() + 3] = toolsJar.toURL();

System.out.println(urls: +Arrays.toString(urls));

URLClassLoader cl = new URLClassLoader(urls,parent);
// Set the new classloader
Thread.currentThread().setContextClassLoader(cl);

System.setProperty(java.class.path,classPath.toString());
String sysCp = System.getProperty(java.class.path);
return sysCp;
}
catch (MalformedURLException e) {
throw new MojoExecutionException(e.getMessage(),e);
}
catch (DependencyResolutionRequiredException e) {
throw new MojoExecutionException(e.getMessage(),e);
}

}

public void execute() throws MojoExecutionException {
  // Need to build a URLClassloader since Maven removed it form 
the chain
ClassLoader parent = this.getClass().getClassLoader();
String originalSystemClasspath = this.initClassLoader( parent );

try {

// Execute WSConsumeTask
  

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Ryuzo Yamamoto
[X] Our team uses HTTP to retrieve our artifacts

Regards.

Ryuzo Yamamoto

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



RE: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Harper, Brad

[x] Our team does not use HTTP or the file system because

a rabidly security conscious admin insisted on using scp. It's
been the source of unnecessary headaches ever since, especially
in cross-platform settings.

[x] Our team intends to use HTTP to retrieve our artifacts

as we move to a new CI build server, which also hosts
our internal remote repositories.

Brad

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Javier Diaz




[X] Our team uses HTTP to retrieve our artifacts

Regards,

Javier


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Luke Patterson
Our team uses HTTP to retrieve our artifacts


Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Magne Nordtveit
 [X] Our team uses HTTP to retrieve our artifacts

Magne

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jason van Zyl


On 21-May-08, at 6:13 AM, Harper, Brad wrote:



[x] Our team does not use HTTP or the file system because

   a rabidly security conscious admin insisted on using scp. It's
   been the source of unnecessary headaches ever since, especially
   in cross-platform settings.



What if the HTTPS option was easier to setup, would this be acceptable  
to your admin?



[x] Our team intends to use HTTP to retrieve our artifacts

   as we move to a new CI build server, which also hosts
   our internal remote repositories.

Brad

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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

A party which is not afraid of letting culture,
business, and welfare go to ruin completely can
be omnipotent for a while.

-- Jakob Burckhardt 





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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread robert . egan
We use HTTP.

 Hi, 
 
 I'm just trying to get some data on what protocol is used to retrieve   
 artifacts. This question strictly relates to what you use for   
 retrieval. Most people I have seen use a web server or a shared   
 network drive, but I'd like to get some feedback. 
 
 [ ] Our team uses HTTP to retrieve our artifacts 
 [ ] Our team intends to use HTTP to retrieve our artifacts 
 [ ] Our team uses the filesystem 
 [ ] Our team does not use HTTP or the filesystem because  please   
 say what protocol you use and the reason 
 
 Thanks, 
 
 Jason 
---
This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.

Re: Problem with classloader in maven plugin

2008-05-21 Thread Tim Kettler

Hi,

you've missunderstood the concept of a context classloader.

A documentation bug [1] is open since a long time. Setting the context 
classloader doesn't mean that all classes created from that point on are 
created through this classloader. See here [2] and [3] for more information.


[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4868493
[2] http://www.javaworld.com/javaqa/2003-06/01-qa-0606-load.html
[3] http://www.javageeks.com/Papers/ClassForName/index.html

-Tim

Claudio Ranieri schrieb:

Hi

I am trying to create a maven plugin to jboss wsconsume, but I have a problem 
with classloader in plugin.
My plugin is based in an ant task (WSConsumeTask).
I am using maven 2.0.8 on Windows machine.
When I created a simple Java project with libraries necessary, my code works.
How shown below:

public static void main(String[] args) {
  WSConsumeTask t = new WSConsumeTask();
  t.setWsdl(https://xxx/crypto?wsdl;);
  t.setVerbose(true);
  t.setKeep(true);
  t.execute();
}

But when I am using into maven plugin, I got problem with classloader.
I got this exception:

C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:7:
 cannot find symbol
symbol  : class Service
location: package javax.xml.ws
import javax.xml.ws.Service;
^
C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:8:
 cannot find symbol
symbol  : class WebEndpoint
location: package javax.xml.ws
import javax.xml.ws.WebEndpoint;
^
C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:9:
 cannot find symbol
symbol  : class WebServiceClient
location: package javax.xml.ws
import javax.xml.ws.WebServiceClient;

The plugin classloader doesn´t load the jaxws libraries. But this libraries was 
added in pom.xml of plugin.
I tried to add dependencies tag in my plugin config, but didn´t works. How 
shown below:

plugin
  groupIdjboss/groupId
  artifactIdmaven-jbossws-plugin/artifactId
  version1.0.0/version
  configuration
verbosetrue/verbose
keeptrue/keep
wsdlhttps://xxx/crypto?wsdl/wsdl
  /configuration
  dependencies
dependency
  groupIdjboss.jbossws/groupId
  artifactIdjaxws-tools/artifactId
  version3.0.1-native-2.0.4.GA/version
  scopecompile/scope
/dependency
dependency
  groupIdjboss.jbossws/groupId
  artifactIdjboss-jaxws/artifactId
  version3.0.1-native-2.0.4.GA/version
  scopecompile/scope
/dependency
  /dependencies
/plugin

I tried too to use an initClassLoader based in jaxws-maven-plugin source, how 
shown below:

   private String initClassLoader(ClassLoader parent) throws 
MojoExecutionException {
try {
List classpathFiles = 
project.getCompileClasspathElements();
URL[] urls = new URL[classpathFiles.size() + 4];
StringBuffer classPath = new StringBuffer();
for (int i = 0; i  classpathFiles.size(); ++i) {
getLog().debug((String)classpathFiles.get(i));
urls[i] = new 
File((String)classpathFiles.get(i)).toURL();
classPath.append((String)classpathFiles.get(i));
classPath.append(File.pathSeparatorChar);
}
urls[classpathFiles.size()] = new 
File(project.getBuild().getOutputDirectory()).toURL();

urls[classpathFiles.size() + 1] = 
getArtifact(jboss.jbossws:jboss-jaxws);

urls[classpathFiles.size() + 2] = 
getArtifact(jboss.jbossws:jaxws-tools);

File toolsJar = new 
File(System.getProperty(java.home),../lib/tools.jar);
if (!toolsJar.exists()) {
toolsJar = new 
File(System.getProperty(java.home),lib/tools.jar);
}
urls[classpathFiles.size() + 3] = toolsJar.toURL();

System.out.println(urls: +Arrays.toString(urls));

URLClassLoader cl = new URLClassLoader(urls,parent);
// Set the new classloader
Thread.currentThread().setContextClassLoader(cl);

System.setProperty(java.class.path,classPath.toString());
String sysCp = System.getProperty(java.class.path);
return sysCp;
}
catch (MalformedURLException e) {
throw new MojoExecutionException(e.getMessage(),e);
}
catch (DependencyResolutionRequiredException e) {
throw new MojoExecutionException(e.getMessage(),e);
}

}

public void execute() throws MojoExecutionException {
  // Need to build a URLClassloader since Maven removed it form 

RE: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Siegmann Daniel, NY
[X] Our team uses HTTP to retrieve our artifacts

--
Daniel Siegmann
FJA-US, Inc.
512 Seventh Ave., New York, NY  10018
(212) 840-2618 ext. 139

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jeff MAURY
On Wed, May 21, 2008 at 8:15 AM, Jason van Zyl [EMAIL PROTECTED] wrote:

 Hi,

 I'm just trying to get some data on what protocol is used to retrieve
 artifacts. This question strictly relates to what you use for retrieval.
 Most people I have seen use a web server or a shared network drive, but I'd
 like to get some feedback.

 [X ] Our team uses HTTP to retrieve our artifacts
 [ ] Our team intends to use HTTP to retrieve our artifacts
 [ ] Our team uses the filesystem
 [ ] Our team does not use HTTP or the filesystem because  please say
 what protocol you use and the reason

 Thanks,

 Jason

 --
 Jason van Zyl
 Founder,  Apache Maven
 jason at sonatype dot com
 --

 A language that doesn't affect the way you think about programming is not
 worth knowing.

 — Alan Perlis




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




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal


Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Bryon Jacob

[X] Our team uses HTTP to retrieve our artifacts


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



RES: Problem with classloader in maven plugin

2008-05-21 Thread Claudio Ranieri
Hi,

Why the maven plugins doesn´t load all libraries declared in pom.xml?
I tried to use the initClassLoader because this code works in 
jaxws-maven-plugin.
In the code of jaxws-maven-plugin there is:

 Need to build a URLClassloader since Maven removed it form the chain 

Why?

Thanks


-Mensagem original-
De: Tim Kettler [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 21 de maio de 2008 10:57
Para: Maven Users List
Assunto: Re: Problem with classloader in maven plugin

Hi,

you've missunderstood the concept of a context classloader.

A documentation bug [1] is open since a long time. Setting the context
classloader doesn't mean that all classes created from that point on are
created through this classloader. See here [2] and [3] for more information.

[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4868493
[2] http://www.javaworld.com/javaqa/2003-06/01-qa-0606-load.html
[3] http://www.javageeks.com/Papers/ClassForName/index.html

-Tim

Claudio Ranieri schrieb:
 Hi

 I am trying to create a maven plugin to jboss wsconsume, but I have a problem 
 with classloader in plugin.
 My plugin is based in an ant task (WSConsumeTask).
 I am using maven 2.0.8 on Windows machine.
 When I created a simple Java project with libraries necessary, my code works.
 How shown below:

 public static void main(String[] args) {
   WSConsumeTask t = new WSConsumeTask();
   t.setWsdl(https://xxx/crypto?wsdl;);
   t.setVerbose(true);
   t.setKeep(true);
   t.execute();
 }

 But when I am using into maven plugin, I got problem with classloader.
 I got this exception:

 C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:7:
  cannot find symbol
 symbol  : class Service
 location: package javax.xml.ws
 import javax.xml.ws.Service;
 ^
 C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:8:
  cannot find symbol
 symbol  : class WebEndpoint
 location: package javax.xml.ws
 import javax.xml.ws.WebEndpoint;
 ^
 C:\eclipse\workspace\TestePluginMaven\output\com\buscape\bean\CryptoService.java:9:
  cannot find symbol
 symbol  : class WebServiceClient
 location: package javax.xml.ws
 import javax.xml.ws.WebServiceClient;

 The plugin classloader doesn´t load the jaxws libraries. But this libraries 
 was added in pom.xml of plugin.
 I tried to add dependencies tag in my plugin config, but didn´t works. How 
 shown below:

 plugin
   groupIdjboss/groupId
   artifactIdmaven-jbossws-plugin/artifactId
   version1.0.0/version
   configuration
 verbosetrue/verbose
 keeptrue/keep
 wsdlhttps://xxx/crypto?wsdl/wsdl
   /configuration
   dependencies
 dependency
   groupIdjboss.jbossws/groupId
   artifactIdjaxws-tools/artifactId
   version3.0.1-native-2.0.4.GA/version
   scopecompile/scope
 /dependency
 dependency
   groupIdjboss.jbossws/groupId
   artifactIdjboss-jaxws/artifactId
   version3.0.1-native-2.0.4.GA/version
   scopecompile/scope
 /dependency
   /dependencies
 /plugin

 I tried too to use an initClassLoader based in jaxws-maven-plugin source, how 
 shown below:

private String initClassLoader(ClassLoader parent) throws 
 MojoExecutionException {
 try {
 List classpathFiles = 
 project.getCompileClasspathElements();
 URL[] urls = new URL[classpathFiles.size() + 4];
 StringBuffer classPath = new StringBuffer();
 for (int i = 0; i  classpathFiles.size(); ++i) {
 getLog().debug((String)classpathFiles.get(i));
 urls[i] = new 
 File((String)classpathFiles.get(i)).toURL();
 classPath.append((String)classpathFiles.get(i));
 classPath.append(File.pathSeparatorChar);
 }
 urls[classpathFiles.size()] = new 
 File(project.getBuild().getOutputDirectory()).toURL();

 urls[classpathFiles.size() + 1] = 
 getArtifact(jboss.jbossws:jboss-jaxws);

 urls[classpathFiles.size() + 2] = 
 getArtifact(jboss.jbossws:jaxws-tools);

 File toolsJar = new 
 File(System.getProperty(java.home),../lib/tools.jar);
 if (!toolsJar.exists()) {
 toolsJar = new 
 File(System.getProperty(java.home),lib/tools.jar);
 }
 urls[classpathFiles.size() + 3] = toolsJar.toURL();

 System.out.println(urls: +Arrays.toString(urls));

 URLClassLoader cl = new URLClassLoader(urls,parent);
 // Set the new classloader
 Thread.currentThread().setContextClassLoader(cl);
 
 System.setProperty(java.class.path,classPath.toString());
 

Maven newbie question

2008-05-21 Thread King, Leon C


Hi All,
I have a question regarding the use of cvs and maven.   I'm
converting from Ant builds to maven.  All of my source code is currently
checked into a CVS repository.How do I create a Maven project using
code checked out from cvs?  Are there any examples using m2eclipse?

Thanks,

Leon

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



Maven Newbie Question

2008-05-21 Thread King, Leon C
 

 

Hi All,

  I have a question regarding the use of cvs and maven.   I'm
converting from Ant builds to maven.  All of my source code is currently
checked into a CVS repository.How do I create a Maven project using
code checked out from cvs?  Are there any examples using m2eclipse?

 

Thanks,

 

Leon

 



Unscribe

2008-05-21 Thread Aleksandar Basic
 

 

From: King, Leon C [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 10:56 AM
To: [EMAIL PROTECTED]
Subject: Maven Newbie Question

 

 

 

Hi All,

  I have a question regarding the use of cvs and maven.   I'm converting 
from Ant builds to maven.  All of my source code is currently checked into a 
CVS repository.How do I create a Maven project using code checked out from 
cvs?  Are there any examples using m2eclipse?

 

Thanks,

 

Leon

 



RE: Maven newbie question

2008-05-21 Thread Richard Chamberlain
I'm not sure what you're getting at here:

1) you got some source code that you have checked out from CVS that you
want imported into a maven project? 
You'll have to do this manually. Create the example maven project using
an archetype and moved your source code into it

2) you've got a maven project that you've checked out and want to import
it into eclipse?
Use file  import  general  maven project when using m2eclipse

Or

Run mvn eclipse:eclipse to generate a maven project

3) I've not understood you correctly! :)

Rich
 
-Original Message-
From: King, Leon C [mailto:[EMAIL PROTECTED] 
Sent: 21 May 2008 15:55
To: users@maven.apache.org
Subject: Maven newbie question



Hi All,
I have a question regarding the use of cvs and maven.   I'm
converting from Ant builds to maven.  All of my source code is currently
checked into a CVS repository.How do I create a Maven project using
code checked out from cvs?  Are there any examples using m2eclipse?

Thanks,

Leon

-
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: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Markku Saarela

[X] Our team uses HTTP to retrieve our artifacts

regards,

- markku

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



Error: MavenRequest

2008-05-21 Thread Clifton

Reason:
org/apache/maven/toolchain/ToolchainManager
That's what I'd been getting from time to time in IntelliJ Idea (using it's
built in Maven support) and after playing with config options and forcing it
to use the external Maven I have installed it goes away. Now I'm getting
this from the latest release of Q4E in Eclipse. Can anyone tell me what it
means or how to make it go away? Q4E doesn't allow you to use an external
Maven install, which would likely sidestep the issue.
-- 
View this message in context: 
http://www.nabble.com/Error%3A-MavenRequest-tp17364309p17364309.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Gilbert, Clint
[X] Our team uses HTTP to retrieve our artifacts

Us too.  (3 teams total, and 2 web server repos at my organization.)


-Original Message-
From: Markku Saarela [mailto:[EMAIL PROTECTED]
Sent: Wed 5/21/2008 11:14 AM
To: Maven Users List
Subject: Re: [SURVEY] How does your team retrieve artifacts?
 
[X] Our team uses HTTP to retrieve our artifacts

regards,

- markku

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

build test jar

2008-05-21 Thread Avi Laviad
hi,
i got a project which have src classes and test classes.
is there a way to install a .jar file for the src folder and another .jar
file for the test folder?

thanks in advance,
Avi.


Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Paul Spencer

 [X] Our team uses HTTP to retrieve our artifacts

Paul Spencer


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Haroon Rafique
[X] Our team uses HTTP to retrieve our artifacts

--
Haroon Rafique
[EMAIL PROTECTED]


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Aaron Metzger

On Wed, 21 May 2008 18:15:44 Jason van Zyl wrote:

[X] Our team uses HTTP to retrieve our artifacts


Authenticated HTTPS.

Our developers are distributed.  Our transport must be encrypted and 
authenticated.  We use authentication information to implement access 
control lists which control access to each artifact and even control 
access to binary jar VS source for each artifact.


I wouldn't care if that was HTTPS or some custom TCP/SSL protocol as 
long as it is authenticated and encrypted.





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



Re: build test jar

2008-05-21 Thread Robert Winch
I believe you are looking for jar:test-jar
http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html

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;
...
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
executions
execution
goals
goaltest-jar/goal
/goals
/execution
/executions
/plugin
/plugins
/build
...
/project

On Wed, May 21, 2008 at 7:43 AM, Avi Laviad [EMAIL PROTECTED] wrote:

 hi,
 i got a project which have src classes and test classes.
 is there a way to install a .jar file for the src folder and another .jar
 file for the test folder?

 thanks in advance,
 Avi.



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jason van Zyl
That's fine, I should have said HTTP/S. Secure connections are  
important.


On 21-May-08, at 8:41 AM, Aaron Metzger wrote:


On Wed, 21 May 2008 18:15:44 Jason van Zyl wrote:

[X] Our team uses HTTP to retrieve our artifacts


Authenticated HTTPS.

Our developers are distributed.  Our transport must be encrypted and  
authenticated.  We use authentication information to implement  
access control lists which control access to each artifact and even  
control access to binary jar VS source for each artifact.


I wouldn't care if that was HTTPS or some custom TCP/SSL protocol as  
long as it is authenticated and encrypted.





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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

You are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it is going to rise tomorrow. When people are fanatically
dedicated to political or religious faiths or any other kind of
dogmas or goals, it's always because these dogmas or
goals are in doubt.

-- Robert Pirzig, Zen and the Art of Motorcycle Maintenance 





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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Heinrich Nirschl
 [X] Our team uses HTTP to retrieve our artifacts

- Henry

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



RE: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Lewandowski, Eric
[X] Our team uses HTTP to retrieve our artifacts


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Rainer Pruy
Now using: HTTP(S)

was (and still to a low extent):

filesystem, scp

Rainer

Jason van Zyl schrieb:
 Hi,
 
 I'm just trying to get some data on what protocol is used to retrieve
 artifacts. This question strictly relates to what you use for retrieval.
 Most people I have seen use a web server or a shared network drive, but
 I'd like to get some feedback.
 
 [ ] Our team uses HTTP to retrieve our artifacts
 [ ] Our team intends to use HTTP to retrieve our artifacts
 [ ] Our team uses the filesystem
 [ ] Our team does not use HTTP or the filesystem because  please say
 what protocol you use and the reason
 
 Thanks,
 
 Jason
 
 --
 Jason van Zyl
 Founder,  Apache Maven
 jason at sonatype dot com
 --
 
 A language that doesn’t affect the way you think about programming is
 not worth knowing.
 
 — Alan Perlis
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Rainer Pruy
Geschäftsführer

Acrys Consult GmbH  Co. KG
Untermainkai 29-30, D-60329 Frankfurt
Tel: +49-69-244506-0 - Fax: +49-69-244506-50
Web: http://www.acrys.com -  Email: [EMAIL PROTECTED]
Handelsregister: Frankfurt am Main, HRA 31151

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



Profile activation based on packaging

2008-05-21 Thread kamal.gs

I want a profile to be activated only for projects with packaging set to ear. 
I tried the following and it didn't work.

activation
 property
nameproject.packaging/name
valueear/value
  /property
/activation

Is this supported or should I resort to using custom properties?

Thanks,
Kamal


-- 
View this message in context: 
http://www.nabble.com/Profile-activation-based-on-packaging-tp17364359p17364359.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Clint Gilbert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jan, thank you very much for your suggestion.

That was almost the first thing I tried.  The problem is that my web service 
instances (I
call them Nodes - they're components of a distributed DB system) need to talk 
to each other.

A Node needs to be compiled to generate the client bindings, and a Node needs 
to invoke
the bindings to talk to other Nodes.  There's always a circular dependency.  I 
tried to
get around this by abstracting the process of talking to a node in order to 
hide the JAXWS
client bindings from the nodes that use them.  That let me attempt the two-pass
compilation hack, but can't get around the circular dependency.

I think I'm going to bootstrap my module by checking in the generated code and 
artifacts.

Just for reference, does anyone know for sure if you can give different configs 
for
different executions of maven-compiler-plugin?

Jan Fredrik Wedén wrote:
| Hi,
|
| Could you not split this into two modules where your step 4 resides in
| a module which dependes on another module containing the results from
| 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
| to split your codebase to accomplish this.
|
| On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| [EMAIL PROTECTED] wrote:
| Hello everyone,
|
| First of all, I cannot overstate the beneficial effect that Maven has had on
| the
| development process at my organization.  To the devs: thanks for the great
| tool!
|
| I have a pom that specifies two executions of the compiler plugin, with
| different phases
| specified and different configs, but they're not both running.  (See pom
| excerpt below.)
| Is that expected?  Can I configure multiple executions of the compiler
| plugin with
| different configurations?  It seems like no - [1], [2], [3] - but I hope
| someone has an
| definitive answer.
|
| Here's some background on my problem, which I admit is fairly obscure.
| Basically, what I
| need to do is:
|
| 1 Compile class A in package org.myorg, which is annotated with @WebService
|
| 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
| compiled A.class
|
| 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side bindings
| from the
| just-generated WSDL
|
| 4 Compile non-generated classes that reference the just-generated client
| bindings. These
| live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and would
| have failed if
| compiled during step 1 because they reference code generated in step 3.
|
| I've included (what I hope are) the relevant sections of my pom below.
|
| PS: Do I need to do things this way?  Unfortunately, I think so.  Class
| org.myorg.A is a
| web service that needs to invoke other org.myorg.A web services arranged in
| a tree or mesh
| topology.  I've tried to break out the bindings, the SEI (A), and the
| classes that
| abstract the connection between As using the client bindings into
| submodules, but I've
| only managed to introduce circular dependencies.
|
| In the past, I've dealt with this sort of chicken-and-egg problem by
| generating WSDLs and
| code and then checking them into source control.  This feels bad, and makes
| updates if the
| interface of the SEI changes a hassle.  I'd much rather define a simple SEI
| annotated with
| @WebService and have the low-level stuff (WSDLs, client bindings) generated
| from that.
|
| [1]
| http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
| [2]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
PROTECTED]
| [3]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
PROTECTED]
|
| | plugin
| |   artifactIdmaven-compiler-plugin/artifactId
| |   executions
| |   execution
| |   idjaxws-pre-compilation-hack/id
| |   !-- Hack to specify order of plugin application --
| |   phaseprocess-sources/phase
| |   configuration
| |   source1.5/source
| |   target1.5/target
| |   includes
| |
| include${source.dir}/org/myorg/include
| |   /includes
| |   excludes
| |
| exclude${source.dir}/org/myorg/x/exclude
| |
| exclude${source.dir}/org/myorg/y/exclude
| |   /excludes
| |   goals
| |   goalcompile/goal
| |   /goals
| |   /configuration
| |   /execution
| |   execution
| |   idnormal-compilation/id
| |   !-- Hack to specify order of plugin application --
| |   phasecompile/phase
| |   configuration
| |   source1.5/source
| |   target1.5/target
| | 

convert a maven project and xslt:transform

2008-05-21 Thread Mansour

Hello:
I have been using maven for few month. I use it through eclipse plugin 
and only for getting the dependencies for the projects. Now I think I 
need a little more of maven. I have a project that has an xslt 
transformation. This project is NOT a maven project. I checked the 
source out of svn and attempted to run the transformation. However, it 
turned that xalan is not installed on this machine. I have not installed 
a jar file since I started using maven. It does everything I need from 
downloading the file to adding it to the classpath. I thought maven can 
help here in getting the transformation done.
I googled http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html 
but no example. Can someone give the steps to run this transformation? 
and possibly convert the project to maven?


I have checked this http://maven.apache.org/plugins/ and couldn't find 
anything related to xslt.




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



Unable to create project based on spring-rpc arhectype

2008-05-21 Thread Mikko Ravimo
Hi,

 First dowloading the spring richclient project and running install for
it: *
[INFO]

[INFO] Building Spring richclient archetype
[INFO]task-segment: [install]
[INFO]

[INFO] [jar:jar]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] Building jar:
/home/mikko/temp/spring-richclient/spring-richclient-archetype/target/spring-richclient-archetype-1.0.0-sources.jar
INFO] [install:install]
[INFO] Installing
/home/mikko/temp/spring-richclient/spring-richclient-archetype/target/spring-richclient-archetype-1.0.0.jar
to
/home/mikko/.m2/repository/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0.jar
[INFO] Installing
/home/mikko/temp/spring-richclient/spring-richclient-archetype/target/spring-richclient-archetype-1.0.0-sources.jar
to
/home/mikko/.m2/repository/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0-sources.jar
[INFO]

[INFO] Reactor Summary:
[INFO]

[INFO] Spring richclient archetype ... SUCCESS
[0.146s]
[INFO]

[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]



 Then trying to create project based on the archetype: *
[EMAIL PROTECTED]:~/temp$ mvn -e archetype:create
-DarchetypeGroupId=org.springframework.richclient
-DarchetypeArtifactId=spring-richclient-archetype -DarchetypeVersion=1.0.0
-DgroupId=nakoradio -DartifactId=jticks

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating from archetype
Embedded error: OldArchetype does not exist.
http://repo1.maven.org/maven2/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0.jar
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework.richclient
-DartifactId=spring-richclient-archetype -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.springframework.richclient
-DartifactId=spring-richclient-archetype -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

* Ok. So off to install it: *
[EMAIL PROTECTED]:~/temp$ mvn install:install-file
-DgroupId=org.springframework.richclient
-DartifactId=spring-richclient-archetype -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/home/mikko/.m2/repository/org/springframework/richclient/spring-richclient-archetype/1.0.0/spring-richclient-archetype-1.0.0.jar
[ERROR] BUILD FAILURE
[INFO]

[INFO] Cannot install artifact. Artifact is already in the local repository.


So I tried to create a new project based on the archetype. Failed because
the archetype was not found. Tried to install the archetype, but it fails
because it is already there.

What is the problem here?


[clover:instrument forked lifecyle] modified project artifacts list do not get propagated to the WAR/EAR mojos. Is this expected ?

2008-05-21 Thread Jerome Lacoste
Clovered EAR / WAR artifacts lacks clovered versions of transitive
dependencies. Cf:  http://jira.codehaus.org/browse/MCLOVER-70. This
issue still exists in the maven clover plugin 3.7 from atlassian.
We've tested maven 2.0.6 and 2.0.9.

The issue is caused apparently as the clover plugins tries to modify
the project artifacts list in a forked lifecycle, but the change is
not propagated to the mojos executed later on. My understanding is
that the way clover tries to achieve this is not possible, as the
forked lifecycle ends before the war/ear mojos are executed.

Can someone confirm this reasoning, and maybe provide an alternative
solution to this problem ?

Details:
***
The clover instrument mojo forks its own lifecycle. This lifecyle then
triggers the clover instrumentInternal after the validate phase. In
this forked lifecycle, the instrumentInternal mojo is bound to the
install phase.

In 
http://svn.atlassian.com/svn/public/contrib/clover/maven-clover-plugin/trunk/src/main/java/com/atlassian/maven/plugin/clover/CloverInstrumentMojo.java
 * @goal instrument
 * @execute phase=install lifecycle=clover

Then
http://svn.atlassian.com/svn/public/contrib/clover/maven-clover-plugin/trunk/src/main/resources/META-INF/maven/lifecycle.xml

lifecycle
  idclover/id
phases
  phase
 idvalidate/id
 
executionsexecutiongoalsgoalinstrumentInternal/goal/goals/execution/executions


So when we run clover:instrument as part of a WAR project we see the
following things happening.

[INFO] [clover:instrument]
[...]
[INFO] [clover:instrumentInternal]
[...]
[INFO] [resources:resources]
[...]

[INFO] [war:war]

As part of clover:instrumentInternal, clover tries to override the
project artifacts and dependency artifacts.
This is done here:

http://svn.atlassian.com/svn/public/contrib/clover/maven-clover-plugin/trunk/src/main/java/com/atlassian/maven/plugin/clover/CloverInstrumentInternalMojo.java

 * @goal instrumentInternal
 * @phase validate
 * @requiresDependencyResolution test

 private void swizzleCloverDependencies()
{
getProject().setDependencyArtifacts(
swizzleCloverDependencies(
getProject().getDependencyArtifacts() ) );
getProject().setArtifacts(
swizzleCloverDependencies( getProject().getArtifacts() ) );
}


According to the debug logs, the swizzleCloverDependencies does the
thing properly:

[INFO] [clover:instrumentInternal]
[...]
DEBUG] [Clover]  source root
[C:\b2bdev\projects\helloWorld\webapp\src\test\java]
[DEBUG] [Clover] List of dependency artifacts after changes:
[DEBUG] [Clover]   Artifact [junit:junit:jar:3.8.1], scope = [test]
[DEBUG] [Clover]   Artifact [com.cenqua.clover:clover:jar:2.1.0],
scope = [compile]
[DEBUG] [Clover]   Artifact [com.test.helloworld:app:jar:clover:1.0],
scope = [compile]
[DEBUG] [Clover] List of artifacts after changes:
[DEBUG] [Clover]   Artifact [junit:junit:jar:3.8.1], scope = [test]
[DEBUG] [Clover]   Artifact [com.test.helloworld:app1:jar:clover:1.0],
scope = [compile]
[DEBUG] [Clover]   Artifact [com.test.helloworld:app:jar:clover:1.0],
scope = [compile]
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' --

The problem is when the war mojo is invoked later on, the list of
artifacts is still the old one. I.e. we miss some clovered artifacts.

Did the forked life cycle stop after the execution of the
instrumentInternal mojo and did the changes setArtifacts() get lost ?

Or should I expect maven to appropriately pass the appropriate
artifacts to the war mojo, as invoked as part of this special lifecyle
?

Cheers,

Jerome

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



Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Jan Fredrik Wedén
Hmm, I'm not very familiar with jaxws so maybe I don't understand the
full picture here. It just seems that if a class in one package can be
compiled and used when generating wsdl and client bidnings without
reference to other packages in the module, it can also be used for the
same steps in module by itself.

Unless you mean that compilation of a webservice class requires client
bindings from another service which is not yet built since it requires
the client bindings you are about to build - that would be a painful
circular dep. But I guess such a situation cannot be solved by
conventional means anyhow...

On Wed, May 21, 2008 at 7:03 PM, Clint Gilbert
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Jan, thank you very much for your suggestion.

 That was almost the first thing I tried.  The problem is that my web service
 instances (I
 call them Nodes - they're components of a distributed DB system) need to
 talk to each other.

 A Node needs to be compiled to generate the client bindings, and a Node
 needs to invoke
 the bindings to talk to other Nodes.  There's always a circular dependency.
  I tried to
 get around this by abstracting the process of talking to a node in order to
 hide the JAXWS
 client bindings from the nodes that use them.  That let me attempt the
 two-pass
 compilation hack, but can't get around the circular dependency.

 I think I'm going to bootstrap my module by checking in the generated code
 and artifacts.

 Just for reference, does anyone know for sure if you can give different
 configs for
 different executions of maven-compiler-plugin?

 Jan Fredrik Wedén wrote:
 | Hi,
 |
 | Could you not split this into two modules where your step 4 resides in
 | a module which dependes on another module containing the results from
 | 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
 | to split your codebase to accomplish this.
 |
 | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
 | [EMAIL PROTECTED] wrote:
 | Hello everyone,
 |
 | First of all, I cannot overstate the beneficial effect that Maven has had
 on
 | the
 | development process at my organization.  To the devs: thanks for the great
 | tool!
 |
 | I have a pom that specifies two executions of the compiler plugin, with
 | different phases
 | specified and different configs, but they're not both running.  (See pom
 | excerpt below.)
 | Is that expected?  Can I configure multiple executions of the compiler
 | plugin with
 | different configurations?  It seems like no - [1], [2], [3] - but I hope
 | someone has an
 | definitive answer.
 |
 | Here's some background on my problem, which I admit is fairly obscure.
 | Basically, what I
 | need to do is:
 |
 | 1 Compile class A in package org.myorg, which is annotated with
 @WebService
 |
 | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
 | compiled A.class
 |
 | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side
 bindings
 | from the
 | just-generated WSDL
 |
 | 4 Compile non-generated classes that reference the just-generated client
 | bindings. These
 | live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and would
 | have failed if
 | compiled during step 1 because they reference code generated in step 3.
 |
 | I've included (what I hope are) the relevant sections of my pom below.
 |
 | PS: Do I need to do things this way?  Unfortunately, I think so.  Class
 | org.myorg.A is a
 | web service that needs to invoke other org.myorg.A web services arranged
 in
 | a tree or mesh
 | topology.  I've tried to break out the bindings, the SEI (A), and the
 | classes that
 | abstract the connection between As using the client bindings into
 | submodules, but I've
 | only managed to introduce circular dependencies.
 |
 | In the past, I've dealt with this sort of chicken-and-egg problem by
 | generating WSDLs and
 | code and then checking them into source control.  This feels bad, and
 makes
 | updates if the
 | interface of the SEI changes a hassle.  I'd much rather define a simple
 SEI
 | annotated with
 | @WebService and have the low-level stuff (WSDLs, client bindings)
 generated
 | from that.
 |
 | [1]
 | http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
 | [2]
 |
 http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
 PROTECTED]
 | [3]
 |
 http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
 PROTECTED]
 |
 | | plugin
 | |   artifactIdmaven-compiler-plugin/artifactId
 | |   executions
 | |   execution
 | |   idjaxws-pre-compilation-hack/id
 | |   !-- Hack to specify order of plugin application
 --
 | |   phaseprocess-sources/phase
 | |   configuration
 | |   source1.5/source
 | |   target1.5/target
 | |   includes
 | |
 | 

Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Daniel Kulp


One option is to go completely code first and not generate anything.
Use the same SEI interface for the client and for the service impls.
You don't need to generate any wsdl's or anything then.I know  
Apache CXF supports that directly without problems.   No generation of  
anything needed at all.   With the Sun RI, you would still need wsgen  
to generate the wrapper beans/fault beans, but it can also compile them.


Dan



On May 21, 2008, at 1:03 PM, Clint Gilbert wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jan, thank you very much for your suggestion.

That was almost the first thing I tried.  The problem is that my web  
service instances (I
call them Nodes - they're components of a distributed DB system)  
need to talk to each other.


A Node needs to be compiled to generate the client bindings, and a  
Node needs to invoke
the bindings to talk to other Nodes.  There's always a circular  
dependency.  I tried to
get around this by abstracting the process of talking to a node in  
order to hide the JAXWS
client bindings from the nodes that use them.  That let me attempt  
the two-pass

compilation hack, but can't get around the circular dependency.

I think I'm going to bootstrap my module by checking in the  
generated code and artifacts.


Just for reference, does anyone know for sure if you can give  
different configs for

different executions of maven-compiler-plugin?

Jan Fredrik Wedén wrote:
| Hi,
|
| Could you not split this into two modules where your step 4  
resides in
| a module which dependes on another module containing the results  
from

| 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
| to split your codebase to accomplish this.
|
| On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| [EMAIL PROTECTED] wrote:
| Hello everyone,
|
| First of all, I cannot overstate the beneficial effect that Maven  
has had on

| the
| development process at my organization.  To the devs: thanks for  
the great

| tool!
|
| I have a pom that specifies two executions of the compiler plugin,  
with

| different phases
| specified and different configs, but they're not both running.   
(See pom

| excerpt below.)
| Is that expected?  Can I configure multiple executions of the  
compiler

| plugin with
| different configurations?  It seems like no - [1], [2], [3] - but  
I hope

| someone has an
| definitive answer.
|
| Here's some background on my problem, which I admit is fairly  
obscure.

| Basically, what I
| need to do is:
|
| 1 Compile class A in package org.myorg, which is annotated with  
@WebService

|
| 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
| compiled A.class
|
| 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client- 
side bindings

| from the
| just-generated WSDL
|
| 4 Compile non-generated classes that reference the just-generated  
client

| bindings. These
| live in separate sub-packages - org.myorg.x, org.myorg.y, etc -  
and would

| have failed if
| compiled during step 1 because they reference code generated in  
step 3.

|
| I've included (what I hope are) the relevant sections of my pom  
below.

|
| PS: Do I need to do things this way?  Unfortunately, I think so.   
Class

| org.myorg.A is a
| web service that needs to invoke other org.myorg.A web services  
arranged in

| a tree or mesh
| topology.  I've tried to break out the bindings, the SEI (A), and  
the

| classes that
| abstract the connection between As using the client bindings into
| submodules, but I've
| only managed to introduce circular dependencies.
|
| In the past, I've dealt with this sort of chicken-and-egg problem by
| generating WSDLs and
| code and then checking them into source control.  This feels bad,  
and makes

| updates if the
| interface of the SEI changes a hassle.  I'd much rather define a  
simple SEI

| annotated with
| @WebService and have the low-level stuff (WSDLs, client bindings)  
generated

| from that.
|
| [1]
| http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
| [2]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
PROTECTED]
| [3]
|
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
PROTECTED]
|
| | plugin
| |   artifactIdmaven-compiler-plugin/artifactId
| |   executions
| |   execution
| |   idjaxws-pre-compilation-hack/id
| |   !-- Hack to specify order of plugin  
application --

| |   phaseprocess-sources/phase
| |   configuration
| |   source1.5/source
| |   target1.5/target
| |   includes
| |
| include${source.dir}/org/myorg/include
| |   /includes
| |   excludes
| |
| exclude${source.dir}/org/myorg/x/exclude
| |
| exclude${source.dir}/org/myorg/y/exclude
| |   

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jerome Lacoste
On Wed, May 21, 2008 at 8:15 AM, Jason van Zyl [EMAIL PROTECTED] wrote:
 Hi,

 [X ] Our team uses HTTP to retrieve our artifacts

Jerome

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Agile Aspect

[ x] Our team uses HTTP to retrieve our artifacts
[ x] Our team uses the filesystem

--
Article. VI. Clause 3 of the constitution of the United States states: 

The Senators and Representatives before mentioned, and the Members of 
the several State Legislatures, and all executive and judicial Officers, 
both of the United States and of the several States, shall be bound by 
Oath or Affirmation, to support this Constitution; but no religious Test 
shall ever be required as a Qualification to any Office or public Trust 
under the United States. 




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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Andrew Robinson
[X ] Our team uses HTTP to retrieve our artifacts

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



Weird Signed Jar Issue

2008-05-21 Thread Adam
Hey all,

I have a project that is creating a signed JAR off of a JAR built with
dependencies.  Up until recently (for the last year at least) it has
worked fine with my configuration.  All of a sudden it will not build
on Windows (but is fine on Linux).  The error I am getting is:

[INFO] jarsigner: unable to sign jar: java.util.zip.ZipException:
duplicate entry: com/mobilvox/../../applet/...Applet.class
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Result of cmd.exe /X /C 'C:\Program
Files\Java\jdk1.6.0_02\jre\..\bin\jarsigner.exe -verbose -storepass
** -keypass ** -signedjar
C:\dev\workspace\proj-113\..\..\applet\target\signed\...-1.2-SNAPSHOT.jar
C:\dev\workspace\proj-113\...\...target...-1.2-SNAPSHOT-jar-with-dependencies.jar
MobilVox' execution is: '1'.


When I look at the JAR I do actually have 2 of the .class files but,
the only places they exist are in the JAR in the build output
directory and the other is in buildOutputDirectory/classes

My environment:

Windows XP SP2
Maven 2.0.8
Java 1.6.0_2


Also, here is the pom configuration:

build
plugins
plugin
artifactIdmaven-assembly-plugin/artifactId
configuration
descriptorRefs

descriptorRefjar-with-dependencies/descriptorRef
/descriptorRefs
/configuration
executions
execution
idmake-assembly/id
phasepackage/phase
goals
goalattached/goal
/goals
/execution
/executions
/plugin
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
alias.../alias
keypass.../keypass
storepass.../storepass
jarPath

${project.build.directory}/${project.build.finalName}-jar-with-dependencies.${project.packaging}
/jarPath
signedjar

${project.build.directory}/signed/${project.build.finalName}.jar
/signedjar
verifytrue/verify
verbosetrue/verbose
certstrue/certs
/configuration
executions
execution
goals
goalsign/goal
/goals
/execution
/executions
/plugin
/plugins
/build

 Again, this works fine in Linux and worked for the last year up until
recently.

Thanks in advance,

Adam Altemus
MobilVox, Inc
http://www.mobilvox.com

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Wendy Smoak
On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED] wrote:

 [X] Our team uses HTTP to retrieve our artifacts

... and should be using HTTPS because some repos require
authentication.  While we're on the subject, the plain text passwords
in settings.xml are a problem (violation of corporate policy that
passwords always be encrypted.)

-- 
Wendy

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



RE: Maven newbie question

2008-05-21 Thread King, Leon C
Thanks Richard!!!

-Original Message-
From: Richard Chamberlain [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 11:06 AM
To: Maven Users List
Subject: RE: Maven newbie question

I'm not sure what you're getting at here:

1) you got some source code that you have checked out from CVS that you
want imported into a maven project? 
You'll have to do this manually. Create the example maven project using
an archetype and moved your source code into it

2) you've got a maven project that you've checked out and want to import
it into eclipse?
Use file  import  general  maven project when using m2eclipse

Or

Run mvn eclipse:eclipse to generate a maven project

3) I've not understood you correctly! :)

Rich
 
-Original Message-
From: King, Leon C [mailto:[EMAIL PROTECTED] 
Sent: 21 May 2008 15:55
To: users@maven.apache.org
Subject: Maven newbie question



Hi All,
I have a question regarding the use of cvs and maven.   I'm
converting from Ant builds to maven.  All of my source code is currently
checked into a CVS repository.How do I create a Maven project using
code checked out from cvs?  Are there any examples using m2eclipse?

Thanks,

Leon

-
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: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Adam
[ ] Our team uses HTTP to retrieve our artifacts

On Wed, May 21, 2008 at 4:07 PM, Wendy Smoak [EMAIL PROTECTED] wrote:
 On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED] wrote:

 [X] Our team uses HTTP to retrieve our artifacts

 ... and should be using HTTPS because some repos require
 authentication.  While we're on the subject, the plain text passwords
 in settings.xml are a problem (violation of corporate policy that
 passwords always be encrypted.)

 --
 Wendy

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





-- 
Adam Altemus
MobilVox, Inc.
http://www.mobilvox.com

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



mvn site vs mvn package differences with eclipse plung

2008-05-21 Thread wxlund

I am having problems getting my surefire reports from mvn site.  When I run
mvn package the unit tests seem to report the tests correctly.  I randomly
tested the failed tests within eclipse and found that the failing tests
broken inside and outside of eclipse (meaning when I run mvn package). 

I correctly get the following:

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

BUILD SUCCESSFUL
Total time: 2 minutes 49 seconds
[INFO] Extracting errors and failures from surefire reports
---
 T E S T S 
---
Ran com.accenture.tools.sd.model.domain.util.BaseTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec 
FAILURE!
Ran com.accenture.tools.sd.model.domain.util.Composite_MultiLineEntryTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec
Ran com.accenture.tools.sd.model.domain.util.CreateNamesTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.0 sec
Ran com.accenture.tools.sd.model.domain.util.DomainaValidatorBorderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.959 sec
Ran com.accenture.tools.sd.model.domain.util.DomainOverrideTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatoMenuTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.159 sec
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorBaseEnumerationTypeTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.039 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorBitmapTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.979 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorClientTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.978 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorComboBoxTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.029 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorComponentTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.069 sec
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorCompositeCompositeTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.899 sec
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorCompositeDataWidgetTest
Tests run: 7, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 0.979 sec
 FAILURE!
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorCompositeElementTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.999 sec
 FAILURE!
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorCompositeRadioButtonTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.089 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorCompositeTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.139 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorDataElementTest
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.269 sec
 FAILURE!
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorDataSetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.109 sec
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorFacetBaseDateTimeTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.969 sec
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorFileStructureTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.079 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorFontTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.029 sec
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorGhostStaticImageTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.019 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorIndexTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.989 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorJpegTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.029 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorListBoxTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.889 sec
 ERROR!
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorlistboxwidgetElementTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.818 sec
 ERROR!
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorMaskTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.869 sec
Ran com.accenture.tools.sd.model.domain.util.DomainValidatorMessageTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.059 sec
Ran
com.accenture.tools.sd.model.domain.util.DomainValidatorMultiLineEntryTest
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.969 sec
 FAILURE!
Ran 

RE: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Sean Hennessy
Perhaps one convention being the client bindings from another service could be 
resolved by a common IService class that each client Node would derive from and 
be dependent?
Thereby decoupling the maven compile time binding to a generic class?
Unless you mean that compilation of a webservice class requires client 
bindings from another service which is not yet built since it requires the 
client bindings you are about to build - that would be a painful circular 
dep. But I guess such a situation cannot be solved by conventional means 
anyhow...



-Original Message-
From: Jan Fredrik Wedén [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 21, 2008 11:25 AM
To: Maven Users List
Subject: Re: Running maven-compiler-plugin and maven-jaxws-plugin with 
different configurations in different phases


Hmm, I'm not very familiar with jaxws so maybe I don't understand the full 
picture here. It just seems that if a class in one package can be compiled and 
used when generating wsdl and client bidnings without reference to other 
packages in the module, it can also be used for the same steps in module by 
itself.

Unless you mean that compilation of a webservice class requires client bindings 
from another service which is not yet built since it requires the client 
bindings you are about to build - that would be a painful circular dep. But I 
guess such a situation cannot be solved by conventional means anyhow...

On Wed, May 21, 2008 at 7:03 PM, Clint Gilbert [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Jan, thank you very much for your suggestion.

 That was almost the first thing I tried.  The problem is that my web
 service instances (I call them Nodes - they're components of a
 distributed DB system) need to talk to each other.

 A Node needs to be compiled to generate the client bindings, and a
 Node needs to invoke the bindings to talk to other Nodes.  There's
 always a circular dependency.  I tried to
 get around this by abstracting the process of talking to a node in order to
 hide the JAXWS
 client bindings from the nodes that use them.  That let me attempt the
 two-pass
 compilation hack, but can't get around the circular dependency.

 I think I'm going to bootstrap my module by checking in the generated
 code and artifacts.

 Just for reference, does anyone know for sure if you can give
 different configs for different executions of maven-compiler-plugin?

 Jan Fredrik Wedén wrote:
 | Hi,
 |
 | Could you not split this into two modules where your step 4 resides
 | in a module which dependes on another module containing the results
 | from 1, 2 and 3? Seems like the most correct Maven-way if you are
 | allowed to split your codebase to accomplish this.
 |
 | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
 | [EMAIL PROTECTED] wrote: Hello everyone,
 |
 | First of all, I cannot overstate the beneficial effect that Maven
 | has had
 on
 | the
 | development process at my organization.  To the devs: thanks for the
 | great tool!
 |
 | I have a pom that specifies two executions of the compiler plugin,
 | with different phases specified and different configs, but they're
 | not both running.  (See pom excerpt below.)
 | Is that expected?  Can I configure multiple executions of the compiler
 | plugin with
 | different configurations?  It seems like no - [1], [2], [3] - but I hope
 | someone has an
 | definitive answer.
 |
 | Here's some background on my problem, which I admit is fairly
 | obscure. Basically, what I need to do is:
 |
 | 1 Compile class A in package org.myorg, which is annotated with
 @WebService
 |
 | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
 | compiled A.class
 |
 | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side
 bindings
 | from the
 | just-generated WSDL
 |
 | 4 Compile non-generated classes that reference the just-generated
 | client bindings. These live in separate sub-packages - org.myorg.x,
 | org.myorg.y, etc - and would have failed if
 | compiled during step 1 because they reference code generated in step 3.
 |
 | I've included (what I hope are) the relevant sections of my pom
 | below.
 |
 | PS: Do I need to do things this way?  Unfortunately, I think so.
 | Class org.myorg.A is a web service that needs to invoke other
 | org.myorg.A web services arranged
 in
 | a tree or mesh
 | topology.  I've tried to break out the bindings, the SEI (A), and
 | the classes that abstract the connection between As using the client
 | bindings into submodules, but I've
 | only managed to introduce circular dependencies.
 |
 | In the past, I've dealt with this sort of chicken-and-egg problem by
 | generating WSDLs and code and then checking them into source
 | control.  This feels bad, and
 makes
 | updates if the
 | interface of the SEI changes a hassle.  I'd much rather define a
 | simple
 SEI
 | annotated with
 | @WebService and have the low-level stuff (WSDLs, client bindings)
 generated
 | from that.
 |
 | [1]
 | 

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jason van Zyl


On 21-May-08, at 1:07 PM, Wendy Smoak wrote:

On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED]  
wrote:



[X] Our team uses HTTP to retrieve our artifacts


... and should be using HTTPS because some repos require
authentication.  While we're on the subject, the plain text passwords
in settings.xml are a problem (violation of corporate policy that
passwords always be encrypted.)



Oleg implemented a solution in plexus-cipher and I haven't pushed him  
to give me patches for the rest but I will eventually or someone else  
can harass him :-) But he's got an encrypted store for passwords.



--
Wendy

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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

-- Buddha 





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



Subprojects organization

2008-05-21 Thread Mezei Zoltan
Hi,

I have a so-so big project that I have to import into Maven. The
projects consists of about 100 modules which are organized in a
tree-like structure:

BigProject
--Libraries
Content
--Services
Voting
--VotingWeb
--VotingBL
Help
--HelpWeb
...

As you can see the hierarchy is fairly complex, it has a varying
number of levels. Besides that the dependencies between the projects
are really crazy, almost anything can depend on almost anything in the
hierarchy.

I've come up with two solutions on how to import these modules to maven:
- keep the original structure between parent and children projects and
create multi-level multi-module projects in maven
- create only one multi-module project and convert all the leaf
modules a subproject of this one parent.

I'd prefer the first solution because it preserves the hierarchy, but
when I tried that multi-level solution before I ran into problems with
javadoc/Xref/PMD/CPD and other report generations - I basically
couldn't achieve that the BigProject's reports properly include every
module's reports. With the second one this problem is bypassed - but I
lose the hierarchy.

What do you think? Which way should I prefer?
-- 
Zizi

Life under mob rule is solitary, poor, nasty, brutish and short. Life
on a poorly run software project is solitary, poor, nasty, brutish and
hardly ever short enough.

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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Mark Struberg

We use HTTP internally in Vienna plus ssh tunnels for our guys in Toronto and 
Mountain View.

Would native SSH support also be a possible option?
If so, one could also use GPG or even official X.509 certificates - no 
cleartext passwords anymore...

LieGrü,
strub

--- Wendy Smoak [EMAIL PROTECTED] schrieb am Mi, 21.5.2008:

 Von: Wendy Smoak [EMAIL PROTECTED]
 Betreff: Re: [SURVEY] How does your team retrieve artifacts?
 An: Maven Users List users@maven.apache.org
 Datum: Mittwoch, 21. Mai 2008, 22:07
 On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl
 [EMAIL PROTECTED] wrote:
 
  [X] Our team uses HTTP to retrieve our artifacts
 
 ... and should be using HTTPS because some repos require
 authentication.  While we're on the subject, the plain
 text passwords
 in settings.xml are a problem (violation of corporate
 policy that
 passwords always be encrypted.)
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]


  __
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

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



integration-test practices

2008-05-21 Thread Paul Davis
It seems the documentation for the integration-test phase is pretty thin (as
in, where is it?).

I can't seem to get resources accessible by the test code.

Is there some undocumented convention I should be following?


Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Clint Gilbert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

So could I generate client code directly from a class annotated with 
@WebService, without
generating an intermediary WSDL?  I couldn't find a way to do that with 
wsgen/wsimport,
but I'd love it if that was possible.

Daniel Kulp wrote:
|
| One option is to go completely code first and not generate anything.
| Use the same SEI interface for the client and for the service impls.
| You don't need to generate any wsdl's or anything then.I know Apache
| CXF supports that directly without problems.   No generation of anything
| needed at all.   With the Sun RI, you would still need wsgen to generate
| the wrapper beans/fault beans, but it can also compile them.
|
| Dan
|
|
|
| On May 21, 2008, at 1:03 PM, Clint Gilbert wrote:
|
| Jan, thank you very much for your suggestion.
|
| That was almost the first thing I tried.  The problem is that my web
| service instances (I
| call them Nodes - they're components of a distributed DB system) need
| to talk to each other.
|
| A Node needs to be compiled to generate the client bindings, and a
| Node needs to invoke
| the bindings to talk to other Nodes.  There's always a circular
| dependency.  I tried to
| get around this by abstracting the process of talking to a node in
| order to hide the JAXWS
| client bindings from the nodes that use them.  That let me attempt the
| two-pass
| compilation hack, but can't get around the circular dependency.
|
| I think I'm going to bootstrap my module by checking in the generated
| code and artifacts.
|
| Just for reference, does anyone know for sure if you can give
| different configs for
| different executions of maven-compiler-plugin?
|
| Jan Fredrik Wedén wrote:
| | Hi,
| |
| | Could you not split this into two modules where your step 4 resides in
| | a module which dependes on another module containing the results from
| | 1, 2 and 3? Seems like the most correct Maven-way if you are allowed
| | to split your codebase to accomplish this.
| |
| | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| | [EMAIL PROTECTED] wrote:
| | Hello everyone,
| |
| | First of all, I cannot overstate the beneficial effect that Maven
| has had on
| | the
| | development process at my organization.  To the devs: thanks for the
| great
| | tool!
| |
| | I have a pom that specifies two executions of the compiler plugin, with
| | different phases
| | specified and different configs, but they're not both running.  (See
| pom
| | excerpt below.)
| | Is that expected?  Can I configure multiple executions of the compiler
| | plugin with
| | different configurations?  It seems like no - [1], [2], [3] - but I
| hope
| | someone has an
| | definitive answer.
| |
| | Here's some background on my problem, which I admit is fairly obscure.
| | Basically, what I
| | need to do is:
| |
| | 1 Compile class A in package org.myorg, which is annotated with
| @WebService
| |
| | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from the
| | compiled A.class
| |
| | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client-side
| bindings
| | from the
| | just-generated WSDL
| |
| | 4 Compile non-generated classes that reference the just-generated
| client
| | bindings. These
| | live in separate sub-packages - org.myorg.x, org.myorg.y, etc - and
| would
| | have failed if
| | compiled during step 1 because they reference code generated in step 3.
| |
| | I've included (what I hope are) the relevant sections of my pom below.
| |
| | PS: Do I need to do things this way?  Unfortunately, I think so.  Class
| | org.myorg.A is a
| | web service that needs to invoke other org.myorg.A web services
| arranged in
| | a tree or mesh
| | topology.  I've tried to break out the bindings, the SEI (A), and the
| | classes that
| | abstract the connection between As using the client bindings into
| | submodules, but I've
| | only managed to introduce circular dependencies.
| |
| | In the past, I've dealt with this sort of chicken-and-egg problem by
| | generating WSDLs and
| | code and then checking them into source control.  This feels bad,
| and makes
| | updates if the
| | interface of the SEI changes a hassle.  I'd much rather define a
| simple SEI
| | annotated with
| | @WebService and have the low-level stuff (WSDLs, client bindings)
| generated
| | from that.
| |
| | [1]
| |
| http://weblogs.java.net/blog/ss141213/archive/2007/11/my_maven_experi.html
|
| | [2]
| |
|
http://mail-archives.apache.org/mod_mbox/maven-users/200711.mbox/[EMAIL 
PROTECTED]

|
| | [3]
| |
|
http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL 
PROTECTED]

|
| |
| | | plugin
| | |   artifactIdmaven-compiler-plugin/artifactId
| | |   executions
| | |   execution
| | |   idjaxws-pre-compilation-hack/id
| | |   !-- Hack to specify order of plugin
| application --
| | |   phaseprocess-sources/phase
| | |   configuration
| | 

Re: mvn site vs mvn package differences caused by cobertura

2008-05-21 Thread wxlund

After a little more exploring I found the root problem for the inconsistency
between mvn site and mvn package.  (Disclaimer:  I've used maven for a few
years but have always leaned on smart Dev Arch guys that know the tool much
better than myself for setting things up correctly).  Anyway,  the culprit
is the cobertura step.  Cobertura reruns the tests but doesn't run them with
the required maven-psteclipse-plugin.  This explains why it throws bogus
errors on not being able to find the bundle activators.  

Question:  How can I get Cobertura to use psteclipse (Junit Plug-in Tests)
for running the tests instead of the default junit testing?  For now I
commented it out of the reporting section so that I can at least see the
results of unit testing.  Any help would be appreciated.  
-- 
View this message in context: 
http://www.nabble.com/mvn-site-vs-mvn-package-differences-with-eclipse-plugin-tp17372004p17386787.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [SURVEY] How does your team retrieve artifacts?

2008-05-21 Thread Jason van Zyl


On 21-May-08, at 3:04 PM, Mark Struberg wrote:



We use HTTP internally in Vienna plus ssh tunnels for our guys in  
Toronto and Mountain View.


Would native SSH support also be a possible option?
If so, one could also use GPG or even official X.509 certificates -  
no cleartext passwords anymore...




For tunnels I would think almost always IT folks will take care of  
this and you'll just use HTTP. Is HTTP/S a problem?



LieGrü,
strub

--- Wendy Smoak [EMAIL PROTECTED] schrieb am Mi, 21.5.2008:


Von: Wendy Smoak [EMAIL PROTECTED]
Betreff: Re: [SURVEY] How does your team retrieve artifacts?
An: Maven Users List users@maven.apache.org
Datum: Mittwoch, 21. Mai 2008, 22:07
On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl
[EMAIL PROTECTED] wrote:


[X] Our team uses HTTP to retrieve our artifacts


... and should be using HTTPS because some repos require
authentication.  While we're on the subject, the plain
text passwords
in settings.xml are a problem (violation of corporate
policy that
passwords always be encrypted.)

--
Wendy

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



 __
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

-- Buddha 





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



Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Clint Gilbert

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

True, in my case that, along with a little dynamic classloading, would get rid 
of the
source-level circular dependency.  It's similar to the way I've currently 
abstracted the
process of Nodes talking to each other - I have an abstract base NodeConnector. 
 However,
there would still be a pom-level circular dependency, since the node module 
(with client
bindings) depends on the nodeconnector module to talk to other nodes, and the
nodeconnector module depends on the node module for the client bindings needed 
to actually
talk to another Node.  I thought about breaking the client bindings out into 
their own
module, but that just turns a 2-vertex dependency cycle into a 3-vertex 
triangular-shaped one.

Ultimately, I'm sorry, as I posed my original question before I'd thought 
through my
situation fully.  I thought I could get around my circular dependency issue by 
jumping
through some very hacky hoops in one of my poms, but the circular dependency 
will always
be there in my case.

I bootstrapped everything by running wsgen and wsimport manually and checking 
in the
generated artifacts, and while slightly unpleasant, it seems a lot better than 
trying to
hack something together to generate everything on the fly, as it were, from by 
@WebService
class.

Thanks to all who offered suggestions!

Sean Hennessy wrote:
| Perhaps one convention being the client bindings from another service could 
be resolved
by a common IService class that each client Node would derive from and be 
dependent?
| Thereby decoupling the maven compile time binding to a generic class?
| Unless you mean that compilation of a webservice class requires client 
bindings from

another service which is not yet built since it requires the client bindings 
you are
about to build - that would be a painful circular dep. But I guess such a 
situation
cannot be solved by conventional means anyhow...

|
|
|
| -Original Message-
| From: Jan Fredrik Wedén [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, May 21, 2008 11:25 AM
| To: Maven Users List
| Subject: Re: Running maven-compiler-plugin and maven-jaxws-plugin with 
different
configurations in different phases
|
|
| Hmm, I'm not very familiar with jaxws so maybe I don't understand the full 
picture here.
It just seems that if a class in one package can be compiled and used when 
generating wsdl
and client bidnings without reference to other packages in the module, it can 
also be used
for the same steps in module by itself.
|
| Unless you mean that compilation of a webservice class requires client 
bindings from
another service which is not yet built since it requires the client bindings 
you are about
to build - that would be a painful circular dep. But I guess such a situation 
cannot be
solved by conventional means anyhow...
|
| On Wed, May 21, 2008 at 7:03 PM, Clint Gilbert [EMAIL PROTECTED] wrote:
| Jan, thank you very much for your suggestion.
|
| That was almost the first thing I tried.  The problem is that my web
| service instances (I call them Nodes - they're components of a
| distributed DB system) need to talk to each other.
|
| A Node needs to be compiled to generate the client bindings, and a
| Node needs to invoke the bindings to talk to other Nodes.  There's
| always a circular dependency.  I tried to
| get around this by abstracting the process of talking to a node in order to
| hide the JAXWS
| client bindings from the nodes that use them.  That let me attempt the
| two-pass
| compilation hack, but can't get around the circular dependency.
|
| I think I'm going to bootstrap my module by checking in the generated
| code and artifacts.
|
| Just for reference, does anyone know for sure if you can give
| different configs for different executions of maven-compiler-plugin?
|
| Jan Fredrik Wedén wrote:
| | Hi,
| |
| | Could you not split this into two modules where your step 4 resides
| | in a module which dependes on another module containing the results
| | from 1, 2 and 3? Seems like the most correct Maven-way if you are
| | allowed to split your codebase to accomplish this.
| |
| | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| | [EMAIL PROTECTED] wrote: Hello everyone,
| |
| | First of all, I cannot overstate the beneficial effect that Maven
| | has had
| on
| | the
| | development process at my organization.  To the devs: thanks for the
| | great tool!
| |
| | I have a pom that specifies two executions of the compiler plugin,
| | with different phases specified and different configs, but they're
| | not both running.  (See pom excerpt below.)
| | Is that expected?  Can I configure multiple executions of the compiler
| | plugin with
| | different configurations?  It seems like no - [1], [2], [3] - but I hope
| | someone has an
| | definitive answer.
| |
| | Here's some background on my problem, which I admit is fairly
| | obscure. Basically, what I need to do is:
| |
| | 1 Compile class A in package org.myorg, which is 

Re: MPIR 2.1 release?

2008-05-21 Thread Kalle Korhonen
Thanks Lukas, that's exactly the page I was looking for.

Kalle


On 5/21/08, Lukas Theussl [EMAIL PROTECTED] wrote:


 It's on our release plan [1] together with the site plugin, but we need to
 release maven-doxia-tools first.

 -Lukas


 [1] http://docs.codehaus.org/display/MAVEN/Doxia+Release+Plan



 Kalle Korhonen wrote:

 Doxia 1.0-alpha-11 was just released, am I right to assume that is the
 version project-info-reports was waiting on as well and subsequently, MPIR
 2.1 release should happen shortly?

 Kalle


 On Sun, Apr 20, 2008 at 11:45 AM, Dennis Lundberg [EMAIL PROTECTED]
 wrote:


 We need a release of maven-doxia-tools before it can be released.


 Kalle Korhonen wrote:


 What's up with maven-project-info-reports plugin (MPIR) 2.1 release?
 According to


 http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=11142fixfor=12621
 ,
 there are no open issues left for 2.1. I couldn't find any details about
 the
 status of the plugin, either from the user or the dev list. Is there
 something that's holding up the release that's not reflected in the
 JIRA?

 Kalle




 --
 Dennis Lundberg

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




Plugin Issue

2008-05-21 Thread Dhruva Reddy
There is a weird issue which we have been facing. For some of maven
plugins, we don't have versions defined in our POM. So I assume Maven
tries to download latest versions for these plugins from the central
repository. I see the central repository has a version 2.3.2( from my
browser) but then maven somehow tries to download version 2.3.1(which is
not there in central repository) and throws an error saying version
2.3.1 doesn't exist. Everytime, I manually install the missing plugins,
there is some new plugin which throws the same error. Has anyone seeing
this before? Any ideas why this might be happening?

 

This occurs with Maven 2.0.8.

 

Thanks,

Dhruva



Re: Running maven-compiler-plugin and maven-jaxws-plugin with different configurations in different phases

2008-05-21 Thread Daniel Kulp


On May 21, 2008, at 6:43 PM, Clint Gilbert wrote:
So could I generate client code directly from a class annotated with  
@WebService, without
generating an intermediary WSDL?  I couldn't find a way to do that  
with wsgen/wsimport,

but I'd love it if that was possible.


If you have an INTERFACE (not a class) with the annotations then that  
is usable for both the server side part and the client side part.   No  
generation required.  The server implementation would implement the  
interface and the @WebService annotation on it would specify the  
endpointInterface.  (the server impl would ONLY need the @WebService  
annotation.  The rest would be on the interface)


For the client side, it's just:
Service service = Service.create(serviceName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING,  
endpointAddress);

YourInterface port = service.getPort(portName, YourInterface.class);


Dan





Daniel Kulp wrote:
|
| One option is to go completely code first and not generate anything.
| Use the same SEI interface for the client and for the service impls.
| You don't need to generate any wsdl's or anything then.I know  
Apache
| CXF supports that directly without problems.   No generation of  
anything
| needed at all.   With the Sun RI, you would still need wsgen to  
generate

| the wrapper beans/fault beans, but it can also compile them.
|
| Dan
|
|
|
| On May 21, 2008, at 1:03 PM, Clint Gilbert wrote:
|
| Jan, thank you very much for your suggestion.
|
| That was almost the first thing I tried.  The problem is that my web
| service instances (I
| call them Nodes - they're components of a distributed DB system)  
need

| to talk to each other.
|
| A Node needs to be compiled to generate the client bindings, and a
| Node needs to invoke
| the bindings to talk to other Nodes.  There's always a circular
| dependency.  I tried to
| get around this by abstracting the process of talking to a node in
| order to hide the JAXWS
| client bindings from the nodes that use them.  That let me attempt  
the

| two-pass
| compilation hack, but can't get around the circular dependency.
|
| I think I'm going to bootstrap my module by checking in the  
generated

| code and artifacts.
|
| Just for reference, does anyone know for sure if you can give
| different configs for
| different executions of maven-compiler-plugin?
|
| Jan Fredrik Wedén wrote:
| | Hi,
| |
| | Could you not split this into two modules where your step 4  
resides in
| | a module which dependes on another module containing the results  
from
| | 1, 2 and 3? Seems like the most correct Maven-way if you are  
allowed

| | to split your codebase to accomplish this.
| |
| | On Wed, May 21, 2008 at 2:48 AM, Clint Gilbert
| | [EMAIL PROTECTED] wrote:
| | Hello everyone,
| |
| | First of all, I cannot overstate the beneficial effect that Maven
| has had on
| | the
| | development process at my organization.  To the devs: thanks for  
the

| great
| | tool!
| |
| | I have a pom that specifies two executions of the compiler  
plugin, with

| | different phases
| | specified and different configs, but they're not both running.   
(See

| pom
| | excerpt below.)
| | Is that expected?  Can I configure multiple executions of the  
compiler

| | plugin with
| | different configurations?  It seems like no - [1], [2], [3] -  
but I

| hope
| | someone has an
| | definitive answer.
| |
| | Here's some background on my problem, which I admit is fairly  
obscure.

| | Basically, what I
| | need to do is:
| |
| | 1 Compile class A in package org.myorg, which is annotated with
| @WebService
| |
| | 2 Run JAXWS's wsgen (via maven-jaxws-plugin) to make a WSDL from  
the

| | compiled A.class
| |
| | 3 Run JAXWS's wsimport (via maven-jaxws-plugin) to make client- 
side

| bindings
| | from the
| | just-generated WSDL
| |
| | 4 Compile non-generated classes that reference the just-generated
| client
| | bindings. These
| | live in separate sub-packages - org.myorg.x, org.myorg.y, etc -  
and

| would
| | have failed if
| | compiled during step 1 because they reference code generated in  
step 3.

| |
| | I've included (what I hope are) the relevant sections of my pom  
below.

| |
| | PS: Do I need to do things this way?  Unfortunately, I think  
so.  Class

| | org.myorg.A is a
| | web service that needs to invoke other org.myorg.A web services
| arranged in
| | a tree or mesh
| | topology.  I've tried to break out the bindings, the SEI (A),  
and the

| | classes that
| | abstract the connection between As using the client bindings into
| | submodules, but I've
| | only managed to introduce circular dependencies.
| |
| | In the past, I've dealt with this sort of chicken-and-egg  
problem by

| | generating WSDLs and
| | code and then checking them into source control.  This feels bad,
| and makes
| | updates if the
| | interface of the SEI changes a hassle.  I'd much rather define a
| simple SEI
| | annotated with
| | @WebService and have the low-level stuff 

Re: integration-test practices

2008-05-21 Thread Wendy Smoak
On Wed, May 21, 2008 at 3:35 PM, Paul Davis [EMAIL PROTECTED] wrote:

 It seems the documentation for the integration-test phase is pretty thin (as
 in, where is it?).

There are some notes on the wiki:
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

 I can't seem to get resources accessible by the test code.

We'll need more info in order to help.  Do you mean files in
src/main/resources?

-- 
Wendy

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