You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Rico (privat)" <ri...@gmx.de> on 2005/11/09 12:17:37 UTC
[m2] using hibernate plugin
Hi,
I downloaded the soures of the actual hibernate 3 plugins from
http://svn.codehaus.org/trunk/mojo/mojo-sandbox/hibernate3-maven-plugin/?root=mojo
1. Compiled that sources: mvn compile
2. Make a package: mvn package
3. Install it on my local repository: mvn install -DupdateReleaseInfo=true
All was running fine. But if I want to used it in my own project it
fails with:
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] null
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor.java:261)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1363)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:376)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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)
Before that I prepared my project pom.xml as described on documentation
to maven-hibernate3-plugin:
<build>
<extensions>
<extension>
<groupId>org.firebirdsql</groupId>
<artifactId>jaybird</artifactId>
<version>1.5.6</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-hibernate3-plugin</artifactId>
<configuration>
<config>/src/main/resources/hibernate.cfg.xml</config>
</configuration>
</plugin>
</plugins>
</build>
The command line was following:
mvn hibernate3:hbm2dll
After getting that error first time I found a short message on
http://www.hiberforum.org/2005/09/#000009
which gives a solution to find inofficial plugins also with:
mvn org.codehaus.mojo:hibernate3-maven-plugin:hbm2dll
but the error keep the same. The plugin couldn't find or some thing else.
Any help or ideas?
Thanks in forward
Rico
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org