RE: How can I do

2007-01-04 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi.  When will 1.1 be released? 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 04, 2007 9:11 AM
To: continuum-users@maven.apache.org
Subject: Re: How can I do

It isn't possible in 1.0.3, this feature is implemeted in 1.1.

Emmanuel

Christophe LECHENNE a écrit :
 Hi all,
 
 I've got 2 maven2 projects A and B in continuum 1.0.3, B depend on A. 
 I want that if I modify A, that continuum builds A and B.
 Can you help me ?
 
 Christophe Lechenne
 
 
 
 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


force tasks

2007-01-04 Thread Marcelo Takeshi Fukushima
Hello folks!

the disappering of tasks seens to not be happening anymore wich is weird by
itself. Anyhow, is there any way to schedule a task to always run regardless
of its state in the scm?

thanks in advance,
takeshi



assembly don't work in continuum

2007-01-04 Thread Marek Chowaniok

I have multi-module project. 
A
\_B
\_C
\_D 
I have there assembly plugin everything works fine on my developer coputer.

When I have uploaded it in Continuum = our server
I used http://user:[EMAIL PROTECTED]/svn/A/pom.xml  to include all modules at 
once
and it Maven2 project.

But I have found out that in contiuum it is not saved as 
A
\_B
\_C
\_D

but 
1- A
  \_B
  \_C
  \_D
2 - B
3 - C
4 - D

When I run mvn assembly:assemby it runs without problem but final jar file
is missing files from other modules. 

I have also found that same problem is for maven-war-plugin (i am taking
webResources from other module) Here it at least says Building Failure.

How to solve this problem? 

As I said on my computer it works fine. But in continuu it doesn't work as
expected.
I have try to run it also in console in continuum working-directory but it
didn't help.

Any idea?

-- 
View this message in context: 
http://www.nabble.com/assembly-don%27t-work-in-continuum-tf2918539s177.html#a8156308
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] Configuring m2 for a corporate environment

2007-01-04 Thread Alexander Schwartz

Hi,

I am configuring m2 for a corporate enviroment.
Some of our goals are to
 [goal #1] reduce the local (user depending) configuration,
 [goal #2] reduce the manual steps to install/maintain a local m2 
installation on

   on a developer machine or a build server.

The m2 book `Better builds with Maven' suggests to manage the m2
installation using an SCM tool. (BTW, the `vendor branch' idee helps to
simplify this; compare for instance 
http://svnbook.red-bean.com/en/1.1/ch07s05.html)
The configuration for the corporate environment resides in the patched 
settings.xml in

the SCM. The settings.xml file for each user can be reduced to a few lines
containing login data only.
To install m2 on a developer machine a checkout from SCM (followed by 
setting some

environment variables) is sufficient. This satisfies goal #1.

However, what about goal #2 with respect to changes of the global 
settings.xml file?
In this case every developer has to update its m2 checkout installation 
manually to
receive the fresh settings. This is too error prune. We would appreciate 
a solution
which ensures that the m2 configuration is fresh every time m2 is 
executed (without

any manual interaction steps).
Our current solution/workaround is to patch the m2 start scripts and 
perform an
SCM update of the local working copy of the local settings.xml file 
before executing m2.


I would prefer if m2 would read its configuration from an URL. In this case
we could use an http URL pointing to the settings.xml file in our 
subversion system.
M2 allows to relocate the global settings file using the following 
system property:


 -Dorg.apache.maven.global-settings=/path/to/global/settings.xml

(Compare 
http://www.nabble.com/MAVEN_INSTALL_DIR-conf-settings.xml-tf2731054s177.html#a7617614)


This system property allows to specify a path to an appropriate settings 
file, but

unfortunately you cannot provide an URL to such a file.

MY QUESTION IS, what do you think about extending the semantics of
'org.apache.maven.global-settings' to support URLs, too?

Any votes for such a change request?
In case of many Ys I will file an issue + commit a patch (including unit 
tests).


BTW, for which is the correct JIRA project to file such an issue?

Best regards,

Alex

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



Re: [m2] Configuring m2 for a corporate environment

2007-01-04 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Alexander,

I like this idea, and if I may, I'd like to add one suggestion.  How
about allowing the users settings.xml to 'include' a settings.xml from a
different location (file, url, whatever).  This would allow developers
to customize the settings.xml while still having a central repo for the
global settings ...

My two cents,

Cheers,

Johan

Alexander Schwartz wrote:
 Hi,
 
 I am configuring m2 for a corporate enviroment.
 Some of our goals are to
  [goal #1] reduce the local (user depending) configuration,
  [goal #2] reduce the manual steps to install/maintain a local m2
 installation on
on a developer machine or a build server.
 
 The m2 book `Better builds with Maven' suggests to manage the m2
 installation using an SCM tool. (BTW, the `vendor branch' idee helps to
 simplify this; compare for instance
 http://svnbook.red-bean.com/en/1.1/ch07s05.html)
 The configuration for the corporate environment resides in the patched
 settings.xml in
 the SCM. The settings.xml file for each user can be reduced to a few lines
 containing login data only.
 To install m2 on a developer machine a checkout from SCM (followed by
 setting some
 environment variables) is sufficient. This satisfies goal #1.
 
 However, what about goal #2 with respect to changes of the global
 settings.xml file?
 In this case every developer has to update its m2 checkout installation
 manually to
 receive the fresh settings. This is too error prune. We would appreciate
 a solution
 which ensures that the m2 configuration is fresh every time m2 is
 executed (without
 any manual interaction steps).
 Our current solution/workaround is to patch the m2 start scripts and
 perform an
 SCM update of the local working copy of the local settings.xml file
 before executing m2.
 
 I would prefer if m2 would read its configuration from an URL. In this case
 we could use an http URL pointing to the settings.xml file in our
 subversion system.
 M2 allows to relocate the global settings file using the following
 system property:
 
  -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
 
 (Compare
 http://www.nabble.com/MAVEN_INSTALL_DIR-conf-settings.xml-tf2731054s177.html#a7617614)
 
 
 This system property allows to specify a path to an appropriate settings
 file, but
 unfortunately you cannot provide an URL to such a file.
 
 MY QUESTION IS, what do you think about extending the semantics of
 'org.apache.maven.global-settings' to support URLs, too?
 
 Any votes for such a change request?
 In case of many Ys I will file an issue + commit a patch (including unit
 tests).
 
 BTW, for which is the correct JIRA project to file such an issue?
 
 Best regards,
 
 Alex
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFnOCS1Tv8wj7aQ34RAo76AJsGYRAVkpKXOoY3mis1ZR1BzeInXQCdHsBM
I4/cqti0vNTmtcrHjlEgzjE=
=nVIZ
-END PGP SIGNATURE-

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



RE: Install Plugin Broken?

2007-01-04 Thread Chris Hilton
Does anyone know if there is a bug filed for this? I'm assuming this is
similar to a problem we're seeing where a plugin download seems to
result in only metadata in the local repository and further attempts to
build just get the does not exist or no valid version could be found
message. We've been removing that plugin directory from the repository
to get around it, forcing a re-download, but I suppose the -U probably
works, as well. It's quite annoying for the Maven-phobes where I work
and looks bad that Maven can't reliably accomplish the simplest of tasks
(it's happened a couple of times on maven-clean-plugin).

Chris

 -Original Message-
 From: Ole Ersoy [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, 03 January, 2007 23:08
 To: Maven Users List
 Subject: Re: Install Plugin Broken?
 
 OK - I found an older post that where Brett said run it with 
 -U to force an update.
 
 That worked.
 
 
 --- Ole Ersoy [EMAIL PROTECTED] wrote:
 
  Hi,
  
  I'm trying to install some 3rd party jars.
  
  I just installed maven 204 on a new machine, and I run
  
  mvn install:install-file ...
  
  And since this is a new install of Maven, I expect maven to 
 download 
  the install plugin and then proceed.
  
  Instead I get this:
  
  [INFO] The plugin
  'org.apache.maven.plugins:maven-install-plugin' does not 
 exist or no 
  valid version could be found
  
  Ideas?
  
  Thanks,
  - Ole
  
  P.S.
  
  Here's a full install line just in case:
  
  mvn install:install-file
 
 -Dfile=org.eclipse.xsd.editor_2.3.0.v200612211251.jar
  -DgroupId=org.eclipse -DartifactId=emf.xsd.editor -Dversion=2.3.0 
  -Dpackaging=jar -DgeneratePom=true
  
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection 
 around http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: JBoss EJB3 and Maven

2007-01-04 Thread Fabricio Lemos

On 1/3/07, Vitor Pellegrino [EMAIL PROTECTED] wrote:
i forgot to add at project/pom.xml my web
project as a module, so it was not being compiled when i was trying to
package my whole project.


I have the same problem, but my web project is already a module of my
project/pom.xml. What command did you use to compile and package the
whole project?

On 1/3/07, Vitor Pellegrino [EMAIL PROTECTED] wrote:

Marco,
Thanks for your help!

My web.project has inherited my project/pom.xml. Trying to do what you told
me to, i have found the problem: i forgot to add at project/pom.xml my web
project as a module, so it was not being compiled when i was trying to
package my whole project. Obvious! I feel a little stupid right now! lol

Well, now i'm trying to deploy this generated .ear (which seems to be
correct) into my JBOSS AS instance.

As Stephane Nicoll told me (thanks!), i am looking at Cargo plugin but i
don't know exactly where do i have to declare this.

The plugin should be declared into project/pom.xml or project/ear/pom.xml?

Thanks for every help you all provided to me i feel closer to get this whole
thing working smoothly.

Best regards,





On 1/2/07, Marco Mistroni [EMAIL PROTECTED] wrote:

 helllo,
 my 2 cents
 a wild guessm ight be that your web project is not child of your
 com.project
 if your web project java files didnt change at all then it's normal
 that
 you'd have an earlier version ..

 try mvn clean install and see what happens
 otherwise..

 this is what is in your ear
 dependency
groupIdcom.project/groupId
artifactIdweb/artifactId
version1.0-SNAPSHOT/version
typewar/type
/dependency

 i didnt see a groupId in the pom.xml of your web.project

 was it an omission? or your web.project has too
 groupIdcom.project/groupId

 hth
 marco



 On 1/2/07, Vitor Pellegrino [EMAIL PROTECTED] wrote:
 
  First of all, i want to wish you all a Happy new year and thanks for
 every
  reply!!
 
  Well, i gone after Better Builds with Maven and that helped-me to find
  myself how could i do this with Maven kind of deployment with Maven but,
  sadly, i'm still facing some issues.
 
  I've split my project into 3 modules and packaged the root-project as
 a
  POM which is inherited by every sub module in this project.
  So, my directory structure is something like that:
 
  project
  |
   web ( created with maven archetype webapp )
   | pom.xml
   ejb ( created as an ordinary maven archetype project)
   | pom.xml
   ear ( empty except by the pom.xml)
   | pom.xml
  |pom.xml
 
  But when i go for /project/mvn package, the ear seems to include only a
  previous installed version of my web/target/project.war which must be
  installed previously at my local repo by project/web/mvn install.
 
  There is a way i can do this whole process by a project/mvn deploy
  command,
  or something as simple as that?
 
  Sorry about taking so long for replying but i went away for some days
 and
  about the length of this email.
 
  Thanks about every reply!
 
  Best Regards,
 
  Vitor Pellegrino
 
  -
 
 
  there goes project/pom.xml
 
  project
  
  modules
  moduleear/module
  moduleejb/module
/modules
dependencies
dependency
  groupIdorg.apache.struts/groupId
  artifactIdstruts2-core/artifactId
  version2.0.2-SNAPSHOT/version
  /dependency
  dependency
  groupIdorg.apache.struts/groupId
  artifactIdstruts2-sitemesh-plugin/artifactId
  version2.0.2-SNAPSHOT/version
  /dependency
/dependencies
  
  /project
 
  project/ejb/pom.xml
 
  ?xml version=1.0?
  project
parent
  artifactIdproject/artifactId
  groupIdcom.project/groupId
  version1.0-SNAPSHOT/version
/parent
modelVersion4.0.0/modelVersion
artifactIdejb/artifactId
nameejb/name
  ...
  dependencies
  ...
  /dependencies
  /project
 
  project/web/pom.xml
  project
  
  artifactIdweb/artifactId
  packagingwar/packaging
  namewebapp/name
  dependencies
  dependency
  groupIdcom.project/groupId
  artifactIdejb/artifactId
  version1.0-SNAPSHOT/version
   scopeprovided/scope
  exclusions
  exclusion
  groupIdjboss/groupId
  artifactIdjboss-ejb3x/artifactId
  /exclusion
  /exclusions
  /dependency
  ...
  /dependencies
  ...
  /project
 
  project/ear/pom.xml
 
  project
 
  artifactIdear/artifactId
  packagingear/packaging
  nameear/name
  build
  plugins
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-ear-plugin/artifactId
  configuration
  modules
  ejbModule
 

Filters with Eclipse

2007-01-04 Thread bjorn.de.bakker
Does anybody know how to resolve the following issue:

 

We created a project with Maven2 and we have some properties who need to be 
filtered.  The problem is, if we declare those properties as ${test.name} and 
we have a filter file where test.name=c:/test.log, Eclipse doesn't know when 
you run the project which value needs to be filled in at test.name.  How do we 
tell Eclipse where he needs to look to replace ${_filter_} with the value?

 

Thanks in advance

 

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Re: Filters with Eclipse

2007-01-04 Thread Fabricio Lemos

I had the same problem. The solution was to run the application
compiled by maven, instead of runing the one compiled by eclipse.

On 1/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Does anybody know how to resolve the following issue:



We created a project with Maven2 and we have some properties who need to be 
filtered.  The problem is, if we declare those properties as ${test.name} and 
we have a filter file where test.name=c:/test.log, Eclipse doesn't know when 
you run the project which value needs to be filled in at test.name.  How do we 
tell Eclipse where he needs to look to replace ${_filter_} with the value?



Thanks in advance







This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.




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



RE: using hibernate3-maven-plugin:hmb2ddl with test-classes

2007-01-04 Thread Johann Reyes
Hello Andi

I believe that with version 1.0-SNAPSHOT you can not scan the test-classes,
but 2.0-SNAPSHOT can do. Would you be willing to use the 2.0-SNAPSHOT? I can
help you to configure again your plugin if that is the case.

Regards

Johann Reyes

-Original Message-
From: garbandi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 6:35 AM
To: users@maven.apache.org
Subject: using hibernate3-maven-plugin:hmb2ddl with test-classes


hi,

how can i set up hibernate3-maven-plugin (i'm using snapshot 1.0) to let
hmb2ddl scan classes from target/test-classes for annotations?

some backgroundinfo: i'm trying to set up a jar-project that uses
hibernate-annotations. it contains base-classes that use the
@MappedSuperclass. i want to write some unittest for this project that
contain the @Entity-classes. But if i use the hbm2ddl-goal it won't scan for
annotations that are part of the src/test-area.

so is there a way to add target/test-classes into the classpath that hbm2ddl
scans?

thanks in advance,
andi
-- 
View this message in context:
http://www.nabble.com/using-hibernate3-maven-plugin%3Ahmb2ddl-with-test-clas
ses-tf2912961s177.html#a8139189
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



How can I do

2007-01-04 Thread Christophe LECHENNE
Hi all,

I've got 2 maven2 projects A and B in continuum 1.0.3, B depend on A. 
I want that if I modify A, that continuum builds A and B.
Can you help me ?

Christophe Lechenne



How to create compile dependency to shared j2ee library?

2007-01-04 Thread Nunn, Gerald
Hi all,

I am working with WebLogic Portal 9.2 and Maven for the first time. I'm looking 
at using Maven instead of Ant for the build system as the dependency system is 
intriguing however I am having a problem getting my WLP dependencies setup. WLP 
has the notion of shared J2EE libraries where an EAR or a WAR contain various 
J2EE artifacts that can be referenced at compile and runtime. This system is 
described in more detail here 
http://e-docs.bea.com/workshop/docs92/ws_platform/ideuserguide/conJARLibraryDependencies.html

I have a small utility jar project I am trying to setup in Maven that uses a 
shared j2ee library called p13n-app-lib.ear which contains the jar I need to 
compile against. My hope was to simply create a dependency against the ear and 
have it work. I tried installing the ear using the mvn install:install-file 
command with package set to ear, however when I compile the application the 
dependency doesn't seem to be picked up at all from pom.xml and I get compile 
errors complaining about the missing WLP classes. Does Maven support shared 
j2ee libraries as a dependency for compilation?

I used this command to install the EAR:

mvn install:install-file 
-Dfile=%BEA_HOME%\weblogic92\common\deployable-libraries\p13n-app-lib.ear 
-DgroupId=weblogic-portal -DartifactId=p13n-app-lib -Dversion=9.2.0 
-Dpackaging=ear -DgeneratePom=true

My dependency in pom.xml appears as follows:

dependency
groupIdweblogic-portal/groupId
artifactIdp13n-app-lib/artifactId
version9.2.0/version
typeear/type
scopecompile/scope
/dependency

Thanks,

Gerald


Re: How can I do

2007-01-04 Thread Emmanuel Venisse

It isn't possible in 1.0.3, this feature is implemeted in 1.1.

Emmanuel

Christophe LECHENNE a écrit :

Hi all,

I've got 2 maven2 projects A and B in continuum 1.0.3, B depend on A. 
I want that if I modify A, that continuum builds A and B.

Can you help me ?

Christophe Lechenne








[m2] running both Maven 1.0.2 and Maven 2.0.4

2007-01-04 Thread Mark Hansen
It seems that it is impossible to use both Maven 1 and Maven 2 
concurrently since both use the MAVEN_HOME environment variable.  Is 
that correct?  Are there any workarounds?


I am building multiple projects - some use Maven 2 and some use Maven 1.


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



Re: [m2] running both Maven 1.0.2 and Maven 2.0.4

2007-01-04 Thread nicolas de loof

Maven2 use M2_HOME and can be used in // with maven1. I'm using both with
no problem.

Nico.

2007/1/4, Mark Hansen [EMAIL PROTECTED]:


It seems that it is impossible to use both Maven 1 and Maven 2
concurrently since both use the MAVEN_HOME environment variable.  Is
that correct?  Are there any workarounds?

I am building multiple projects - some use Maven 2 and some use Maven 1.


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




Re: multi project interdependencies

2007-01-04 Thread Alan D. Salewski
On Wed, Jan 03, 2007 at 07:18:17PM -0500, Trevor Torrez spake thus:
 Is it the suggested / best practice to have a subproject in a multi project
 setup to declare it's dependencies on the other subprojects in the
 dependency section?

Yes.


 This leads to requiring some parts of the multi-project
 to be installed to the local repository before other parts can be developed
 (using the eclipse:eclipse goal fails if the dependency / subproject is not
 installed). [...]

That's correct. The reason is that maven-2.x is (by design) repository
based; when maven needs a dependency, it looks for it in your local
repos (regardless of whether it's another subproject within the project
that is building, or something else). That's just how it's supposed to
work.

-Al

-- 
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
::
Alan D. Salewski
Software Developer
Health Market Science, Inc.
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
:: 

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



Re: multi project interdependencies

2007-01-04 Thread Trevor Torrez

Ok; just checking; so what is the point of having the maven-eclipse-plugin
generate dependencies on subprojects in eclipse (
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html#useProjectReferences),
since it has to get the artifacts from the repository anyway to successfully
run 'mvn eclipse:eclipse'?

On 1/4/07, Alan D. Salewski [EMAIL PROTECTED] wrote:


On Wed, Jan 03, 2007 at 07:18:17PM -0500, Trevor Torrez spake thus:
 Is it the suggested / best practice to have a subproject in a multi
project
 setup to declare it's dependencies on the other subprojects in the
 dependency section?

Yes.


 This leads to requiring some parts of the multi-project
 to be installed to the local repository before other parts can be
developed
 (using the eclipse:eclipse goal fails if the dependency / subproject is
not
 installed). [...]

That's correct. The reason is that maven-2.x is (by design) repository
based; when maven needs a dependency, it looks for it in your local
repos (regardless of whether it's another subproject within the project
that is building, or something else). That's just how it's supposed to
work.

-Al

--
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
::
Alan D. Salewski
Software Developer
Health Market Science, Inc.
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
::

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




Re: assembly don't work in continuum

2007-01-04 Thread Marek Chowaniok

My fault.
in assembly.xml  I have been looking in folders WEB-INF which were  created
by Eclipse, but where not used and where not in SVN. 
In continuum there were not these folders so that's why it didn't run
properly. 



Marek Chowaniok wrote:
 
 I have multi-module project. 
 A
 \_B
 \_C
 \_D 
 I have there assembly plugin everything works fine on my developer
 coputer.
 
 When I have uploaded it in Continuum = our server
 I used http://user:[EMAIL PROTECTED]/svn/A/pom.xml  to include all modules at
 once and it Maven2 project.
 
 But I have found out that in contiuum it is not saved as 
 A
 \_B
 \_C
 \_D
 
 but 
 1- A
   \_B
   \_C
   \_D
 2 - B
 3 - C
 4 - D
 
 When I run mvn assembly:assemby it runs without problem but final jar file
 is missing files from other modules. 
 
 I have also found that same problem is for maven-war-plugin (i am taking
 webResources from other module) Here it at least says Building Failure.
 
 How to solve this problem? 
 
 As I said on my computer it works fine. But in continuu it doesn't work as
 expected.
 I have try to run it also in console in continuum working-directory but it
 didn't help.
 
 Any idea?
 
 

-- 
View this message in context: 
http://www.nabble.com/assembly-don%27t-work-in-continuum-tf2918539s177.html#a8160823
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Repository questions

2007-01-04 Thread Trevor Torrez

What is the best practice for using and declaring common internal
repositories at an organization?  Basically the organization has 3 main
repositories (central, internal for 3rd party non-redistributables and the
base library project 'deploy's, and snapshot for the base library project
SNAPSHOT 'deploy's), but projects may want to add additional 'deploy'
repositories.  How do the repository declarations merge between the
settings.xml and pom.xml?

Is there a way to quiet the dependency resolver down?  Having to see 7 or 10
downloading failed messages for every dependency is masking some resolve
errors.  And how do you tell maven to not resolve javadocs?


Re: How to create compile dependency to shared j2ee library?

2007-01-04 Thread Wayne Fay

I think the problem is that Javac doesn't know how to deal with the
EAR that Maven puts on the compile classpath so the compile dependency
isn't doing anything. This isn't Maven's fault per se nor is it
something you can really expect Maven to help you with.

You'll probably need to break apart the EAR manually and install each
JAR it contains individually into the Maven repo -- I'd put them under
a groupId weblogic-portal.p13n-app-lib and use the name of the jar as
the name of the artifactId. Then make a p13n-app-lib-parent pom that
specifies all the individual jars as dependencies, and finally specify
the new p13n-app-lib-parent as a dependency in your own project(s).

Not positive, but that should probably work.

Wayne

On 1/4/07, Nunn, Gerald [EMAIL PROTECTED] wrote:

Hi all,

I am working with WebLogic Portal 9.2 and Maven for the first time. I'm looking 
at using Maven instead of Ant for the build system as the dependency system is 
intriguing however I am having a problem getting my WLP dependencies setup. WLP 
has the notion of shared J2EE libraries where an EAR or a WAR contain various 
J2EE artifacts that can be referenced at compile and runtime. This system is 
described in more detail here 
http://e-docs.bea.com/workshop/docs92/ws_platform/ideuserguide/conJARLibraryDependencies.html

I have a small utility jar project I am trying to setup in Maven that uses a 
shared j2ee library called p13n-app-lib.ear which contains the jar I need to 
compile against. My hope was to simply create a dependency against the ear and 
have it work. I tried installing the ear using the mvn install:install-file 
command with package set to ear, however when I compile the application the 
dependency doesn't seem to be picked up at all from pom.xml and I get compile 
errors complaining about the missing WLP classes. Does Maven support shared 
j2ee libraries as a dependency for compilation?

I used this command to install the EAR:

mvn install:install-file 
-Dfile=%BEA_HOME%\weblogic92\common\deployable-libraries\p13n-app-lib.ear 
-DgroupId=weblogic-portal -DartifactId=p13n-app-lib -Dversion=9.2.0 
-Dpackaging=ear -DgeneratePom=true

My dependency in pom.xml appears as follows:

dependency
groupIdweblogic-portal/groupId
artifactIdp13n-app-lib/artifactId
version9.2.0/version
typeear/type
scopecompile/scope
/dependency

Thanks,

Gerald




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



Re: Compilation failure for JSE 6 / maven2

2007-01-04 Thread Wayne Fay

Try mvn -X to get more debugging information so you might be able to
tell why the compile failed.

Wayne

On 1/3/07, moraleslos [EMAIL PROTECTED] wrote:


I currently have a maven 2 (v 2.0.4) project set up and working until now.  I
don't recall changing any code but when I run a mvn compile on my project, I
get this error:


[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

Failure executing javac, but could not parse the error: An exception has
occurred in the compiler (1.6.0). Please file a bug at the Java Developer
Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug
Parade for duplicates. Include your program and the following diagnostic in
your report.  Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
javax.persistence.CascadeType not found


[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505)
at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
*


This project has a dependency on another persistence project which
includes javax.persistence APIs.  HOwever, when I just run mvn compile on
that persistence project, it compiles properly.  Its when I compile this
current project that its giving me the error.  Funny thing is that I never
changed anything related to my code so I don't know why this error is all of
a sudden appearing.  Any suggestions?  THanks in advance.

-los
--
View this message in context: 
http://www.nabble.com/Compilation-failure-for-JSE-6---maven2-tf2917197s177.html#a8152537
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



RE: How to create compile dependency to shared j2ee library?

2007-01-04 Thread Nunn, Gerald
Thanks Wayne, that sounds like the best solution to me.

Gerald

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 04, 2007 11:25 AM
To: Maven Users List
Subject: Re: How to create compile dependency to shared j2ee library?


I think the problem is that Javac doesn't know how to deal with the
EAR that Maven puts on the compile classpath so the compile dependency
isn't doing anything. This isn't Maven's fault per se nor is it
something you can really expect Maven to help you with.

You'll probably need to break apart the EAR manually and install each
JAR it contains individually into the Maven repo -- I'd put them under
a groupId weblogic-portal.p13n-app-lib and use the name of the jar as
the name of the artifactId. Then make a p13n-app-lib-parent pom that
specifies all the individual jars as dependencies, and finally specify
the new p13n-app-lib-parent as a dependency in your own project(s).

Not positive, but that should probably work.

Wayne

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



RE: using hibernate3-maven-plugin:hmb2ddl with test-classes

2007-01-04 Thread garbandi

hi johann,

i've moved to 2.0. but i didn't find myself a way to scan the classes in
test-classes. so i would appreciate your help.

best regards,
andi


Johann Reyes-2 wrote:
 
 Hello Andi
 
 I believe that with version 1.0-SNAPSHOT you can not scan the
 test-classes,
 but 2.0-SNAPSHOT can do. Would you be willing to use the 2.0-SNAPSHOT? I
 can
 help you to configure again your plugin if that is the case.
 
 Regards
 
 Johann Reyes
 

-- 
View this message in context: 
http://www.nabble.com/using-hibernate3-maven-plugin%3Ahmb2ddl-with-test-classes-tf2912961s177.html#a8162664
Sent from the Maven - Users mailing list archive at Nabble.com.


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



uml reports

2007-01-04 Thread Dmitry Beransky

Hi,

I've got UML diagrams that I'm maintaining using StarUML.  Is there a
way I can have them included with other Maven-generated reports?  If
not, is there another UML application that works better with Maven?


Thanks
Dmitry

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



Is there FTP plugin?

2007-01-04 Thread raghurajan . x . gurunathan
Hi All

Is there a way / Plugin for FTP ing files other than remote repository 
using maven2 ??

I tried it from ant task inside of maven2, but its not finding the ftp 
taskdef classes, even though there are in dependency classpath 

i getEmbedded error: No public execute() in class 
org.apache.commons.net.ftp.FTP


Anyone done something like that, please advice


Thanks,
Raghurajan Gurunathan



-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.


release:prepare

2007-01-04 Thread alexsil

After runmvn release:prepare -DdryRun=true to check if it is all right, I
tryed to run 
mvn release:prepare but doesn't run, or better do nothing and shows the
following message:
 Release preparation already completed. You can now continue with
release:perform, or start again using the -Dresume=false flag
To run correctly I must use  mvn release:prepare -Dresume=false , bat so i
must re enter the information entered previously. After this mvn
release:perform runs OK.
Any Idea 
Thank in advance.

-- 
View this message in context: 
http://www.nabble.com/release%3Aprepare-tf2920455s177.html#a8162297
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: using hibernate3-maven-plugin:hmb2ddl with test-classes

2007-01-04 Thread Johann Reyes
Hello Andi

Sorry, but I haven't document yet that part of the plugin because it's being
tested. To scan the test-classes directory you need to add the following
flag to your componentProperties element:

componentProperties
  scan-classestrue/scan-classes
/componentProperties

Let me know if you have any question

Regards

Johann Reyes

-Original Message-
From: garbandi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 04, 2007 11:53 AM
To: users@maven.apache.org
Subject: RE: using hibernate3-maven-plugin:hmb2ddl with test-classes


hi johann,

i've moved to 2.0. but i didn't find myself a way to scan the classes in
test-classes. so i would appreciate your help.

best regards,
andi


Johann Reyes-2 wrote:
 
 Hello Andi
 
 I believe that with version 1.0-SNAPSHOT you can not scan the
 test-classes,
 but 2.0-SNAPSHOT can do. Would you be willing to use the 2.0-SNAPSHOT? I
 can
 help you to configure again your plugin if that is the case.
 
 Regards
 
 Johann Reyes
 

-- 
View this message in context:
http://www.nabble.com/using-hibernate3-maven-plugin%3Ahmb2ddl-with-test-clas
ses-tf2912961s177.html#a8162664
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Overriding properties in a dependency's pom.xml

2007-01-04 Thread mraible

I have a project that has dao.frameworkhibernate/dao.framework defined as
a property in the root pom.xml. In a service project, that property is
used as follows:

dependency
groupId${pom.groupId}/groupId
artifactIdappfuse-${dao.framework}/artifactId
version${pom.version}/version
/dependency

In turn, the service dependency is used in WAR projects:

dependency
groupId${pom.groupId}/groupId
artifactIdappfuse-service/artifactId
version${pom.version}/version
exclusions
/dependency

From here, child projects use this WAR project (it's overlayed).  We're
using the Maven WarPath plugin
(http://static.appfuse.org/plugins/maven-warpath-plugin/) to read
dependencies from WARs.

For some reason, if I put dao.frameworkibatis/dao.framework in my child
project, it doesn't override the variable in the service/pom.xml.  However,
if I pass in -Ddao.framework=ibatis from the command-line, everything works.  

Is it possible to override property values in child projects - or is it only
possible from the command-line?  My child project does not refer to any
other projects as parent projects.

Matt
-- 
View this message in context: 
http://www.nabble.com/Overriding-properties-in-a-dependency%27s-pom.xml-tf2921218s177.html#a8164734
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Resolving repository locations

2007-01-04 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi.  I would like to reference the local maven repository and the remote
maven repository by using ${variable}'s in a pom.xml.  What are the
variables which I need to use?  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: Resolving repository locations

2007-01-04 Thread Tom Huybrechts

${localRepository}
${remoteArtifactRepositories}

On 1/4/07, Morgovsky, Alexander (US - Glen Mills)
[EMAIL PROTECTED] wrote:

Hi.  I would like to reference the local maven repository and the remote
maven repository by using ${variable}'s in a pom.xml.  What are the
variables which I need to use?  Thanks.


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]




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



maven not configuring plexus artifacthandler

2007-01-04 Thread Steve Shucker
I've created a custom packaging type for jnlp webstarts so my build 
process will jar up the client application then generate a jnlp and 
package the whole thing into a war.  The packaging works great, but I'm 
having trouble with the ArtifactHandler.  It doesn't seem to be reading 
that component.  I've gone in with a debugger and found that all the 
properties of the handler are null.  This is important because I'm using 
cobertura and the cobertura plugin throws an exception if the artifact 
handler's language isn't java.  Any idea why the ArtifactHandler isn't 
being initialized?  (Yes, I have extensions enabled in my pom.)


-Steve

Here's my META-INF/plexus/components.xml

component-set
   components
   component
   roleorg.apache.maven.lifecycle.mapping.LifecycleMapping/role
   role-hintwebstart/role-hint
   
implementationorg.apache.maven.lifecycle.mapping.DefaultLifecycleMapping/implementation

   configuration
   phases
   
process-resourcesorg.apache.maven.plugins:maven-resources-plugin:resources/process-resources
   
compileorg.apache.maven.plugins:maven-compiler-plugin:compile/compile
   
process-test-resourcesorg.apache.maven.plugins:maven-resources-plugin:testResources/process-test-resources
   
test-compileorg.apache.maven.plugins:maven-compiler-plugin:testCompile/test-compile
   
testorg.apache.maven.plugins:maven-surefire-plugin:test/test

   packagevms:maven-vms-plugin:jnlp/package
   
installorg.apache.maven.plugins:maven-install-plugin:install/install
   
deployorg.apache.maven.plugins:maven-deploy-plugin:deploy/deploy

   /phases
   /configuration
   /component
   !-- This mapping doesn't appear to be working, but it's correct --
   !-- That's why cobertura doesn't work on webstarts - must know 
language=java --

   component
   roleorg.apache.maven.artifact.handler.ArtifactHandler/role
   role-hintwebstart/role-hint
   
implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation

   configuration
   languagejava/language
   extensionwar/extension
   typewebstart/type
   packagingwar/packaging
   addedToClasspathtrue/addedToClasspath
   /configuration
   /component
   /components
/component-set


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



How can I make assembly include test jars?

2007-01-04 Thread Christian Goetze
As subject says ... it would seem that the assembly descriptors assume 
you're packaging main. Am I supposed to use full paths in the assembly 
descriptor? Anyone have an example?


Thanks in advance!
--
cg

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



How to integrate XDoclet 1.2.3 in Maven2?

2007-01-04 Thread [EMAIL PROTECTED]

Hi,

does anybody know how to get XDoclet 1.2.3 run in Maven2? I have googled 
and browsed the internet for quite a while now, tried different things, 
still not working...


Thanks in advance for any hints,
-Steffen-

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



Re: How to upload 3rd party source jars to external repository

2007-01-04 Thread Sanjiv Jivan

Can the maven docs be updated to reflect this useful piece of information.

Thanks,
Sanjiv

On 11/8/06, Wayne Fay [EMAIL PROTECTED] wrote:


Give this a try... Use that same command, but add -Dclassifier=sources
or -Dclassifier=javadoc as appropriate. I'm reasonably certain that
will work.

Wayne


First impressions of using maven (long)

2007-01-04 Thread Christian Goetze

In this post, I'd like to summarize my first impressions of using maven.

The product built in my company is a mixed bag of C/C++ code, java code 
and perl code. It is a classic three tier app, with the back end written 
in C/C++, the middle tier written in perl and java and the GUI written 
in java.


The java code is built via ant scripts, and they have grown to be quite 
intricate and unwieldy, and they also tended to obscure the actual 
dependencies between artifacts, causing multiple jars to contain varying 
subsets of the class files, and various random jars being duplicated 
into several places in the source tree -- in other words: your classic 
organically grown mess. Also, the way the ant scripts were written made 
it very hard to get incremental parallel builds to work, since they 
tended to spill files all over the tree while invoking each others in 
scary ways.


The top level build system is written in a make clone called cook, 
written by a nice guy in Australia, Peter Miller. This clone has a 
variety of extras not available in any other build tool, which made it 
possible for me to write a system implementing a philosophy that matches 
almost perfectly with maven's philosophy. See 
http://www.cg-soft.com/tools/build/ for details. One thing to note is 
that cook is fairly old software (I think that the first version came 
out over 20 years ago), which makes the absence of many of its features 
in newer systems that much more depressing - more on that later.


So maven seems like a perfect fit, especially since our java code is 
fairly vanilla, using standard technologies and very few hacks. Indeed, 
it was possible for me to convert about 60% of the java build to maven 
builds within 2 days after reading the Better Builds with Maven book. 
Needless to say, I was impressed.


I really want to like maven. I think it has the right ideas, and the way 
it deals with deploying and reusing artifacts built elsewhere is a great 
model for dealing with third party software, and even inhouse software 
build by separate teams. It effortlessly implements a wink-in scheme 
which usually requires a lot of effort to get to work. In particular, I 
like the fact that developers only need to have those subtrees checked 
out where they are actually making changes, and can still build the 
complete product by downloading the artifacts built and deployed by the 
continuous build loop.


I am in the process of integrating some of the maven ideas (mainly the 
plugin architecture) into my cook based build system, and I almost 
wished maven had some support for C/C++ style artifacts - but I realize 
that this is a much harder problem than java artifacts - a testament to 
the wisdom of the java designers.


Nevertheless, there are difficulties and disappointments:

   * Incremental builds are not reliable;
   * Builds are not reproducible;
   * Builds are not parallizable and distributable;
   * Reactor builds are all or nothing;
   * Propagation of build parameters is undocumented and unpredictable;
   * Release process is bizarre.

I think these are important issues. I'll go into details later, but I 
cannot stress how important it is to have a reliable build tool that 
actually removes workload from developers. Most developers are not 
thrilled about having control taken away from them via an opiniated 
tool like maven. They will only go along if it provides tangible 
benefits. It is therefore -extremely-important- to not disappoint them. 
I don't think there is disagreement about that - after all, the idea 
plugin is a great step in the right direction, but I do fear that people 
do not fully appreciate the difficulties created by having a build tool 
that fails in mysterious and random, hard to debug ways. Developers have 
strong egos, and will go to great lengths to try to figure out things by 
themselves and will only come and ask questions when they are desperate 
- and then they will blame the tool and the people who brought it into 
their lives.


Now, in detail:

_Incremental Builds are not Reliable_

There are two well known failure modes:

   * A source file has been relocated or removed
   * A source file was updated, but with a timestamp older than the
 associated derived file(s).

Supporting those two cases is not really that hard: In the first case, 
you record a hash signature of the sorted list of all ingredient files 
used to produce the target file, and consider it out of date if that 
signature changes. In the second case, you record timestamp and hash 
signature of the source file and consider it out of date if the 
timestamp and signature changes. As a side effect, you get free build 
avoidance by comparing hash signature of a generated file with the 
previous version and consider subsequent dependencies up to date if the 
signature did not change. cook has been doing this for years and it 
works great.


The real problem seems to be a lack of awareness of why this is so bad. 
The classic 

Resolving repository information

2007-01-04 Thread Morgovsky, Alexander \(US - Glen Mills\)
I would like to resolve the URL of the remote Maven repository.  How can
I use ${project.distributionManagementArtifactRepository} to resolve the
URL of the repository?  I need a way to only resolve the URL of the
non-SNAPSHOT repository.  Since there can be both repository and
snapshotRepository, and also each has id, name and url, may I do
something like:
${project.distributionManagementArtifactRepository}.${repository}.${url}
?  Please let me know what I may do.  Thanks. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: External repositories listed in centrally deployed poms?

2007-01-04 Thread Carlos Sanchez

On 1/2/07, Wayne Fay [EMAIL PROTECTED] wrote:

I believe the Maven dev team has a fairly strict all dependencies
should exist on Central policy for their own artifacts (don't quote
me). However it is unreasonable to expect that all artifacts in
Central depend solely on other artifacts available on Central. I agree
with you in principle -- I just don't see it happening in the real
world.


That's the policy right now for upload bundles. The problem is with
files coming from synced repos.



I'm not quite sure how you deal with the following issue:
Artifact ABC lives in java.net repo
ABC pom.xml points to java.net repo for its dependencies (X, Y, and Z)
Java.net repo is mirrored to Central
ABC pom.xml on Central now points to java.net repo for its
dependencies, although they should generally also exist on Central due
to the mirroring

Or would you expect the mirror java.net to Central process to alter
all the pom files and remove the java.net repo references?

Wayne

On 1/2/07, Mykel Alvis [EMAIL PROTECTED] wrote:
 Note: I know this sounds a bit like whining.

 As a point to generate discussion, I'd like to take a pulse of the group
 (and vent a tiny bit).

 Having profound difficulty getting maven past my companies firewall, I'm
 forced to jump through tiny flaming hoops in order to get even the simplest
 builds to work. Currently, it involves what is probably a Career Limiting
 Decision on my part, namely that I duplicate my internal repository setup at
 home using Proximity and take the source home with me to acquire the
 required assets using an unrestricted internet connection.  I then bring the
 caches assets back into the office and deploy them to our internal proximity
 instance.

 Needless to say, this is cumbersome, fraught with peril, and not something
 I'd like to keep doing, but it's working (mostly).

 As a basis for discussion, I assert the following as given:

 1. Maven needs to be accepted in enterprise computing environments for
 growth purposes.
 2. Most, and all in my experience, enterprise computing environments live
 firmly entrenched behind firewalls.
 3. Navigating beyond firewalls seems hit-and-miss (I never used to think
 this, until it started happening to me and I started paying attention to
 other peoples problems with it).
 4. In a commercial environment, it is especially important to control what
 assets that are accessible to developers, generally for legal reasons.
 5. Once a maven application's codebase reaches a certain size, it becomes
 even more important and difficult to control those assets due to transitive
 dependencies.
 6. Every enterprise group I've dealt with for maven use (5 now) have no
 intention of allowing their developers free and open access to Internet
 based resources.
 7. Using an inward-facing caching proxy (like Archive or Proximity or the
 maven-proxy) is the correct solution to the problems spawned by #3 and #4

 I recently acquired a dependency from central that had a dependency (also in
 central), that depends on artifacts (in central) but which defines
 (apparently unnecessary) external repositories within the dependency's
 parent POM. Why is this such a big deal? Because it means that in order to
 prevent the build from failing (non-catastrophically), it's necessary to
 pick through a series of parent poms and mirror any listed repositories
 internally because I'm mandated to maintain a tight lockdown on assets.
 Since it's difficult for me to acquire these assets while I'm in the office,
 this isn't that big of a deal as long as I don't mind the build failing.
 And solving the issue (this time) was very simple, but it does mean that I'm
 mirroring central on the same data cache as the indicated repository
 (codehaus in this case), which may come back to bite my behind some day.

 My solution:
 Central's server (although not necessarily central itself) mirrors many (but
 not all) of the major publicly accessible repos (dev java net, eclipse,
 codehaus, etc).
 Please don't deploy poms into central that list external repositories when
 the dependencies they would acquire from the external repo are available on
 central.  I'm all for making the build fully portable (even though I
 obviously can't do that from work), but making the build less brittle is
 also one of the basic drivers for using maven, IMO.  If you're using a
 distributable dependency, send it on to central and remove other
 repositories from that.  It minimizes the impact to those of us unfortunate
 enough to be forced to manually manage their dependency sets and go through
 reams of paperwork to attempt unhindered access to m2 repos.

 Is codehaus expected to be generally accessible as a repository?
 I seem to recall something about plugins heading off to codehaus for assets,
 but I can't seem to locate it right now.  If so, I'll need to modify my
 proxy a bit.

 Anyone have any alternative solutions to this?  Comments on my set of givens
 above?  Good oatmeal cookie recipes?




Re: site:stage empty index.html

2007-01-04 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Andre,

you are not the only one with this problem. See:

http://jira.codehaus.org/browse/MSITE-138

I got it fixed for javadoc with some snapshot plugins but it still does not work
for cobertura and jxr.

Regards
  Jörg

Andre Biryukov schrieb:
 I am trying to generate a site for a multi project pom. I do:
 
 mvn clean site:stage -DstagingDirectory=C:\fullsite
 
 The site looks good except some reports are empty, i.e. index.html is of
 zero length in respective folders. If I look under project/target/site,
 everything is nice and clean, the reports are there.
 
 Is there a solution to this ? Is this a bug and it's been reported? I've
 seen other similar posts but no solutions.
 
 I also noticed that it's only some reports, not all of them, that have this
 problem: javadoc, cobertura, xref. Checkstyle works, however, go figure.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFnWWdmPuec2Dcv/8RAhY2AJ0bF0MSWYLgACjYT7oSf92qR98lfwCfcgVg
n5KQsX4z5DT1WuLxTUNjrZk=
=3ZHH
-END PGP SIGNATURE-

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



Re: Error trying to use the maven-antrun plugin

2007-01-04 Thread DevPro

Try adding the following line before calling the external ant script.

  property name=build.compiler value=extJavac/

This worked for me.



Stephen Coy-2 wrote:
 
 If my experience with the weblogic plugin is anything to go by, you  
 need to add this as an ant plugin dependency:
 
dependency
  groupIdsun.jdk/groupId
  artifactIdtools/artifactId
  version1.4.2/version
  scopesystem/scope
  systemPath${java.home}/../lib/tools.jar/systemPath
/dependency
 
 Use an appropriate version of course. For some reason, ${java.home}  
 gets set to the JRE by maven, even when $JAVA_HOME is pointing at a JDK.
 
 Steve C.
 
 
 On 28/12/2006, at 10:04 AM, Lee Meador wrote:
 
 This part:

 Embedded error: The following error occurred while executing this  
 line:
 E:\work\LTY-P39\frontoffice\ltyApp\source\build.xml:685: Unable to
 find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 [INFO]

 suggests that your JAVA_HOME environment variable is not pointing  
 to a java
 JDK. Sometimes it gets set to point to a JRE instead. You should  
 check the
 variable.

 I think ANT needs it in line 685 in your build.xml. This is the
 build.xmlthat you reference from the ant task inside the tasks tag
 under the
 antrun plugin.

 -- Lee


 On 12/22/06, EJ Ciramella [EMAIL PROTECTED] wrote:

 Has anyone tried using the ant task inside of maven2?

 We're trying to run a full ant based build inside of maven 2 (which
 includes a compile) but we're getting the following error:

 [javac] Compiling 752 source files to
 E:\work\LTY-P39\frontoffice\ltyApp\build\config\site\classes
 [INFO]
 - 
 ---
 [ERROR] BUILD ERROR
 [INFO]
 - 
 ---
 [INFO] Error executing ant tasks

 Embedded error: The following error occurred while executing this  
 line:
 E:\work\LTY-P39\frontoffice\ltyApp\source\build.xml:685:  
 Unable to
 find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 [INFO]
 - 
 ---
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error  
 executing
 ant tasks
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
 (Default
 LifecycleExecutor.java:559)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi 
 fec
 ycle(DefaultLifecycleExecutor.java:475)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
 (DefaultL
 ifecycleExecutor.java:454)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan 
 dle
 Failures(DefaultLifecycleExecutor.java:306)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen 
 ts(
 DefaultLifecycleExecutor.java:273)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
 (DefaultLifec
 ycleExecutor.java:140)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 
 115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke 
 (NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke 
 (DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java: 
 255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 executing ant tasks
 at
 org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks 
 (AbstractAntM
 ojo.java:114)
 at
 org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo 
 (DefaultPluginMa
 nager.java:412)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
 (Default
 LifecycleExecutor.java:534)
 ... 16 more
 Caused by: The following error occurred while executing this line:
 E:\work\LTY-P39\frontoffice\ltyApp\source\build.xml:685:  
 Unable to
 find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 at
 org.apache.tools.ant.ProjectHelper.addLocationToBuildException 
 (ProjectHe
 lper.java:539)
 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
 at
 

Re: Is there FTP plugin?

2007-01-04 Thread Eric Redmond

Well, you can always use Ant's FTP with the antrun plugin:

 plugin
   artifactIdmaven-antrun-plugin/artifactId
   configuration
 tasks
   ftp server=ftp.mycompany.com userid=usr1 password=pass1
action=list listing=${project.build.directory}/ftplist.txt
 fileset
   include name=*/
 /fileset
   /ftp
 /tasks
   /configuration
   dependencies
 dependency
   groupIdant/groupId
   artifactIdoptional/artifactId
   version1.5.4/version
 /dependency
 dependency
   groupIdant/groupId
   artifactIdant-commons-net/artifactId
   version1.6.5/version
 /dependency
 dependency
   groupIdcommons-net/groupId
   artifactIdcommons-net/artifactId
   version1.4.1/version
 /dependency
   /dependencies
 /plugin


Eric

On 1/4/07, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


Hi All

Is there a way / Plugin for FTP ing files other than remote repository
using maven2 ??

I tried it from ant task inside of maven2, but its not finding the ftp
taskdef classes, even though there are in dependency classpath

i getEmbedded error: No public execute() in class
org.apache.commons.net.ftp.FTP


Anyone done something like that, please advice


Thanks,
Raghurajan Gurunathan



-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.





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


Re: How to integrate XDoclet 1.2.3 in Maven2?

2007-01-04 Thread Marco Mistroni

Hi,
this is a sample pom.xml

this is for creating hibernate mappings

plugins
 plugin
artifactIdxdoclet-maven-plugin/artifactId
groupIdorg.codehaus.mojo/groupId
executions
execution
 phasegenerate-sources/phase
goals
   goalxdoclet/goal
/goals
configuration
   tasks
   echo message=Generating HBM files from java source to
${basedir}/src/main/resources/
   hibernatedoclet destdir=${basedir}/src/main/resources/
excludedtags=@version,@author,@todo,@see,@desc verbose=true
  fileset dir=${basedir}/src/main/java
includes=**/hibernate/*.java/
  hibernate version=3.0 /
   /hibernatedoclet
   /tasks
   /configuration
  /execution
 /executions
 /plugin

i have @work also a sample that generates ejb classes, including an ejb
exposed as webservice

i'll post it to you privately if it helps otherwise pls let me know
how you want to use xdoclet with maven and i'll try to see if i have a
sample

hth
marco




On 1/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi,

does anybody know how to get XDoclet 1.2.3 run in Maven2? I have googled
and browsed the internet for quite a while now, tried different things,
still not working...

Thanks in advance for any hints,
-Steffen-

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




Re: How can I make assembly include test jars?

2007-01-04 Thread Barrie Treloar

On 1/5/07, Christian Goetze [EMAIL PROTECTED] wrote:

As subject says ... it would seem that the assembly descriptors assume
you're packaging main. Am I supposed to use full paths in the assembly
descriptor? Anyone have an example?


This should be added to the assembly docs, do you want to file a JIRA
issue with the steps?

You might be able to use a fileSet as your source jar should be in
target/artifactId-test.jar.

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



Re: How can I make assembly include test jars?

2007-01-04 Thread Barrie Treloar

On 1/5/07, Barrie Treloar [EMAIL PROTECTED] wrote:

On 1/5/07, Christian Goetze [EMAIL PROTECTED] wrote:
 As subject says ... it would seem that the assembly descriptors assume
 you're packaging main. Am I supposed to use full paths in the assembly
 descriptor? Anyone have an example?

This should be added to the assembly docs, do you want to file a JIRA
issue with the steps?

You might be able to use a fileSet as your source jar should be in
target/artifactId-test.jar.



Alternatively, play with
  moduleSet binaries  attachmentClassifier
where attachmentClassifer would probably be tests.
I've never used this one.


Another option is to create another project whose sole job is to
provide packaging.
Then you can follow the instructions at
http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html

This is how I create a distributable containing multiple assemblies.

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



Re: How can I make assembly include test jars?

2007-01-04 Thread Christian Goetze
Thanks for the tips. I ended up making it its own module and just use 
the standard assembly. My thinking is that if it's being distributed, it 
isn't really a test anymore. I hope this conforms with the idea of the 
test vs main source subtrees...

--
cg

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



Re: How can I make assembly include test jars?

2007-01-04 Thread Barrie Treloar

On 1/5/07, Christian Goetze [EMAIL PROTECTED] wrote:

Thanks for the tips. I ended up making it its own module and just use
the standard assembly. My thinking is that if it's being distributed, it
isn't really a test anymore. I hope this conforms with the idea of the
test vs main source subtrees...


As a side note, why are you wanting to include a jar with test classes
part of an assembly?

This will create source jars, for the code and the test and they will
be available in the maven repository:
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-source-plugin/artifactId
   executions
 execution
   goals
 goaljar/goal
 goaltest-jar/goal
   /goals
 /execution
   /executions
 /plugin

This will create the test classes jar so that other projects can
reference these classes, e.g. shared test code.
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 executions
   execution
 goals
   goaltest-jar/goal
 /goals
   /execution
 /executions
   /plugin

Generally you would want to include source only in an source assembly
- so people can build their own. In a binary assembly you dont care
about the test classes.

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



Re: uml reports

2007-01-04 Thread Wayne Fay

What do you want to do with them -- convert to JPG or PNG and
include in Javadoc or another webpage? Or just include links to the
UML files?

Wayne

On 1/4/07, Dmitry Beransky [EMAIL PROTECTED] wrote:

Hi,

I've got UML diagrams that I'm maintaining using StarUML.  Is there a
way I can have them included with other Maven-generated reports?  If
not, is there another UML application that works better with Maven?


Thanks
Dmitry

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




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



Re: Maven-buildnumber plugin

2007-01-04 Thread Binil Thomas

Hi all,

A new version of maven-buildnumber plugin is released. Please see
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html

Thanks,
Binil


Kay Huber wrote:
 
 Hi Binil
 
 The good news first:
 Thanks to your work, I got the right start - and found the answer to your
 final question :-)
 

-- 
View this message in context: 
http://www.nabble.com/Maven-buildnumber-plugin-tf2322368s177.html#a8172557
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: Packaging application with dependent jars?

2007-01-04 Thread mxc

Hi Mathew,

Thanks for the help. I have added the above XML to my pom.xml. When I run
the command




 [INFO] Unable to find descriptor:
 /home/mark/workspace/appgen/src/decriptor.xml (No such file or directory)
 

-- 
View this message in context: 
http://www.nabble.com/Packaging-application-with-dependent-jars--tf2916305s177.html#a8173276
Sent from the Maven - Users mailing list archive at Nabble.com.


Re: Overriding properties in a dependency's pom.xml

2007-01-04 Thread mraible

I tried setting the dao.framework property in settings.xml, but that didn't
work either.

It seems there's only two ways to set a DAO Framework with AppFuse/Maven.

1. Pass it in from the command-line: mvn jetty:run-war
-Ddao.framework=jpa-hibernate
2. Set it in your MAVEN_OPTS environment variable: export
MAVEN_OPTS='-Ddao.framework=jpa-hibernate'.

Both of these seem pretty fragile as it requires end users to do something. 
If they don't set the MAVEN_OPTS variable, they'll end up with Hibernate
instead of iBATIS or JPA. Is there a better way to do this?  

Is Maven like Ant in that properties are immutable?  If so, can I hook into
the lifecycle sooner and set this dao.framework property from the local
pom.xml?

Thanks,

Matt



mraible wrote:
 
 I have a project that has dao.frameworkhibernate/dao.framework defined
 as a property in the root pom.xml. In a service project, that property
 is used as follows:
 
 dependency
 groupId${pom.groupId}/groupId
 artifactIdappfuse-${dao.framework}/artifactId
 version${pom.version}/version
 /dependency
 
 In turn, the service dependency is used in WAR projects:
 
 dependency
 groupId${pom.groupId}/groupId
 artifactIdappfuse-service/artifactId
 version${pom.version}/version
 exclusions
 /dependency
 
 From here, child projects use this WAR project (it's overlayed).  We're
 using the Maven WarPath plugin
 (http://static.appfuse.org/plugins/maven-warpath-plugin/) to read
 dependencies from WARs.
 
 For some reason, if I put dao.frameworkibatis/dao.framework in my
 child project, it doesn't override the variable in the service/pom.xml. 
 However, if I pass in -Ddao.framework=ibatis from the command-line,
 everything works.  
 
 Is it possible to override property values in child projects - or is it
 only possible from the command-line?  My child project does not refer to
 any other projects as parent projects.
 
 Matt
 

-- 
View this message in context: 
http://www.nabble.com/Overriding-properties-in-a-dependency%27s-pom.xml-tf2921218s177.html#a8173290
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Invoking ant java Task from Maven or similar approaches in MAVEN

2007-01-04 Thread raju

Hi ,
Currently I am invoking java org.apache.xalan.xslt.Process using an ant
build file in order to generate output based on XSL.IS there any way i can
do the same in MAVEN or maybe call this ant script from within MAVEN POM.

?xml version=1.0 encoding=UTF-8?
project name=Code Generation default=build basedir=.
property file=build.properties/
target name=build
java classname=harsh.javatoxml.Java2XML fork=true 
arg line=${dir.src}/*.java/
classpath
pathelement location=${java2xml.jarpath}/
/classpath
/java
java classname=org.apache.xalan.xslt.Process fork=true 
arg line=-in ${dir.outputsrcxml}/output.xml -xsl
${dir.inputsrcxml}/initial.xsl/
classpath
!-- Using Saxon as didnt find option to write 
output to java--
pathelement location=${saxonapi.jar}/
pathelement location=${xalanapi.jar}/
!--pathelement 
location=${env.XALAN_BIN}/bsf.jar/--
/classpath
/java
/target
/project

Regards
Raju
-- 
View this message in context: 
http://www.nabble.com/Invoking-ant-java-Task-from-Maven-or-similar-approaches-in-MAVEN-tf2924117s177.html#a8173529
Sent from the Maven - Users mailing list archive at Nabble.com.


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