Re: Any way to send email with build and test report?

2008-04-10 Thread David C. Hicks
Don't know of any specific Maven email plugin, but you could use the Ant 
plugin to execute the Ant Mail task. It shouldn't be too difficult to 
gather up all of your Surefire reports into a file to send in an email.


urir wrote:

Hi,
I am using maven2 for building and testing a multi-project that consists
from several sub projects.

Is there a way (some plugin maybe) so at the end of the main project build
and test maven will send an email with all the results for all the tests?
some statistcs maybe?

Thanks,
Uri.

  


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



RE: filtering resources - switching whole files

2008-04-10 Thread Bernhard David
Hi,

I think this'll do the trick:

make differrent directories like src/main/dev, src/main/prod etc. and
set up the POM:

profiles
  profile
iddev/id
build
  resources
resource
  directorysrc/main/dev/directory
/resource
  /resources
/build
   /profile 

and so on. Then with mvn -P dev you choose a profile, and only the
files from that profile will be copied. Any resources you declare
outside of the profiles (regular build) will be copied for all
profiles.

David

 -Original Message-
 From: Nick Stolwijk [mailto:[EMAIL PROTECTED] 
 Sent: 10 April 2008 00:10
 To: Maven Users List
 Subject: Re: filtering resources - switching whole files
 
 For different config files I often do it with an include. I.e. spring 
 configuration for production, test, dev, make a main 
 applicationContext.xml which includes 
 database-${environment}.xml. Now 
 you can switch config files between builds. (Or at runtime, 
 if you don't 
 filter.
 
 Hth,
 
 Nick S.
 
 Jan Zelenka wrote:
  Hi,
  I have different config files for various build targets 
 (dev, test, prod), 
  but I cannot use standard resource filtering because whole 
 portions of the 
  files are diferrent, not just simple strings. In Ant I have 
 a copy of the 
  file for each target and just copy/rename them during 
 build. What would be 
  the best way to do this in maven? Preferably using profiles 
 to choose 
  targets.
 
  Thank you,
  Jan
   

 
 -
 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: Where do I put document in Maven project?

2008-04-10 Thread youhaodeyi

Thanks.

Maria Odea Ching-5 wrote:
 
 You can put your project documentation in src/site and it would get
 included
 when you generate the site for your project.
 Please note that your documents should be written in APT format and when
 you
 run 'mvn site', their corresponding html files
 will automatically be generated. Other project documentations such as
 javadocs, project info reports, etc. will also be generated.
 
 Please take a look at the following links for more details:
 
 http://maven.apache.org/guides/mini/guide-site.html
 http://maven.apache.org/doxia/references/apt-format.html
 
 Thanks,
 Deng
 
 On Thu, Apr 10, 2008 at 9:04 AM, youhaodeyi [EMAIL PROTECTED] wrote:
 

 This link lists all the Maven directories:


 http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

 but I didn't find a place to hole project document.
 --
 View this message in context:
 http://www.nabble.com/Where-do-I-put-document-in-Maven-project--tp16599702s177p16599702.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]


 
 

-- 
View this message in context: 
http://www.nabble.com/Where-do-I-put-document-in-Maven-project--tp16599702s177p16603546.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: Deploying a modified plugin to an in-house repository

2008-04-10 Thread nicklist
Doh... Note to self: Don't post when you're tired. ;)

But I see artifactory also can work with the webdav wagon. [1] Could you try 
that?

Hth,

Nick S.

[1] 
http://www.jfrog.org/confluence/display/RTF/Using+Artifactory#UsingArtifactory-CLIDeployment

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Thu 4/10/2008 01:52
To: Maven Users List
Subject: RE: Deploying a modified plugin to an in-house repository
 
The url was an artifactory one...

-Original Message-
From: Nick Stolwijk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 6:05 PM
To: Maven Users List
Subject: Re: Deploying a modified plugin to an in-house repository

Doesn't deploying to archiva require the webdav wagon instead of http
wagon?

Return code 400 means:
The request could not be understood by the server due to malformed 
syntax. The client SHOULD NOT repeat the request without modifications.

Take a look at the deploy to archiva page at the archiva documentation
[1]

Hth,

Nick S.

[1] http://maven.apache.org/archiva/docs/1.0.2/userguide/deploy.html

Joshua ChaitinPollak wrote:
 I'm still having trouble with deploying my modified exec-maven-plugin.

 If I run this slightly different command line:

 mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy \
   

-DaltDeploymentRepository=plugins-snapshots::default::http://mravinjak:8
081/artifactory/repo/plugins-snapshots 


 I get:

 [INFO] 


 [ERROR] BUILD ERROR
 [INFO] 


 [INFO] Error deploying artifact: Failed to transfer file: 

http://mravinjak:8081/artifactory/repo/plugins-snapshots/org/codehaus/mo
jo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-SN
APSHOT.jar. 
 Return code is: 400

 Is there anything I can do?

 -Josh


 On Apr 9, 2008, at 2:11 AM, Joshua ChaitinPollak wrote:

 So I just made a modification to the exec-maven-plugin and now I'm 
 trying to share that with the rest of my company be deploying it to 
 our shared repository (Artifactory) with this command:

 mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy-file \
-DgroupId=org.codehaus.mojo -DartifactId=exec-maven-plugin
\
-Dversion=1.1-beta-2-SNAPSHOT -Dpackaging=maven-plugin \


-Dfile=/Users/pardsbane/src/exec-maven-plugin/target/exec-maven-plugin-1
.1-beta-2-SNAPSHOT.jar 
 \
-DrepositoryId=3rdp-snapshots 
 -Durl=http://mravinjak:8081/artifactory/repo/[EMAIL PROTECTED]

 But I'm getting this error:

 [INFO] Error deploying artifact: Failed to transfer file: 

http://mravinjak:8081/artifactory/repo/3rdp-snapshots/org/codehaus/mojo/
exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1-beta-2-20080
409.060704-1.jar. 
 Return code is: 400

 Which I suspect is because of the -Dpackaging=maven-plugin, but when 
 I tried -Dpackaging=jar, Maven wasn't able to find this version of 
 the plugin.

 Am I doing something wrong?

 -- 
 Joshua ChaitinPollak | Software Engineer
 Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970








-
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: binding a plugin to a lifecycle goal

2008-04-10 Thread nicklist
Take a look at the Maven Build Lifecycle page [1]. This page lists for each 
type of packaging which plugins and goals are added automatically to the 
lifecycle. All other goals you have to add yourself explicitly. Or in a parent 
pom file if you need them for many projects.

Hth,

Nick S.

[1] http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Thu 4/10/2008 03:39
To: Maven Users List
Subject: RE: binding a plugin to a lifecycle goal
 
I _just_ realized that.

But I've looked at the resources plugin - you don't have to bind that.

Is this just the way hand-rolled plugins work? 

-Original Message-
From: Olivier Dehon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 09, 2008 9:21 PM
To: Maven Users List
Subject: Re: binding a plugin to a lifecycle goal

You need to add an execution in your POM like:

build
  plugins
plugin
  artifactIdmaven-whatever-plugin/artifactId
  executions
goals
  goalassemble/goal
/goals
  /executions
/plugin
  /plugins
/build

The fact that you specified the @phase in your mojo will attach the
execution automatically to the process-resources phase.

-Olivier

On Wed, 2008-04-09 at 21:09 -0400, EJ Ciramella wrote:
 I've written a few maven plugins now, most of the type that should be
 called explicitly.
  
 I have a new one however, that I'd like to be part of the regular
 lifecycle.
  
 I have this in my mojo:
  
 /**
  * description
  * @goal assemble
  * @phase process-resources
  */
  
 but when I run mvn process-resources it doesn't execute my plugin.
  
 What am I doing wrong?


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




WAR Overlay includes

2008-04-10 Thread António Mota
I'm sorry if this msg is getting to the list several times but since this is
my first post here I don't have a way to tell. Please someone just hit a
reply to see if I'm ok, please?
---
Hello:

I'm trying to do some war overlay but I can't seem to include just the files
I want using the include tag on the overlay. In this case I only want's
under WEB-INF, but what I get is everything that's
inside the war.

   overlay
 groupIdbirt-runtime/groupId
 artifactIdruntime/artifactId
 includes
includeWEB-INF/**/include
  /includes
   /overlay

and

 dependency
groupIdbirt-runtime/groupId
artifactIdruntime/artifactId
typewar/type
scoperuntime/scope
version${birtVersion}/version
/dependency

The only way I cen get what I want is to use

dependentWarIncludesWEB-INF/**/dependentWarIncludes

but what if I have two different overlays with different includes?


Thanks all.

-- 
Melhores cumprimentos / Beir beannacht / Best regards

António Manuel dos Santos Mota

mobile PT: +351919623568 (deprecated)
mobile IE: +353(0)877718363
mail: [EMAIL PROTECTED]
skype: amsmota
msn: [EMAIL PROTECTED]
linkedin: www.linkedin.com/in/amsmota


Re: maven webstart

2008-04-10 Thread Andrius Šabanas

Dmitry Beransky wrote:

Hi,

I'm aware of the webstart plugin, but what I can't figure out if it's
possible to use maven to do the end-to-end automated deployment of an
app.  In other words, can maven build, package, and deploy to tomcat a
webstart application?

Thanks
Dmitry


Yes - see tomcat-maven-plugin from http://mojo.codehaus.org, or 
alternatively you can try http://cargo.codehaus.org/Maven2+plugin for 
webapp deployment.


Andrius


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



[maven-resources-plugin bug]: ignored configuration for custom execution, any workaround ?

2008-04-10 Thread Salvador Diaz

Hi all,

I've bound the resources:resources goal to the package phase of my build 
and I wanted it to copy certain resources to a directory but it's 
ignoring my configuration:


   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-resources-plugin/artifactId
   executions
   execution
   idcopy-resources/id
   phasepackage/phase
   goals
   goalresources/goal
   /goals
   configuration
   
outputDirectory${project.build.directory}/conf/outputDirectory

   resources
   resource

directorysrc/main/resources/directory
excludes
exclude**/*.xml/exclude

excludeapplication.properties/exclude
/excludes

   /resource
   /resources
   /configuration
   /execution
   /executions
   /plugin

The problem is that everything after the outputDirectory tag is being 
ignored and all of the src/main/resources directory is getting copied to 
${project.build.directory}/conf.


Has anybody else been confronted to this issue? Do you know of any 
workaround ? I think this is the url for this issue: 
http://jira.codehaus.org/browse/MRESOURCES-8 (or at least it's the 
closer issue I found on the tracker). Can somebody confirm that the 
issue is being worked on ?


Thanks


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



Re: where to find maven 2 simian report plugin?

2008-04-10 Thread Tim Kettler

Hi,

the plugin is here [1]. However, there seems to be no release of it yet.
You can subscribe to the mojo project's mailinglist and ask the there
for an release. Or you can grab the sources from here [2] and and just
make an internal release of the plugin.

-Tim

David Delbecq schrieb:

Hello,

I migrated a projet from maven1 to maven2. Compile, package and 
deployement process ahve now been successfully migrated. We have however 
some problems with reports. We can't find what's the maven2 equivalent 
of maven1 simian report plugin? We get this:


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


I search google but can't find maven2 simian report plugin. Was it not 
ported to maven2? Is another plugin using a tool similar to simian for 
reporting code ducplication?




[1] http://mojo.codehaus.org/simian-report-maven-plugin
[2] https://svn.codehaus.org/mojo/trunk/sandbox/simian-report-maven-plugin/

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



where to find maven 2 simian report plugin?

2008-04-10 Thread David Delbecq

Hello,

I migrated a projet from maven1 to maven2. Compile, package and 
deployement process ahve now been successfully migrated. We have however 
some problems with reports. We can't find what's the maven2 equivalent 
of maven1 simian report plugin? We get this:


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


I search google but can't find maven2 simian report plugin. Was it not 
ported to maven2? Is another plugin using a tool similar to simian for 
reporting code ducplication?


--
David Delbecq
Institut Royal Météorologique
Ext:557


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



AW: [ANN] Maven Eclipse Plugin 2.5.1 Released

2008-04-10 Thread Salgar, Mehmet (external)
Hallo,

That is also my question, I am using the WTP 2.0 setting but I am not sure it 
does an effect or not???

In snapshot version of the plugin, the log statements are mentioning the which 
setting is in use but that had dissappered.

And I have a remark on the second point also. In a workspace, if a project has 
a dependency to another project in the workspace, eclipse is not able to 
resolve this dependency until we configure it in J2EE dependency, I guess this 
can be automated or not





T-Mobile Deutschland GmbH
Aufsichtsrat: Hamid Akhavan (Vorsitzender)
Geschäftsführung: Philipp Humm (Sprecher), Thomas Berlemann, Stefan Homeister, 
Dr. Peter Körner, Günther Ottendorfer, Dr. Raphael Kübler, Dr. Steffen Roehn
Handelsregister: Amtsgericht Bonn, HRB 59 19
Sitz der Gesellschaft: Bonn
WEEE-Reg.-Nr.: DE60800328



-Ursprüngliche Nachricht- 
Von: Zemian Deng [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 5. April 2008 19:52
An: Maven Users List
Betreff: Re: [ANN] Maven Eclipse Plugin 2.5.1 Released


Hi eclipse plugin users,

I have couple feedback to the plugin. I used mvn eclipse:m2eclipse 
-Dwptversion=1.5 for all my webapp dev. Is there any update for wptversion that 
I should be aware of? The old one works fine, but using number 1.5 always make 
it seems it's outdated. Can it be set something like -Dwptversion=latest 
instead?

Also, when use command above, there are two things I always need to set before 
an webapp can be run:
1) Enable the j2EE Dependecies checkbox for M2REPO library set in the project 
properties.
2) Add server library(Tomcat) to the classpath of the project. Are there way to 
auto set these?

Thanks,
Zemian Deng

On Sat, Apr 5, 2008 at 3:09 AM, Arnaud HERITIER [EMAIL PROTECTED]
wrote:

 The Maven team is pleased to announce the release of the Maven Eclipse 
 Plugin, version 2.5.1

 This plugin is used to generate Eclipse IDE files (*.classpath, 
 *.wtpmodules and the .settings folder) for use with a project.

 http://maven.apache.org/plugins/maven-eclipse-plugin/

 You can run mvn -up to get the latest version of the plugin, or 
 specify the version in your project's plugin configuration:

 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-eclipse-plugin/artifactId
  version2.5.1/version
 /plugin

 This release fixes several bugs.

 Release Notes - Maven 2.x Eclipse Plugin - Version 2.5.1

 ** Bug
* [MECLIPSE-266] - plugin applies java facet to ear project
* [MECLIPSE-411] - manifest property usage is only for ogsi maifests
* [MECLIPSE-412] - Generation of jst.java Facet for EAR packaging 
 kills my RAD workspace
* [MECLIPSE-413] - EclipseOSGiManifestWriter uses the artifact id 
 and not the EclipseProjectName

 ** New Feature
* [MECLIPSE-405] - to-maven target should allow to strip qualifier 
 when creating artifacts from osgi bundles

 Enjoy,

 -The Maven team 
 ..
 Arnaud HERITIER 
 ..
 OCTO Technology - aheritier AT octo DOT com
 www.octo.com | blog.octo.com 
 ..
 ASF - aheritier AT apache DOT org
 www.apache.org | maven.apache.org 
 ...

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




-- 
Thanks,
Zemian Deng

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



Re: where to find maven 2 simian report plugin?

2008-04-10 Thread David Delbecq
En l'instant précis du 10/04/08 12:21, Tim Kettler s'exprimait en ces 
termes:

Hi,

the plugin is here [1]. However, there seems to be no release of it yet.
You can subscribe to the mojo project's mailinglist and ask the there
for an release. Or you can grab the sources from here [2] and and just
make an internal release of the plugin.

-Tim 


thanks a lot

--
David Delbecq
Institut Royal Météorologique
Ext:557


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



Re: maven-buildnumber-plugin / revision number last changed rev number

2008-04-10 Thread DCVer

scm framework? You mean scm tag in pom.xml? I have no idea how can I
configure this using scm tag.


Dirk Olmes-4 wrote:
 
 DCVer wrote:
 Hi all. I use maven-buildnumber-plugin to retrieve svn revision number of
 the
 local working copy. But I noticed, that it isn't configured in a way I
 would
 like to.
 
 E.g. when I have tags directory in svn repository containing few
 subdirectories (let's say 1.0 1.1 and 1.2). 1.0 was tagged at revision
 1000,
 1.1 at revision 1100, 1.2 at revision 1200. Parent tags directory has
 revision number = 1200, because it is the highest rev number of all
 subdirectories.
 
 I would like to retrieve rev number = 1000, when I check out 1.0
 directory,
 not 1200, what the maven-buildnumber-plugin actually does in standard
 configuration. In other words I would like to retrieve last changed rev
 number - not revision number (see output of the 'svn info' command:
 ...
 Revision: 1200
 ...
 Last Changed Rev: 1000
 ...)
 
 Hope it isn't as difficult as it seems to me :)
 
 Last time I checked it used Maven's scm framework. Have fun extending 
 this ... :-)
 
 -dirk
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-buildnumber-plugin---revision-number---last-changed-rev-number-tp16583306s177p16607801.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]



Can I set a timeout for downloading dependency

2008-04-10 Thread youhaodeyi

Can I set a timeout for downloading dependency jars?
-- 
View this message in context: 
http://www.nabble.com/Can-I-set-a-timeout-for-downloading-dependency-tp16608218s177p16608218.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: maven-buildnumber-plugin / revision number last changed rev number

2008-04-10 Thread nicklist
No, not the scm tag. As you can see here [1] the buildnumber-plugin uses the 
scm-api and implementations of Maven.

Hth,

Nick S.

[1] http://mojo.codehaus.org/buildnumber-maven-plugin/dependencies.html


-Original Message-
From: DCVer [mailto:[EMAIL PROTECTED]
Sent: Thu 4/10/2008 13:23
To: users@maven.apache.org
Subject: Re: maven-buildnumber-plugin / revision number  last changed rev 
number
 

scm framework? You mean scm tag in pom.xml? I have no idea how can I
configure this using scm tag.


Dirk Olmes-4 wrote:
 
 DCVer wrote:
 Hi all. I use maven-buildnumber-plugin to retrieve svn revision number of
 the
 local working copy. But I noticed, that it isn't configured in a way I
 would
 like to.
 
 E.g. when I have tags directory in svn repository containing few
 subdirectories (let's say 1.0 1.1 and 1.2). 1.0 was tagged at revision
 1000,
 1.1 at revision 1100, 1.2 at revision 1200. Parent tags directory has
 revision number = 1200, because it is the highest rev number of all
 subdirectories.
 
 I would like to retrieve rev number = 1000, when I check out 1.0
 directory,
 not 1200, what the maven-buildnumber-plugin actually does in standard
 configuration. In other words I would like to retrieve last changed rev
 number - not revision number (see output of the 'svn info' command:
 ...
 Revision: 1200
 ...
 Last Changed Rev: 1000
 ...)
 
 Hope it isn't as difficult as it seems to me :)
 
 Last time I checked it used Maven's scm framework. Have fun extending 
 this ... :-)
 
 -dirk
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-buildnumber-plugin---revision-number---last-changed-rev-number-tp16583306s177p16607801.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]




Can I give a dependency a specific repository url?

2008-04-10 Thread youhaodeyi

My pom.xml has many dependencies and repositories. Maven will try to download
each of them in each of the repository. It will waste a lot of time for
downloading. How can I specify a dependency from a specific repository?
-- 
View this message in context: 
http://www.nabble.com/Can-I-give-a-dependency-a-specific-repository-url--tp16608355s177p16608355.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: Multiple CPUs

2008-04-10 Thread VELO

 The main problem you would have with a multi-cpu build would be
 understanding the console output. Since maven isn't threaded already
 the output would be interwoven and impossible to understand.


Agree...

Will only be readable on separated text logs.

Or multi column output (just a joke =D).


VELO



On Wed, Apr 9, 2008 at 8:28 PM, Barrie Treloar [EMAIL PROTECTED] wrote:

 On Wed, Apr 9, 2008 at 8:51 PM, Benedikt Thelen [EMAIL PROTECTED] wrote:
  Hi there, i am sort of a maven newbee,
   At our workplce we have a quite big Coccon project in developenet and
 we use
   maven to build it. Building takes usually 5-6 minutes which is quite a
   while. I noticed using gkrellm and htop that maven only uses one of the
 two
   processors (Levono Thinkpad with intel core Duo) in my notebook.
   Question: Is there a way to tell maven to use both CPU's while
 building? I
   searched gooogle a lot but i didn't find anything.

 If you are building your entire system, including unit tests, in under
 10 minutes that should be good enough.

 6 minutes is fine.  It gives you time to stretch your legs, go to the
 loo, grab a drink.

 The alternatives are:

 * manually select which modules to build, (i.e only the ones you
 changed) - generally it is faster to run it at the project root than
 cd around typing mvn commands

 * setup your IDE to use direct project references instead of
 ~/.m2/repository references - then you can develop without running
 maven at all   You only run maven just prior to committing the
 changes back, which is much less often and you can afford the waste of
 6 minutes.

 * turn off plugins for development and make sure they are on for
 continuous development. e.g. you may not need to run checkstyle as
 your IDE is already checking this.


 The main problem you would have with a multi-cpu build would be
 understanding the console output. Since maven isn't threaded already
 the output would be interwoven and impossible to understand.

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




where to find xmlsec-1.4.1.jar ?

2008-04-10 Thread torsten . reinhard
Hi, 

what´s the official group and artifactId of xmlsec-1.4.1jar ?

http://repo1.maven.org/maven2/xml-security/xmlsec/  = ends up 
at 1.3.0
http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/  = ends up 
at 1.4.0 (without pom), directory 1.4.1 is empty

http://repository.jboss.org/maven2/apache-xmlsec/xmlsec/= ends up 
at 1.3.0
http://repository.jboss.com/maven2/org/apache/xmlsec/1.4.1/ = hits 
xmlsec-1.4.1.jar

= What´s the recommended repo? Could someone complete the list?

Thanx, 

Torsten


assembly:assembly failure

2008-04-10 Thread Harper, Brad
Anyone have thoughts on what's behind the following error?

  ...
  [ERROR] BUILD FAILURE
  [INFO] --
  [INFO] The assembly id null is used more than once.
  ...

I see this error when testing a garden-variety assembly from the command
line

  % mvn assembly:assembly -Ddescriptor=src/main/assembly/release.xml
-Ddocument.version=2.4.15

The assembly descriptor names only two files: the project's war artifact
and a document, which references the property ${document.version} to get
the correct file.

Brad Harper

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



Recommended production release procedure?

2008-04-10 Thread Jesper

Hi,
I'm maven'izing  a large enterprise project (from ant) and am looking 
for any recommendations on how to do releases to non-maven environments.


After doing the maven build (multi-module) and producing all the 
artifacts in the repository, I need to deploy them to different 
environments.


I may have 20 jars from 20 modules, 1 war and script files/webstart jnlp 
files, etc (binaries),  all these need to go into a certain directory 
structure on the environments, eg. the war in the webapps directory, all 
the libs in a lib directory without any poms and maven versioning data 
in the filenames or the classpath will need to constantly be updated.


Currently, my thinking is to use the assembly plugin to group the jars, 
create jars of the binaries so they can be deployed.


The deploy plugin seem to be to deploy to a another maven repository 
which isn't really what I want to do.
So my question is whether there is a plugin suitable for this, or do I 
need to break it up into more steps, eg. copy to a remote machine, 
unpack the binaries, etc.


What are everyone experience with this, perhaps others have a different 
way of achieving this..

Thanks
Jesper


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



RE: Recommended production release procedure?

2008-04-10 Thread Chris Helck
I don't think Maven was meant to solve application deployment issues.
The whole field of installers  deployment is very complex. Sometimes
you need to install certain files as root, install cron/timer jobs, stop
and restart services, create directory structures, and so on.

I have been able to use Maven to create installable artifacts -- I had a
Maven1 plugin that would invoke InstallShield. In Maven2 I replaced
InstallShield with a Python script. There are various plugins for other
installers. I'm sure that this is not the right way to do things, but
for us, right now, it works.

That said the assembly plugin is very nice. You could use it to define a
simple zip file with a structure like:
bin
etc
jars
wars

This zip file would then feed into some deployment tool/process which
would do the messy stuff. I would like a way to create a self-extracting
zip file using the assembly plugin, but I've never had time to
investigate. This would make it easy to do simple linux installs. The
self extracting archive would unpack everything then execute the file
./bin/install, which (hopefully) does the right things.

Regards,
Christopher Helck
 

-Original Message-
From: Jesper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 9:05 AM
To: users@maven.apache.org
Subject: Recommended production release procedure?

Hi,
I'm maven'izing  a large enterprise project (from ant) and am looking
for any recommendations on how to do releases to non-maven environments.

After doing the maven build (multi-module) and producing all the
artifacts in the repository, I need to deploy them to different
environments.

I may have 20 jars from 20 modules, 1 war and script files/webstart jnlp
files, etc (binaries),  all these need to go into a certain directory
structure on the environments, eg. the war in the webapps directory, all
the libs in a lib directory without any poms and maven versioning data
in the filenames or the classpath will need to constantly be updated.

Currently, my thinking is to use the assembly plugin to group the jars,
create jars of the binaries so they can be deployed.

The deploy plugin seem to be to deploy to a another maven repository
which isn't really what I want to do.
So my question is whether there is a plugin suitable for this, or do I
need to break it up into more steps, eg. copy to a remote machine,
unpack the binaries, etc.

What are everyone experience with this, perhaps others have a different
way of achieving this..
Thanks
Jesper


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


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**


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



Re: Recommended production release procedure?

2008-04-10 Thread jesper
Yes, I'm using the assembly plugin to create the structure, where the 
missing link for me is to deploy to other environments outside a maven 
repository as explained below.
I'll add a shell script for now to do the final steps (eg. unpacking) 
after the assembly built jar has been transferred to the other environments.

Jesper

Chris Helck wrote:

I don't think Maven was meant to solve application deployment issues.
The whole field of installers  deployment is very complex. Sometimes
you need to install certain files as root, install cron/timer jobs, stop
and restart services, create directory structures, and so on.

I have been able to use Maven to create installable artifacts -- I had a
Maven1 plugin that would invoke InstallShield. In Maven2 I replaced
InstallShield with a Python script. There are various plugins for other
installers. I'm sure that this is not the right way to do things, but
for us, right now, it works.

That said the assembly plugin is very nice. You could use it to define a
simple zip file with a structure like:
bin
etc
jars
wars

This zip file would then feed into some deployment tool/process which
would do the messy stuff. I would like a way to create a self-extracting
zip file using the assembly plugin, but I've never had time to
investigate. This would make it easy to do simple linux installs. The
self extracting archive would unpack everything then execute the file
./bin/install, which (hopefully) does the right things.

Regards,
Christopher Helck
 


-Original Message-
From: Jesper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 9:05 AM

To: users@maven.apache.org
Subject: Recommended production release procedure?

Hi,
I'm maven'izing  a large enterprise project (from ant) and am looking
for any recommendations on how to do releases to non-maven environments.

After doing the maven build (multi-module) and producing all the
artifacts in the repository, I need to deploy them to different
environments.

I may have 20 jars from 20 modules, 1 war and script files/webstart jnlp
files, etc (binaries),  all these need to go into a certain directory
structure on the environments, eg. the war in the webapps directory, all
the libs in a lib directory without any poms and maven versioning data
in the filenames or the classpath will need to constantly be updated.

Currently, my thinking is to use the assembly plugin to group the jars,
create jars of the binaries so they can be deployed.

The deploy plugin seem to be to deploy to a another maven repository
which isn't really what I want to do.
So my question is whether there is a plugin suitable for this, or do I
need to break it up into more steps, eg. copy to a remote machine,
unpack the binaries, etc.

What are everyone experience with this, perhaps others have a different
way of achieving this..
Thanks
Jesper


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


**
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the Information) is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 (ICAP) or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**


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



[ANN] Apache Maven 2.0.9 Released

2008-04-10 Thread Brian Fox
The Apache Maven team would like to announce the availability of Maven
2.0.9.

This release went through a new process that saw 8 release candidates tested
by the user community before the final release and we expect it to be more
robust than previous versions. There are several important fixes and
changes, most notably locking down core plugins in the super pom. You can
read details in the release notes linked below.


You can find the binaries here:

http://maven.apache.org/download.html

You can find the release notes here:

http://maven.apache.org/release-notes.html

You can find the roadmap for future issues here:

http://jira.codehaus.org/browse/MNG?report=com.atlassian.jira.plugin.system.project:roadmap-panel

Thanks,

The Apache Maven Team


Re: Any way to send email with build and test report?

2008-04-10 Thread Wayne Fay
To me at least, this sounds like functionality I might expect out of
my Continuous Integration server, not my build tool. Look at
implementing Continuum, Hudson, etc rather than creating an email
plugin.

Wayne

On 4/10/08, David C. Hicks [EMAIL PROTECTED] wrote:
 Don't know of any specific Maven email plugin, but you could use the Ant
 plugin to execute the Ant Mail task. It shouldn't be too difficult to gather
 up all of your Surefire reports into a file to send in an email.

 urir wrote:
  Hi,
  I am using maven2 for building and testing a multi-project that consists
  from several sub projects.
 
  Is there a way (some plugin maybe) so at the end of the main project build
  and test maven will send an email with all the results for all the tests?
  some statistcs maybe?
 
  Thanks,
  Uri.
 
 
 

 -
 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: Can I set a timeout for downloading dependency

2008-04-10 Thread Wayne Fay
No. Ctrl-X to cancel the build and run again with mvn -o ... for
offline mode.

Wayne

On 4/10/08, youhaodeyi [EMAIL PROTECTED] wrote:

 Can I set a timeout for downloading dependency jars?
 --
 View this message in context: 
 http://www.nabble.com/Can-I-set-a-timeout-for-downloading-dependency-tp16608218s177p16608218.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]



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



Re: Can I give a dependency a specific repository url?

2008-04-10 Thread Wayne Fay
You cannot. You should consider implementing a Repo Manager like
Archiva, Nexus, Artifactory, etc instead, and set it up as a proxy for
the other various repos you need to access.

Wayne

On 4/10/08, youhaodeyi [EMAIL PROTECTED] wrote:

 My pom.xml has many dependencies and repositories. Maven will try to download
 each of them in each of the repository. It will waste a lot of time for
 downloading. How can I specify a dependency from a specific repository?
 --
 View this message in context: 
 http://www.nabble.com/Can-I-give-a-dependency-a-specific-repository-url--tp16608355s177p16608355.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]



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



Re: where to find xmlsec-1.4.1.jar ?

2008-04-10 Thread Wayne Fay
Who produces xmlsec? I'd ask them where to find it/where it should be
located in the Maven repos.

Wayne

On 4/10/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

 what´s the official group and artifactId of xmlsec-1.4.1jar ?

 http://repo1.maven.org/maven2/xml-security/xmlsec/  = ends up
 at 1.3.0
 http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/  = ends up
 at 1.4.0 (without pom), directory 1.4.1 is empty

 http://repository.jboss.org/maven2/apache-xmlsec/xmlsec/= ends up
 at 1.3.0
 http://repository.jboss.com/maven2/org/apache/xmlsec/1.4.1/ = hits
 xmlsec-1.4.1.jar

 = What´s the recommended repo? Could someone complete the list?

 Thanx,

 Torsten


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



Re: Multiple CPUs

2008-04-10 Thread Wayne Fay
I think, if someone was able to hack something together (that worked!)
and it demonstrated real added value to Maven, then the dev team would
be more likely to hear this request and consider adding it. But there
are so many interactions between poms, plugins, etc that I don't
honestly believe it is worth the effort (which would be enormous).

So until a proof of concept is available, I think this is just a lot
of chatter on the users list.

The answer to this problem for me has always been break your code
up into smaller modules, and only re-compile what changed and poof,
your compile times will be drastically reduced.

Wayne

On 4/10/08, VELO [EMAIL PROTECTED] wrote:
 
  The main problem you would have with a multi-cpu build would be
  understanding the console output. Since maven isn't threaded already
  the output would be interwoven and impossible to understand.
 

 Agree...

 Will only be readable on separated text logs.

 Or multi column output (just a joke =D).


 VELO



 On Wed, Apr 9, 2008 at 8:28 PM, Barrie Treloar [EMAIL PROTECTED] wrote:

  On Wed, Apr 9, 2008 at 8:51 PM, Benedikt Thelen [EMAIL PROTECTED] wrote:
   Hi there, i am sort of a maven newbee,
At our workplce we have a quite big Coccon project in developenet and
  we use
maven to build it. Building takes usually 5-6 minutes which is quite a
while. I noticed using gkrellm and htop that maven only uses one of the
  two
processors (Levono Thinkpad with intel core Duo) in my notebook.
Question: Is there a way to tell maven to use both CPU's while
  building? I
searched gooogle a lot but i didn't find anything.
 
  If you are building your entire system, including unit tests, in under
  10 minutes that should be good enough.
 
  6 minutes is fine.  It gives you time to stretch your legs, go to the
  loo, grab a drink.
 
  The alternatives are:
 
  * manually select which modules to build, (i.e only the ones you
  changed) - generally it is faster to run it at the project root than
  cd around typing mvn commands
 
  * setup your IDE to use direct project references instead of
  ~/.m2/repository references - then you can develop without running
  maven at all   You only run maven just prior to committing the
  changes back, which is much less often and you can afford the waste of
  6 minutes.
 
  * turn off plugins for development and make sure they are on for
  continuous development. e.g. you may not need to run checkstyle as
  your IDE is already checking this.
 
 
  The main problem you would have with a multi-cpu build would be
  understanding the console output. Since maven isn't threaded already
  the output would be interwoven and impossible to understand.
 
  -
  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: Multiple CPUs

2008-04-10 Thread Jorg Heymans
On Thu, Apr 10, 2008 at 5:04 PM, Wayne Fay [EMAIL PROTECTED] wrote:

 I think, if someone was able to hack something together (that worked!)
 and it demonstrated real added value to Maven, then the dev team would
 be more likely to hear this request and consider adding it. But there
 are so many interactions between poms, plugins, etc that I don't
 honestly believe it is worth the effort (which would be enormous).


well imagine that during your integration build you have to deploy 10 EARs,
and each of them to a number of application servers (weblogic, websphere etc
etc). That adds up pretty quick. I don't know the effort involved, but if
the ant runner for example could be made to run in a different thread for
each invocation that could speed things up drastically only for this use
case.


 So until a proof of concept is available, I think this is just a lot
 of chatter on the users list.


See that's the privilege of being a user and not a developer. You can
chatter and dream all you want about seemingly impossible-to-add features
without having to worry about the implementation or getting restricted by
your knowledge of the current codebase. Being able to do this is crucial to
the innovation of any project, so by all means folks please keep the chatter
going :-)

Jorg


Unit Testing with SureFire Classpath settings

2008-04-10 Thread Kristan Uccello
Hello,

I am trying to specify the Sure Fire additionalClasspathElements
Additional elements to be appended to the classpath. and being a
Maven2 newbe I am a bit lost when I'm told to set the plugin values as
a java.util.List.

=== FROM: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
...
additionalClasspathElements  Additional elements to be appended to the
classpath.

* Type: java.util.List
* Required: No
...

=

I have gotten this far in setting up my POM

[The rest of my pom is fine]
...
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
additionalClasspathElements
?
/additionalClasspathElements
/configuration
  /plugin
...

It is unclear to me what I am supposed to do to represent the
java.util.List of additional Class path elements here? Is it a comma
delimited list? or do I define it another way?
Some help here would be greatly appreciated

Cheers,

Kristan Krispy Uccello

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



Antwort: Re: where to find xmlsec-1.4.1.jar ?

2008-04-10 Thread torsten . reinhard
xmlsec is produced by http://santuario.apache.org/
the jars can be downloaded from 
http://xml.apache.org/security/dist/java-library/

Maybe someone of the copy-recepcients can fix that?

Thanx, Torsten





Wayne Fay [EMAIL PROTECTED] 
10.04.2008 17:16
Bitte antworten an
Maven Users List users@maven.apache.org


An
Maven Users List users@maven.apache.org
Kopie

Thema
Re: where to find xmlsec-1.4.1.jar ?






Who produces xmlsec? I'd ask them where to find it/where it should be
located in the Maven repos.

Wayne

On 4/10/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

 what´s the official group and artifactId of xmlsec-1.4.1jar ?

 http://repo1.maven.org/maven2/xml-security/xmlsec/  = ends 
up
 at 1.3.0
 http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/  = ends 
up
 at 1.4.0 (without pom), directory 1.4.1 is empty

 http://repository.jboss.org/maven2/apache-xmlsec/xmlsec/= ends 
up
 at 1.3.0
 http://repository.jboss.com/maven2/org/apache/xmlsec/1.4.1/ = hits
 xmlsec-1.4.1.jar

 = What´s the recommended repo? Could someone complete the list?

 Thanx,

 Torsten


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




Deploying XML schemas

2008-04-10 Thread Brandon Enochs
I have a bunch of schemas that I would like to upload to a web server 
and would like to known if there any best practices for doing so using 
maven.


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



Re: Deploying XML schemas

2008-04-10 Thread Michael

Brandon Enochs wrote:
I have a bunch of schemas that I would like to upload to a web server 
and would like to known if there any best practices for doing so using 
maven.


An Ant Task bound to a phase or simply Ant.
Maven is not designed to fullfil tasks the way Ant does.

--
NO OOXML - Say NO To Microsoft Office broken standard
http://www.noooxml.org

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



Re: Deploying XML schemas

2008-04-10 Thread Graham Leggett

Brandon Enochs wrote:

I have a bunch of schemas that I would like to upload to a web server 
and would like to known if there any best practices for doing so using 
maven.


Is the idea to make these schemas available within a maven repository?

If so, the deploy:deploy-file should help getting the files into the 
repository in the first place.


The dependency plugin will be able to download the schemas and put them 
where you app expects to find them, as you probably don't want to add 
the schema to the classpath (which is what the dependency plugin will do 
by default), you probably want to look at the other goals in the 
dependency plugin bound to one of the early phases so the schema is 
placed where you expect it before compiling.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Multiple CPUs

2008-04-10 Thread VELO
Lets just think...

Today someone is reporting maven doesn't your his 2 cores.

Tomorrow 4 cores.

Next year 6 cores. 8, 10, what ever

Mono threaded maven will not get the max power from a multi-core machine.

So, I still dreaming, may be I can pull a developer to dream together.


VELO

On Thu, Apr 10, 2008 at 12:04 PM, Wayne Fay [EMAIL PROTECTED] wrote:

 I think, if someone was able to hack something together (that worked!)
 and it demonstrated real added value to Maven, then the dev team would
 be more likely to hear this request and consider adding it. But there
 are so many interactions between poms, plugins, etc that I don't
 honestly believe it is worth the effort (which would be enormous).

 So until a proof of concept is available, I think this is just a lot
 of chatter on the users list.

 The answer to this problem for me has always been break your code
 up into smaller modules, and only re-compile what changed and poof,
 your compile times will be drastically reduced.

 Wayne

 On 4/10/08, VELO [EMAIL PROTECTED] wrote:
  
   The main problem you would have with a multi-cpu build would be
   understanding the console output. Since maven isn't threaded already
   the output would be interwoven and impossible to understand.
  
 
  Agree...
 
  Will only be readable on separated text logs.
 
  Or multi column output (just a joke =D).
 
 
  VELO
 
 
 
  On Wed, Apr 9, 2008 at 8:28 PM, Barrie Treloar [EMAIL PROTECTED]
 wrote:
 
   On Wed, Apr 9, 2008 at 8:51 PM, Benedikt Thelen [EMAIL PROTECTED]
 wrote:
Hi there, i am sort of a maven newbee,
 At our workplce we have a quite big Coccon project in developenet
 and
   we use
 maven to build it. Building takes usually 5-6 minutes which is
 quite a
 while. I noticed using gkrellm and htop that maven only uses one of
 the
   two
 processors (Levono Thinkpad with intel core Duo) in my notebook.
 Question: Is there a way to tell maven to use both CPU's while
   building? I
 searched gooogle a lot but i didn't find anything.
  
   If you are building your entire system, including unit tests, in under
   10 minutes that should be good enough.
  
   6 minutes is fine.  It gives you time to stretch your legs, go to the
   loo, grab a drink.
  
   The alternatives are:
  
   * manually select which modules to build, (i.e only the ones you
   changed) - generally it is faster to run it at the project root than
   cd around typing mvn commands
  
   * setup your IDE to use direct project references instead of
   ~/.m2/repository references - then you can develop without running
   maven at all   You only run maven just prior to committing the
   changes back, which is much less often and you can afford the waste of
   6 minutes.
  
   * turn off plugins for development and make sure they are on for
   continuous development. e.g. you may not need to run checkstyle as
   your IDE is already checking this.
  
  
   The main problem you would have with a multi-cpu build would be
   understanding the console output. Since maven isn't threaded already
   the output would be interwoven and impossible to understand.
  
   -
   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: Multiple CPUs

2008-04-10 Thread Graham Leggett

VELO wrote:


Lets just think...

Today someone is reporting maven doesn't your his 2 cores.

Tomorrow 4 cores.

Next year 6 cores. 8, 10, what ever

Mono threaded maven will not get the max power from a multi-core machine.

So, I still dreaming, may be I can pull a developer to dream together.


GNU make supports parallel building with the -j flag, makes a huge 
difference on large projects and isn't really that complicated.


In multi-module builds, maven could optionally build different modules 
in parallel, where those modules aren't dependent on each other (like 
make -j does).


Or zooming in further, the maven-compile-plugin could compile code by 
compiling multiple bits of code in parallel, the same way.


maven-surefire-plugin could be taught to run tests in parallel: that 
will make a huge difference.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Documentation and/or examples for Maven Embedder

2008-04-10 Thread Bill Rye
I'm looking for something beyond
http://maven.apache.org/guides/mini/guide-embedding-m2.html
as I want to do things like read pom.xml (done), add a jar to the
repository, and get the URL for the
location of a jar in the local repository given the artifact.

Thanks,
Bill


relative href link generates strange filesystem path

2008-04-10 Thread Trent Larson

Here's an issue that wasted a few hours of my time before I found the
solution.  I'm just posting it to help others that may hit the same thing.

I was trying to make my own link; here's my simplified site.xml:

project
  body
menu name=Other Documents
  item name=MPA Plan href=MPA-plan.xls /
/menu
  /body
/project

I ran 'mvn site' inside the following directory:
/home/trent/dev/icentris/money-planner-admin/trunk/mpadmin

and the generated link (in the index.html source) looks like this:
../home/trent/dev/icentris/money-planner-admin/trunk/mpadmin/mpadmin

Note how it includes my file system path as an absolute path, it duplicates
the 'mpadmin' at the end, and it doesn't include the file name at all.

My problem was the main URL in the pom.xml: it was not a real URL but rather
the word mpadmin.  Oops.  I changed it to the URL of my expected
deployment location and everything works like a charm.  These little things
can really trip you up, eh?

Cheers!

-- 
View this message in context: 
http://www.nabble.com/relative-href-link-generates-strange-filesystem-path-tp16610702s177p16610702.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: Multiple CPUs

2008-04-10 Thread Lacoste, Dana (TSG Software San Diego)
The situation below (deploying to multiple J2EE platforms in the build)
is already easily supported: you're using ant to do it, and ant supports
a parallel section http://ant.apache.org/manual/CoreTasks/parallel.html

So, inside a maven-antrun-plugin section you can do a parallel with
no hesitation.

The main issue, though, gets back to one of The Maven Way

Maven was designed with a very heavy emphasis on the right way to do
things, and with most projects (breaking into modules, providing single-file
artifact build results, assumed src/java layout, etc.) the only parallel
part that could really work would be when compiling the classes from the
**/*java files.  This would theoretically result in quicker java compiling,
but I question if the result would be a significant gain, unless you had
a SERIOUSLY large number of classes in that jar!  And with a 6 minute build,
you really don't :)

For NON-JAVA src files, you can turn on the make flags appropriately already
(in other words, if maven isn't doing the build, it's just calling ant to
call make or something, then you can get the make command to parallelize)
(I remember an old comparison of gcc vs. kylix in this area: gcc benefits
from the make -j to such a large extent because it's really horrible at
building each file: kylix, with Pascal's simpler compile rules, was so much
faster they weren't even in the same league!)

But that's really just the way it is : there's no real way that maven can
parallelize things without causing a lot of issues.  Threading output of
the build, handling build failures, ensuring dependency order: it would add
a LOT of complexity to the build with not a lot of benefit.

And, just for the record, my maven project has 100 (wow, 100 exactly.  hadn't
counted before) modules and a full build of EVERYTHING takes about 330 minutes
on my fastest build machine: if there was a way that I could speed this up
I would GLADLY do so, but there really isn't : any speedup that's caused by
a change in how maven works would result in serious usability and stability
issues that would NOT be worth it, IMNSHO.

Dana Lacoste

-Original Message (Trimmed for content)-
From: Jorg Heymans [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 8:36 AM
To: Maven Users List
Subject: Re: Multiple CPUs

well imagine that during your integration build you have to deploy 10 EARs, and 
each of them to a number of application servers (weblogic, websphere etc etc). 
That adds up pretty quick. I don't know the effort involved, but if the ant 
runner for example could be made to run in a different thread for each 
invocation that could speed things up drastically only for this use case.

Jorg

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



Re: Documentation and/or examples for Maven Embedder

2008-04-10 Thread Henrique Prange

Hi Bill,

The newest version of the embedder was not released yet.

Look here [1]. I think you can find a way to solve your problems without 
having to make use of the Maven embedder.


[1]http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

Cheers,

Henrique

Bill Rye wrote:

I'm looking for something beyond
http://maven.apache.org/guides/mini/guide-embedding-m2.html
as I want to do things like read pom.xml (done), add a jar to the
repository, and get the URL for the
location of a jar in the local repository given the artifact.

Thanks,
Bill



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



Re: relative href link generates strange filesystem path

2008-04-10 Thread Michael

Trent Larson wrote:

Here's an issue that wasted a few hours of my time before I found the
solution.  I'm just posting it to help others that may hit the same thing.

I was trying to make my own link; here's my simplified site.xml:

project
  body
menu name=Other Documents
  item name=MPA Plan href=MPA-plan.xls /
/menu
  /body
/project

I ran 'mvn site' inside the following directory:
/home/trent/dev/icentris/money-planner-admin/trunk/mpadmin

and the generated link (in the index.html source) looks like this:
../home/trent/dev/icentris/money-planner-admin/trunk/mpadmin/mpadmin


Trent,

try site plugin 2.0-beta-5! Beta 6 has some bugs which kept me 2 night 
of investigation.



Mike
--
NO OOXML - Say NO To Microsoft Office broken standard
http://www.noooxml.org

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



[ANN] findbugs-maven-plugin v 1.2 released

2008-04-10 Thread Garvin LeClaire


The Maven *Findbugs* team is pleased to announce the release of the Maven
*Findbugs* Plugin version 1.2

This plugin allows the developer to run *Findbugs* analysis against a
Maven project and produce site output in HTML to match other site
reports.  There are option to produce other XML outputs which are used
by other plugins.

Issues fixed in this release:
http://mojo.codehaus.org/*findbugs*-maven-plugin/changes-report.html#a1.2.0 
http://mojo.codehaus.org/findbugs-maven-plugin/changes-report.html#a1.2.0



More information can be found at the plugin site:
http://mojo.codehaus.org/*findbugs*-maven-plugin/ 
http://mojo.codehaus.org/findbugs-maven-plugin/



Issues Can be registered in JIRA at:
http://jira.codehaus.org/browse/MFINDBUGS


More information on *FindBugs*
http://*findbugs*.sourceforge.net/index.html 
http://findbugs.sourceforge.net/index.html




You can use the Maven *Findbugs* Plugin in your own project by adding the
following dependency:

dependency
groupIdorg.codehaus.mojo/groupId
artifactId*findbugs*-maven-plugin/artifactId
version1.2/version
/dependency



*NOTE*  Version 2.0 and greater of the Maven *Findbugs* plugin will
require Maven to be run with a minimum of Java 5.  This is consistent
with *Findbugs* requirement for their versions of 1.3.X and greater.



Enjoy,

--

Regards,



Garvin LeClaire
[EMAIL PROTECTED]



Re: Any way to send email with build and test report?

2008-04-10 Thread Nick Stolwijk
At least continuum [1] uses the configured maven information and hudson 
supports it a little [2] [3].


Hth,

Nick S.


[1] http://continuum.apache.org/docs/1.1/user_guides/notification/index.html
[2] 
http://www.nabble.com/ciManagement-notifications-for-a-maven-2-build-td15006168.html

[3] https://hudson.dev.java.net/issues/show_bug.cgi?id=1201

Wayne Fay wrote:

To me at least, this sounds like functionality I might expect out of
my Continuous Integration server, not my build tool. Look at
implementing Continuum, Hudson, etc rather than creating an email
plugin.

Wayne

On 4/10/08, David C. Hicks [EMAIL PROTECTED] wrote:
  

Don't know of any specific Maven email plugin, but you could use the Ant
plugin to execute the Ant Mail task. It shouldn't be too difficult to gather
up all of your Surefire reports into a file to send in an email.

urir wrote:


Hi,
I am using maven2 for building and testing a multi-project that consists
from several sub projects.

Is there a way (some plugin maybe) so at the end of the main project build
and test maven will send an email with all the results for all the tests?
some statistcs maybe?

Thanks,
Uri.



  

-
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: Multiple CPUs

2008-04-10 Thread VELO
So, the dream was killed?

VELO

On Thu, Apr 10, 2008 at 2:31 PM, Lacoste, Dana (TSG Software San Diego) 
[EMAIL PROTECTED] wrote:

 The situation below (deploying to multiple J2EE platforms in the build)
 is already easily supported: you're using ant to do it, and ant supports
 a parallel section http://ant.apache.org/manual/CoreTasks/parallel.html

 So, inside a maven-antrun-plugin section you can do a parallel with
 no hesitation.

 The main issue, though, gets back to one of The Maven Way

 Maven was designed with a very heavy emphasis on the right way to do
 things, and with most projects (breaking into modules, providing
 single-file
 artifact build results, assumed src/java layout, etc.) the only
 parallel
 part that could really work would be when compiling the classes from the
 **/*java files.  This would theoretically result in quicker java
 compiling,
 but I question if the result would be a significant gain, unless you had
 a SERIOUSLY large number of classes in that jar!  And with a 6 minute
 build,
 you really don't :)

 For NON-JAVA src files, you can turn on the make flags appropriately
 already
 (in other words, if maven isn't doing the build, it's just calling ant to
 call make or something, then you can get the make command to parallelize)
 (I remember an old comparison of gcc vs. kylix in this area: gcc benefits
 from the make -j to such a large extent because it's really horrible at
 building each file: kylix, with Pascal's simpler compile rules, was so
 much
 faster they weren't even in the same league!)

 But that's really just the way it is : there's no real way that maven
 can
 parallelize things without causing a lot of issues.  Threading output of
 the build, handling build failures, ensuring dependency order: it would
 add
 a LOT of complexity to the build with not a lot of benefit.

 And, just for the record, my maven project has 100 (wow, 100 exactly.
  hadn't
 counted before) modules and a full build of EVERYTHING takes about 330
 minutes
 on my fastest build machine: if there was a way that I could speed this up
 I would GLADLY do so, but there really isn't : any speedup that's caused
 by
 a change in how maven works would result in serious usability and
 stability
 issues that would NOT be worth it, IMNSHO.

 Dana Lacoste

 -Original Message (Trimmed for content)-
 From: Jorg Heymans [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 10, 2008 8:36 AM
 To: Maven Users List
 Subject: Re: Multiple CPUs

 well imagine that during your integration build you have to deploy 10
 EARs, and each of them to a number of application servers (weblogic,
 websphere etc etc). That adds up pretty quick. I don't know the effort
 involved, but if the ant runner for example could be made to run in a
 different thread for each invocation that could speed things up drastically
 only for this use case.

 Jorg

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




Re: Multiple CPUs

2008-04-10 Thread Nigel Magnay
Yes - but all these dependencies are calculable from the POM files. I
think about this every time my machine sits with 7 idle cores...

The biggest initial issue is that the local repo is not threadsafe (2
mvn instances running in parallel can crash in interesting ways).

That's the first thing to fix, but it's not a small thing.

On Wed, Apr 9, 2008 at 3:08 PM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Hmm, but isnt it a problem if modules depend on each other? if module a
 depends on module b...

  And I think that if implemented it should be scalable to xxx cpus.. I guess
 module a would have to wait for module b or something..



  VELO wrote:

  Well, may be the best way to do that is add support to maven run modules
 on
  parallel not sure how to, but if maven run two modules at same time,
 on
  a dual core machine, means a big gain, i believe.
 
 
  VELO
 
  On Wed, Apr 9, 2008 at 8:21 AM, Benedikt Thelen [EMAIL PROTECTED] wrote:
 
 
 
   Hi there, i am sort of a maven newbee,
   At our workplce we have a quite big Coccon project in developenet and we
   use
   maven to build it. Building takes usually 5-6 minutes which is quite a
   while. I noticed using gkrellm and htop that maven only uses one of the
   two
   processors (Levono Thinkpad with intel core Duo) in my notebook.
   Question: Is there a way to tell maven to use both CPU's while building?
 I
   searched gooogle a lot but i didn't find anything.
  
   Greetings Benedikt Thelen
  
  
  
 
 
 


  --
  -Wicket for love

  Nino Martinez Wael
  Java Specialist @ Jayway DK
  http://www.jayway.dk
  +45 2936 7684


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



embedded maven engine

2008-04-10 Thread Jan Torben Heuer
Hi,

Is it possible to embed the maven engine in a java program?

I think of using it as plugin management for an application.

I want to define an artifact (my pointing to a pom or giving
an group:artifact:version string. Then I want maven to resolve, download
and add the artifact+dependencies to my classpath at runtime.

Has anyone tried it, yet? If not, will it be worth a try?


Thanks!

Jan


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



Dependency Relationships in EARs

2008-04-10 Thread David Weintraub
I've just started using Maven, and I'm struggling with a few things.

I took one our our components I build with Ant, and created a Maven
build for it. This is a set of foundation classes that several of our
projects use, so I called it foundation.jar. So far, so good, I
specified a set of JARS that this foundation.jar was dependent upon,
and Maven downloaded the other 3rd party jars that were needed. This
whole thing packaged itself all nice and neat.

I downloaded this to our internal Maven Repository, and created a new
EAR project. The project was an empty skeleton, but I specified it
needed this foundation.jar. The ear packaged with the foundation.jar,
but without any of the 3rd party JARS that foundation.jar needs in
order to work. So, how do I get Maven to package all the needed 3rd
party JARs that foundation.jar needs?
-- 
--
David Weintraub
[EMAIL PROTECTED]

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



maven 2 + cargo plugin

2008-04-10 Thread Urooj Khan
hi everyone

i have a project with three sub-projects which are web apps...

i am currently using cargo to deploy each web app project and have the
individual pom.xml and profiles.xml configured...

i am trying to figure out what command i can use when building the parent
project that will be the equivalent of
calling something like:

mvn cargo:deployer-redeploy -Pdev

on each individual project


-- 
Urooj Khan


Re: Multiple CPUs

2008-04-10 Thread Jorg Heymans
On Thu, Apr 10, 2008 at 6:55 PM, Graham Leggett [EMAIL PROTECTED] wrote:

 maven-surefire-plugin could be taught to run tests in parallel: that will
 make a huge difference.


Has anyone looked at using Parallel Junit [1] through surefire ? .

Jorg

[1] https://parallel-junit.dev.java.net/


Re: Multiple CPUs

2008-04-10 Thread VELO
Very good idea...

The same thing I'm thinking for maven itself, but if we got fastest junit is
good =D


VELO

On Thu, Apr 10, 2008 at 5:22 PM, Jorg Heymans [EMAIL PROTECTED]
wrote:

 On Thu, Apr 10, 2008 at 6:55 PM, Graham Leggett [EMAIL PROTECTED] wrote:

  maven-surefire-plugin could be taught to run tests in parallel: that
 will
  make a huge difference.
 

 Has anyone looked at using Parallel Junit [1] through surefire ? .

 Jorg

 [1] https://parallel-junit.dev.java.net/



war overlaying

2008-04-10 Thread António Mota
Hello:

I'm trying to do some war overlay but I can't seem to include just the files
I want using the include tag on the overlay. In this case I only want what's
under WEB-INF, but what I get is everything that's inside the war.

   overlay
 groupIdbirt-runtime/groupId
 artifactIdruntime/artifactId
 includes
includeWEB-INF/**/include
  /includes
   /overlay

and

 dependency
groupIdbirt-runtime/groupId
artifactIdruntime/artifactId
typewar/type
scoperuntime/scope
version${birtVersion}/version
/dependency

The only way I can get what I want is to use

dependentWarIncludesWEB-INF/**/dependentWarIncludes

but that won't work if I have two different overlays with different
includes.


Thanks all.


Re: maven 2 + cargo plugin

2008-04-10 Thread Wayne Fay
You should ask this question on the Cargo Users list.

Wayne

On 4/10/08, Urooj Khan [EMAIL PROTECTED] wrote:
 hi everyone

 i have a project with three sub-projects which are web apps...

 i am currently using cargo to deploy each web app project and have the
 individual pom.xml and profiles.xml configured...

 i am trying to figure out what command i can use when building the parent
 project that will be the equivalent of
 calling something like:

 mvn cargo:deployer-redeploy -Pdev

 on each individual project


 --
 Urooj Khan


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



Re: Dependency Relationships in EARs

2008-04-10 Thread Wayne Fay
The dependencies of your dependencies are called transitive dependencies.

Normally, Maven2 is able to figure out what you need and build/package
things properly. So, you must be doing something wrong to get these
results.

Can you send the 2 pom.xml files you created, 1 for foundation, and 1
for the EAR? I imagine you are doing something wrong with the scope.

Wayne

On 4/10/08, David Weintraub [EMAIL PROTECTED] wrote:
 I've just started using Maven, and I'm struggling with a few things.

 I took one our our components I build with Ant, and created a Maven
 build for it. This is a set of foundation classes that several of our
 projects use, so I called it foundation.jar. So far, so good, I
 specified a set of JARS that this foundation.jar was dependent upon,
 and Maven downloaded the other 3rd party jars that were needed. This
 whole thing packaged itself all nice and neat.

 I downloaded this to our internal Maven Repository, and created a new
 EAR project. The project was an empty skeleton, but I specified it
 needed this foundation.jar. The ear packaged with the foundation.jar,
 but without any of the 3rd party JARS that foundation.jar needs in
 order to work. So, how do I get Maven to package all the needed 3rd
 party JARs that foundation.jar needs?
 --
 --
 David Weintraub
 [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: Multiple CPUs

2008-04-10 Thread Jorg Heymans
On Thu, Apr 10, 2008 at 7:31 PM, Lacoste, Dana (TSG Software San Diego) 
[EMAIL PROTECTED] wrote:

 The situation below (deploying to multiple J2EE platforms in the build)
 is already easily supported: you're using ant to do it, and ant supports
 a parallel section http://ant.apache.org/manual/CoreTasks/parallel.html


thanks for the link, i'll have a look at this if it can support my usecase.



 Maven was designed with a very heavy emphasis on the right way to do
 things, and with most projects (breaking into modules, providing
 single-file
 artifact build results, assumed src/java layout, etc.) the only
 parallel
 part that could really work would be when compiling the classes from the
 **/*java files.  This would theoretically result in quicker java
 compiling,
 but I question if the result would be a significant gain, unless you had
 a SERIOUSLY large number of classes in that jar!  And with a 6 minute
 build,
 you really don't :)


Not sure if i agree here. Why can the building of different artifacts not be
parallelized if they completely don't depend on each other? If my build
contains 1 war and 5 completely independent jars that are used in the war,
why can those 5 jar artifacts not be built in parallel ? Sure enough, they
can have shared dependencies, but with a good artifact download manager it
should be trivial to detect downloads in progress. Is there another way how
completely independent artifacts can influence each other, or am i missing
something ? Why can't constructing an artifact be made an atomic task
provided it has all required input available ?

But that's really just the way it is : there's no real way that maven can
 parallelize things without causing a lot of issues.  Threading output of
 the build, handling build failures, ensuring dependency order: it would
 add
 a LOT of complexity to the build with not a lot of benefit.


- threading the build output shouldn't be hard, especially if maven were to
become less verbose. I would be really OK with just reading
building module ABC OK
building module DEF OK
etc
etc

- I don't see how handling a build failure would cause problems here, if an
artifact fails to build then the build just stops after the completion of
those tasks that ran parallel to the failed task. Heck, in that way you
could even see multiple artifact failures in one build, great !

- The dependency order should not fundamentally change with parallel
artifact builds, or did you have a specific case in mind here ?

And, just for the record, my maven project has 100 (wow, 100 exactly.
  hadn't
 counted before) modules and a full build of EVERYTHING takes about 330
 minutes
 on my fastest build machine: if there was a way that I could speed this up


That's an interesting build you have there, care to tell us what the longest
running tasks are (hope it's not the compiling :-P)

Cheers,
Jorg


RE: Multiple CPUs

2008-04-10 Thread Lacoste, Dana (TSG Software San Diego)
 That's an interesting build you have there, care to tell us what the longest 
 running tasks are (hope it's not the compiling :-P)

In short, it's Compare new dataset vs. old dataset
It takes a very long time because it has to take the newly built binaries and 
data, get them up and running (the DB load takes a while!) and then compare the 
new set to the old set for upgrade purposes.

It's not really the area I'm working on, so I can't comment as to why it takes 
so long, but it's pretty much 100% outside Maven so there's not much Maven 
could do to speed it up :)

Of the 100 Modules, only two take more than 10 minutes to mvn install : this 
one and the cross-platform build (maven triggers ant which triggers remote 
builds on multiple platforms.) so the time per module is very small (and 99.9% 
of our builds are isolated to a single module or family of modules) and only 
intermittent FULL builds take such a long time.

Dana Lacoste

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



RE: war overlaying

2008-04-10 Thread Brian E. Fox
It sounds like a bug to me. File a Jira in the MWAR plugin. It will at least 
get the attention of the war developers.

-Original Message-
From: António Mota [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 4:45 PM
To: users@maven.apache.org
Subject: war overlaying

Hello:

I'm trying to do some war overlay but I can't seem to include just the files
I want using the include tag on the overlay. In this case I only want what's
under WEB-INF, but what I get is everything that's inside the war.

   overlay
 groupIdbirt-runtime/groupId
 artifactIdruntime/artifactId
 includes
includeWEB-INF/**/include
  /includes
   /overlay

and

 dependency
groupIdbirt-runtime/groupId
artifactIdruntime/artifactId
typewar/type
scoperuntime/scope
version${birtVersion}/version
/dependency

The only way I can get what I want is to use

dependentWarIncludesWEB-INF/**/dependentWarIncludes

but that won't work if I have two different overlays with different
includes.


Thanks all.

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



RE: Multiple CPUs

2008-04-10 Thread Lacoste, Dana (TSG Software San Diego)
 Not sure if i agree here. Why can the building of different artifacts
 not be parallelized if they completely don't depend on each other? If
 my build contains 1 war and 5 completely independent jars that are
 used in the war, why can those 5 jar artifacts not be built in
 parallel ? Sure enough, they can have shared dependencies, but with a
 good artifact download manager it should be trivial to detect
 downloads in progress. Is there another way how completely
 independent artifacts can influence each other, or am i missing
 something ? Why can't constructing an artifact be made an atomic task
 provided it has all required input available ?

It's that last line that I'll leave to the Maven people (I'm a user,
I might even be a power user, but I'm also a perforce administrator,
and the complete lack of atomicity in Maven has always bugged me :)
(and Maven:SCM plugin for perforce makes me shudder :)

Nigel's comment on the repo not being threadsafe is the only other thing
I can think to add at the moment.

 - threading the build output shouldn't be hard, especially if maven
 were to become less verbose. I would be really OK with just reading
 building module ABC OK building module DEF OK etc etc

I have -e turned on in Cruise Control because I find the maven
error messages far too difficult to decipher without more information.
We currently have a workaround preventing the threaded output you
describe from our cross platform build: I can't tell (for example) if
that line came from Linux or Solaris (if they're parallel building the
same code at the same time, but on different systems.)  So we do the
builds parallel then dump the output sequentially.  Ugly, Ugly, Ugly,
but I don't see any way to do threaded output the way Maven works now.

 - I don't see how handling a build failure would cause problems here,
 if an artifact fails to build then the build just stops after the
 completion of those tasks that ran parallel to the failed task. Heck,
 in that way you could even see multiple artifact failures in one
 build, great !

Sometimes you want --fail-at-end, sometimes you don't! :)
With maven parallel, you'd have it always.  I can't really express why,
but that bugs me for some reason :)

 - The dependency order should not fundamentally change with parallel
 artifact builds, or did you have a specific case in mind here ?

In our current system (where our parallel builds are done with multiple
OS combinations) we can have this:

Artifact A (Solaris) depends on jar A, B, and C (all -SNAPSHOT, so
they're downloaded and updated with every build)
Artifact A (Linux) has same dependencies.

building in parallel causes both to download at the same time and
install into the same location (NFS mounted home dir) which causes
the issues Nigel mentioned (the repository is NOT threadsafe)

I don't know how to make this work better, but with -SNAPSHOT
in particular it causes huge headaches if you're not paying attention :)

Dana

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



How can I use a plugin SNAPSHOT version?

2008-04-10 Thread Brewster, Richard
I want to use the latest version of this plugin:

http://snapshots.repository.codehaus.org/org/codehaus/mojo/jboss-maven-p
lugin/1.3.2-SNAPSHOT/

What's the procedure for getting this into my local repository, and then
into my company's Artifiactory?

Thanks,

Richard Brewster
Senior Associate
Perrin Quarles Associates
[EMAIL PROTECTED]
(434) 817-2640




RE: How can I use a plugin SNAPSHOT version?

2008-04-10 Thread Brian E. Fox
If you have an artifactory install, you should just be able to ask the
maintainer to add the snapshot repo. I don't know if artifactory groups
like nexus, I think so, if yes than that should be all you need.

-Original Message-
From: Brewster, Richard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 6:04 PM
To: Maven Users List
Subject: How can I use a plugin SNAPSHOT version?

I want to use the latest version of this plugin:

http://snapshots.repository.codehaus.org/org/codehaus/mojo/jboss-maven-p
lugin/1.3.2-SNAPSHOT/

What's the procedure for getting this into my local repository, and then
into my company's Artifiactory?

Thanks,

Richard Brewster
Senior Associate
Perrin Quarles Associates
[EMAIL PROTECTED]
(434) 817-2640



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



Re: Re: where to find xmlsec-1.4.1.jar ?

2008-04-10 Thread Wayne Fay
Realistically you will need to talk to the Santuario/XML Security team
about this. It is their responsibility to pick the groupId,
artifactId, and version for their artifacts. And since its an Apache
project, there is no reason why the latest version would not be
available in Central (repo1.maven.org). In fact, if they set things up
properly, their releases should be automatically sync'ed with Central
etc.

Wayne

On 4/10/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 xmlsec is produced by http://santuario.apache.org/
 the jars can be downloaded from
 http://xml.apache.org/security/dist/java-library/

 Maybe someone of the copy-recepcients can fix that?

 Thanx, Torsten





 Wayne Fay [EMAIL PROTECTED]
 10.04.2008 17:16
 Bitte antworten an
 Maven Users List users@maven.apache.org


 An
 Maven Users List users@maven.apache.org
 Kopie

 Thema
 Re: where to find xmlsec-1.4.1.jar ?






 Who produces xmlsec? I'd ask them where to find it/where it should be
 located in the Maven repos.

 Wayne

 On 4/10/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi,
 
  what´s the official group and artifactId of xmlsec-1.4.1jar ?
 
  http://repo1.maven.org/maven2/xml-security/xmlsec/  = ends
 up
  at 1.3.0
  http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/  = ends
 up
  at 1.4.0 (without pom), directory 1.4.1 is empty
 
  http://repository.jboss.org/maven2/apache-xmlsec/xmlsec/= ends
 up
  at 1.3.0
  http://repository.jboss.com/maven2/org/apache/xmlsec/1.4.1/ = hits
  xmlsec-1.4.1.jar
 
  = What´s the recommended repo? Could someone complete the list?
 
  Thanx,
 
  Torsten
 

 -
 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: Dependency Relationships in EARs

2008-04-10 Thread David Weintraub
Sure: Here's the POM for the Foundation:

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdcom.solbright/groupId
artifactIdfoundation/artifactId
packagingjar/packaging
version0.1/version
namefoundation/name
urlhttp://maven.apache.org/url
dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
dependency
groupIdjboss/groupId
artifactIdjboss-j2ee/artifactId
version4.0.0/version
/dependency
dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.4/version
/dependency
dependency
groupIdjdom/groupId
artifactIdjdom/artifactId
versionb7/version
/dependency
dependency
groupIdjavax.servlet/groupId
artifactIdjsp-api/artifactId
version2.0/version
/dependency
dependency
groupIdorg.log4j/groupId
artifactIdlog4j/artifactId
version0.0.1/version
/dependency
dependency
groupIdcom.enterprisedt/groupId
artifactIdedtFTPj/artifactId
version1.5.3/version
/dependency
dependency
groupIdcom.oracle/groupId
artifactIdojdbc14/artifactId
version10.2.0.2/version
 /dependency
dependency
groupIdde.dankomannhaupt/groupId
artifactIdjdbcappender/artifactId
version2.1.01/version
/dependency
dependency
groupIdcom.oracle/groupId
artifactIdxsu/artifactId
version1.2/version
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdspring-jdbc/artifactId
version1.2.8/version
/dependency
dependency
groupIdcom.lowagie/groupId
artifactIditext/artifactId
version1.3/version
/dependency
dependency
groupIdnet.sourceforge/groupId
artifactIdjox/artifactId
version1.17b3/version
/dependency
dependency
groupIdorg.apache.xmlgraphics/groupId
artifactIdfop/artifactId
version0.20.4/version
/dependency
dependency
groupIdgnu-regexp/groupId
artifactIdgnu-regexp/artifactId
version1.1.4/version
/dependency
dependency
groupIdcom.oreilly/groupId
artifactIdservlet-cos/artifactId
version20Nov2000/version
/dependency
dependency
groupIdcommons-beanutils/groupId
artifactIdcommons-beanutils/artifactId
version1.6/version
/dependency
dependency
groupIdjavax.activation/groupId
artifactIdactivation/artifactId
version1.1/version
/dependency
/dependencies
/project

And here's the sample EAR:

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdcom.solbright/groupId
  artifactIdtest-ear/artifactId
  packagingear/packaging
  version1.0-SNAPSHOT/version
  nametest-ear/name
  urlhttp://maven.apache.org/url
  dependencies
  dependency
  groupIdcom.solbright/groupId
  artifactIdfoundation/artifactId
  version0.1/version
  /dependency
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
/project


There's nothing in the EAR except for this dependency of
foundation.jar which is stored in our company's remote repository. I
saw that the pom.xml for Foundation is stored in the foundation.jar,
and I thought that's where it gets the dependency list from.

I'm thinking that the problem isn't in the POM as much as it is in the
repository setup.

On Thu, Apr 10, 2008 at 4:49 PM, Wayne Fay [EMAIL PROTECTED] wrote:
 The dependencies of your dependencies are called transitive dependencies.

  Normally, Maven2 is able to figure out what you need and build/package
  things properly. So, you must be doing something wrong to get these
  results.

  Can you send the 2 pom.xml files you created, 1 for foundation, and 1
  for the EAR? I imagine you are doing something wrong with the scope.

  Wayne



  On 4/10/08, David Weintraub [EMAIL PROTECTED] wrote:
   I've just started using Maven, and I'm struggling with a few things.
  
   I took one our our 

Re: Dependency Relationships in EARs

2008-04-10 Thread David Weintraub
Whoops, this was a local repository error. I am manually doing the
repository, and copying the JARS, creating the POMs, etc. I accidently
called the POM for the foundation JAR file, foundation-0.1.xml instead
of foundation-0.1.pom and that caused the problem.

Changing the name fixed the issue.

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



Looking to make internal repository externally access

2008-04-10 Thread Mike Leonardo
Hello,

My company has an internal maven repo that I would like to have accessible from 
the outside. The problem is that it's a private repo - so we want to at least 
have basic auth on it when it is externally accessible. Up until now we've been 
just using vpn - but we we've been having issues with our vpn software. How can 
I set up my applications to use the repo, but somehow include a basic auth 
username and password to connect to the repo? 

Thanks for pointing me in the right direction.
- Mike

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



Re: Can I set a timeout for downloading dependency

2008-04-10 Thread youhaodeyi

ok. thanks.

Wayne Fay wrote:
 
 No. Ctrl-X to cancel the build and run again with mvn -o ... for
 offline mode.
 
 Wayne
 
 On 4/10/08, youhaodeyi [EMAIL PROTECTED] wrote:

 Can I set a timeout for downloading dependency jars?
 --
 View this message in context:
 http://www.nabble.com/Can-I-set-a-timeout-for-downloading-dependency-tp16608218s177p16608218.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]


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

-- 
View this message in context: 
http://www.nabble.com/Can-I-set-a-timeout-for-downloading-dependency-tp16608218s177p16623044.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: Dependency Relationships in EARs

2008-04-10 Thread Wayne Fay
Yep, that would do it!

Wayne

On 4/10/08, David Weintraub [EMAIL PROTECTED] wrote:
 Whoops, this was a local repository error. I am manually doing the
 repository, and copying the JARS, creating the POMs, etc. I accidently
 called the POM for the foundation JAR file, foundation-0.1.xml instead
 of foundation-0.1.pom and that caused the problem.

 Changing the name fixed the issue.

 -
 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: Deploying a modified plugin to an in-house repository

2008-04-10 Thread Joshua ChaitinPollak
This bug went away (really, it just vanished) when I upgraded to  
Artifactory 1.2.5


-Josh

On Apr 10, 2008, at 3:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]  
wrote:



Doh... Note to self: Don't post when you're tired. ;)

But I see artifactory also can work with the webdav wagon. [1] Could  
you try that?


Hth,

Nick S.

[1] 
http://www.jfrog.org/confluence/display/RTF/Using+Artifactory#UsingArtifactory-CLIDeployment

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Thu 4/10/2008 01:52
To: Maven Users List
Subject: RE: Deploying a modified plugin to an in-house repository

The url was an artifactory one...

-Original Message-
From: Nick Stolwijk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 09, 2008 6:05 PM
To: Maven Users List
Subject: Re: Deploying a modified plugin to an in-house repository

Doesn't deploying to archiva require the webdav wagon instead of http
wagon?

Return code 400 means:
The request could not be understood by the server due to malformed
syntax. The client SHOULD NOT repeat the request without  
modifications.


Take a look at the deploy to archiva page at the archiva documentation
[1]

Hth,

Nick S.

[1] http://maven.apache.org/archiva/docs/1.0.2/userguide/deploy.html

Joshua ChaitinPollak wrote:
I'm still having trouble with deploying my modified exec-maven- 
plugin.



If I run this slightly different command line:

mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy \



-DaltDeploymentRepository=plugins-snapshots::default::http://mravinjak:8
081/artifactory/repo/plugins-snapshots



I get:

[INFO]




[ERROR] BUILD ERROR
[INFO]




[INFO] Error deploying artifact: Failed to transfer file:


http://mravinjak:8081/artifactory/repo/plugins-snapshots/org/codehaus/mo
jo/exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1- 
beta-2-SN

APSHOT.jar.

Return code is: 400

Is there anything I can do?

-Josh


On Apr 9, 2008, at 2:11 AM, Joshua ChaitinPollak wrote:


So I just made a modification to the exec-maven-plugin and now I'm
trying to share that with the rest of my company be deploying it to
our shared repository (Artifactory) with this command:

mvn org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy-file \
  -DgroupId=org.codehaus.mojo -DartifactId=exec-maven-plugin

\

  -Dversion=1.1-beta-2-SNAPSHOT -Dpackaging=maven-plugin \


-Dfile=/Users/pardsbane/src/exec-maven-plugin/target/exec-maven- 
plugin-1

.1-beta-2-SNAPSHOT.jar

\
  -DrepositoryId=3rdp-snapshots
-Durl=http://mravinjak:8081/artifactory/repo/[EMAIL PROTECTED]

But I'm getting this error:

[INFO] Error deploying artifact: Failed to transfer file:


http://mravinjak:8081/artifactory/repo/3rdp-snapshots/org/codehaus/mojo/
exec-maven-plugin/1.1-beta-2-SNAPSHOT/exec-maven-plugin-1.1- 
beta-2-20080

409.060704-1.jar.

Return code is: 400

Which I suspect is because of the -Dpackaging=maven-plugin, but when
I tried -Dpackaging=jar, Maven wasn't able to find this version of
the plugin.

Am I doing something wrong?

--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970










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




--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970








How can I let Maven run a class before packaging

2008-04-10 Thread youhaodeyi

By default, Maven will package all the classes under target/classes directory
into a jar file. But some classes are not generated by compiling, by running
a Java application. How can I let Maven run a java application before
packaging?
-- 
View this message in context: 
http://www.nabble.com/How-can-I-let-Maven-run-a-class-before-packaging-tp16625144s177p16625144.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: How can I use a plugin SNAPSHOT version?

2008-04-10 Thread Heinrich Nirschl
You may also need to specify the additional repository as a
pluginRepository with snapsots enabled. The exact setting depends on
your environment (i.e. if you use a repository manager and how it is
configured)

Henry.

On Fri, Apr 11, 2008 at 12:54 AM, Brian E. Fox [EMAIL PROTECTED] wrote:
 If you have an artifactory install, you should just be able to ask the
 maintainer to add the snapshot repo. I don't know if artifactory groups
 like nexus, I think so, if yes than that should be all you need.


 -Original Message-
 From: Brewster, Richard [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 10, 2008 6:04 PM
 To: Maven Users List
 Subject: How can I use a plugin SNAPSHOT version?

 I want to use the latest version of this plugin:

 http://snapshots.repository.codehaus.org/org/codehaus/mojo/jboss-maven-p
 lugin/1.3.2-SNAPSHOT/

 What's the procedure for getting this into my local repository, and then
 into my company's Artifiactory?

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