RE: [M2] Surefire

2005-11-14 Thread Mark Kuzmycz
I understand. It is unusual that
javax.xml.parsers.DocumentBuilderFactory is used and it leads to a class
cast exception. I would have expected that the DocumentBuilderFactory
would not have been available.

Regards,
Mark.

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 13, 2005 6:56 PM
To: Maven Users List
Subject: Re: [M2] Surefire

The classloader is isolated, so only the project dependencies are
included. There is an open jira issue to include the system classpath.

- Brett

On 11/13/05, Mark Kuzmycz <[EMAIL PROTECTED]> wrote:
> Before I posted the original item I tried xerces with no success. It 
> is as if the class realm is incomplete for surefire.
>
> Regards,
> Mark.
>
> -Original Message-
> From: Kenney Westerhof [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 12, 2005 11:43 AM
> To: Maven Users List
> Subject: Re: [M2] Surefire
>
> On Sat, 12 Nov 2005, Mark Kuzmycz wrote:
>
> Looks like spring is expecting a different SAXParser. Too bad the 
> exception doesn't show more. Maybe you need to include xerces as a 
> dependency?
>
> -- Kenney
>
> > I have a test that involves springs
> ContextSingletonBeanFactoryLocator.
> > The test runs successfully in eclipse but fails under maven.
> >
> > The error is:
> >
> > -
> >
> > Nov 12, 2005 11:05:30 AM
> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> > loadBeanDefinitions
> > INFO: Loading XML bean definitions from URL 
> > [file:/C:/m2Projects/audit-module/audit-processor/target/test-classe
> > s/
> > pr
> > ocessor/beanRefContext.xml]
> >
> >
> > [ stacktrace ]
> > ---
> >
> > java.lang.ClassCastException
> >  at
> > javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilder
> > Fa
> > ct
> > ory.java:139)
> >  at
> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBe
> > an
> > De
> > finitions(XmlBeanDefinitionReader.java:121)
> >  at
> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead
> > er
> > .l
> > oadBeanDefinitions(AbstractBeanDefinitionReader.java:83)
> >  at
> > org.springframework.context.support.AbstractXmlApplicationContext.lo
> > ad
> > Be
> > anDefinitions(AbstractXmlApplicationContext.java:101)
> >  at
> > org.springframework.context.support.AbstractXmlApplicationContext.lo
> > ad
> > Be
> > anDefinitions(AbstractXmlApplicationContext.java:69)
> >  at
> > org.springframework.context.support.AbstractRefreshableApplicationCo
> > nt
> > ex
> > t.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
> >  at
> > org.springframework.context.support.AbstractApplicationContext.refre
> > sh
> > (A
> > bstractApplicationContext.java:262)
> >  at
> > org.springframework.context.support.ClassPathXmlApplicationContext.<
> > in
> > it
> > >(ClassPathXmlApplicationContext.java:80)
> >  at
> > org.springframework.context.support.ClassPathXmlApplicationContext.<
> > in
> > it
> > >(ClassPathXmlApplicationContext.java:65)
> >  at
> > org.springframework.context.support.ClassPathXmlApplicationContext.<
> > in
> > it
> > >(ClassPathXmlApplicationContext.java:56)
> >  at
> >
org.springframework.context.access.ContextSingletonBeanFactoryLocator.
> > cr
> > eateDefinition(ContextSingletonBeanFactoryLocator.java:127)
> >  at
> > org.springframework.beans.factory.access.SingletonBeanFactoryLocator
> > .u
> > se
> > BeanFactory(SingletonBeanFactoryLocator.java:373)
> >  at
> > com.siebel.ss.modules.audit.AuditMessageBeanTest.testOnMessage001(Au
> > di
> > tM
> > essageBeanTest.java:198)
> >
> >
> >
> >   <http://www.siebel.com/> Reaping Business Rewards From CRM
> >
> > Dr Mark Kuzmycz
> > Principal Consultant  Siebel Systems One Apple Hill Drive Suite 301 
> > Natick, MA 01760 
> > <http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=Suite+301+&csz=Natic
> > k%
> > 2C
> > +MA+01760&country=us>
> > [EMAIL PROTECTED]   tel:
> > fax:  +1 508 652 8605
> > +1 508 652 8601
> >
> > Add me to your address book...
> > <https://www.plaxo.com/add_me?u=8590277905&v0=674863&k0=1340957876>
> > Want a signature like this? <http://www.plaxo.com/signature>
> >
> >
> > ___
> > Siebel
> &

RE: [M2] Surefire

2005-11-13 Thread Mark Kuzmycz
Before I posted the original item I tried xerces with no success. It is
as if the class realm is incomplete for surefire.

Regards,
Mark.

-Original Message-
From: Kenney Westerhof [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 12, 2005 11:43 AM
To: Maven Users List
Subject: Re: [M2] Surefire

On Sat, 12 Nov 2005, Mark Kuzmycz wrote:

Looks like spring is expecting a different SAXParser. Too bad the
exception doesn't show more. Maybe you need to include xerces as a
dependency?

-- Kenney

> I have a test that involves springs
ContextSingletonBeanFactoryLocator.
> The test runs successfully in eclipse but fails under maven.
>
> The error is:
>
> -
>
> Nov 12, 2005 11:05:30 AM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from URL 
> [file:/C:/m2Projects/audit-module/audit-processor/target/test-classes/
> pr
> ocessor/beanRefContext.xml]
>
>
> [ stacktrace ]
> ---
>
> java.lang.ClassCastException
>  at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFa
> ct
> ory.java:139)
>  at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBean
> De
> finitions(XmlBeanDefinitionReader.java:121)
>  at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader
> .l
> oadBeanDefinitions(AbstractBeanDefinitionReader.java:83)
>  at
> org.springframework.context.support.AbstractXmlApplicationContext.load
> Be
> anDefinitions(AbstractXmlApplicationContext.java:101)
>  at
> org.springframework.context.support.AbstractXmlApplicationContext.load
> Be
> anDefinitions(AbstractXmlApplicationContext.java:69)
>  at
> org.springframework.context.support.AbstractRefreshableApplicationCont
> ex
> t.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87)
>  at
> org.springframework.context.support.AbstractApplicationContext.refresh
> (A
> bstractApplicationContext.java:262)
>  at
> org.springframework.context.support.ClassPathXmlApplicationContext. it
> >(ClassPathXmlApplicationContext.java:80)
>  at
> org.springframework.context.support.ClassPathXmlApplicationContext. it
> >(ClassPathXmlApplicationContext.java:65)
>  at
> org.springframework.context.support.ClassPathXmlApplicationContext. it
> >(ClassPathXmlApplicationContext.java:56)
>  at
> org.springframework.context.access.ContextSingletonBeanFactoryLocator.
> cr
> eateDefinition(ContextSingletonBeanFactoryLocator.java:127)
>  at
> org.springframework.beans.factory.access.SingletonBeanFactoryLocator.u
> se
> BeanFactory(SingletonBeanFactoryLocator.java:373)
>  at
> com.siebel.ss.modules.audit.AuditMessageBeanTest.testOnMessage001(Audi
> tM
> essageBeanTest.java:198)
>
>
>
>   <http://www.siebel.com/> Reaping Business Rewards From CRM
>
> Dr Mark Kuzmycz
> Principal Consultant  Siebel Systems
> One Apple Hill Drive
> Suite 301
> Natick, MA 01760
> <http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=Suite+301+&csz=Natick%
> 2C
> +MA+01760&country=us>
> [EMAIL PROTECTED] tel:
> fax:  +1 508 652 8605
> +1 508 652 8601
>
> Add me to your address book...
> <https://www.plaxo.com/add_me?u=8590277905&v0=674863&k0=1340957876>
> Want a signature like this? <http://www.plaxo.com/signature>
>
>
> ___
> Siebel
> IT'S ALL ABOUT THE CUSTOMER
> Visit www.siebel.com
>
> This e-mail message is for the sole use of the intended recipient(s)
and contains confidential and/or privileged information belonging to
Siebel Systems, Inc. or its customers or partners. Any unauthorized
review, use, copying, disclosure or distribution of this message is
strictly prohibited. If you are not an intended recipient of this
message, please contact the sender by reply e-mail and destroy all soft
and hard copies of the message and any attachments. Thank you for your
cooperation.
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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





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



[M2] Surefire

2005-11-12 Thread Mark Kuzmycz



I have a test that 
involves springs ContextSingletonBeanFactoryLocator. The test runs 
successfully in eclipse but fails under maven.
 
The error 
is:
 
-
 
Nov 12, 2005 
11:05:30 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader 
loadBeanDefinitionsINFO: Loading XML bean definitions from URL 
[file:/C:/m2Projects/audit-module/audit-processor/target/test-classes/processor/beanRefContext.xml]
 
[ stacktrace ] 
---
 
java.lang.ClassCastException at 
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:139) at 
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:121) at 
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:83) at 
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:101) at 
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:69) at 
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:87) at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:262) at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:80) at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:65) at 
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:56) at 
org.springframework.context.access.ContextSingletonBeanFactoryLocator.createDefinition(ContextSingletonBeanFactoryLocator.java:127) at 
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:373) at 
com.siebel.ss.modules.audit.AuditMessageBeanTest.testOnMessage001(AuditMessageBeanTest.java:198) 
 
 



  
  

  


  

  
  

  


  
  Reaping Business Rewards From 
CRM

  

  


  Dr Mark KuzmyczPrincipal 
Consultant 
  Siebel SystemsOne Apple Hill Drive Suite 301 
Natick, MA 01760 

  [EMAIL PROTECTED] 
  

  
  
tel: fax: 

+1 508 652 8605+1 508 652 8601 
  
  
  

  


  Add me to your address book...
  Want a signature like 
  this?
 
___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.



RE: My own checkstyle properties

2005-11-04 Thread Mark Kuzmycz
The checkstyle plugin currently does not support custom formats. 

Several defects have been logged against this limitation.

http://jira.codehaus.org/browse/MNG-1113
http://jira.codehaus.org/browse/MNG-587

Regards,
Mark.

-Original Message-
From: Duane Homick [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 04, 2005 11:57 AM
To: Maven Users List
Subject: My own checkstyle properties

I cant seem to figure out how to have the checkstyle plugin allow me to
use my own checkstyle.xml file (instead of sun's checks).  What's the
magic I need here?

my checkstyle.xml file:


http://www.puppycrawl.com/dtds/configuration_1_2.dtd";>





...



In my pom.xml:


org.apache.maven.plugins
maven-checkstyle-plugin

 
../../checkstyle.xml



Thanks
Duane

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




___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and 
contains confidential and/or privileged information belonging to Siebel 
Systems, Inc. or its customers or partners. Any unauthorized review, use, 
copying, disclosure or distribution of this message is strictly prohibited. If 
you are not an intended recipient of this message, please contact the sender by 
reply e-mail and destroy all soft and hard copies of the message and any 
attachments. Thank you for your cooperation.


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



RE: [M2] checkstyle

2005-10-24 Thread Mark Kuzmycz
er-api:jar:1.0-alpha-5 (selec
ted for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected
for runti
me)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profil
e:jar:2.0
[DEBUG]   org.apache.maven:maven-profile:jar:2.0 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime
)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (se
lected for runtime)
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-report
ing-api:jar:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven.
reporting:maven-reporting:pom:2.0
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0
(selected for
 runtime)
[DEBUG]   doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for
runtime)
[DEBUG] commons-validator:commons-validator:jar:1.1.4 (selected for
runtime)
 
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for
runtime)
[DEBUG] oro:oro:jar:2.0.7 (selected for runtime)
[DEBUG] doxia:doxia-core:jar:1.0-alpha-4 (selected for runtime)
[DEBUG]   doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for
runtime)
[DEBUG]   oro:oro:jar:2.0.7 (selected for runtime)
[DEBUG]   antlr:antlr:jar:2.7.2 (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-checkstyle-plugin:2.0-b
eta-1:checkstyle' -->
[DEBUG]   (f) cacheFile =
C:\m2Projects\configuration-module\app-config\target/c
heckstyle-cachefile
[DEBUG]   (f) failsOnError = true
[DEBUG]   (f) format = sun
[DEBUG]   (f) headerFile =
C:\m2Projects\configuration-module\app-config\LICENSE
.txt
[DEBUG]   (f) includes = **/*.java
[DEBUG]   (f) outputDirectory =
C:\m2Projects\configuration-module\app-config\ta
rget\site
[DEBUG]   (f) outputFile =
C:\m2Projects\configuration-module\app-config\target/
checkstyle-result.txt
[DEBUG]   (f) outputFileFormat = plain
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) propertiesFile =
C:\m2Projects\configuration-module\app-config\src
\config\siebel_check.xml
[DEBUG]   (f) sourceDirectory =
C:\m2Projects\configuration-module\app-config\sr
c\main\java
[DEBUG] -- end configuration --
[INFO] [checkstyle:checkstyle]

  _  

From: David Sag [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 24, 2005 3:45 AM
To: Maven Users List
Subject: Re: [M2] checkstyle



Here's an extract from my pom.xml where i apply different checkstyle
rules to my main src and my test code. 

 
 
 
org.apache.maven.plugins 
maven-checkstyle-plugin 
 
 
check-main-src 
compile 

 
checkstyle-src.xml 
true 
 
 
checkstyle 
  
  
 
check-test-src 
test-compile 

 
checkstyle-test.xml 
true 
src/test 
 
 
checkstyle 
  
  
  
 
 


however, as this jira issue (and my own experience) makes plain, right
now the propertiesFile is ignored so you'll have to put up with the
default for a while until they fix this, or apply the patch yourself. 
http://jira.codehaus.org/browse/MNG-1113 

Kind regards,
Dave Sag 




  

"Mark Kuzmycz" <[EMAIL PROTECTED]> wrote on 22/10/2005 07:24:03
PM:

> How do I specify a customized checkstyle format. The source code for
the
> checkstyle report suggests that it only knows about sun, turbine and
> avalon.
>  
> Regards,
> Mark.
> 
> ___
> Siebel
> IT'S ALL ABOUT THE CUSTOMER
> Visit www.siebel.com
> 
> This e-mail message is for the sole use of the intended recipient(s)
> and contains confidential and/or privileged information belonging to
> Siebel Systems, Inc. or its customers or partners. Any unauthorized 
> review, use, copying, disclosure or distribution of this message is 
> strictly prohibited. If you are not an intended recipient of this 
> message, please contact the sender by reply e-mail and destroy all 
> soft and hard copies of the message and any attachments. Thank you 
> for your cooperation.



[M2] checkstyle

2005-10-22 Thread Mark Kuzmycz
How do I specify a customized checkstyle format. The source code for the
checkstyle report suggests that it only knows about sun, turbine and
avalon.
 
Regards,
Mark.

___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and 
contains confidential and/or privileged information belonging to Siebel 
Systems, Inc. or its customers or partners. Any unauthorized review, use, 
copying, disclosure or distribution of this message is strictly prohibited. If 
you are not an intended recipient of this message, please contact the sender by 
reply e-mail and destroy all soft and hard copies of the message and any 
attachments. Thank you for your cooperation.


RE: [m2] Controlling Bloat

2005-10-21 Thread Mark Kuzmycz
I noticed that comoons-logging-1.0.4 was using  instead of
true. As a result optional dependencies were being
loaded.

I see the use of optional and the excludes list being helpful; however,
it is a very time consuming process to track down optional dependencies
if needed (hence the purpose of transitive dependencies). Is there any
plan (in the future) so that maven could work out which optional
dependencies are required.

A thought:

What I have noticed is that there are many modules that have optional
dependencies. They are optional because they have functionality or
features (within the module) that need them. I was wondering if the POM
could list all of the features that the project has and dependencies
associated with them. 

E.g.


feature-a

...



If a dependenciy is not associated with a feature then it is considered
required for the entire module irrespective of the feature.

>From a project's perspective it would list the dependencies and
stipulate which feature(s) it used. 

E.g.


x

feature-a
feature-b
...

  
...


If no feature was specified then it is assumed that all features are
used and that all dependencies are required and should be included. Any
thoughts?

I suspect the management of this might be a little challenging ;) .

Regards,
Mark.

-Original Message-
From: Stephen Duncan [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 21, 2005 8:27 AM
To: Maven Users List
Subject: Re: [m2] Controlling Bloat

Yes.  First, you can specify exclusions to exclude certain transitive
dependencies from being used.  For instance, I depend on
spring-hibernate, but I only use the net.sf.hibernate (hibernate 2)
features, so I don't need Hibernate 3 stuff:


springframework
spring-hibernate
1.2.5
compile


org.hibernate
hibernate-annotations


org.hibernate
artifactId>hibernate




Secondly, the project you depend on could make some of their
dependencies optional so that you don't have to manually exclude them.
 As time goes by, more of the pom's in the central repository will get
true set on the correct dependencies.

-Stephen


On 10/21/05, Mark Kuzmycz <[EMAIL PROTECTED]> wrote:
> Transitive dependencies are very useful as it enable you to specify 
> the direct dependencies for the project and maven handles the 
> dependencies of the dependencies and so on. However, if the product of

> a project is a war or ear then this can lead to an increased artifact 
> size due to the transient dependencies.
>
> For example, if you include jelly or dom4j as a dependency the both of

> these have a number of dependencies that are optional. That is, they 
> are only required if you are using certain functionality (or in the 
> case of jelly tags). This can lead to the inclusion of dependencies 
> that are not needed by the project.
>
> My question is, how do I control the transient dependencies so that 
> the dependencies that are not required the project are not added to 
> the war or ear file? Is there a better way than specifying all of the 
> dependencies and marking their scope as test?
>
> Regards,
> Mark.
>
>
> ___
> Siebel
> IT'S ALL ABOUT THE CUSTOMER
> Visit www.siebel.com
>
> This e-mail message is for the sole use of the intended recipient(s)
and contains confidential and/or privileged information belonging to
Siebel Systems, Inc. or its customers or partners. Any unauthorized
review, use, copying, disclosure or distribution of this message is
strictly prohibited. If you are not an intended recipient of this
message, please contact the sender by reply e-mail and destroy all soft
and hard copies of the message and any attachments. Thank you for your
cooperation.
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.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]



[m2] Controlling Bloat

2005-10-21 Thread Mark Kuzmycz
Transitive dependencies are very useful as it enable you to specify the
direct dependencies for the project and maven handles the dependencies
of the dependencies and so on. However, if the product of a project is a
war or ear then this can lead to an increased artifact size due to the
transient dependencies. 
 
For example, if you include jelly or dom4j as a dependency the both of
these have a number of dependencies that are optional. That is, they are
only required if you are using certain functionality (or in the case of
jelly tags). This can lead to the inclusion of dependencies that are not
needed by the project.
 
My question is, how do I control the transient dependencies so that the
dependencies that are not required the project are not added to the war
or ear file? Is there a better way than specifying all of the
dependencies and marking their scope as test?
 
Regards,
Mark.
 

___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and 
contains confidential and/or privileged information belonging to Siebel 
Systems, Inc. or its customers or partners. Any unauthorized review, use, 
copying, disclosure or distribution of this message is strictly prohibited. If 
you are not an intended recipient of this message, please contact the sender by 
reply e-mail and destroy all soft and hard copies of the message and any 
attachments. Thank you for your cooperation.


RE: [m2]versioning

2005-10-18 Thread Mark Kuzmycz
All you would need to do is version the pom.xml in source control. There
is no need to create a different pom.xml for each version. Just follow
your usual process: make changes and label the release (including the
pom). Reproducing a release for a previous version should be straight
forward.

I don't think there is a need to support versioned poms within maven.

Regards,
Mark.

-Original Message-
From: Xavier Toth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 18, 2005 9:00 AM
To: Maven Users List
Subject: [m2]versioning

To have repeatable builds I want to be able to build specific scm tagged
versions and have dependency lists that match the given version. This
seems like it would be a very common use case, how are others solving
this problem with m2? Can you have multiple dependency lists? I don't
think so. A different pom.xml per version? That doesn't sound very good.


___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and 
contains confidential and/or privileged information belonging to Siebel 
Systems, Inc. or its customers or partners. Any unauthorized review, use, 
copying, disclosure or distribution of this message is strictly prohibited. If 
you are not an intended recipient of this message, please contact the sender by 
reply e-mail and destroy all soft and hard copies of the message and any 
attachments. Thank you for your cooperation.


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



RE: [m2] NoSuchMethodError exception when executing site:site

2005-10-17 Thread Mark Kuzmycz
Brett Porter had this to say about the error

"There was a required update to the reporting API. Compatible plugins
will be republished in the near future. If you are able to rebuild the
plugin from SVN that should work as is."

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David H.
DeWolf
Sent: Monday, October 17, 2005 8:19 AM
To: Maven Users List
Subject: Re: [m2] NoSuchMethodError exception when executing site:site

Zheng,

I got the same thing over the weekend and found that Maven was
downloading the most recent plugins but I didn't have the most recent
dist to go with them. To get things working (at least partway), I
cleared out my maven plugings from the repo and installed M2 RC.

This got me further, but I still had an issue. . .if I remember, it had
something to do with trying to generate a site from a project without
any source. If I create a main/java dir or generate the site from a
project which contains source, it execs fine.

David


On 10/17/05, Zhong ZHENG <[EMAIL PROTECTED]> wrote:
>
> Hi, there,
>
> I am trying to use m2 to generate the project site. When executing 
> site:site, i got the following NoSuchMethodError exception:
>
> [INFO] Searching repository for plugin with prefix: 'site'.
> [INFO]
>
> --
> -- [INFO] Building Apache Pluto Site Chinese Translation [INFO] 
> task-segment: [site:site] [INFO]
>
> --
> -- [INFO] Setting property: classpath.resource.loader.class => '
> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] **
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File:
> org\apache\velocity\runtime\defaults\velocity.properties
> [INFO] Default ResourceManager initializing. (class
> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated:
> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class
> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template :
> VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource
'VM_global_library.vm'
> in
> any resource loader.
> [INFO] Velocimacro : error using VM library template 
> VM_global_library.vm
> :
> org.apache.velocity.exception.ResourceNotFoundException: Unable to 
> find resource 'VM_global_library.vm'
> [INFO] Velocimacro : VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in

> templates [INFO] Velocimacro : allowInlineToOverride = false : VMs 
> defined inline may NOT replace previous VM definitions [INFO] 
> Velocimacro : allowInlineLocal = false : VMs defined inline will be 
> global in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] [site:site]
> ---
> constituent[0]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> core-2.0-beta-3.jar
> constituent[1]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> artifact-manager-2.0-beta-3.jar
> constituent[2]: file:/D:/javasoft/maven-2.0-beta-3/lib/plexus-
> input-handler-1.0-alpha-2.jar
> constituent[3]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> plugin-api-2.0-beta-3.jar
> constituent[4]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> plugin-descriptor-2.0-beta-3.jar
> constituent[5]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> artifact-2.0-beta-3.jar
> constituent[6]: 
> file:/D:/javasoft/maven-2.0-beta-3/lib/commons-cli-1.0.jar
> constituent[7]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> model-2.0-beta-3.jar
> constituent[8]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> settings-2.0-beta-3.jar
> constituent[9]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
> repository-metadata-2.0-beta-3.jar
> constituent[10]: 
> file:/D:/javasoft/maven-2.0-beta-3/lib/jsch-

[M2] Clover Report plugin

2005-10-16 Thread Mark Kuzmycz
I am currently testing M2 RC and I get the following error. The error is
linked to the clover report plugin. Is there a configuration problem or
is this a defect with the plugin?
 
Regards,
Mark.
 
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] siebel-ss-modules:app-config:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   j2ee:j2ee:jar:1.3.1 (selected for compile)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG]   clover:clover:jar:1.3.9 (selected for compile)
[DEBUG]   springframework:spring:jar:1.1.4 (selected for compile)
[DEBUG]   commons-logging:commons-logging:jar:1.0.4 (selected for
compile)
[DEBUG] logkit:logkit:jar:1.0.1 (selected for compile)
[DEBUG] avalon-framework:avalon-framework:jar:4.1.3 (selected for
compile)
[DEBUG] log4j:log4j:jar:1.2.6 (selected for compile)
[DEBUG]   hibernate:hibernate:jar:2.1.8 (selected for compile)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0:tes
tCompile' -->
[DEBUG]   (f) basedir = C:\m2Projects\configuration-module\app-config
[DEBUG]   (f) buildDirectory =
C:\m2Projects\configuration-module\app-config\tar
get\clover
[DEBUG]   (f) classpathElements =
[C:\m2Projects\configuration-module\app-config
\target\clover\classes, C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\j
2ee\j2ee\1.3.1\j2ee-1.3.1.jar, C:\Documents and
Settings\mkuzmycz.CORP\.m2\repos
itory\junit\junit\3.8.1\junit-3.8.1.jar, C:\Documents and
Settings\mkuzmycz.CORP
\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework
-4.1.3.j
ar, C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\clover\clover\1.3.9\c
lover-1.3.9.jar, C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\springfr
amework\spring\1.1.4\spring-1.1.4.jar, C:\Documents and
Settings\mkuzmycz.CORP\.
m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.
4.jar, C
:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\log4j\log4j\1.2.6\log4j-1.
2.6.jar, C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\hibernate\hibern
ate\2.1.8\hibernate-2.1.8.jar, C:\Documents and
Settings\mkuzmycz.CORP\.m2\repos
itory\logkit\logkit\1.0.1\logkit-1.0.1.jar]
[DEBUG]   (f) compileSourceRoots =
[C:\m2Projects\configuration-module\app-confi
g\src\test\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
C:\m2Projects\configuration-module\app-config\ta
rget\clover\test-classes
[DEBUG]   (f) outputFileName = app-config-1.0-SNAPSHOT
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:testCompile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[C:\m2Projects\configuration-module\app-config\src\t
est\java]
[DEBUG] Classpath:
[C:\m2Projects\configuration-module\app-config\target\clover\
classes
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\j2ee\j2ee\1.3.1\j2ee-1.3
.1.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\junit\junit\3.8.1\junit-
3.8.1.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\avalon-framework\avalon-
framework\4.1.3\avalon-framework-4.1.3.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\clover\clover\1.3.9\clov
er-1.3.9.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\springframework\spring\1
.1.4\spring-1.1.4.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\commons-logging\commons-
logging\1.0.4\commons-logging-1.0.4.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\log4j\log4j\1.2.6\log4j-
1.2.6.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\hibernate\hibernate\2.1.
8\hibernate-2.1.8.jar
 C:\Documents and
Settings\mkuzmycz.CORP\.m2\repository\logkit\logkit\1.0.1\logk
it-1.0.1.jar]
[DEBUG] Output directory:
C:\m2Projects\configuration-module\app-config\target\c
lover\test-classes
[INFO] Nothing to compile - all classes are up to date
[DEBUG] siebel-ss-modules:app-config:jar:1.0-SNAPSHOT (selected for
null)
[DEBUG]   j2ee:j2ee:jar:1.3.1 (selected for compile)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG]   clover:clover:jar:1.3.9 (selected for compile)
[DEBUG]   springframework:spring:jar:1.1.4 (selected for compile)
[DEBUG]   commons-logging:commons-logging:jar:1.0.4 (selected for
compile)
[DEBUG] logkit:logkit:jar:1.0.1 (selected for compile)
[DEBUG] avalon-framework:avalon-framework:jar:4.1.3 (selected for
compile)
[DEBUG] log4j:log4j:jar:1.2.6 (selected for compile)
[DEBUG]   hibernate:hibernate:jar:2.1.8 (selected for compile)
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.0-beta-1 (
selected for runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:surefire:jar
:1.3
[DEBUG]   surefire:surefire:jar:1.3 (selected for runtime)
[DEBUG] junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM

RE: [m2] site plugin

2005-10-05 Thread Mark Kuzmycz
S orry about that I accident sent the message out early: 

I have the following layout
 
src
  |- site
   |-xdoc
   |   |-folder1
   |   |-folder2
   |-resources
   |-images
   |-logo.gif
 
In site.xml I have the dollowing XML fragment
 
 
images/logo.gif 
  

when I run the site plugin the imige shows for the xml documents in the
xdoc folder but not in folder1 or folder2

Is there a way to specify the image (without using an absolute url) so
that it shows in documents defined in xdoc, folder1 and folder2?

Thanks,

Mark.

 

___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and 
contains confidential and/or privileged information belonging to Siebel 
Systems, Inc. or its customers or partners. Any unauthorized review, use, 
copying, disclosure or distribution of this message is strictly prohibited. If 
you are not an intended recipient of this message, please contact the sender by 
reply e-mail and destroy all soft and hard copies of the message and any 
attachments. Thank you for your cooperation.


[m2] site plugin

2005-10-05 Thread Mark Kuzmycz



I have the following 
layout
 
src
  |- 
site
   
|-xdoc
   |   
|-folder1
   |   
|-folder2
   
|-resources
   
|-images
   
|-logo.gif
 
In site.xml I have 
the dollowing XML fragment
 

images/logo.gif

 



  
  

  


  

  
  

  


  
  Reaping Business Rewards From 
CRM

  

  


  Dr Mark KuzmyczPrincipal 
Consultant 
  Siebel SystemsOne Apple Hill Drive Suite 301 
Natick, MA 01760 

  [EMAIL PROTECTED] 
  

  
  
tel: fax: 

+1 508 652 8605+1 508 652 8601 
  
  
  

  


  Add me to your address book...
  Want a signature like 
  this?
 
___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.



Re: [m2] Multiproject site generation

2005-10-02 Thread Mark Kuzmycz
This is a releated question. I have multiple levels of nested projects
and the site goal is traversing the structure well. What I would like is
for each parent in the site structure to contain a list of its
sub-projects for navigation (similar to maven 1.x).
 
Regards,
Mark.

___
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com

This e-mail message is for the sole use of the intended recipient(s) and 
contains confidential and/or privileged information belonging to Siebel 
Systems, Inc. or its customers or partners. Any unauthorized review, use, 
copying, disclosure or distribution of this message is strictly prohibited. If 
you are not an intended recipient of this message, please contact the sender by 
reply e-mail and destroy all soft and hard copies of the message and any 
attachments. Thank you for your cooperation.