test scope should inherit provided scope?

2006-10-13 Thread pjungwir

Hello,

I noticed that when I run my tests, the classpath includes all my
provided-scope dependencies. The docs online don't say they should be there,
but I guess it makes sense, right? Provided scope means I need them to run,
but they'll be available after I deploy. Therefore maven needs to provide
them when I'm just running tests. So therefore I have a question:

The docs here have a chart about transitive dependencies:

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

According to this chart, if I rely on library A with a test scope, and A
relies on B with a provided scope, I won't get B at all. Is that right?
Don't I need B to run my tests? If my test classpath includes immediate
provided-scope dependencies, shouldn't it include mediate ones?

Thanks,
Paul


-- 
View this message in context: 
http://www.nabble.com/test-scope-should-inherit-provided-scope--tf2435171.html#a6790293
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: mvn -N install not working for daytrader

2006-10-13 Thread Vincent Massol
Hi Satish,

 -Original Message-
 From: Satish Gupta [mailto:[EMAIL PROTECTED]
 Sent: vendredi 13 octobre 2006 07:12
 To: Maven Users List
 Subject: Re: mvn -N install not working for daytrader
 
 Thanks for your reply!
 
 Daytrader is the example being dealt with in the book Better Builds with
 Maven. I am trying to learn how to be able to work with J2EE projects.
 The
 book doesn't explicitly say to install a top-level pom.xml. I made a guess
 and did copy a pom.xml from another part of the book and tha part seem to
 have worked. Now I am working on the ejb module under daytrader
 directoy. So I copied a pom.xml from tha section to ejb directory and ran
 mvn install. Now I am getting the following error:
 
 Cannot find parent: org.apache.geronimo.samples.daytrader:daytrader for
 project: null:daytrader-ejb:ejb:null

You don't have to copy, modify or move any file at all of course! I guess
the error is simply you're not in the right directory when you type your mvn
command. Please double check the book as I remember mentioning the location
where you have to type the commands. If you don't succeed plese let me know
exactly what page of the book you're referring to.
 
 How do people learn Maven? It seems to be popular but the documentation
 seems very hard to understand! Do you have any suggestions?

That's why there's the book... It's supposed to be easy to follow! :-)

Thanks
-Vincent

 On 10/12/06, pjungwir [EMAIL PROTECTED] wrote:
 
 
  Hi Satish,
 
  Maven expects to find a pom.xml in the current directory. That message
  means
  there isn't one there. I don't know what daytrader is. Are you trying to
  build it from source?
 
  Paul
 
 
 
  Satish Gupta wrote:
  
   I am just starting to learn Maven. I am trying to follow the
  instrucations
   in Better Builds with Maven but get the following message right off
  the
   bat:
  
   It requires a project with an existing pom.xml , but the build is not
   using
   one.
  
   I am using maven2.0.4 on Windows XP.
  
   I'd appreciate any help.
  
   Thanks
  
  
 
  --
  View this message in context:
  http://www.nabble.com/mvn--N-install-not-working-for-daytrader-
 tf2434911.html#a6789679
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 






___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com

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



Re: How do people search for jars and poms?

2006-10-13 Thread Gisbert Amm

Jason Chan wrote:


MVN Registry
http://www.mvnregistry.com/


Thats amazing! Haven't heard about it before. Is it mentioned in the 
Maven documentation somewhere?


-Gisbert

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



Re: test scope should inherit provided scope?

2006-10-13 Thread pjungwir

I rigged up a test. The chart is accurate, but the behavior seems wrong to
me. Could someone please explain why dropping that dependency is the right
thing to do?

Just to repeat, here is the setup:

Project depends on A with test scope.
A depends on B with provided scope.

When I run A's tests, I have B in my classpath.
When I run Project's tests, I don't have B in my classpath.

Is there any use case when it's good not to have B? Since we're still just
running unit tests, we can't get B otherwise than from maven.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/test-scope-should-inherit-provided-scope--tf2435171.html#a6790794
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: supported databases ?

2006-10-13 Thread Emmanuel Venisse

With datasources usage, we want to support a maximum of databases.
For all exception found with a database, you need to create an issue and we'll 
look at it.
We probably need to add more informations in the jpox descriptor used for the 
database generation.

Emmanuel


Mohni, Daniel a écrit :
Hi Arnaud 

   What databases are supported ? Only Derby or I can try to 
connect archiva

to another one like mySQL ?



I tryed with mySQL using this ressource definition:

Resource name=jdbc/users auth=Container
type=javax.sql.DataSource
username=archiva
password=archiva
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/archiva?autoReconnect=true
   /

with a local mysql instance with catalog archiva and user
archiva/archiva

when accesing localhost:8080/archiva I get an exception, the logs will
show this:

2006-10-12 10:02:52,078 [http-8080-Processor24] INFO
Interceptor:pssSecureActionInterceptor -
org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor
initialized!
2006-10-12 10:02:52,078 [http-8080-Processor24] INFO
Interceptor:pssSecureActionInterceptor -
org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor
initialized!
2006-10-12 10:02:52,421 [http-8080-Processor24] ERROR VelocityComponent
- ResourceManager : unable to find resource 'VM_global_library.vm' in
any resource loader.
2006-10-12 10:02:55,281 [http-8080-Processor24] WARN  General
- SQL warning: java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated;
use 'ENGINE=storage_engine' instead
2006-10-12 10:02:55,812 [http-8080-Processor24] WARN  General
- SQL warning: java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated;
use 'ENGINE=storage_engine' instead
2006-10-12 10:02:56,515 [http-8080-Processor24] ERROR RDBMS
- Error thrown executing CREATE TABLE `OPERATIONS`
(
`NAME` VARCHAR(256) BINARY NOT NULL,
`DESCRIPTION` VARCHAR(256) BINARY NULL,
`PERMANENT` BIT NOT NULL,
`RESOURCE_REQUIRED` BIT NOT NULL,
PRIMARY KEY (`NAME`)
) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification
without a key length
java.sql.SQLException: BLOB/TEXT column 'NAME' used in key specification
without a key length
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2998)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2927)
at com.mysql.jdbc.Statement.execute(Statement.java:535)
at
org.apache.tomcat.dbcp.dbcp.DelegatingStatement.execute(DelegatingStatem
ent.java:261)
at
org.jpox.store.rdbms.table.AbstractTable.executeDdlStatement(AbstractTab
le.java:561)
at
org.jpox.store.rdbms.table.AbstractTable.executeDdlStatementList(Abstrac
tTable.java:516)
at
org.jpox.store.rdbms.table.AbstractTable.create(AbstractTable.java:244)
at
org.jpox.store.rdbms.table.AbstractTable.exists(AbstractTable.java:287)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate(R
DBMSManager.java:3006)
at
org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManager.java:2540)
at
org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager.j
ava:2397)
at
org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:603)
at
org.jpox.store.rdbms.RDBMSManager.addClass(RDBMSManager.java:617)
at
org.jpox.store.StoreManager.getDatastoreClass(StoreManager.java:1016)
at
org.jpox.store.rdbms.RDBMSManager.getExtent(RDBMSManager.java:1134)
at
org.jpox.AbstractPersistenceManager.getExtent(AbstractPersistenceManager
.java:2216)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getAll
Objects(JdoTool.java:199)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getAll
Objects(JdoTool.java:182)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.trigge
rInit(JdoTool.java:131)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getPer
sistenceManager(JdoTool.java:118)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.getObj
ectById(JdoTool.java:236)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoTool.object
ExistsById(JdoTool.java:283)
at
org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacManager
.roleExists(JdoRbacManager.java:124)
at
org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.getRole(Abst
ractDynamicRoleProfile.java:164)
at
org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.getDynamicRol
e(DefaultRoleProfileManager.java:87)
at
org.apache.maven.archiva.web.check.RoleExistanceEnvironmentCheck.validat
eEnvironment(RoleExistanceEnvironmentCheck.java:74)
at

[Maven 1.0.2] goal : jnlp and MANIFEST file

2006-10-13 Thread LASSIEGE Hugo
Hi,

I've some problem with the goal maven jnlp. The goal update the manifest
of each jar and lost some important informations.

 

Example :

 

Before maven jnlp

 

Manifest-Version: 1.0

Ant-Version: Apache Ant 1.5.3 

Created-By: Apache Maven

Built-By: adam

Package: com.wit

Build-Jdk: 1.4.2_05

Extension-Name: interfaceserver

Specification-Title: Inteface Project

Specification-Vendor: someone

Implementation-Title: com.wit

Implementation-Vendor: someone

Implementation-Version: 2.0.3.2.6

 

 

But jars in jnlp_temp just have :

 

Manifest-Version: 1.0

Created-By: Apache Maven

 

I lost all others informations. And I the signed jar folder 

 

Manifest-Version: 1.0

Created-By: Apache Maven

 

Name: com/ wit/proxy/distant/XMLResponseDecoder.class

SHA1-Digest: xMrtXoTBUEnec2ZEX1ZuehieXxo=

 



 

 

How can I keep initial informations in my MANIFEST ? Is it possible with
maven jnlp ? I need those informations, especially
implementation-version, I use this to retrieve the version in the
application.

 

Best regards

hugo




CONFIDENTIALITY:   This email (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this email in error,
please notify the sender and delete this email from your system.  Thank you


CONFIDENTIALITE: Ce courrier electronique (pieces jointes incluses) peut 
contenir des informations confidentielles, proprietaires et privilegiees,
dont la divulgation ou l'utilisation non-autorisee est interdite.
Si vous avez recu ce courrier electronique par erreur, nous vous remercions de 
bien vouloir avertir l'expediteur et detruire ce courrier electronique
de votre systeme.
Merci.




Re: [M2] FindBugs Plugin: How to generate XML file?

2006-10-13 Thread Gisbert Amm

It is already there: http://jira.codehaus.org/browse/MOJO-511

I added this mail as a comment since it clarifies what is needed and 
promise to look into JIRA first next time ;)


-Gisbert

Dan Tran wrote:

sounds like a bug, please file a JIRA

On 10/12/06, Gisbert Amm [EMAIL PROTECTED] wrote:



Does anybody know how I can persuade the Maven2 FindBugs Plugin to let
Findbugs generate an XML file containing its results into the target
directory in addition to the HTML report in target/site?

The Maven1 Findbugs Plugin automagically generates a file named
findbugs-raw-report.xml into the target directory during maven site.

I cannot find any information about how to achieve that with Maven2
neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/
nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html

I tried  generateXmltrue/generateXml in the configuration section
as it is for the Clover Plugin but of course that didn't work.

What I want is to use this option of Findbugs:

-xml

Produce the bug reports as XML. The XML data produced may be viewed
in the GUI at a later time. You may also specify this option as
-xml:withMessages; when this variant of the option is used, the XML
output will contain human-readable messages describing the warnings
contained in the file.
(http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions 


)

Any pointer or help would be highly appreciated.

-Gisbert

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






--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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



Re: Confused about Maven 2 Eclipse plugin

2006-10-13 Thread Stéphane Bouchet

hi,

There is a bug with Maven Embedder, see : 
http://jira.codehaus.org/browse/MNGECLIPSE-71


ther is also a mailing list for this plugin that could help you : 
http://m2eclipse.codehaus.org/mail-lists.html


Cheers,

Stéphane


Los Morales a écrit :
Hi, Thanks for the tip.  Now I tried the lifecycle clean, compile and 
package on my base project, but it doesn't recurse down to my sub 
projects.  For example, I have this setup:


--Main Project
   --- Project 1
 --- pom.xml
   --- Project 2
 --- pom.xml
   --- pom.xml

Now when I run the Maven 2 plugin phase clean from the base 
directory-- Main Project, I get this:



Deleting directory c:\workspaces\test\Main Project\target
Deleting directory c:\workspaces\test\Main Project\target\classes
Deleting directory c:\workspaces\test\Main Project\target\test-classes
...

However, it does not clean up Project 1 and 2's target directories.  I 
know my pom.xml's are good since the command line (mvn clean) works 
like a charm.  Am I'm missing a step or 2?  Thanks in advance.


-los



From: Manuel Ledesma [EMAIL PROTECTED]
Reply-To: Maven Users List users@maven.apache.org
To: Maven Users List users@maven.apache.org
Subject: Re: Confused about Maven 2 Eclipse plugin
Date: Thu, 12 Oct 2006 23:12:28 -0400

Look at external tools. You can launch lifecycle and goals from there.

Los Morales wrote:
I'm currently using Eclipse 3.2 and Maven 2 plugin version 0.0.9.  
When I enable Maven 2 and right-click on my main project, there are 
only 2 options for me in the popup menu:  1) Update Source Folders 
and 2) Add Dependency...   Where are the lifecycle phases or custom 
goals?  Seems like the NetBeans plugin works fine but I'm totally 
frustrated for the one with Eclipse.  Everytime I need to 
clean/compile/package my Eclipse project, I got to do it via the 
command line.  Am I missing something here?  Thanks in advance.


-los

_
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme002001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-ussource=hmtagline 





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



_
Add fun gadgets and colorful themes to express yourself on Windows 
Live Spaces   
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://www.get.live.com/spaces/features 




-
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 Repository Handling (and ibiblio fallback)

2006-10-13 Thread Arnaud Bailly
Yves Van Steen [EMAIL PROTECTED] writes:

 Hello,


Hello,


  

   mirrors

  mirror

idrepo1/id

mirrorOfcentral/mirrorOf

nameIbiblio Mirror 1/name

urlhttp://192.168.1.2:/repository/url

   /mirror

  mirror

idrepo1/id

mirrorOfcentral/mirrorOf

name Ibiblio Mirror 1/name

urlhttp://192.168.1.3:/repository/url

   /mirror

   /mirrors


Is it normal to have both mirrors with same Id ? That may be the cause
of your problem.
regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Maven 1.1 RC1 SNAPSHOT needs testers

2006-10-13 Thread Arnaud HERITIER

Yes, Dion it's good.
I'm not surprised to not have some real feedbacks before some weeks.
Everybody have differents priorities and generally in our projects, the
build isn't the first one :-)
I was more surprised to have few replies to this email. There were so much
users who critised maven 1.1 which didn't allow to use entities like in
m1.0, that I though we'll have more happy users with this announce.

Thanks for your help Dion,

Have a nice holidays ...

Arnaud


Dion Gillard-2 wrote:
 
 Arnaud,
 
 we are also on Maven 1.1 and would love a release.
 
 I'm on holidays and unable to do a complete test, but I will do so
 early next week.  Is that ok?
 
 On 10/12/06, Arnaud HERITIER [EMAIL PROTECTED] wrote:
 Thanks James for your feedback.
 We'll add a note about plugin dependencies in projects.

 Nobody else is interested by maven 1.1 ?

 Should we continue to try to release a final version 1.1 ?
 Everybody moved to maven 2 or your existing maven 1.x satisfy you ?

 Arnaud

 On 10/10/06, Shute, James [EMAIL PROTECTED] wrote:
 
  You're quite correct - I had put an explicit dependency on scm-1.5 in
 my
  project.xml a while back when we were on 1.0.2 and I wanted to force
  people up to the later version of the plugin.  Taking that out fixes
  things.
 
  thanks very much
 
  James
 
  -Original Message-
  From: Lukas Theussl [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 10, 2006 11:45 AM
  To: Maven Users List
  Subject: Re: Maven 1.1 RC1 SNAPSHOT needs testers
 
  This seems to be the cause indeed, the scm:status goal was only added
 in
  version 1.6 of the scm plugin. You don't have a dependency on 1.5 by
 any
  chance? Try to remove the .maven/cache/maven-scm-plugin-1.5/ directory
  and see what happens..
 
  -Lukas
 
 
  Shute, James wrote:
   Arnaud,
  
   I've succesfully been using 1.1b2 for a while so thought I'd give
 this
 
   a spin.  I'm having trouble with the scm:prepare-release goal.  I've
   included the output when running with -X below.
  
   I'm no expert but it looks a bit suspicious that the version of
   maven-scm-plugin mentioned in the 2nd line below is 1.6, but in the
   BUILD FAILED section is 1.5.
  
   Is this a known issue?  I'm running on WinXP SP2 with the 1.5.0_05
 JDK
 
   if that helps in any way.  I also cleaned out the cache before
   starting so it's not that causing the problem.
  
   thanks
  
   James
  
   Output from maven -X scm:prepare-release:
  
   ...
   Reinstalling:
source = C:\Temp\.maven\cache\maven-scm-plugin-1.6\plugin.jelly
project = null
script = null
   Caching Taglib Uri -- scm:transform
   Caching Taglib Uri -- changes:transform Caching Taglib Uri -- scm
   Caching Taglib Uri -- scm:transform Caching Taglib Uri --
   changes:transform Caching Taglib Uri -- scm popping off
   [EMAIL PROTECTED] for
   [EMAIL PROTECTED] in
   com.lehman.fid:Jdialtone
  
  
   BUILD FAILED
   File..
   file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
   Element... scm:status
   Line.. 192
   Column 158
  
 org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r
   ep
   ository/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/
   maven/scm/command/status/StatusScmResult;
   org.apache.maven.werkz.UnattainableGoalException: Unable to obtain
   goal [scm:prepare-release] --
   file:/C:/Temp/.maven/cache/maven-scm-plugin
   -1.5/plugin.jelly:192:158: scm:status
  
 org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r
   ep
   ository/ScmRepository;Lorg/a
  
 pache/maven/scm/ScmFileSet;)Lorg/apache/maven/scm/command/status/Statu
   sS
   cmResult;
   at org.apache.maven.werkz.Goal.fire(Goal.java:654)
   at org.apache.maven.werkz.Goal.attain(Goal.java:582)
   at
  
 org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:7
   11
   )
   at
   org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
   at org.apache.maven.cli.App.doMain(App.java:556)
   at org.apache.maven.cli.App.main(App.java:1411)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
   at
  
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
   av
   a:39)
   at
  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
   or
   Impl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)
   Caused by: org.apache.commons.jelly.JellyTagException:
   file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly:192:158:
   scm:status or
  
 g.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/rep
   os
   itory/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/ma
   ven/scm/command/status/StatusScmResult;
   at
  
 org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java
   :1
   93)

RE: Maven 1.1 RC1 SNAPSHOT needs testers

2006-10-13 Thread Shute, James
Arnaud,

I've had no issues with this snapshot so I'd be keen to see a 1.1 final
version based on it

James 

-Original Message-
From: Dion Gillard [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 13, 2006 6:04 AM
To: Maven Users List
Subject: Re: Maven 1.1 RC1 SNAPSHOT needs testers

Arnaud,

we are also on Maven 1.1 and would love a release.

I'm on holidays and unable to do a complete test, but I will do so early
next week.  Is that ok?

On 10/12/06, Arnaud HERITIER [EMAIL PROTECTED] wrote:
 Thanks James for your feedback.
 We'll add a note about plugin dependencies in projects.

 Nobody else is interested by maven 1.1 ?

 Should we continue to try to release a final version 1.1 ?
 Everybody moved to maven 2 or your existing maven 1.x satisfy you ?

 Arnaud

 On 10/10/06, Shute, James [EMAIL PROTECTED] wrote:
 
  You're quite correct - I had put an explicit dependency on scm-1.5 
  in my project.xml a while back when we were on 1.0.2 and I wanted to

  force people up to the later version of the plugin.  Taking that out

  fixes things.
 
  thanks very much
 
  James
 
  -Original Message-
  From: Lukas Theussl [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 10, 2006 11:45 AM
  To: Maven Users List
  Subject: Re: Maven 1.1 RC1 SNAPSHOT needs testers
 
  This seems to be the cause indeed, the scm:status goal was only 
  added in version 1.6 of the scm plugin. You don't have a dependency 
  on 1.5 by any chance? Try to remove the 
  .maven/cache/maven-scm-plugin-1.5/ directory and see what happens..
 
  -Lukas
 
 
  Shute, James wrote:
   Arnaud,
  
   I've succesfully been using 1.1b2 for a while so thought I'd give 
   this
 
   a spin.  I'm having trouble with the scm:prepare-release goal.  
   I've included the output when running with -X below.
  
   I'm no expert but it looks a bit suspicious that the version of 
   maven-scm-plugin mentioned in the 2nd line below is 1.6, but in 
   the BUILD FAILED section is 1.5.
  
   Is this a known issue?  I'm running on WinXP SP2 with the 1.5.0_05

   JDK
 
   if that helps in any way.  I also cleaned out the cache before 
   starting so it's not that causing the problem.
  
   thanks
  
   James
  
   Output from maven -X scm:prepare-release:
  
   ...
   Reinstalling:
source = C:\Temp\.maven\cache\maven-scm-plugin-1.6\plugin.jelly
project = null
script = null
   Caching Taglib Uri -- scm:transform Caching Taglib Uri -- 
   changes:transform Caching Taglib Uri -- scm Caching Taglib Uri 
   -- scm:transform Caching Taglib Uri -- changes:transform Caching

   Taglib Uri -- scm popping off
   [EMAIL PROTECTED] for 
   [EMAIL PROTECTED] in 
   com.lehman.fid:Jdialtone
  
  
   BUILD FAILED
   File..
   file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly
   Element... scm:status
   Line.. 192
   Column 158
   org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/s
   cm/r
   ep
   ository/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apach
   e/ maven/scm/command/status/StatusScmResult;
   org.apache.maven.werkz.UnattainableGoalException: Unable to obtain

   goal [scm:prepare-release] -- 
   file:/C:/Temp/.maven/cache/maven-scm-plugin
   -1.5/plugin.jelly:192:158: scm:status 
   org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/s
   cm/r
   ep
   ository/ScmRepository;Lorg/a
   pache/maven/scm/ScmFileSet;)Lorg/apache/maven/scm/command/status/S
   tatu
   sS
   cmResult;
   at org.apache.maven.werkz.Goal.fire(Goal.java:654)
   at org.apache.maven.werkz.Goal.attain(Goal.java:582)
   at
   org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.ja
   va:7
   11
   )
   at
   org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
   at org.apache.maven.cli.App.doMain(App.java:556)
   at org.apache.maven.cli.App.main(App.java:1411)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
   at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
   pl.j
   av
   a:39)
   at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
   cess
   or
   Impl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)
   Caused by: org.apache.commons.jelly.JellyTagException:
  
file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly:192:158:
   scm:status or
   g.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm
   /rep
   os
   itory/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/
   ma ven/scm/command/status/StatusScmResult;
   at
   org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.
   java
   :1
   93)
   at
   org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.
   java
   :1
   02)
   at
   

Re: How do people search for jars and poms?

2006-10-13 Thread Arnaud HERITIER

There is also www.mvnrepository.com

But it will not help you to find which version of a jar it is.

The only service, based on chechsums, that allow you to do it is Archiva.
But this project isn't yet released. You have to build it yourself.

http://maven.apache.org/archiva/
http://docs.codehaus.org/display/MAVENUSER/Archiva

Arnaud




Jason Chan-3 wrote:
 
 I am using:
 
 MVN Registry
 http://www.mvnregistry.com/
 
 
 On 10/13/06, Christian Goetze [EMAIL PROTECTED] wrote:

 If this is a stupid question, I apologise in advance...

 Given a dependency to a specific set of classes, how do people locate
 the jar that provides it, together with the artifact and group ids? I
 haven't yet found a better way than to search through ibiblio, hoping to
 find something there - but to locate things like javax.xml.rpc.*, it's
 not easy.

 As you can tell, I'm in the process of converting an ant based system
 with lots of checked in .jar files to a maven system. The trouble with
 the checked in .jar files is that they are completely void of any
 version info, and I need to reconstruct the dependency tree by hand.

 How do the pros do it?
 --
 cg

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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-do-people-search-for-jars-and-poms--tf2434140.html#a6792081
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 plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Aleksei Valikov
Hi.

 Forgive me if this is a naive question but I've search the web and 
 haven't found an obvious answer.
 
 I'd like to find a tool that generates Java source files, SQL schema 
 files, and O/R mapping files from the same XSD file.  The input XSD file 
 (over which I have no control) defines the format of XML messages.  I 
 know that JAXB, XMLbeans, etc. can create the Java source files from 
 this type of XSD file.  However, I haven't been able to identify a tools 
 that creates the SQL schema and O/R mapping files from the same type of 
 XSD file.  The closest tool I've found is Hydrate that will generate all 
 three types of output files but it does this from a Hydrate model XSD 
 file, not from the type of XSD file that JAXB or XMLbeans would take as 
 input.
 
 Of course, it would be perfect if this tool could be integrated into a 
 Maven 2 build process.

This is exactly what Hyperjaxb2 does. Take a look at:

https://hyperjaxb2.dev.java.net/

Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and configuration 
for JAXB classes. That is, you get *.hbm.xml and hibernate.cfg.xml.

Hyperjaxb2 includes a Maven2 plugin.

You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will 
map everything for you. And of course you can customize the generated mappings.

Here's a sample application:

https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip

Bye.
/lexi
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

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



Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Wilfred Springer
Modello is similar, to some extent... Apart from the fact that it
doesn't support JAXB, Hibernate and XML Schema. ;-) Instead you would
use Modello's own schema language, their own data binding tools and JPOX
for persistency.

http://mojo.codehaus.org/



On Fri, 2006-10-13 at 11:29 +0200, Aleksei Valikov wrote:

 Hi.
 
  Forgive me if this is a naive question but I've search the web and 
  haven't found an obvious answer.
  
  I'd like to find a tool that generates Java source files, SQL schema 
  files, and O/R mapping files from the same XSD file.  The input XSD file 
  (over which I have no control) defines the format of XML messages.  I 
  know that JAXB, XMLbeans, etc. can create the Java source files from 
  this type of XSD file.  However, I haven't been able to identify a tools 
  that creates the SQL schema and O/R mapping files from the same type of 
  XSD file.  The closest tool I've found is Hydrate that will generate all 
  three types of output files but it does this from a Hydrate model XSD 
  file, not from the type of XSD file that JAXB or XMLbeans would take as 
  input.
  
  Of course, it would be perfect if this tool could be integrated into a 
  Maven 2 build process.
 
 This is exactly what Hyperjaxb2 does. Take a look at:
 
 https://hyperjaxb2.dev.java.net/
 
 Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and 
 configuration for JAXB classes. That is, you get *.hbm.xml and 
 hibernate.cfg.xml.
 
 Hyperjaxb2 includes a Maven2 plugin.
 
 You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will 
 map everything for you. And of course you can customize the generated 
 mappings.
 
 Here's a sample application:
 
 https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip
 
 Bye.
 /lexi


[m2] groovy plugin: missing parameter build error

2006-10-13 Thread Valerio Schiavoni

hello
i'm digging into the groovy-maven-plugin,
http://mojo.codehaus.org/groovy-maven-plugin/

i have my groovy stuff in:
src/main/groovy/MyScript.groovy

i added the following to my pom.xml:

build
   plugins
   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdgroovy-maven-plugin/artifactId
   version0.1-SNAPSHOT/version
   executions
   execution
   idtest/id
   phasepackage/phase
   goals
   goalrun/goal
   /goals
   configuration
   fileNamegroovy/MyScript.groovy/fileName

passProjectAsPropertytrue/passProjectAsProperty
   /configuration
   /execution
   /executions
   /plugin
   ..
/plugins

when i launch: mvn groovy:groovy i keep getting a BUILD ERROR:

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] One or more required plugin parameters are invalid/missing for
'groovy:groovy'

[0] inside the definition for plugin: 'groovy-maven-plugin'specify the
following:

configuration
 ...
 fileNameVALUE/fileName
/configuration.

i'm using maven 2.0.4

thanks,
valerio
--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


[M2- MVN Deploy Problem Error Code 201]

2006-10-13 Thread Sebastian Krebs
Hi together,

I've got the following problem using M2.0.4

I want to deploy an artefact into my remote repository using mvn deploy.
Normally, or as I had understood, M2 will deploy the resulting jar and
the needed *.pom files.

When I'm calling mvn deploy, M2 only copies the resulting jar into my
repo.
After copying, M2 results in an error code of 201.
So M2 don't copy the other needed files, so further projects will not
find the artefact in my remote repo.

Maybe Maven stops to copy the other files, because of getting an error
while sending the first file ???

Did anyone know this problem ?

Regards
Sebastian Krebs


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



Maven War Plugin problem / need help

2006-10-13 Thread Marco Mistroni

hi all,
 i am using maven2 war plugin to package my war project (which is part of a
multi-project).
Unfortunately i inherited the directory structure of the project (which was
done in RAD) which is
following

JavaSource
  |com.
  |resources
WebContent
 |_ WEN-INF
 other jsps

the problem is that i cannot make it to copy the resources present in the
'resources'  directory into
the war using maven war plugin
here's my pom (only relevant part)

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.0.2/version
 configuration
warSourceDirectory${basedir}/WebContent/warSourceDirectory
webResources
   resource
  directory${basedir}/JavaSource/resources/directory
  includes
  include**/*.*/include
  /includes
   /resource
   /webResources
/configuration
/plugin


could anyone help?

thanks and regards
Marco


RE: Maven War Plugin problem / need help

2006-10-13 Thread Mark Struberg
Hi Marco!

Shouldn't webresources point to the webapp folder?

webResources
 resource
  directory${basedir}/WebContent/directory
 /resource
/webResources

best regards,
strub



--- Marco Mistroni [EMAIL PROTECTED] schrieb:

 hi all,
   i am using maven2 war plugin to package my war
 project (which is part of a
 multi-project).
 Unfortunately i inherited the directory structure of
 the project (which was
 done in RAD) which is
 following
 
 JavaSource
|com.
|resources
 WebContent
   |_ WEN-INF
   other jsps
 
 the problem is that i cannot make it to copy the
 resources present in the
 'resources'  directory into
  the war using maven war plugin
 here's my pom (only relevant part)
 
 plugin
  
 groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-war-plugin/artifactId
   version2.0.2/version
   configuration
 

warSourceDirectory${basedir}/WebContent/warSourceDirectory
  webResources
 resource
   

directory${basedir}/JavaSource/resources/directory
includes
include**/*.*/include
/includes
 /resource
 /webResources
  /configuration
  /plugin
 
 
 could anyone help?
 
 thanks and regards
  Marco
 




___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

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



Re: System scope and transitive dependencies

2006-10-13 Thread Manuel Ledesma
I did it, I installed hundreds of jars and add them as dependency of 
weblogic.jar, still did not work.I talked with BEA folks and they told 
that basically that it needs to be taken from their installation 
directory  because it look for the license and other stuff that are not 
jar related.



Wayne Fay wrote:

Have you tried adding ALL of those jars to your vendor repo, and
adding each one as a dependency in your pom? If they're all available
on the CLASSPATH while executing the plugin, I don't know why it would
need to access WL_HOME at all.

I'm not currently a Weblogic user, so I'm not sure what it expects etc...

Wayne

On 10/12/06, Manuel Ledesma [EMAIL PROTECTED] wrote:

I did it, but Weblogic jar does not work that way, It looks for other
jars in there WL_HOME/server/lib directory, reason why? it needs to be
taken from there.

Wayne Fay wrote:
 We are suggesting that you install the weblogic jar(s) into your
 vendor repo. And stop using system scope...

 Wayne

 On 10/12/06, Manuel Ledesma [EMAIL PROTECTED] wrote:

 Thanks for the advide, I already create a similar layout (application
 repo,
 vendor repo and public). Back to the case of weblogic, It needs to be
 taken
 from its installation directoy and I'm having hard time writing
 puglins for
 it. The workaround that I found it's using the Ant java task to 
fork and

 setting the right classpath for it. But it would be great that system
 scope
 artifacts could go beyond compile (runtime).


 Max Cooper wrote:
 
  I would expand that a bit to say that there are three types of 
repos

  that I think are common for teams using maven:
 
  * the public repos like ibiblio
 
  * a repo that your team maintains for your project or organization
  (often using the local repo part of a maven-proxy or 
proximity
  instance), to serve as a common place to store jars that are 
neither

  built as part of your project nor available on public repos (due to
  license restrictions, etc.). This is a good place to put
 proprietary db
  driver libs, weblogic.jar,
 project-that-does-not-publish-on-ibiblio.jar,
  etc.
 
  * Your own personal local repo. Don't try to share it. It caches
  artifacts from the other repos, and it is where jars end up when 
you

  'mvn install' your project.
 
  -Max
 
  Manuel Ledesma wrote:
  There cases where jars needs to be taken from there installation
  directory
  otherwise, It won't work. That's the case for weblogic.jar, which
 will
  load
  jars are need it base of its own path.
 
 
  Simon Kitching-2 wrote:
  On Thu, 2006-03-23 at 04:28 -0800, Richard Sladek wrote:
  Thanks for your opinion, it seems to me that I am gonna to
 abondon the
  use of
  system scope then.
 
  However, I still think there should be a way how to define
 dependencies
  that
  are specific to a certain project only and you do not want to 
store

  them
  in
  a repository. This is maybe because of my bad underastanding of
 what a
  repository is intended to be for: I understand it as a store
 where I
  can
  place my SHARED /=common/ libraries so that I have a central
 management
  point over them.
 
  For project specific libs, I do not want to have them in a repo
 as they
  are
  pretty unlikely to be used in any other project and I don't see
 a point
  to
  have a lib in repo just because of one specific project.
  Another reason for this might be some kind of encapsulation when
 I want
  to
  have all my project-related stuff on one place only (so that I
 can back
  it
  up easily, for instance. If local repository was involved, I
 would have
  at
  least 2 things to backup: repo and project itself.)
 
  But as I said, this is probably just my bad understanding of
 things and
  ALL
  depenendies in Maven /both common and special/ shall be stored
 in repo.
  Any
  discussion on this is welcome :)
  There are two types of repository:
 
  * remote ones, such as ibiblo, or a repo for your 
development team

  * the local repository on your development machine (really a
 cache).
It typically exists in directory ~/.m2
 
  If your project has dependencies on something available from a
 remote
  repository, then declare that as normal; the dependencies will
  automatically be downloaded to your local repository.
 
  If your project has dependencies on other projects you've 
developed,

  however, you can simply check those out and run mvn install to
 get the
  jar that project generates installed into your *local*
 repository. That
  is much tidier than trying to use system scope.
 
  If the local projects you have dependencies on are not built with
 maven,
  then you can take each jar and run a command to install it 
into your

  local repo anyway (a pom is created for it). I can't remember the
 actual
  command for the moment, but it has been discussed on this list in
 the
  last day or two.
 
  If the process of installing jars into a local repo is 
inconvenient

  because there are lots of them, or a development *team* that
 needs to do
  this, 

Confused: Packing jars containing class files from other components

2006-10-13 Thread Mirko Leschikar
Hi,

forgive me if my question has already been answered, but I could not
find a suitable answer. I am a maven newbie and I try to convert a
custom-made build mechanism to maven with help from the book Better
Builds with Maven.

I have a small app consisting of 4 modules, A, B, C and D. A, B and C
have been compiled and packaged fine, each module is packaged in a jar
file. D has no sources, it is just a jar file that contains all the
files from the A, B and C jar files.

$ mvn package

always tells me that the jar file of D is empty. I added this to D's pom.xml
...
build
   plugins
 plugin
groupIdorg.codehaus.mojo/groupId
artifactIddependency-maven-plugin/artifactId
executions
  execution
idunpack/id
phasepackage/phase
goals
  goalunpack/goal
/goals
configuration
artifactItems
   artifactItem
 groupIdcom.abc.xyz/groupId
 artifactIdA/artifactId
 version${project.version}/version
 typejar/type
   /artifactItem
   artifactItem
 groupIdcom.abc.xyz/groupId
 artifactIdB/artifactId
 version${project.version}/version
 typejar/type
   /artifactItem
   artifactItem
 groupIdcom.abc.xyz/groupId
 artifactIdC/artifactId
 version${project.version}/version
 typejar/type
   /artifactItem
 /artifactItems
   outputDirectory${project.build.directory}/outputDirectory
/configuration
  /execution
/executions
  /plugin
/plugins
  /build

All the files are now under D's target dir, but no jar file is created.
Can somebody tell me, how to do that?
Do I have to use assemblies?

Thanks in advance

Mirko



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



Re: errors adding maven2 project

2006-10-13 Thread Martin Burger


Joseph Marques wrote:
 
 https://server/project/pom.xml
 The URL you provided doesn't exist
 
 OK, so...on a whim, I decided to leave the s off, and try http instead.
 
 http://server/project/pom.xml
 The URL you provided doesn't exist
 
 http://user:pass@server/project/pom.xml
 Works?!?
 

See: http://jira.codehaus.org/browse/CONTINUUM-957

Regards, Martin Burger
-- 
View this message in context: 
http://www.nabble.com/errors-adding-maven2-project-tf2371950.html#a6795507
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: https 401 error

2006-10-13 Thread Martin Burger


Joseph Marques wrote:
 
 when trying to add a maven2 project i'm getting the error: could not
 download https://user:[EMAIL PROTECTED]/project_url/pom.xml: Server returned
 HTTP response code: 401 for URL: https://user:[EMAIL PROTECTED]/
 project_url/pom.xml.  i can hit and download the pom from both IE and
 firefox. any clue as to what's going on?
 

See: http://jira.codehaus.org/browse/CONTINUUM-957

Regards, Martin Burger
-- 
View this message in context: 
http://www.nabble.com/https-401-error-tf2360369.html#a6795521
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Configuring Continuum to authenticate with SCM

2006-10-13 Thread Martin Burger


Jesse McConnell wrote:
 
 that should bypass certificates as well, there is something janky with
 it right now as well so you _may_ need to hit that url, then with the
 s in the https with the same url and then again the url above.  there
 is a jira ticket on that strangeness
 

I was not able to find such a ticket. So, I created a new one.

See: http://jira.codehaus.org/browse/CONTINUUM-957

Regards, Martin Burger
-- 
View this message in context: 
http://www.nabble.com/Configuring-Continuum-to-authenticate-with-SCM-tf2005777.html#a6795535
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Confused: Packing jars containing class files from other components

2006-10-13 Thread Arnaud Bailly
Mirko Leschikar [EMAIL PROTECTED] writes:

 Hi,

Hello,

 Do I have to use assemblies?

Yes, I think it fits perfetly into your use case: remove module D and
create an assembly in a toplevel (parent of A, B and C) project. If
needed, I can provide you with one that gets all classes from sub
projects unpacked but this is straightforward from the docs.



-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Problems using classifier

2006-10-13 Thread Max MacLeod
Hi Folks,
I'm new to Maven so please excuse me if I'm talking
nonsense on this one.

However, I'm having problems with the classifier
tag. I have a dependency on Easymock which has a 1.2
version for Java 1.3 and Java 1.5. I've tried
everything in the pom.xml to get it to load from the
remote and local repositories using the classifier.

Also, manually installing the Jar to my local
repository and specifying the classifier doesn't work.
It does install but it ignores this parameter.

Finally, I tried installing using mvn install with the
project pom in the same directory. This installed
including the Jdk version in the file name etc.:

easymock-1.2_Java1.5.jar

Then, specifying the version as follows:

dependency
  groupIdeasymock/groupId 
  artifactIdeasymock/artifactId 
  version1.2_Java1.5/version 
  typejar/type 
/dependency
/dependencies

The dependency is processed OK.

I'd prefer to use the classifier if possible.

Any advice would be greatly appreciated.

Many thanks,
Max





Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: docbook plugin

2006-10-13 Thread ir. ing. Jan Dockx
http://cvs.peopleware.be/training/maven/maven2/ 
buildLifecyclePhases.html


hope this helps.



On 9 Oct 2006, at 23:50, pjungwir wrote:




Jacek Laskowski-4 wrote:


On 10/9/06, Andr?s [EMAIL PROTECTED] wrote:
I don't know about such a pre-site phase. Indeed, I think  
there's no

site phase either. Is it a typo, or I'm missing something?.

It's executed right before the 'site' phase. Run 'mvn site' and see
what happens.



I went to that link, but I don't see any reference to phases. I  
also checked

the lifecycle doc here:

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


That doesn't mention the site or pre-site phases. I suppose  
generating a
site must be a different lifecycle from a regular build. Can you  
point me to
a description of how this works? What are all the phases when you  
say mvn

site?

Thanks,
Paul

--
View this message in context: http://www.nabble.com/docbook-plugin- 
tf2408569.html#a6726350

Sent from the Maven - Users mailing list archive at Nabble.com.


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






[…]  my biggest problem is finding out how to do things.
(in a mail on the Maven Users List)







Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Wayne Fay

Its great that these tools exist -- obviously I had no idea. ;-)

I'm going to have to take a look at both of them and perhaps integrate
one of them into our build process...

Any others worth looking at, while we're on the topic??

Wayne

On 10/13/06, Wilfred Springer [EMAIL PROTECTED] wrote:

Modello is similar, to some extent... Apart from the fact that it
doesn't support JAXB, Hibernate and XML Schema. ;-) Instead you would
use Modello's own schema language, their own data binding tools and JPOX
for persistency.

http://mojo.codehaus.org/



On Fri, 2006-10-13 at 11:29 +0200, Aleksei Valikov wrote:

 Hi.

  Forgive me if this is a naive question but I've search the web and
  haven't found an obvious answer.
 
  I'd like to find a tool that generates Java source files, SQL schema
  files, and O/R mapping files from the same XSD file.  The input XSD file
  (over which I have no control) defines the format of XML messages.  I
  know that JAXB, XMLbeans, etc. can create the Java source files from
  this type of XSD file.  However, I haven't been able to identify a tools
  that creates the SQL schema and O/R mapping files from the same type of
  XSD file.  The closest tool I've found is Hydrate that will generate all
  three types of output files but it does this from a Hydrate model XSD
  file, not from the type of XSD file that JAXB or XMLbeans would take as
  input.
 
  Of course, it would be perfect if this tool could be integrated into a
  Maven 2 build process.

 This is exactly what Hyperjaxb2 does. Take a look at:

 https://hyperjaxb2.dev.java.net/

 Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and 
configuration for JAXB classes. That is, you get *.hbm.xml and hibernate.cfg.xml.

 Hyperjaxb2 includes a Maven2 plugin.

 You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will 
map everything for you. And of course you can customize the generated mappings.

 Here's a sample application:

 
https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip

 Bye.
 /lexi




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



Re: Progress indicators for project management

2006-10-13 Thread Guillaume Tardif
Hi All,

I'm also trying to put in place QLab (Great! BTW), I got it running with PMD 
(pretty much the same configuration as below).

It generates the movers-report without any issue. However, during the execution 
of the chart goal, I see exceptions in the maven traces : 

[INFO] java.io.FileNotFoundException: 
D:\...\petStoreCommon\target\site\qalab\summary.png (Le chemin d'accÞs spÚcifiÚ 
est introuvable) 

Same errors for each file after the generation of the summary chart.

Directory target/sote/qalab exists on my machine. It only contains 
all-packages, index, movers and overview-summary.html.

Any idea? Has anyone encountered something similar?

Thanks in advance

Guillaume Tardif

Christophe Deneux
Mon, 25 Sep 2006 00:26:31 -0700

Hi all,
 
I have quickly try maven-qalab-plugin this weekend and I have notice the 
following remarks/issues:
- Unable to run maven-qalab-plugin with Findbugs (No XML report is 
generated by Findbugs)
- I had the PMD, Checkstyle, ... configured in the reporting section 
to have these report in the generated
website. To have the QALab reports, I must duplicate the PMD, Checkstyle, ... 
configuration in the buil section
- AS report by Donnchadh, the history is stored in an XML file.
 
Is it not possible to have a maven-qalab-plugin as a report plugin, that:
- parse existing XML files generated by Checkstyle, PMD, ... (each of 
them declared in the reporting
section as usually used)
- merge statistics in a database through JDBC
- generated graphs.
 
Thanks,
Christophe DENEUX
 
-- Initial Header ---
 
From  : Benoit Xhenseval [EMAIL PROTECTED]
To  : [EMAIL PROTECTED],Maven Users List users@maven.apache.org
Cc  : 
Date  : Fri, 22 Sep 2006 05:44:03 -0700 (PDT)
Subject : Re: Progress indicators for project management
 
 Hi Donnchadh,
 
 First of all, thanks for trying the QALab plugin, he hope you'll find it 
 useful.
 
 The Maven2 plugin is really more of a beta and I am pleased that we are 
 resuming development on it shortly,
your comments will be taken into account.  I have launched QALab but was not 
involved in the Maven2 plugin.  I
have found Maven2 more complicated than expected when I looked at the way it 
does reports... i.e. no XML/XSL
and using java to write some reports...
 
 
 You are right in saying that you question about inherting a pom setting is 
 more of a Maven2 question and I
shall let the specialists answer you.
 
 The idea of qalab storing the data in an xml  was to reduce the dependencies, 
 this XML can be put in
different place; this is something that maven1 and ant users can do easily, we 
will ensure that it is the case
for m2.
 One should note that it is possible to define your own exporter and 
 therefore could decide to store the
data in say a database for instance. If there is a demand, we may even provide 
a reference implementation for
that?
 
 So, in summary: hang in there, give us a few weeks or so to sort it out and 
 we will release QALab v1.0 with
a fully defined maven2 plugin.
 
 Best regards
 
 Benoit
 - Original Message 
 From: Donnchadh Ó Donnabháin [EMAIL PROTECTED]
 To: Maven Users List users@maven.apache.org
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, September 21, 2006 6:12:05 PM
 Subject: Re: Progress indicators for project management
 
 I tried it quicly and came across a few issues (most of which are
 easily dealt with).
 
 
 I took the example configuration on the maven2 QALab plugin page
 ( http://qalab.sourceforge.net/maven2/faq.html 
 http://qalab.sourceforge.net/maven2/faq.html  )
  and simplified it to just working with PMD. I came across the following 
 issues:
  * By default PMD doesn't seem to produce an XML report
  * When the PMD plugin is instructed to produce an XML report it puts
 it in target and the QALab example QALab expects it to be in
 target/pmd.
  * By Default, the PMD plugin seems to run in the report phase and the
 example runs  in the verify phase
 
 I got it working in the end with the following configuration
 
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-pmd-plugin/artifactId
 executions
   execution
 
 idpmd/id
 phaseverify/phase
 goals
   goalpmd/goal
 /goals
 
   /execution
 /executions
 configuration
   linkXreftrue/linkXref
   targetJdk1.5/targetJdk
   formatxml/format
 /configuration
 
   /plugin
   plugin
 groupIdnet.objectlab/groupId
 artifactIdmaven-qalab-plugin/artifactId
 version2.1/version
 executions
   execution
 
 idpmd-merge/id
 phaseverify/phase
 goals
   goalmerge/goal
 /goals
 configuration
   handlernet.objectlab.qalab.parser.PMDStatMerge/handler
   

Re: docbook plugin

2006-10-13 Thread pjungwir


ir. ing. Jan Dockx wrote:
 
 http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html
 
 hope this helps.
 

Thanks. That is the best table I've seen so far. I eventually figured this
out by looking here:

https://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4/maven-core/src/main/resources/META-INF/plexus/components.xml

One thing I still don't understand: most of the lists out there don't
mention the initialize phase. The list you posted has it, but in brackets
with no description. Why is that?

Paul

-- 
View this message in context: 
http://www.nabble.com/docbook-plugin-tf2408569.html#a6796874
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: Problems using classifier

2006-10-13 Thread Wayne Fay

You'll need to talk to the Easymock guys -- their pom isn't using a
classifier, instead all that info is shoved into version, as seen
here:
http://www.ibiblio.org/maven2/easymock/easymock/1.2_Java1.5/easymock-1.2_Java1.5.pom

When they start using classifier, you can start using it too.

Wayne

On 10/13/06, Max MacLeod [EMAIL PROTECTED] wrote:

Hi Folks,
I'm new to Maven so please excuse me if I'm talking
nonsense on this one.

However, I'm having problems with the classifier
tag. I have a dependency on Easymock which has a 1.2
version for Java 1.3 and Java 1.5. I've tried
everything in the pom.xml to get it to load from the
remote and local repositories using the classifier.

Also, manually installing the Jar to my local
repository and specifying the classifier doesn't work.
It does install but it ignores this parameter.

Finally, I tried installing using mvn install with the
project pom in the same directory. This installed
including the Jdk version in the file name etc.:

easymock-1.2_Java1.5.jar

Then, specifying the version as follows:

dependency
 groupIdeasymock/groupId
 artifactIdeasymock/artifactId
 version1.2_Java1.5/version
 typejar/type
   /dependency
   /dependencies

The dependency is processed OK.

I'd prefer to use the classifier if possible.

Any advice would be greatly appreciated.

Many thanks,
Max





Send instant messages to your online friends http://uk.messenger.yahoo.com

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




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



Re: [M2- MVN Deploy Problem Error Code 201]

2006-10-13 Thread Wayne Fay

Try it again using mvn -X for additional debugging information that
might be useful.

Wayne

On 10/13/06, Sebastian Krebs [EMAIL PROTECTED] wrote:

Hi together,

I've got the following problem using M2.0.4

I want to deploy an artefact into my remote repository using mvn deploy.
Normally, or as I had understood, M2 will deploy the resulting jar and
the needed *.pom files.

When I'm calling mvn deploy, M2 only copies the resulting jar into my
repo.
After copying, M2 results in an error code of 201.
So M2 don't copy the other needed files, so further projects will not
find the artefact in my remote repo.

Maybe Maven stops to copy the other files, because of getting an error
while sending the first file ???

Did anyone know this problem ?

Regards
Sebastian Krebs


-
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: Confused: Packing jars containing class files from other components

2006-10-13 Thread Mirko Leschikar
Arnaud Bailly schrieb:
 Mirko Leschikar [EMAIL PROTECTED] writes:
 Do I have to use assemblies?
 
 Yes, I think it fits perfetly into your use case: remove module D and
 create an assembly in a toplevel (parent of A, B and C) project. If
 needed, I can provide you with one that gets all classes from sub
 projects unpacked but this is straightforward from the docs.

Thanks for your answer. I will try that. So, I have to use unpack first
and then use assembly to pack the new jar file.

Thanks

Mirko



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



lists arrays as plugin parameters

2006-10-13 Thread pjungwir

Hello,

I'm writing a plugin, and I would like to accept configuration xml like
this:

someOption
anotherOption
var
var
var
... [more vars] ...

Is this possible without wrapping the var tags inside a container like
vars? In the docs, all the examples have a wrapper tag for lists and
arrays.

I know I can just get the full xml and query it, but is there an easier way?
I'd like to keep a private String[] vars with javadoc so when maven builds
the documentation, it is included.

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/lists---arrays-as-plugin-parameters-tf2437539.html#a6797048
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: lists arrays as plugin parameters

2006-10-13 Thread Dan Tran

that is not possible, plugin configuration uses javabean reflection, so you
need to put your
vars in a collection container like list

-D


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:



Hello,

I'm writing a plugin, and I would like to accept configuration xml like
this:

someOption
anotherOption
var
var
var
... [more vars] ...

Is this possible without wrapping the var tags inside a container like
vars? In the docs, all the examples have a wrapper tag for lists and
arrays.

I know I can just get the full xml and query it, but is there an easier
way?
I'd like to keep a private String[] vars with javadoc so when maven
builds
the documentation, it is included.

Thanks,
Paul

--
View this message in context:
http://www.nabble.com/lists---arrays-as-plugin-parameters-tf2437539.html#a6797048
Sent from the Maven - Users mailing list archive at Nabble.com.


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




plugin annotations on plugin members' classes

2006-10-13 Thread pjungwir

Hello,

The plugin I'm writing wants some configuration xml like this:

configuration
...
classPath
mainClasscom.whatever.Main/mainClass
cpthis.jar;that.jar/cp
/classPath
...
/configuration

The classPath element is required, and the mainClass element is also
required.
But maven doesn't seem to care about annotations I put on ClassPath.java.
It only looks at annotations on the mojo class.
Is there any way I can make mainClass be required?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6798129
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 do people search for jars and poms?

2006-10-13 Thread Chris Hilton
I've been doing the same thing a lot so here's some steps I recommend:

- Inspect the manifest file in the jar. Sometimes you'll find the
version number has helpfully been stowed away in there.

- Look at the version history for the jar in your repository. Sometimes
developers (even yourself!) unwittingly leave helpful comments that
include the version number. :-) At the least, you'll probably want to
notice the date of check-in to help you with...

- Start doing binary comparisons of your local jar versus the publicly
released versions. If you got a date from your source control above, you
can start with the latest one as of that date and work your way back.
Also, in my experience, you should perform this comparison step even if
you found an explicit version in one of the steps above. Someone might
have made a mistake or you might work with a particularly dense team
that sees no problem with modifying released jars and checking them in
as if they were the original jars (*grumble grumble*).

Chris

 -Original Message-
 From: Christian Goetze [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, 12 October, 2006 18:53
 To: Maven Users List
 Subject: How do people search for jars and poms?
 
 If this is a stupid question, I apologise in advance...
 
 Given a dependency to a specific set of classes, how do 
 people locate the jar that provides it, together with the 
 artifact and group ids? I haven't yet found a better way than 
 to search through ibiblio, hoping to find something there - 
 but to locate things like javax.xml.rpc.*, it's not easy.
 
 As you can tell, I'm in the process of converting an ant 
 based system with lots of checked in .jar files to a maven 
 system. The trouble with the checked in .jar files is that 
 they are completely void of any version info, and I need to 
 reconstruct the dependency tree by hand.
 
 How do the pros do it?
 --
 cg
 
 -
 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: Confused: Packing jars containing class files from other components

2006-10-13 Thread Arnaud Bailly
Mirko Leschikar [EMAIL PROTECTED] writes:

 Thanks for your answer. I will try that. So, I have to use unpack first
 and then use assembly to pack the new jar file.


No. Assembly descriptor allows automatic unpacking of artifacts
(dependencies or modules). You should simply create a toplevel
descriptor containg moduleSet for your modules with unpack set to
true. 

HTH
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: plugin annotations on plugin members' classes

2006-10-13 Thread Dan Tran

Not that I know of, you will need to validate it your self.

but you can file a JIRA against MNG for this feature enhancement

-D


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:



Hello,

The plugin I'm writing wants some configuration xml like this:

configuration
   ...
   classPath
   mainClasscom.whatever.Main/mainClass
   cpthis.jar;that.jar/cp
   /classPath
   ...
/configuration

The classPath element is required, and the mainClass element is also
required.
But maven doesn't seem to care about annotations I put on ClassPath.java.
It only looks at annotations on the mojo class.
Is there any way I can make mainClass be required?

Thanks,
Paul

--
View this message in context:
http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6798129
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: [M2] XSLT Plugin

2006-10-13 Thread Nate


 The site for xslt plugin is old.

 svn url is http://svn.codehaus.org/mojo/trunk/mojo/xslt-maven-plugin

Excellent.



 apache snapshot repo

   http://snapshots.repository.codehaus.org/


 codehaus snapshot repo


Okay.  Here is where I'm confused.  I used to get the changelog plugin
from the codehaus site (2.0-beta1).  That version was not working correct,
so I found a post that said to switch to the apache repo (2.0-SNAPSHOT).
Did this plugin move?  If not, why are plugins in both places?

Here is the diff of my pom.xml

338,340c348,350
 groupIdorg.codehaus.mojo/groupId
 artifactIdchangelog-maven-plugin/artifactId
 version2.0-beta-1/version
---
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-changelog-plugin/artifactId
 version2.0-SNAPSHOT/version

Thanks,
-Nate



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



Re: plugin annotations on plugin members' classes

2006-10-13 Thread pjungwir


dan tran wrote:
 
 Not that I know of, you will need to validate it your self.
 
 but you can file a JIRA against MNG for this feature enhancement
 

Hi Dan, thanks for your reply (this one and the many others!). I've been
thinking about filing a jira, and maybe starting on a patch. I think the
first step would be to include some extra data in plugin.xml. It would
probably break things to add additional parameter tags, but what if
complex parameters had sub tags? Then whatever code doesn't know about them
could just ignore them.

Step 2 is making maven read those tags and do something with them. Of course
this shouldn't break plugins that don't have those tags.

Step 3 is making the plugin documentation include them in the parameter
tables.

Anything else?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6799184
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: [M2] XSLT Plugin

2006-10-13 Thread Wayne Fay

Sometimes, the Maven Dev team decides to take over ownership of
plugins which have proven to be especially popular and useful, usually
after they have been developed to a certain degree in Codehaus or
elsewhere. Maven Dev sponsored plugins are always named
maven-xyz-plugin, while non-Maven Dev plugins are generally named
xyz-maven-plugin.

The changelog plugin is one of those. So when it moved from Codehaus
Mojo to Maven, its name changed, and so did the version.

The maven-changelog-plugin is the newest version.

Wayne

On 10/13/06, Nate [EMAIL PROTECTED] wrote:



 The site for xslt plugin is old.

 svn url is http://svn.codehaus.org/mojo/trunk/mojo/xslt-maven-plugin

Excellent.



 apache snapshot repo

   http://snapshots.repository.codehaus.org/


 codehaus snapshot repo


Okay.  Here is where I'm confused.  I used to get the changelog plugin
from the codehaus site (2.0-beta1).  That version was not working correct,
so I found a post that said to switch to the apache repo (2.0-SNAPSHOT).
Did this plugin move?  If not, why are plugins in both places?

Here is the diff of my pom.xml

338,340c348,350
 groupIdorg.codehaus.mojo/groupId
 artifactIdchangelog-maven-plugin/artifactId
 version2.0-beta-1/version
---
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-changelog-plugin/artifactId
 version2.0-SNAPSHOT/version

Thanks,
-Nate



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




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



Re: [M2] FindBugs Plugin: How to generate XML file?

2006-10-13 Thread Mick Knutson

Can I see how you configured your FindBugs in Maven 2 please?


On 10/12/06, Gisbert Amm [EMAIL PROTECTED] wrote:


Does anybody know how I can persuade the Maven2 FindBugs Plugin to let
Findbugs generate an XML file containing its results into the target
directory in addition to the HTML report in target/site?

The Maven1 Findbugs Plugin automagically generates a file named
findbugs-raw-report.xml into the target directory during maven site.

I cannot find any information about how to achieve that with Maven2
neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/
nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html

I tried  generateXmltrue/generateXml in the configuration section
as it is for the Clover Plugin but of course that didn't work.

What I want is to use this option of Findbugs:

-xml

 Produce the bug reports as XML. The XML data produced may be viewed
in the GUI at a later time. You may also specify this option as
-xml:withMessages; when this variant of the option is used, the XML
output will contain human-readable messages describing the warnings
contained in the file.
(http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions
)

Any pointer or help would be highly appreciated.

-Gisbert

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





--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


How to exclude test scope artifacts during assembly?

2006-10-13 Thread Dave Hoffer
The assembly plug-in is including all artifacts, even those with test
scope, in my multi-module project.  How can I exclude the test
artifacts?

 

-dh



passing parameters in maven 2 eclipse plugin

2006-10-13 Thread Nishant Mehta

Does anyone know how to pass parameters to maven from the eclipse plugin?

from the command line I would do the following:

mvn -PTEST install

where -PTEST indicated the TEST profile should be used..

How do I do this in Eclipse? I know there is a Parameter Name and Value
fields on the External Tools menu but I am not sure how to pass the profile
parameter.

Thanks...


qalab.xml does not exist.

2006-10-13 Thread Mick Knutson

[INFO] Generate Dependencies report.
[INFO] Generate Dependency Convergence report.
[INFO] Generate Mailing Lists report.
[INFO] Generate About report.
[INFO] Generate Project Summary report.
[INFO] Generate Project Team report.
[INFO] Generate Source Xref report.
[INFO] Generate QALab Main Report report.

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
generation
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page
generation
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
   ... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
rendering Maven report: C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml
d
oes not exist.
   at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(
ReportDocumentRenderer.java:71)
   at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
   at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
DefaultSiteRenderer.java:115)
   at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java
:124)
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
   ... 18 more
Caused by: org.apache.maven.reporting.MavenReportException:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
   at net.objectlab.qalab.m2.report.MainReport.validate(MainReport.java
:217)
   at net.objectlab.qalab.m2.report.MainReport.executeReport(
MainReport.java:107)
   at org.apache.maven.reporting.AbstractMavenReport.generate(
AbstractMavenReport.java:98)
   at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(
ReportDocumentRenderer.java:67)
   ... 22 more
Caused by: java.io.FileNotFoundException:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
   at net.objectlab.qalab.m2.util.Utils.checkFile(Utils.java:39)
   at net.objectlab.qalab.m2.report.MainReport.validate(MainReport.java
:214)
   ... 25 more
[INFO]

[INFO] Total time: 19 seconds
[INFO] Finished at: Fri Oct 13 10:52:28 PDT 2006
[INFO] Final Memory: 22M/43M
[INFO]



--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


Is it possible to add a property from a Mojo

2006-10-13 Thread Laura Hinojosa
 
Is it possible to add a Maven property from a Mojo??  Anyone know something 
about that??
 
Thank you
 
Laura



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.






Is it possible to have to plugins that define the same packaging and be execute in the same build

2006-10-13 Thread Laura Hinojosa
Is it possible to have two plugins that implement the same packaging type and 
be call (both lifecycles) in the same build?
 
I tested and right now only the first plugin's lifecycle gets executed, unless 
I call the second plugin in the executions section, but I have to call each 
goal.
 
I will appreciate any information about it
 
Thank you
 
Laura



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.






Re: qalab.xml does not exist.

2006-10-13 Thread Wayne Fay

I'm not using QALab currently but I've seen things like this before...
I'd suspect you've simply added QALab to your Reporting section
without adding a corresponding section to Build/plugins. And so your
QALab report is looking for the XML file (generated by the build-time
plugin) but it doesn't exist, so it fails.

Can someone who is using QALab please contribute their pom.xml file
for Mick's reference?

Wayne

On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:

[INFO] Generate Dependencies report.
[INFO] Generate Dependency Convergence report.
[INFO] Generate Mailing Lists report.
[INFO] Generate About report.
[INFO] Generate Project Summary report.
[INFO] Generate Project Team report.
[INFO] Generate Source Xref report.
[INFO] Generate QALab Main Report report.

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
generation
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page
generation
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
   ... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
rendering Maven report: C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml
d
oes not exist.
   at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(
ReportDocumentRenderer.java:71)
   at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
   at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
DefaultSiteRenderer.java:115)
   at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java
:124)
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
   ... 18 more
Caused by: org.apache.maven.reporting.MavenReportException:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
   at net.objectlab.qalab.m2.report.MainReport.validate(MainReport.java
:217)
   at net.objectlab.qalab.m2.report.MainReport.executeReport(
MainReport.java:107)
   at org.apache.maven.reporting.AbstractMavenReport.generate(
AbstractMavenReport.java:98)
   at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(
ReportDocumentRenderer.java:67)
   ... 22 more
Caused by: java.io.FileNotFoundException:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
   at net.objectlab.qalab.m2.util.Utils.checkFile(Utils.java:39)
   at net.objectlab.qalab.m2.report.MainReport.validate(MainReport.java
:214)
   ... 25 more
[INFO]

[INFO] Total time: 19 seconds
[INFO] Finished at: Fri Oct 13 10:52:28 PDT 2006
[INFO] Final Memory: 22M/43M
[INFO]



--

Thanks

DJ MICK
http://www.djmick.com

site customization

2006-10-13 Thread Attila Mezei-Horvati
I am trying to add a custom page (about how to
get/build the project) to the project site. 

The site is generated by maven 2. 

Unfortunately I can't figure it out how to add a
couple of menu items so that maven keeps all the ones
generated by default. If I specify my own site.xml and
menu-s then the default ones are not generated any
more. If I just put the page in the xdoc folder
without adding a site.xml the page will not be linked.


What is the solution? Can't seem to find any doc on
it.
thanks,
Attila

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: site customization

2006-10-13 Thread Attila Mezei-Horvati
Dohh.
Here is the solution, if other people are interested:

menu name=Development
  item name=Setup href=howto.html/
/menu
${modules}
${reports}

Here is a link to the help files: 
http://maven.apache.org/plugins/maven-site-plugin/howto.html

Now, if I would understand why the modules menu links
to my modules as index.html instead of
module_name/index.html or similar

Attila


--- Attila Mezei-Horvati [EMAIL PROTECTED] wrote:

 I am trying to add a custom page (about how to
 get/build the project) to the project site. 
 
 The site is generated by maven 2. 
 
 Unfortunately I can't figure it out how to add a
 couple of menu items so that maven keeps all the
 ones
 generated by default. If I specify my own site.xml
 and
 menu-s then the default ones are not generated any
 more. If I just put the page in the xdoc folder
 without adding a site.xml the page will not be
 linked.
 
 
 What is the solution? Can't seem to find any doc on
 it.
 thanks,
 Attila
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



plugin naming advice

2006-10-13 Thread pjungwir

Hello,

I'm writing a plugin for the launch4j tool. This tool wraps jar files in
windows executables so you don't have to deal with finding a jre, setting
your classpath, etc. The distribution is a little bit different depending on
whether you're running on linux, windows, solaris, or os x. I don't see any
way around distributing the plugin four different ways. I'll just include a
-linux- or -win32- or whatever in the name somewhere. So I'm wondering:
is one part of the name better than another? Should I make this part of the
groupId, the artifiactId, or the version? At first I thought the version was
the best way to go, but I'm worried about whether this will confuse maven's
efforts to get the latest version. Users should be able to say get me the
latest windows version or whatever. So I'm thinking the artifactId is the
best place. What do others think?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6802682
Sent from the Maven - Users mailing list archive at Nabble.com.


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



directory type artifact?

2006-10-13 Thread pjungwir

Hello again,

Is it possible to create an artifact that, once retrieved to your local
~/.m2 repository, automatically unarchives itself and becomes a little
directory there?

Thanks,
Paul

-- 
View this message in context: 
http://www.nabble.com/%22directory%22-type-artifact--tf2439632.html#a6802957
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: plugin naming advice

2006-10-13 Thread Dan Tran

i think there are works already done for launch4j plugin

http://jira.codehaus.org/browse/MOJO-176


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:



Hello,

I'm writing a plugin for the launch4j tool. This tool wraps jar files in
windows executables so you don't have to deal with finding a jre, setting
your classpath, etc. The distribution is a little bit different depending
on
whether you're running on linux, windows, solaris, or os x. I don't see
any
way around distributing the plugin four different ways. I'll just include
a
-linux- or -win32- or whatever in the name somewhere. So I'm
wondering:
is one part of the name better than another? Should I make this part of
the
groupId, the artifiactId, or the version? At first I thought the version
was
the best way to go, but I'm worried about whether this will confuse
maven's
efforts to get the latest version. Users should be able to say get me the
latest windows version or whatever. So I'm thinking the artifactId is the
best place. What do others think?

Thanks,
Paul

--
View this message in context:
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6802682
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: directory type artifact?

2006-10-13 Thread Dan Tran

no,

but you can get maven-dependency-plugin to unpack it somewhere for you.

-D


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:



Hello again,

Is it possible to create an artifact that, once retrieved to your local
~/.m2 repository, automatically unarchives itself and becomes a little
directory there?

Thanks,
Paul

--
View this message in context:
http://www.nabble.com/%22directory%22-type-artifact--tf2439632.html#a6802957
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: plugin naming advice

2006-10-13 Thread Dan Tran

sorry it is for maven1.

What the technical difficulty prevent you from having only 1 plugin to
handle all support platforms?

-D


On 10/13/06, Dan Tran [EMAIL PROTECTED] wrote:


i think there are works already done for launch4j plugin

http://jira.codehaus.org/browse/MOJO-176


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:


 Hello,

 I'm writing a plugin for the launch4j tool. This tool wraps jar files in
 windows executables so you don't have to deal with finding a jre,
 setting
 your classpath, etc. The distribution is a little bit different
 depending on
 whether you're running on linux, windows, solaris, or os x. I don't see
 any
 way around distributing the plugin four different ways. I'll just
 include a
 -linux- or -win32- or whatever in the name somewhere. So I'm
 wondering:
 is one part of the name better than another? Should I make this part of
 the
 groupId, the artifiactId, or the version? At first I thought the version
 was
 the best way to go, but I'm worried about whether this will confuse
 maven's
 efforts to get the latest version. Users should be able to say get me
 the
 latest windows version or whatever. So I'm thinking the artifactId is
 the
 best place. What do others think?

 Thanks,
 Paul

 --
 View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6802682

 Sent from the Maven - Users mailing list archive at 
Nabble.comhttp://nabble.com/
 .


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





Re: [M2] XSLT Plugin

2006-10-13 Thread Nate

 The changelog plugin is one of those. So when it moved from Codehaus
 Mojo to Maven, its name changed, and so did the version.

 The maven-changelog-plugin is the newest version.


That makes sense.  Thanks for the information.

-Nate


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



Re: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 sorry it is for maven1.
 
 What the technical difficulty prevent you from having only 1 plugin to
 handle all support platforms?
 

Thank you for pointing me to that other plugin! I just emailed the author. I
did search for such a thing before I started my work, but I didn't find it.
But since it's for maven 1 and an old version of launch4j, I think I will
continue working.

The reason I need four different distributions is because to build the exe
file, launch4j runs the windres and ld binaries. It includes these as part
of its distribution, and of course they are different for each platform.

If there are java tools that do the same thing, I suppose I could use those
instead, but I am not aware of them.

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6804049
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[M2] Changelog Plugin and CVS Tags

2006-10-13 Thread Nate
First of all, I'd like to say how impressed I've been with the speed of
responses for this list.  Thanks for all the help.

-

I’m using the 2.0-SNAPSHOT version of the maven-changelog-plugin, and I’m
trying to get a report of, “All changes after MyApp_0_7_rc1 that went into
making MyApp_0_7_rc2.”  I have the following configuration for the plugin.
 typetag/type
   tags
 tag implementation=java.lang.StringMyApp_0_7_rc1/tag
 tag implementation=java.lang.StringMyApp_0_7_rc2/tag
   /tags

Here is my file CVS tree of one of my files:
 UserDatabase.java
   1.1
   1.2 MyApp_0_7_rc1
   1.3
   1.4
   1.5--- MyApp_0_7_rc2
   1.6

When I look at the site generated change log page, I see only comments for
v1.3 and v1.4.  I would like to see the 1.5 comments because those change
went into the MyApp_0_7_rc2 release.

I see that “-r MyApp_0_7_rc1::MyApp_0_7_rc2” is by the plugin used.  I ran
a log with WinCVS and the generated log file also only contained versions
1.3 and 1.4.  The CVS documentation says the results of a log with the
double colon should list all change versions except for the MyApp_0_7_rc1
version.  When I modified the WinCVS command to only use one colon, I got
versions 1.2, 1.3, 1.4, 1.5; however, I obviously don’t want version 1.2
in my final results.

Am I doing something wrong here with ChangeLog configuration?  Is this a
CVS issue?

Thanks for the help,
-Nate


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



Re: plugin naming advice

2006-10-13 Thread Dan Tran

does the build need to stay on the supported platform to build the
executable?

-D


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:




dan tran wrote:

 sorry it is for maven1.

 What the technical difficulty prevent you from having only 1 plugin to
 handle all support platforms?


Thank you for pointing me to that other plugin! I just emailed the author.
I
did search for such a thing before I started my work, but I didn't find
it.
But since it's for maven 1 and an old version of launch4j, I think I will
continue working.

The reason I need four different distributions is because to build the exe
file, launch4j runs the windres and ld binaries. It includes these as part
of its distribution, and of course they are different for each platform.

If there are java tools that do the same thing, I suppose I could use
those
instead, but I am not aware of them.

--
View this message in context:
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6804049
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: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 does the build need to stay on the supported platform to build the
 executable?
 

I'm not exactly sure what you're asking. But if your project uses a solaris
launch4j plugin, then you checkout the project on mas os x, building the exe
will fail. I had envisioned people using all four and choosing one based on
the host system via profiles. But I suppose the plugin could include the
binaries from all four OSes and decide itself. . . . Actually, that's not
such a bad idea! Heh heh heh

Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6804237
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: plugin naming advice

2006-10-13 Thread Wayne Fay

This sounds best to me too.

Perhaps create 5 artifacts -- one for each of the 4 platforms, for
people who are strictly Windows shops etc; plus one with all platforms
bundled in it?

Wayne

On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:



dan tran wrote:

 does the build need to stay on the supported platform to build the
 executable?


I'm not exactly sure what you're asking. But if your project uses a solaris
launch4j plugin, then you checkout the project on mas os x, building the exe
will fail. I had envisioned people using all four and choosing one based on
the host system via profiles. But I suppose the plugin could include the
binaries from all four OSes and decide itself. . . . Actually, that's not
such a bad idea! Heh heh heh

Paul

--
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6804237
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: plugin naming advice

2006-10-13 Thread Dan Tran

I think this plugin is more like a assembly plugin with launch4j specifics.
am i wrong?


On 10/13/06, Wayne Fay [EMAIL PROTECTED] wrote:


This sounds best to me too.

Perhaps create 5 artifacts -- one for each of the 4 platforms, for
people who are strictly Windows shops etc; plus one with all platforms
bundled in it?

Wayne

On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:


 dan tran wrote:
 
  does the build need to stay on the supported platform to build the
  executable?
 

 I'm not exactly sure what you're asking. But if your project uses a
solaris
 launch4j plugin, then you checkout the project on mas os x, building the
exe
 will fail. I had envisioned people using all four and choosing one based
on
 the host system via profiles. But I suppose the plugin could include the
 binaries from all four OSes and decide itself. . . . Actually, that's
not
 such a bad idea! Heh heh heh

 Paul

 --
 View this message in context:
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6804237
 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: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?

2006-10-13 Thread Tim Moloney

Thank you for all of the suggestions.  :)


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



Re: [M2] Changelog Plugin and CVS Tags

2006-10-13 Thread Dan Tran

your snapshot 2.0-SNAPSHOT is very old.

may be we should bug *Dennis Lundberg *to remove them.

Try the just released one

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-changes-plugin/2.0-beta-2/


-D

On 10/13/06, Nate [EMAIL PROTECTED] wrote:


First of all, I'd like to say how impressed I've been with the speed of
responses for this list.  Thanks for all the help.

-

I'm using the 2.0-SNAPSHOT version of the maven-changelog-plugin, and I'm
trying to get a report of, All changes after MyApp_0_7_rc1 that went into
making MyApp_0_7_rc2.  I have the following configuration for the plugin.
typetag/type
  tags
tag implementation=java.lang.StringMyApp_0_7_rc1/tag
tag implementation=java.lang.StringMyApp_0_7_rc2/tag
  /tags

Here is my file CVS tree of one of my files:
UserDatabase.java
  1.1
  1.2 MyApp_0_7_rc1
  1.3
  1.4
  1.5--- MyApp_0_7_rc2
  1.6

When I look at the site generated change log page, I see only comments for
v1.3 and v1.4.  I would like to see the 1.5 comments because those change
went into the MyApp_0_7_rc2 release.

I see that -r MyApp_0_7_rc1::MyApp_0_7_rc2 is by the plugin used.  I ran
a log with WinCVS and the generated log file also only contained versions
1.3 and 1.4.  The CVS documentation says the results of a log with the
double colon should list all change versions except for the MyApp_0_7_rc1
version.  When I modified the WinCVS command to only use one colon, I got
versions 1.2, 1.3, 1.4, 1.5; however, I obviously don't want version 1.2
in my final results.

Am I doing something wrong here with ChangeLog configuration?  Is this a
CVS issue?

Thanks for the help,
-Nate


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




Re: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 I think this plugin is more like a assembly plugin with launch4j
 specifics.
 am i wrong?
 

I intend to use it in conjunction with the assembly plugin. I'll generate an
exe file to wrap my jar, then I'll use the assembly plugin to tar up my exe
along with docs, a lib directory for dependencies, etc.

But from reading this mailing list, I've gotten the impression that people
use the assembly plugin in all sorts of elaborate ways. I have a
single-module project, packaged as a jar, and as part of the packaging
phase, I toss that jar into a tarball along with everything else. Is that
normal? It sounds like a lot of people use a top-level pom-packaged module
that just runs the assembly plugin, and then a sub-module to create the jar.

I don't really want to recreate the assembly plugin. I just want to turn a
jar into an exe.

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805028
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: plugin naming advice

2006-10-13 Thread Dan Tran

My appology for poking somany questions ;-)  I think i now understand what
launch4j is for

I also interest on how to get one plugin and have it do it all.

How about make your launch4j plugin to pull down neccessary launch4j binary
bundles and use
it to produce your executable.  I wonder if the Maven folks would allow us
to upload binary bundles
to maven central

Btw, do you plan to donate it back to OS? ;-)


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:




dan tran wrote:

 I think this plugin is more like a assembly plugin with launch4j
 specifics.
 am i wrong?


I intend to use it in conjunction with the assembly plugin. I'll generate
an
exe file to wrap my jar, then I'll use the assembly plugin to tar up my
exe
along with docs, a lib directory for dependencies, etc.

But from reading this mailing list, I've gotten the impression that people
use the assembly plugin in all sorts of elaborate ways. I have a
single-module project, packaged as a jar, and as part of the packaging
phase, I toss that jar into a tarball along with everything else. Is that
normal? It sounds like a lot of people use a top-level pom-packaged module
that just runs the assembly plugin, and then a sub-module to create the
jar.

I don't really want to recreate the assembly plugin. I just want to turn a
jar into an exe.

--
View this message in context:
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805028
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: need all dependency at compile time

2006-10-13 Thread Brian E. Fox
If you want to copy the jars into a local folder as part of the build,
you can use the maven-dependencies-plugin:copy-dependencies to
accomplish this. 

-Original Message-
From: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 12:16 AM
To: users@maven.apache.org
Subject: need all dependency at compile time

hi all
  i want to collect all jar file at one place  from my
pom.xmldependency ,i write one plugin for that but in that plugin i am
unable to define the path of lib how i can achieve this ,i do not know

we are migrating our project from maven 1.x  to maven 2.0.4

we have done that work in maven 1.x by useing this task as one of the
preGoal and writing our logic in jelly but here in maven 2.x i am unable

please if any body have any content regarding this please send

i also refrence this

http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

but not got any properites regarding to my use Regards Neeraj



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



Re: plugin naming advice

2006-10-13 Thread pjungwir

Hi Dan,

Ask all the questions you like. :-)

Only grabbing the necessary binary bundle is a nice idea. I'll think about
that one. So that means the plugin would have a variable dependency based on
platform. I'm not sure how to do that, but it sounds fun to figure out.
Profiles? I need an excuse to try those out. Can a plugin declare profiles
so that one is chosen whenever the plugin is used?

I would like to license the plugin the same way that launch4j is licensed:
gpl for the tool itself; lgpl for everything linked to the executable it
produces. Since the plugin is hardly more than a repackaging of the launch4j
distro, that seems most appropriate.

Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805328
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: qalab.xml does not exist.

2006-10-13 Thread Mick Knutson

Is there something I am missing with:


  There are 3 Mojos provided for your use.
  1. BuildStatMergeMojo - Handles the merge of statistics into qalab.xml
  2. BuildStatChartMojo - Generates the QALab BuildStat chart
  3. BuildStatMoversMojo - Creates the mover XML file given the correct
  parameters. The movers report shows what has changed over the last x
  hours.


What is a Mojo and how is it called to build qalab.xml ?


On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:


[INFO] Generate Dependencies report.
[INFO] Generate Dependency Convergence report.
[INFO] Generate Mailing Lists report.
[INFO] Generate About report.
[INFO] Generate Project Summary report.
[INFO] Generate Project Team report.
[INFO] Generate Source Xref report.
[INFO] Generate QALab Main Report report.

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error during page generation

Embedded error: Error rendering Maven report:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
generation
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (
DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments (
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke (Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode (
Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
page generation
at org.apache.maven.plugins.site.SiteMojo.execute (SiteMojo.java
:97)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java :534)
... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
rendering Maven report: C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml
d
oes not exist.
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument (
ReportDocumentRenderer.java:71)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
DefaultSiteRenderer.java:115)
at org.apache.maven.plugins.site.SiteMojo.renderLocale(
SiteMojo.java:124)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java
:92)
... 18 more
Caused by: org.apache.maven.reporting.MavenReportException:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
at net.objectlab.qalab.m2.report.MainReport.validate(
MainReport.java:217)
at net.objectlab.qalab.m2.report.MainReport.executeReport(
MainReport.java:107)
at org.apache.maven.reporting.AbstractMavenReport.generate(
AbstractMavenReport.java:98)
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument (
ReportDocumentRenderer.java:67)
... 22 more
Caused by: java.io.FileNotFoundException:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
at net.objectlab.qalab.m2.util.Utils.checkFile (Utils.java:39)
at net.objectlab.qalab.m2.report.MainReport.validate(
MainReport.java:214)
... 25 more
[INFO]

[INFO] Total time: 19 seconds
[INFO] Finished at: Fri Oct 13 10:52:28 PDT 2006
[INFO] Final Memory: 22M/43M
[INFO]

Re: plugin naming advice

2006-10-13 Thread Dan Tran

You can borrow some code from maven-dependency-plugin to pull artifact
down on the fly.  I doubt you need a profile since you can poke around
with system property to find what OS you are on. You can even ask user
to pass luncher type at runtime

Licensing is a headache, since apache/codehaus folks are very nervous about
GPL :-). Oh please dont flame me.

-D


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:



Hi Dan,

Ask all the questions you like. :-)

Only grabbing the necessary binary bundle is a nice idea. I'll think about
that one. So that means the plugin would have a variable dependency based
on
platform. I'm not sure how to do that, but it sounds fun to figure out.
Profiles? I need an excuse to try those out. Can a plugin declare profiles
so that one is chosen whenever the plugin is used?

I would like to license the plugin the same way that launch4j is licensed:
gpl for the tool itself; lgpl for everything linked to the executable it
produces. Since the plugin is hardly more than a repackaging of the
launch4j
distro, that seems most appropriate.

Paul

--
View this message in context:
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805328
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: qalab.xml does not exist.

2006-10-13 Thread Dan Tran

isn't faster if you ask qalab folks directly?

On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:


Is there something I am missing with:


  There are 3 Mojos provided for your use.
  1. BuildStatMergeMojo - Handles the merge of statistics into qalab.xml
  2. BuildStatChartMojo - Generates the QALab BuildStat chart
  3. BuildStatMoversMojo - Creates the mover XML file given the correct
  parameters. The movers report shows what has changed over the last x
  hours.


What is a Mojo and how is it called to build qalab.xml ?


On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:

 [INFO] Generate Dependencies report.
 [INFO] Generate Dependency Convergence report.
 [INFO] Generate Mailing Lists report.
 [INFO] Generate About report.
 [INFO] Generate Project Summary report.
 [INFO] Generate Project Team report.
 [INFO] Generate Source Xref report.
 [INFO] Generate QALab Main Report report.

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error during page generation

 Embedded error: Error rendering Maven report:
 C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
 [INFO]
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error during
page
 generation
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (
 DefaultLifecycleExecutor.java:559)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:475)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:454)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
 (DefaultLifecycleExecutor.java:306)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:273)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:140)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
:322)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke (Method.java:585)
 at org.codehaus.classworlds.Launcher.launchEnhanced(
Launcher.java
 :315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at org.codehaus.classworlds.Launcher.mainWithExitCode (
 Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
 page generation
 at org.apache.maven.plugins.site.SiteMojo.execute (SiteMojo.java
 :97)
 at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:412)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java :534)
 ... 16 more
 Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
 rendering Maven report:
C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml
 d
 oes not exist.
 at
 org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument (
 ReportDocumentRenderer.java:71)
 at
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
 DefaultSiteRenderer.java:239)
 at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
 DefaultSiteRenderer.java:115)
 at org.apache.maven.plugins.site.SiteMojo.renderLocale(
 SiteMojo.java:124)
 at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java
 :92)
 ... 18 more
 Caused by: org.apache.maven.reporting.MavenReportException:
 C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
 at net.objectlab.qalab.m2.report.MainReport.validate(
 MainReport.java:217)
 at net.objectlab.qalab.m2.report.MainReport.executeReport(
 MainReport.java:107)
 at org.apache.maven.reporting.AbstractMavenReport.generate(
 AbstractMavenReport.java:98)
 at
 org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument (
 ReportDocumentRenderer.java:67)
 ... 22 more
 Caused by: java.io.FileNotFoundException:
 C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
 at net.objectlab.qalab.m2.util.Utils.checkFile (Utils.java:39)
 at net.objectlab.qalab.m2.report.MainReport.validate(
 MainReport.java:214)
 ... 25 more
 [INFO]
 

Re: qalab.xml does not exist.

2006-10-13 Thread Mick Knutson

Seems I am getting further, but still issues with QALab
I have all my artifacts in sub-modules. So I find that to allow this to work
correctly, I have to:


  1. Create a dependancyManagement plugin declaration for qalab.
  2. Add a plugin declaration into each module's pom.xml I want to run
  QALab for
  3. run mvn site so that my checkstyle-report.xml and pmd.xml exist
  4. run mvn install to compile my code again.

It seems that if I run mvn clean install -e I get an issue with the
checkstyle-report.xml and pmd.xml files not being found. So why must I have
these files present just to run an install?

here is my super pom.xml declaration:

   plugin
   groupIdnet.objectlab/groupId
   artifactIdmaven-qalab-plugin/artifactId
   version2.1/version
   !-- Checkstyle Merge --
   executions
   execution
   idcheckstyle-merge/id
   phaseverify/phase
   goals
   goalmerge/goal
   /goals
   configuration
   handler
net.objectlab.qalab.parser.CheckstyleStatMerge/handler
   inputFile${basedir}/target/checkstyle-
result.xml/inputFile
   /configuration
   /execution
   !-- findBugs Merge --
   !--execution
   idfindbugs-merge/id
   phaseverify/phase
   goals
   goalmerge/goal
   /goals
   configuration
   handler
net.objectlab.qalab.parser.FindBugsStatMerge/handler

inputFile${basedir}/target/site/findbugs.xml/inputFile
   /configuration
   /execution--
   !-- PMD Merge --
   execution
   idpmd-merge/id
   phaseverify/phase
   goals
   goalmerge/goal
   /goals
   configuration
   handler
net.objectlab.qalab.parser.PMDStatMerge/handler

inputFile${basedir}/target/site/pmd.xml/inputFile
   !--inputFile${project.build.directory
}/pmd/pmd.xml/inputFile--
   /configuration
   /execution
   !-- Additional executions --
   execution
   idqalab-movers/id
   phaseverify/phase
   goals
   goalmovers/goal
   /goals
   configuration

startTimeHoursOffset480/startTimeHoursOffset
   /configuration
   /execution
   execution
   idqalab-chart/id
   phaseverify/phase
   goals
   goalchart/goal
   /goals
   configuration
   summaryOnlyfalse/summaryOnly
   /configuration
   /execution
   /executions
   configuration
   !--typescheckstyle,findbugs,pmd/types--
   typescheckstyle,pmd/types
   /configuration
   /plugin



here is my comon/common-jar/pom.xml declaration:

build
   plugins

   plugin
   groupIdnet.objectlab/groupId
   artifactIdmaven-qalab-plugin/artifactId
   /plugin
.

reporting
   plugins

   plugin
   groupIdnet.objectlab/groupId
   artifactIdmaven-qalab-plugin/artifactId
   version2.1/version
   reportSets
   reportSet
   reports
   reportreport/report
   /reports
   /reportSet
   /reportSets
   /plugin
.





On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:


Is there something I am missing with:


   There are 3 Mojos provided for your use.
   1. BuildStatMergeMojo - Handles the merge of statistics into
   qalab.xml
   2. BuildStatChartMojo - Generates the QALab BuildStat chart
   3. BuildStatMoversMojo - Creates the mover XML file given the
   correct parameters. The movers report shows what has changed over the last
   x hours.


What is a Mojo and how is it called to build qalab.xml ?


On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:

 [INFO] Generate Dependencies report.
 [INFO] Generate Dependency Convergence report.
 [INFO] 

Re: qalab.xml does not exist.

2006-10-13 Thread Mick Knutson

Yes it would, if the question was specifically about the functionality of
qlab.
But my issue seems to be about how to implement qlab in Maven using multiple
modules.

There just seems to be some nuances with using certain plugins in a project
that realies heavily on modules like mine.




On 10/13/06, Dan Tran [EMAIL PROTECTED] wrote:


isn't faster if you ask qalab folks directly?

On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:

 Is there something I am missing with:


   There are 3 Mojos provided for your use.
   1. BuildStatMergeMojo - Handles the merge of statistics into qalab.xml
   2. BuildStatChartMojo - Generates the QALab BuildStat chart
   3. BuildStatMoversMojo - Creates the mover XML file given the correct
   parameters. The movers report shows what has changed over the last x
   hours.


 What is a Mojo and how is it called to build qalab.xml ?


 On 10/13/06, Mick Knutson [EMAIL PROTECTED] wrote:
 
  [INFO] Generate Dependencies report.
  [INFO] Generate Dependency Convergence report.
  [INFO] Generate Mailing Lists report.
  [INFO] Generate About report.
  [INFO] Generate Project Summary report.
  [INFO] Generate Project Team report.
  [INFO] Generate Source Xref report.
  [INFO] Generate QALab Main Report report.
 
  [INFO]
 

  [ERROR] BUILD ERROR
  [INFO]
 

  [INFO] Error during page generation
 
  Embedded error: Error rendering Maven report:
  C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
  [INFO]
 

  [INFO] Trace
  org.apache.maven.lifecycle.LifecycleExecutionException: Error during
 page
  generation
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (
  DefaultLifecycleExecutor.java:559)
  at
 

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
  (DefaultLifecycleExecutor.java:475)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
  DefaultLifecycleExecutor.java:454)
  at
 

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
  (DefaultLifecycleExecutor.java:306)
  at
 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
  DefaultLifecycleExecutor.java:273)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(
  DefaultLifecycleExecutor.java:140)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
 :322)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java
:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
  NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke (Method.java:585)
  at org.codehaus.classworlds.Launcher.launchEnhanced(
 Launcher.java
  :315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at org.codehaus.classworlds.Launcher.mainWithExitCode (
  Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Error
during
  page generation
  at org.apache.maven.plugins.site.SiteMojo.execute (
SiteMojo.java
  :97)
  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
  DefaultPluginManager.java:412)
  at
  org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
  DefaultLifecycleExecutor.java :534)
  ... 16 more
  Caused by: org.apache.maven.doxia.siterenderer.RendererException:
Error
  rendering Maven report:
 C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml
  d
  oes not exist.
  at
  org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument (
  ReportDocumentRenderer.java:71)
  at
  org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
  DefaultSiteRenderer.java:239)
  at
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(
  DefaultSiteRenderer.java:115)
  at org.apache.maven.plugins.site.SiteMojo.renderLocale(
  SiteMojo.java:124)
  at org.apache.maven.plugins.site.SiteMojo.execute(
SiteMojo.java
  :92)
  ... 18 more
  Caused by: org.apache.maven.reporting.MavenReportException:
  C:\viewstore\npi_tactical_dev\NPI_Provider\qalab.xml does not exist.
  at net.objectlab.qalab.m2.report.MainReport.validate(
  MainReport.java:217)
  at net.objectlab.qalab.m2.report.MainReport.executeReport(
  MainReport.java:107)
  at org.apache.maven.reporting.AbstractMavenReport.generate(
  AbstractMavenReport.java:98)
  at
  

Re: plugin naming advice

2006-10-13 Thread pjungwir

Ah, thanks, that sounds like a good pointer. I'll take a look at the
dependency plugin. I agree, querying java properties is the way to go.

I'm not religious about licenses. :-) If necessary, I can host the plugin
myself.

Paul

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805881
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: plugin naming advice

2006-10-13 Thread Dan Tran

You can ping list about their licence policy. But I am sure we allow to
load
GPL artifacts onto maven central.  We just never load a bundle before

I am sure love to see this plugin showing up at MOJO

-D


On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:



Ah, thanks, that sounds like a good pointer. I'll take a look at the
dependency plugin. I agree, querying java properties is the way to go.

I'm not religious about licenses. :-) If necessary, I can host the plugin
myself.

Paul

--
View this message in context:
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6805881
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: plugin naming advice

2006-10-13 Thread pjungwir


dan tran wrote:
 
 You can ping list about their licence policy. But I am sure we allow to
 load
 GPL artifacts onto maven central.  We just never load a bundle before
 

I don't understand--what is the difference between an artifact and a bundle?

-- 
View this message in context: 
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6806843
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: plugin naming advice

2006-10-13 Thread Dan Tran

sorry, they are  my own terms ;-)

examples of artifacts are jar, war, ear.

examples for bundles are
launch4j-2.1.5-linux.tgzhttp://prdownloads.sourceforge.net/launch4j/launch4j-2.1.5-linux.tgz?download
,
launch4j-2.1.5-win32.zip , etc

-D

On 10/13/06, pjungwir [EMAIL PROTECTED] wrote:




dan tran wrote:

 You can ping list about their licence policy. But I am sure we allow to
 load
 GPL artifacts onto maven central.  We just never load a bundle before


I don't understand--what is the difference between an artifact and a
bundle?

--
View this message in context:
http://www.nabble.com/plugin-naming-advice-tf2439526.html#a6806843
Sent from the Maven - Users mailing list archive at Nabble.com.


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