Re: Maven shared via Samba-Share

2004-08-05 Thread Christian Mouttet
Brett,

here comes the output of 'maven -X -e'.  'maven --info' prints the same
lines.

--%--
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

Initializing Plugins!
org.apache.maven.MavenException: Maven was badly installed. Please
reinstall it.
at
org.apache.maven.plugin.PluginManager.initialize(PluginManager.java:240)
at
org.apache.maven.MavenSession.initializePluginManager(MavenSession.java:207)
at
org.apache.maven.MavenSession.initialize(MavenSession.java:174)
at org.apache.maven.cli.App.doMain(App.java:473)
at org.apache.maven.cli.App.main(App.java:1215)
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:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)

You have encountered an unknown error running Maven. Please help us to
correct
this problem by following these simple steps:
- read the Maven FAQ at http://maven.apache.org/faq.html
- run the same command again with the '-e' parameter, eg maven -e jar
- search the maven-user archives for the error at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up
first)
- run 'maven --info' and post the output as the environment to the bug
above


Final Memory: 0M/1M
Total time: 18 seconds
Finished at: Thu Aug 05 08:58:30 CEST 2004
--%--

I think this doen't help you very much.

Regards

-Christian


Am Mi, den 04.08.2004 schrieb Brett Porter um 22:19:
 could be a bug... can you send the output of -X?
 
 Thanks,
 Brett
 
 On Wed, 04 Aug 2004 17:00:15 +0200, Christian Mouttet
 [EMAIL PROTECTED] wrote:
  Hi Brett,
  
  thank's for your answer. I don't exactly understand what plugins
  directory are you talking about. Is it the 'plugins' directory that was
  untar'ed out of 'maven-1.0.tar.gz'? This directory isn't empty - there
  are plugin-jars.
  
  With Maven-1.0-rc I had a directory 'plugins' under $HOME/.maven
  (%USERPROFILE%\.maven). The final release uses cache to hold the
  unjar'ed plugins.
  
  Regards
  
  -Christian
  
  Date: Fri, 30 Jul 2004 10:11:22 -0400
  From: Brett Porter [EMAIL PROTECTED]
  Subject: Maven shared via Samba-Share
  Content-Type: text/plain; charset=US-ASCII
  
  
  
  this error appears when the plugins directory is empty. The message
  should be improved I think.
  
  
  -
  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]



Unit testing with Hypersonic

2004-08-05 Thread Eric Hauser
I running some unit tests with Maven during my build process using 
Hypersonic in-memory mode as the datasource.  I generating the schema 
from Hibernate and then loading the schema in a preGoal for test:test 
using the ant:sql tags.  The problem that I am having is every time the 
unit test runs, Hypersonic cannot seem to find the tables that I just 
loaded.  Anyone have an example code that does something similar? Thanks.

--
Eric W. Hauser
Application Developer
accessIndiana...linking hoosiers to government
http://www.IN.gov
10 W. Market St., Suite 600
Indianapolis, IN 46204
Phone: (317) 233-4007
Fax: (317) 233-2011
**
CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential.  If you are not the intended recipient, you do not have permission to disclose, copy, distribute, or open any attachments.  If you have received this E-mail
in error, please notify us immediately by returning it to the sender and delete this copy from your system. 
Thank you.
accessIndiana, MyLocal.IN.gov, CivicNet
** 

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


RE: Unit testing with Hypersonic

2004-08-05 Thread Göschl,Siegfried
Hi Eric,

Are you sure that your ant:sql could possibly work with in-memory mode?! I think you 
would have to use the server mode for that ...

Cheers,

Siegfried Goeschl

-Original Message-
From: Eric Hauser [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 05. August 2004 17:19
To: Maven Users List
Subject: Unit testing with Hypersonic


I running some unit tests with Maven during my build process using 
Hypersonic in-memory mode as the datasource.  I generating the schema 
from Hibernate and then loading the schema in a preGoal for test:test 
using the ant:sql tags.  The problem that I am having is every time the 
unit test runs, Hypersonic cannot seem to find the tables that I just 
loaded.  Anyone have an example code that does something similar? Thanks.

-- 
Eric W. Hauser
Application Developer
accessIndiana...linking hoosiers to government http://www.IN.gov 10 W. Market St., 
Suite 600 Indianapolis, IN 46204
Phone: (317) 233-4007
Fax: (317) 233-2011

**
CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential.  If you are not the intended 
recipient, you do not have permission to disclose, copy, distribute, or open any 
attachments.  If you have received this E-mail in error, please notify us immediately 
by returning it to the sender and delete this copy from your system. 
Thank you.
accessIndiana, MyLocal.IN.gov, CivicNet
** 


-
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: Unit testing with Hypersonic

2004-08-05 Thread Craig S . Cottingham
On Aug 5, 2004, at 10:19, Eric Hauser wrote:
I running some unit tests with Maven during my build process using 
Hypersonic in-memory mode as the datasource.  I generating the schema 
from Hibernate and then loading the schema in a preGoal for test:test 
using the ant:sql tags.  The problem that I am having is every time 
the unit test runs, Hypersonic cannot seem to find the tables that I 
just loaded.  Anyone have an example code that does something similar? 
Thanks.
We don't generate the database schema as part of the test goal; 
instead, the Hypersonic database script is an original source and 
stored in version control. Other than that, I think we're doing 
something similar to what you're trying to do.

The problem we ran into was that Maven has no well-defined current 
directory from which to specify a relative path to the database script. 
Normally, this would mean that you'd have to specify an absolute path, 
which is generally a Bad Idea.

I got around this by modifying the datasource configuration properties 
file in a pregoal for test:test:

  preGoal name=test:test
ant:copy todir=${maven.build.dir}/test-classes overwrite=true 
  ant:fileset dir=${maven.src.dir}/test/conf
ant:include name=datasource.properties /
  /ant:fileset
  ant:filterset
ant:filter token=BUILDDIR value=${maven.build.dir} /
  /ant:filterset
/ant:copy
  /preGoal
The datasource configuration properties file contains (in part):
  testPool.jdbc.driver=org.hsqldb.jdbcDriver
  testPool.jdbc.url=jdbc:hsqldb:@BUILDDIR@/testdb
The glue between the datasource configuration properties and the code 
that uses the datasource I can't show you, unfortunately. But as long 
as you're defining the connection parameters in a configuration file 
(and you should be :-), you should be able to do something similar.

Hope this helps.
--
Craig S. Cottingham
[EMAIL PROTECTED]
OpenPGP key available from:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7977F79C
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Unit testing with Hypersonic

2004-08-05 Thread Carlos Sanchez
Hi Eric,

I've used Hypersonic in-memory with Hibernate, but instead of manually
importing the schema I've configured Hibernate to create tables itself and
everything worked fine.

The problem that you may have is that the junit tests are running in a new
virtual machine and the in-memory database is shutdown (removing tables)
after ant:sql.

Regards

Carlos Sanchez
A Coruña, Spain

Oness Project
http://oness.sourceforge.net


 -Original Message-
 From: Eric Hauser [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 05, 2004 5:19 PM
 To: Maven Users List
 Subject: Unit testing with Hypersonic
 
 I running some unit tests with Maven during my build process 
 using Hypersonic in-memory mode as the datasource.  I 
 generating the schema from Hibernate and then loading the 
 schema in a preGoal for test:test using the ant:sql tags.  
 The problem that I am having is every time the unit test 
 runs, Hypersonic cannot seem to find the tables that I just 
 loaded.  Anyone have an example code that does something 
 similar? Thanks.
 
 --
 Eric W. Hauser
 Application Developer
 accessIndiana...linking hoosiers to government
 http://www.IN.gov
 10 W. Market St., Suite 600
 Indianapolis, IN 46204
 Phone: (317) 233-4007
 Fax: (317) 233-2011
 
 **
 CONFIDENTIALITY NOTICE:
 This E-mail and any attachments are confidential.  If you are 
 not the intended recipient, you do not have permission to 
 disclose, copy, distribute, or open any attachments.  If you 
 have received this E-mail in error, please notify us 
 immediately by returning it to the sender and delete this 
 copy from your system. 
 Thank you.
 accessIndiana, MyLocal.IN.gov, CivicNet
 **
  
 
 
 -
 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: History/trends in reports

2004-08-05 Thread Tim Shadel
[Sorry this post is a bit late, my email's had some trouble]
Keeping a history of metrics is an excellent idea.  We've been using a
tool called Hackystat, in conjunction with Maven and our daily
CruiseControl build, to gather and report on our metrics history.
Hackystat has a few important differences from both MavenHistory and
XRadar, which I'll try to list out to the best of my ability.  You can
get more info at their website.
1. Hackystat is tool-agnostic.  It allows you to collect information
from a variety of development tools.  This includes Maven, Ant,
Eclipse, JBuilder, Emacs, and the command-line.  Some of these
collection tools, or sensors, are fairly small and straight forward
(e.g. Ant and Maven).  You could likely add sensors to a new build
tool without much effort.  This is good if you want to keep your
history reporting even if you change your build process.
2. Hackystat provides tools for developers and for projects.
a. If you choose, you can send sensor information to a Hackystat
server about some IDE activities -- JUnit tests run in the IDE, files
changed, editor active time.  As a developer, you can then choose
whether to contribute your metrics to the project summary or not.  The
Hackystat tools can provide you with feedback and reports on your work
across projects.
b. A nightly build account can be setup to collect metrics about the
project that don't relate to any individual.  These include code size,
tests run, test coverage % and other such static analysis metrics.
The project tools can provide reports based on this information alone,
or across all invited developers that choose to participate in sending
their more fine-grained metrics.  The developer always retains control
of his/her metrics information, and can revoke that right from the
project at any time -- privacy is an important consideration in this
tool.
3. Hackystat is extensible.  You can extend Hackystat in several ways.
You can add new sensors for your tools to collect one of several
existing types of generic metrics (like a Build event, Activity event,
or UnitTest event).  You can create new types of metrics (e.g.
MyNewMetric event), and write a tool sensor to collect it (perhaps a
Maven plugin.jelly reads an XML file that contains MyNewMetrics).  And
you can create new Analysis templates for the web application.
There's also an easy way to customize and filter your views of many of
the existing metrics -- you define your own charts using simple syntax
like: JavaCoverage, (JavaCoverage-CoveredMethods,
JavaCoverage-UncoveredMethods)
.  This will create one graphic with two
charts.  The first has to total coverage %, and the second shows two
data lines, both the number of methods covered and the number of
methods not covered by tests.
4. Hackystat is a server-based application.  Sensors use SOAP to send
data to the server.  You can choose to drop the WAR file on your own
internal JSP/Servlet server, or to use their public Hackystat server
-- free for use by anyone.  I'd suggest using the internal server in
the long run.  It's nice to use the public server for a short time to
see how data is collected and reported.
5. Hackystat has an active set of 7 committers at the moment.  Because
some of them are paid, you're _extremely_ likely to see this project
continue well into the future.  It's a project that's been in the
works since at least 2001 (perhaps before), and it's got a bright
future.  This is a metrics system you can build a long term solution
on.
The best place to find information is probably the developer site.
http://hackydev.ics.hawaii.edu/ http://hackydev.ics.hawaii.edu/
When we began using Hackystat we were using Ant as our build system.
We switched to Maven, and they didn't have any sensors for Maven so I
recently wrote some.  I'm in the process of contributing them to
Hackystat -- I've spoken with them and they're excited to have the
Maven addition and see some natural connections between Maven and
Hackystat.  I'll post instructions on how to install the Maven plugins
and use them once the contribution is complete.
Hopefully that provides a decent overview of Hackystat for anyone
interested in using it to keep a metrics history.
Thanks,
Tim

A lot later than promised and still not quite as neat as I wanted it to be:
http://mavenhistorical.sourceforge.net
Matt.
 

-Original Message-
From: Morris, Jason [IT] [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2004 15:00
To: Maven Users List
Subject: RE: History/trends in reports

I'll second (or third!) this proposal - I'd love to be able 
to track quality metrics from reports such as Checkstyle, 
jdepend etc over time. They always come in handy during 
appraisal season  :-) 

Jason
-Original Message-
From: Jerome Lacoste [mailto:[EMAIL PROTECTED]
Sent: 19 July 2004 13:33
To: Maven Users List
Subject: RE: History/trends in reports
On Mon, 2004-07-19 at 11:52 +0100, Matt Read wrote:
   

 A colleague and I are actually working on a plugin right 

Re: Unit testing with Hypersonic

2004-08-05 Thread Eric Hauser
I switched from using the memory only mode to using Hypersonic in server 
mode instead.  I fired off server mode from the command line, changed 
the datasource URL, and everything seemed to work fine.  I didn't have 
to change anything regarding the loading of the schema export using 
ant:sql.  Of course, now the issue is that if I want this to be 
completely automated I have to find a way to get Maven to start up 
Hypersonic in server mode for me.  Here's what I'm trying:

postGoal name=java:compile
 !-- Generate schema for the database --
 ant:path id=schemaexport.classpath
  ant:path refid=maven.dependency.classpath /
  ant:pathelement location=${maven.build.dir}/classes /
 /ant:path
 ant:taskdef name=schemaexport 
classname=net.sf.hibernate.tool.hbm2ddl.SchemaExportTask 
classpathref=schemaexport.classpath /
 ant:schemaexport properties=etc/hibernate-unit-test.properties 
delimiter=; text=yes output=${maven.build.dir}/${pom.name}.ddl
  ant:fileset dir=${maven.build.dest}
   ant:include name=**/*.hbm.xml /
  /ant:fileset
 /ant:schemaexport
/postGoal

preGoal name=test:compile
 ant:copy file=${maven.war.src}/WEB-INF/applicationContext.xml  
todir=${basedir}/target/test-classes/ filtering=on
  ant:filterset
ant:filter token=hibernate.dialect 
value=net.sf.hibernate.dialect.HSQLDialect /
  /ant:filterset
 /ant:copy
/preGoal

preGoal name=test:test
 !-- need to startup the database  here --
 ant:java classpathref=maven.dependency.classpath fork=true 
spawn=true classname=org.hsqldb.Server
   arg value=-database /
   arg value=testdb /
 /ant:java
 !-- Load schema into hsqldb for unit testing --
 ant:sql driver=org.hsqldb.jdbcDriver 
url=jdbc:hsqldb:hsql://testdb userid=sa password= 
src=${maven.build.dir}/${pom.name}.ddl onerror=continue
   ant:classpath refid=maven.dependency.classpath /
 /ant:sql
/preGoal

I left in the ant:java code which does not work.  I seem to remember 
having this problem before, but I don't think Maven allows for the 
spawning on a new process properly.  How are you firing off Hypersonic?

Craig S. Cottingham wrote:
On Aug 5, 2004, at 10:19, Eric Hauser wrote:
I running some unit tests with Maven during my build process using 
Hypersonic in-memory mode as the datasource.  I generating the schema 
from Hibernate and then loading the schema in a preGoal for test:test 
using the ant:sql tags.  The problem that I am having is every time 
the unit test runs, Hypersonic cannot seem to find the tables that I 
just loaded.  Anyone have an example code that does something 
similar? Thanks.

We don't generate the database schema as part of the test goal; 
instead, the Hypersonic database script is an original source and 
stored in version control. Other than that, I think we're doing 
something similar to what you're trying to do.

The problem we ran into was that Maven has no well-defined current 
directory from which to specify a relative path to the database 
script. Normally, this would mean that you'd have to specify an 
absolute path, which is generally a Bad Idea.

I got around this by modifying the datasource configuration properties 
file in a pregoal for test:test:

  preGoal name=test:test
ant:copy todir=${maven.build.dir}/test-classes overwrite=true 
  ant:fileset dir=${maven.src.dir}/test/conf
ant:include name=datasource.properties /
  /ant:fileset
  ant:filterset
ant:filter token=BUILDDIR value=${maven.build.dir} /
  /ant:filterset
/ant:copy
  /preGoal
The datasource configuration properties file contains (in part):
  testPool.jdbc.driver=org.hsqldb.jdbcDriver
  testPool.jdbc.url=jdbc:hsqldb:@BUILDDIR@/testdb
The glue between the datasource configuration properties and the code 
that uses the datasource I can't show you, unfortunately. But as long 
as you're defining the connection parameters in a configuration file 
(and you should be :-), you should be able to do something similar.

Hope this helps.
--
Craig S. Cottingham
[EMAIL PROTECTED]
OpenPGP key available from:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7977F79C
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Eric W. Hauser
Application Developer
accessIndiana...linking hoosiers to government
http://www.IN.gov
10 W. Market St., Suite 600
Indianapolis, IN 46204
Phone: (317) 233-4007
Fax: (317) 233-2011
**
CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential.  If you are not the intended recipient, you do not have permission to disclose, copy, distribute, or open any attachments.  If you have received this E-mail
in error, please notify us immediately by returning it to the sender and delete this copy from your system. 
Thank you.
accessIndiana, MyLocal.IN.gov, CivicNet
** 


Re: Unit testing with Hypersonic

2004-08-05 Thread Craig S . Cottingham
On Aug 5, 2004, at 10:55, Eric Hauser wrote:
I switched from using the memory only mode to using Hypersonic in 
server mode instead.  I fired off server mode from the command line, 
changed the datasource URL, and everything seemed to work fine.  I 
didn't have to change anything regarding the loading of the schema 
export using ant:sql.  Of course, now the issue is that if I want this 
to be completely automated I have to find a way to get Maven to start 
up Hypersonic in server mode for me.  Here's what I'm trying:
[snip]
I left in the ant:java code which does not work.  I seem to remember 
having this problem before, but I don't think Maven allows for the 
spawning on a new process properly.  How are you firing off 
Hypersonic?
We run Hypersonic in-memory. Since the database schema is stored in 
src/test/conf instead of being generated by Maven at test time, we 
don't have the problem of schema changes being made and then dropped 
before the tests run.

--
Craig S. Cottingham
[EMAIL PROTECTED]
OpenPGP key available from:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7977F79C
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


problem in setting resources for javadoc

2004-08-05 Thread Pallavi Patil
Hi,
I am generating site using Maven site and I want to
put images in my javadoc for all methods or atleast in
package.html for that package. I would like to know
how can I set resources for javadoc. Thanks in advance
for suggestions or any pointer.
Thanks. 


__
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 : problem in setting resources for javadoc

2004-08-05 Thread Heritier Arnaud
In each package you must add your resources (images ...) in a doc-files sub-directory 
(javadoc standard).

Arnaud

 -Message d'origine-
 De : Pallavi Patil [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 5 août 2004 18:11
 À : [EMAIL PROTECTED]
 Objet : problem in setting resources for javadoc
 
 
 Hi,
 I am generating site using Maven site and I want to
 put images in my javadoc for all methods or atleast in 
 package.html for that package. I would like to know how can I 
 set resources for javadoc. Thanks in advance for suggestions 
 or any pointer. Thanks. 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Unit testing with Hypersonic

2004-08-05 Thread Eric Hauser
Thanks everyone for the suggestions.  I found that Carlos' method seems 
to be the best choice for me.  I'm just running the SQL to create the 
tables in the static initialzer for my base test case.  Assuming the 
schema file has already been generated, this allows me to run the unit 
tests inside of Eclipse as well as with Maven.  Thanks again.

Craig S. Cottingham wrote:
On Aug 5, 2004, at 10:55, Eric Hauser wrote:
I switched from using the memory only mode to using Hypersonic in 
server mode instead.  I fired off server mode from the command line, 
changed the datasource URL, and everything seemed to work fine.  I 
didn't have to change anything regarding the loading of the schema 
export using ant:sql.  Of course, now the issue is that if I want 
this to be completely automated I have to find a way to get Maven to 
start up Hypersonic in server mode for me.  Here's what I'm trying:

[snip]
I left in the ant:java code which does not work.  I seem to remember 
having this problem before, but I don't think Maven allows for the 
spawning on a new process properly.  How are you firing off Hypersonic?

We run Hypersonic in-memory. Since the database schema is stored in 
src/test/conf instead of being generated by Maven at test time, we 
don't have the problem of schema changes being made and then dropped 
before the tests run.

--
Craig S. Cottingham
[EMAIL PROTECTED]
OpenPGP key available from:
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7977F79C
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Eric W. Hauser
Application Developer
accessIndiana...linking hoosiers to government
http://www.IN.gov
10 W. Market St., Suite 600
Indianapolis, IN 46204
Phone: (317) 233-4007
Fax: (317) 233-2011
**
CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential.  If you are not the intended recipient, you do not have permission to disclose, copy, distribute, or open any attachments.  If you have received this E-mail
in error, please notify us immediately by returning it to the sender and delete this copy from your system. 
Thank you.
accessIndiana, MyLocal.IN.gov, CivicNet
** 

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


RE: Unit testing with Hypersonic

2004-08-05 Thread Carlos Sanchez
Hi Eric,

Do you know the Hibernate property hibernate.hbm2ddl.auto? There's no need
for a static initializer.

http://www.hibernate.org/hib_docs/reference/en/html_single/#configuration-op
tional

Automatically export schema DDL to the database when the SessionFactory is
created. With create-drop, the database schema will be dropped when the
SessionFactory is closed explicitely. 
eg. update | create | create-drop 


Regards

Carlos Sanchez
A Coruña, Spain

Oness Project
http://oness.sourceforge.net


 -Original Message-
 From: Eric Hauser [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 05, 2004 8:20 PM
 To: Maven Users List
 Subject: Re: Unit testing with Hypersonic
 
 Thanks everyone for the suggestions.  I found that Carlos' 
 method seems to be the best choice for me.  I'm just running 
 the SQL to create the tables in the static initialzer for my 
 base test case.  Assuming the schema file has already been 
 generated, this allows me to run the unit tests inside of 
 Eclipse as well as with Maven.  Thanks again.
 
 Craig S. Cottingham wrote:
 
  On Aug 5, 2004, at 10:55, Eric Hauser wrote:
 
  I switched from using the memory only mode to using Hypersonic in 
  server mode instead.  I fired off server mode from the 
 command line, 
  changed the datasource URL, and everything seemed to work fine.  I 
  didn't have to change anything regarding the loading of the schema 
  export using ant:sql.  Of course, now the issue is that if I want 
  this to be completely automated I have to find a way to 
 get Maven to 
  start up Hypersonic in server mode for me.  Here's what I'm trying:
 
 
  [snip]
 
  I left in the ant:java code which does not work.  I seem 
 to remember 
  having this problem before, but I don't think Maven allows for the 
  spawning on a new process properly.  How are you firing 
 off Hypersonic?
 
 
  We run Hypersonic in-memory. Since the database schema is stored in 
  src/test/conf instead of being generated by Maven at test time, we 
  don't have the problem of schema changes being made and 
 then dropped 
  before the tests run.
 
  --
  Craig S. Cottingham
  [EMAIL PROTECTED]
  OpenPGP key available from:
  http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7977F79C
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 --
 Eric W. Hauser
 Application Developer
 accessIndiana...linking hoosiers to government
 http://www.IN.gov
 10 W. Market St., Suite 600
 Indianapolis, IN 46204
 Phone: (317) 233-4007
 Fax: (317) 233-2011
 
 **
 CONFIDENTIALITY NOTICE:
 This E-mail and any attachments are confidential.  If you are 
 not the intended recipient, you do not have permission to 
 disclose, copy, distribute, or open any attachments.  If you 
 have received this E-mail in error, please notify us 
 immediately by returning it to the sender and delete this 
 copy from your system. 
 Thank you.
 accessIndiana, MyLocal.IN.gov, CivicNet
 **
  
 
 
 -
 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: issue w/ test:test goal being run multiple times when dist goal is executed

2004-08-05 Thread Carlos Sanchez
Hi,

Your message have been already answered in the maven-users list. If the
answer don't suit your needs post your thoughts on the thread. This is an
issue already discussed by maven developers and I think it will be fixed in
next versions.

Please don't post this message to maven-dev. This message is appropriate for
the maven-users list, as is all non-maven-development traffic.

Regards

Carlos Sanchez
A Coruña, Spain

Oness Project
http://oness.sourceforge.net


 -Original Message-
 From: Springer, Ian P. [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 04, 2004 3:59 PM
 To: [EMAIL PROTECTED]
 Subject: issue w/ test:test goal being run multiple times 
 when dist goal is executed
 
 When I run maven dist, my project's unit tests get run three times:
 
 1) because test:test is a prereq of jar:jar
 2) because test:test is a prereq of war:webapp
   (which I call from a dist:prepare-bin-filesystem postgoal in
 maven.xml)
 3) because junit-report:report does an attainGoal of test:test
 
 Running the unit test three times slows down the dist build 
 and also clutters Maven's output. Is there a workaround for 
 this issue? Any plans to address it in the next release?
 
 Thanks,
 Ian
 
 -
 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]