Re: [ANN] StatSVN 0.2.0 released as well as a Maven 2 plugin for it.

2006-11-30 Thread Thierry Barnier

I'm having hard times too...


with mvn -x site
[DEBUG] stat-scm: resolved to version 1.0-20061130.191424-10 from local
repository
[DEBUG] net.sf:stat-scm:maven-plugin:1.0-20061130.191424-10:runtime(selected
for runtime)
[DEBUG]   net.sf:stat-svn:jar:0.2.0:runtime (selected for runtime)
[DEBUG] net.sf:stat-cvs:jar:0.2.4:runtime (selected for runtime)
[DEBUG] jfree:jfreechart:jar:1.0.0:runtime (selected for runtime)
[DEBUG]   jfree:jcommon:jar:1.0.0:runtime (selected for runtime)
[DEBUG] junit:junit:jar:3.8:runtime (selected for runtime)
[DEBUG]   junit:junit:jar:3.8:runtime (selected for runtime)
[DEBUG] ant:ant:jar:1.6.5:runtime (selected for runtime)


[INFO] Generate StatSCM report.
[INFO] StatSCM Generating Source Code Management  Metrics.
[INFO] Configuring StatXXX
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
   at net.sf.statcvs.output.ViewCvsIntegration.init(
ViewCvsIntegration.java:47)
   at net.sf.statcvs.output.ViewVcIntegration.init(
ViewVcIntegration.java:41)
   at net.sf.statcvs.output.ConfigurationOptions.setViewVcURL(
ConfigurationOptions.java:265)
   at net.sf.statscm.StatConf.configure(StatConf.java:82)
   at net.sf.statscm.StatScmMojo.executeReport(StatScmMojo.java:86)
   at org.apache.maven.reporting.AbstractMavenReport.generate(
AbstractMavenReport.java:101)
   at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(
ReportDocumentRenderer.java:67)
   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)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:417)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
   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:327)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:120)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:263)
   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)



Thierry






Re: excluding unit tests

2006-08-18 Thread Thierry Barnier

Have you tried

mvn package -Dmaven.test.skip=true

or defining the property inside your pom:

build
plugins
plugin
artifactIdmaven-surefire-plugin/artifactId
configuration
skiptrue/skip
/configuration
/plugin


Thierry

Le 18 août 06 à 08:01, franz see a écrit :





Satish wrote:



How can you do this explicitly, currently by default, package/install
goals call these.

i have the following snippet in my pom.xml and it's giving errors

build
excludes
   exclude
  **/*Test*.java
  /exclude
/excludes
  /build




Good day to you, Satish,

You can configure your maven-surefire-plugin to specify which tests to
include/exclude. For example, to exclude all MyFailingTest.java,  
you can add

the following to your pom:

project
  [...]
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
  excludes
exclude**/MyFailingTest.java/exclude
  /excludes
/configuration
  /plugin
/plugins
  /build
  [...]
/project

Cheers,
Franz
--
View this message in context: http://www.nabble.com/excluding-unit- 
tests-tf2124320.html#a5860804

Sent from the Maven - Users forum 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: Adding hibernate generated resources to JAR?

2006-08-15 Thread Thierry Barnier

Dear Sean,

Would generating these HIBERNATE XDOCLET into src/main/ressources  
would be an option?


Worked perfect for me.


Thierry


Le 20 juin 06 à 19:55, Sean McNamara a écrit :

Thanks Mike.  I didn't realize we were setting the output path for  
the generated hibernate files since /target/resources seemed like  
it could be a reasonable default.


Changed that to create them in /target/classes, and the jar looks  
good.


Does that mean there isn't a standard area for generated resources  
under /target, and that generated files should always be created in  
the classes dir?


Thanks again.

- Original Message 
From: Mike Perham [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, June 20, 2006 12:36:58 PM
Subject: RE: Adding hibernate generated resources to JAR?

We just output to target/classes:

build
  plugins
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdxdoclet-maven-plugin/artifactId
  executions
execution
  phasetest-compile/phase
  goals
goalxdoclet/goal
  /goals
  configuration
tasks
  hibernatedoclet
destdir=${project.build.outputDirectory}
excludedtags=@version,@author,@todo,@see,@desc verbose=true
  fileset
dir=${project.build.sourceDirectory}
  include name=**/domain/*.java /
/fileset
hibernate version=3.0
destdir=${project.build.outputDirectory} /
  /hibernatedoclet
/tasks
  /configuration
/execution
  /executions
/plugin
  /plugins
  /build


-Original Message-
From: Sean McNamara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 11:54 AM
To: users@maven.apache.org
Subject: Adding hibernate generated resources to JAR?

Can someone point me in the right direction here:

I'm building  a jar that makes use of hibernate.  The
hibernate class descriptors are created in /target/resources,
but are not included in the jar.

I'm guessing I need to add a configuration for the
maven-resources-plugin to add /target/resources as a resource
patch, but I'm not finding the docs for that plugin (they
appear to be empty on the maven plugins doc site.)

Any tips appreciated.





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




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





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




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



Re: eclipse plugin archetype?

2006-07-25 Thread Thierry Barnier

have you tried mvn eclipse:eclipse ?

Thierry

2006/7/26, Valerio Schiavoni [EMAIL PROTECTED]:


hello everyone,

i was wondering if there's an eclipse plugin archetype...

any idea ?

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




Re: New user

2006-07-11 Thread Thierry Barnier

Hi Mayank,

as you put your jar files as dependencies, you should install them in your
local repository, using the maven install-file command...

More on this on:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


Cheers

Thierry

2006/7/11, Mayank Gupta [EMAIL PROTECTED]:


Hi All,



I am a new user and I am facing difficulty in understanding a basic maven
concept. My source code need some jar files in the classpath (here which
may
be referred as a dependency). I add those in the dependency list of my
pom.xml. But where I need to store those jar files so that at the time of
compilation those jar files are picked?



With Regards,

Mayank





Re: [m2] How to include a file in a WAR file's /META-INF folder?

2006-06-07 Thread Thierry Barnier

I put my jars in WEB-INF/lib

Adding the following section to my POM file

 build
   plugins
 plugin
   artifactIdmaven-war-plugin/artifactId
   configuration
 archive
   manifest
 addClasspathtrue/addClasspath
 classpathPrefix./lib/classpathPrefix
   /manifest
 /archive
   /configuration
 /plugin
   /plugins
 /build

Regards

Thierry

2006/6/7, Mark Reynolds [EMAIL PROTECTED]:


If I include a file (not talking about MANIFEST.MF here) in
src/main/resources/META-INF, it ends up in WEB-INF/classes/META-INF in
the WAR file. What is the correct way to include a file in the WAR
file's META-INF?

-- Mark R


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




Re: package classes of a WAR as jar with war-plugin

2006-06-06 Thread Thierry Barnier

You should define a multi-module POM project

1 master pom, packaged as POM, demending on the JAR module and the WAR
modules

project
.
packagingpom/packaging
...
   modules
   modulejar/module
   modulewar/module
   /modules
...
/project

Then in you JAR directory, POM should look like this

project
   groupId/groupId
   artifactIdYYY/artifactId
   packagingjar/packaging
..
   parent
   groupIdhere comes your master-pom-reference/groupId
   artifactIdQQ/artifactId
   version/version
   /parent
.
.
.
/project


Then, crucial step  is to build the WAR file with the JAR included
Please note the Dependency section to include the JAR

project
 parent
   artifactIdMaster pom/artifactId
   groupIdmaster pom/groupId
   versionmaster pom/version
 /parent
 groupIdmy WAR/groupId
 artifactIdmy WAR/artifactId
 packagingwar/packaging

 build
   plugins
 plugin
   artifactIdmaven-war-plugin/artifactId
   configuration
 archive
   manifest
 addClasspathtrue/addClasspath
 classpathPrefix.//classpathPrefix
   /manifest
 /archive
   /configuration
 /plugin
   /plugins
 /build
 dependencies
   dependency
 groupIdHere comes my JAR/groupId
 artifactIdHere comes my JAR/artifactId
 versionHere comes my JAR/version
   /dependency
 /dependencies
/project


I hope this will help


Thierry



2006/6/6, Martin Goldhahn [EMAIL PROTECTED]:


Hi!
The maven-plugin copies the classes of a project to WEN-INF\classes. Is
there a way to tell the plugin to rather package the class files in a
jar and then put them in the WEB-INF\lib folder.

The background for this is: I have another project that uses the WAR as
a dependency. All jar files are included in this project but not the
class files, which are the ones I'm really interested in.

Martin

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




Re: Configuration of maven-war-plugin

2006-06-01 Thread Thierry Barnier

Hi ,

The plugin documentation is now generated in a different way.

from page http://maven.apache.org/plugins/maven-war-plugin/index.html

Click on Project reports on the bottom left side, then on Plugin
documentation

Or directly go to
http://maven.apache.org/plugins/maven-war-plugin/plugin-info.html


Cheers

Thierry

2006/6/1, Edwin Punzalan [EMAIL PROTECTED]:



The docs should be here:
http://maven.apache.org/plugins/maven-war-plugin/index.html

I don't know what happened to the web page, but i think you can download
the source and do mvn site:site and you'll get the plugin html pages.


Michael Bauschert wrote:
 Hi all,

 can anybody tell me if the usage of the maven-war-plugin configuration
 tags has been documented?

 Currently i am only aware of the warSourceDirectory-Element. But i think
 there must be others for libs, classes dir etc.

   plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 warSourceDirectorysri2/warSourceDirectory
 /configuration
   /plugin




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




ear:generate-application-xml : ability to disable the context-root of a web module

2006-06-01 Thread Thierry Barnier

Hi,

I'm developping some  portlets, and bundling them into an EAR module.
I use a multi module POM architecture

the ear:generate-application-xml goal generate a context-root tag, when it
depends on a WAR module.
However, this line is problematic when you deploy a portlet, because it
seems illegal in this case.
(deployment fails)


My EAR config is as follow

   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-ear-plugin/artifactId
   version2.1/version
   configuration
   displayNameThierry Portlet/displayName
   descriptionJBOSS portlet/description
   modules
   webModule
   groupIdmyApp/groupId
   artifactIdJBPortlet1-war/artifactId
   !--contextRoot/portlet/contextRoot   My
problem goes here
   /webModule
   /modules
   /configuration
   /plugin

If i comment / remove the contextroot line, it takes the WAR filename as
context

It generates the following application.xml

application
 display-nameThierry Portlet/display-name
 descriptionJBOSS portlet/description
 module
   web
 web-uriJBPortlet1-war-1.0.war/web-uri
 context-root/portlet/context-root I would like to
remove automatically this line
   /web
 /module
/application

I would like to remove automatically the context-root line.

what could be the strategy?
=a noContextRoot tag added to the ear plugin config
=a way to specify that application-xml has to be generated regarding
portlet constraints?

Thanks for your help

Thierry


Re: date in manifest

2006-05-31 Thread Thierry Barnier

Hi Julian,

have you tried this stuff (look @ the manifestEntry section)

More info on http://maven.apache.org/guides/mini/guide-manifest.html


Thierry

project
 ...
 build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   configuration
 archive
   !--
   indextrue/true
   --
   manifest
 mainClasscom.mycompany.app.App/mainClass
 packageNamecom.mycompany.app/packageName
 !-- options
 manifestFile/path/to/MANIFEST.MF/manifestFile
 addClasspathtrue/addClasspath
 addExtensions/
 classpathPrefix/
 --
   /manifest
   manifestEntries
 modedevelopment/mode
 url${pom.url}/url
   /manifestEntries
 /archive
   /configuration
 /plugin
   /plugins
 /build
 ...
/project



2006/5/31, Kieran Brady [EMAIL PROTECTED]:


I tried te build number plugins without any success as it didn't seem
happy
to create a timestamp independently of SCM? I'm using CVS and it wasn't
happy with it..

Instead I have this horrible hack! Our Maven setup seems to be an ever
expanding collection of horrible hacks :-/

[...]
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idcreate-timestamp-file/id
phasegenerate-resources/phase
goals
goalrun/goal
/goals
configuration
tasks
tstamp
format property=time pattern=dd.MM.-HH.mm
locale=en /
/tstamp
property name=timestamp value=${time}-${user.name
}
/
touch file=.build.timestamp.properties /
echo file=.build.timestamp.properties
append=false
message=timestamp=${timestamp} /
/tasks
/configuration
/execution
execution
iddelete-timestamp-file/id
phaseclean/phase
goals
goalrun/goal
/goals
configuration
tasks
delete file=.build.timestamp.properties /
/tasks
/configuration
/execution
/executions
/plugin
[...]

and

[...]

filters
[...]
filter.build.timestamp.properties/filter
/filters


- Original Message -
From: Julian Wood [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Tuesday, May 30, 2006 10:43 PM
Subject: Re: date in manifest


 You can use the maven-buildNumber-plugin.

 http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

 Near the bottom it tells you how to use a timestamp.

 There was some talk of making the build date a more globally  available
 property (negating the need for this plugin), but I don't  know what it
 is, or if it was done.

 J

 On 30-May-06, at 2:03 PM, [EMAIL PROTECTED] wrote:

 Hi  All

 If i want to make entry of build date to mani-fest files how do i  do
 that?

 i know how to make entry to mani-fest but don't know what
maven  variable
 has the value for date ??

 Anyone knows  it , please advise?





 Thanks,
 Raghu

 --
 Julian Wood [EMAIL PROTECTED]

 Software Engineer
 Teaching  Learning Centre
 University of Calgary

 http://tlc.ucalgary.ca



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