There is an issue in M2 where the dbunit plugin fires before the
hibernate3 plugin sometimes:
http://issues.appfuse.org/browse/APF-606
The fix is to change the <phase> of the hbm2ddl goal to execute in the
"process-test-resources" phase (instead of test-compile).
http://tinyurl.com/yqkv5t
Matt
On 2/3/07, André Faria <[EMAIL PROTECTED]> wrote:
I am trying 2.0m2, Matt...
Regards,
André Faria
Matt Raible escreveu:
> What version of AppFuse are you trying to use? I'm curious because if
> it's a 2.0-m2 problem we might've solved this issue recently. Also,
> when downloads fail, it's usually caused by a proxy server or
> intermittent internet connection - at least that's been my experience.
> Sometimes you can simply re-run the command again and it works.
>
> Matt
>
> On 2/3/07, André Faria <[EMAIL PROTECTED]> wrote:
>
>> I got a new error now:
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.hibernate:hibernate-tools:jar:3.2.0.beta9a
>>
>> Try downloading the file manually from the project website.
>>
>> Then, install it using the command:
>> mvn install:install-file -DgroupId=org.hibernate
>> -DartifactId=hibernate-to
>> ols \
>> -Dversion=3.2.0.beta9a -Dpackaging=jar -Dfile=/path/to/file
>>
>> Path to dependency:
>> 1)
>> org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:2.0-20070201.0
>> 15900-8
>> 2) org.hibernate:hibernate-tools:jar:3.2.0.beta9a
>>
>> ----------
>> 1 required artifact is missing.
>>
>>
>>
>> Nick Tucker escreveu:
>> > Try running
>> >
>> > mvn hibernate3:hbm2ddl
>> >
>> > This should create the missing table.
>> >
>> > Nick
>> >
>> >
>> >
>> > André Faria-3 wrote:
>> >
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> I cant find the solution for this error, if you can help-me...
>> >>
>> >> C:\TestWorkSpace\bsb\basic-struts\basic-struts>mvn install -e
>> >> + Error stacktraces are turned on.
>> >> [INFO] Scanning for projects...
>> >> [INFO]
>> >>
>> -------------------------------------------------------------------------
>>
>> >> ---
>> >> [INFO] Building AppFuse Struts 2 Application
>> >> [INFO] task-segment: [install]
>> >> [INFO]
>> >>
>> -------------------------------------------------------------------------
>>
>> >> ---
>> >> [INFO] [warpath:add-classes {execution: default}]
>> >> [INFO] [resources:resources]
>> >> [INFO] Using default encoding to copy filtered resources.
>> >> [INFO] [compiler:compile]
>> >> [INFO] Nothing to compile - all classes are up to date
>> >> [INFO] [resources:testResources]
>> >> [INFO] Using default encoding to copy filtered resources.
>> >> [INFO] [compiler:testCompile]
>> >> [INFO] Nothing to compile - all classes are up to date
>> >> [INFO] [dbunit:operation {execution: default}]
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [ERROR] BUILD ERROR
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] Error executing database operation: CLEAN_INSERT
>> >>
>> >> Embedded error: user_role
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] Trace
>> >> org.apache.maven.lifecycle.LifecycleExecutionException: Error
>> executing
>> >> database
>> >> operation: CLEAN_INSERT
>> >> at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> >> ultLifecycleExecutor.java:559)
>> >> at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> >> fecycle(DefaultLifecycleExecutor.java:475)
>> >> at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> >> ltLifecycleExecutor.java:454)
>> >> at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> >> dleFailures(DefaultLifecycleExecutor.java:306)
>> >> at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> >> ts(DefaultLifecycleExecutor.java:273)
>> >> at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> >> fecycleExecutor.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(DelegatingMethodAcces
>> >> sorImpl.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
>> >> executing datab
>> >> ase operation: CLEAN_INSERT
>> >> at
>> >> org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110
>> >> )
>> >> at
>> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> >> nManager.java:412)
>> >> at
>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> >> ultLifecycleExecutor.java:534)
>> >> ... 16 more
>> >> Caused by: org.dbunit.dataset.NoSuchTableException: user_role
>> >> at
>> >> org.dbunit.database.DatabaseDataSet.getTableMetaData(DatabaseDataSet.
>> >> java:192 )
>> >> at
>> >> org.dbunit.operation.DeleteAllOperation.execute(DeleteAllOperation.ja
>> >> va:98)
>> >> at
>> >> org.dbunit.operation.CompositeOperation.execute(CompositeOperation.ja
>> >> va:67)
>> >> at
>> >> org.dbunit.ant.Operation.execute(Operation.java:183)
>> >> at
>> >> org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:101
>> >> )
>> >> ... 18 more
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] Total time: 5 seconds
>> >> [INFO] Finished at: Sat Feb 03 17:40:25 GMT-03:00 2007
>> >> [INFO] Final Memory: 11M/20M
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >>
>> >> Thank's,
>> >> André FAria
>>
>> ---------------------------------------------------------------------
>> 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]
--
http://raibledesigns.com