removed the CDATA section tags but no luck, see below.
HIBERNATE QUESTION :
What other options do I have to generate my mapping files from my code ?
I tried to use the antrun plugin but defining the xdoclet.class.path variable
for one is such a drag that the whole point of using maven becomes obsolete.
without CDATA :
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernatedoclet-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<goals>
<goal>hibernatedoclet</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<project>koma</project>
<task>
<hibernatedoclet>
<fileset includes="**/model/*.java"/>
<hibernate version="2.1"/>
</hibernatedoclet>
</task>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
[EMAIL PROTECTED]:~/workspace/koma$ mvn
org.codehaus.mojo:hibernatedoclet-maven-plugin:hibernatedoclet
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building KOMA
[INFO] task-segment:
[org.codehaus.mojo:hibernatedoclet-maven-plugin:hibernatedoclet]
[INFO]
----------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/jzeno/jzeno/0.9/jzeno-0.9.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO] snapshot org.codehaus.mojo:mant:1.0-beta-2-SNAPSHOT: checking for
updates from snapshots
[WARNING] While downloading xml-apis:xml-apis:2.0.2
This artifact has been relocated to xml-apis:xml-apis:1.0.b2.
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for
'hibernatedoclet:hibernatedoclet'
[0] inside the definition for plugin: 'hibernatedoclet-maven-plugin'specify
the following:
<configuration>
...
<task>VALUE</task>
</configuration>.
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Dec 20 09:15:34 CET 2005
[INFO] Final Memory: 3M/7M
[INFO]
----------------------------------------------------------------------------
On Tuesday 20 December 2005 08:33, you wrote:
> Have you tried without using CDATA section?
>
> 2005/12/19, Koen Maes <[EMAIL PROTECTED]>:
> > Hi,
> >
> >
> > I'm trying to get the hibernatedoclet-maven-plugin from Ashley Williams
> > to work. I built the hibernatedoclet-maven-plugin and mant project after
> > svn checkout. I installed the plugin into my local repo :
> >
> >
> > /home/koen/.m2/repository/org/codehaus/mojo/hibernatedoclet-maven-plugin/
> >1.0-beta-1/hibernatedoclet- maven-plugin-1.0-beta-1.pom
> >
> > Next when I try to run
> >
> > mvn -e org.codehaus.mojo:hibernatedoclet-maven-plugin:hibernatedoclet
> >
> > I get
> >
> > ...................
> > [INFO]
> >
> > -------------------------------------------------------------------------
> >--- [ERROR] BUILD ERROR
> > [INFO]
> >
> > -------------------------------------------------------------------------
> >--- [INFO] One or more required plugin parameters are invalid/missing for
> > 'hibernatedoclet:hibernatedoclet'
> >
> > [0] inside the definition for plugin:
> > 'hibernatedoclet-maven-plugin'specify
> > the following:
> >
> > <configuration>
> > ...
> > <task>VALUE</task>
> > </configuration>.
> >
> > [INFO]
> >
> > -------------------------------------------------------------------------
> >--- [INFO] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Error
> > configuring: org.codehaus.mojo:hibernatedoclet-maven-plugin. Reason:
> > Invalid or missing parameters: [Mojo parameter [name: 'task'; alias:
> > 'null']] for mojo:
> > org.codehaus.mojo:hibernatedoclet-maven-plugin:1.0-beta-1:hibernatedoclet
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:559)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal
> >( DefaultLifecycleExecutor.java:485)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> > DefaultLifecycleExecutor.java:455)
> > at
> >
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleF
> >ailures (DefaultLifecycleExecutor.java:303)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > DefaultLifecycleExecutor.java:270)
> > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > DefaultLifecycleExecutor.java:139)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >
> >
> > This is the relevant path of the pom.xml
> >
> > <build>
> > <plugins>
> > <plugin>
> > <groupId>org.codehaus.mojo</groupId>
> >
> >
> > <artifactId>hibernatedoclet-maven-plugin</artifactId>
> > <version>1.0-beta-1</version>
> > <executions>
> > <execution>
> > <goals>
> >
> >
> > <goal>hibernatedoclet</goal> </goals>
> >
> >
> > <phase>generate-sources</phase> <configuration>
> > <task>
> > <![CDATA[
> >
> >
> > <hibernatedoclet> <fileset includes="**/model/*.java"/>
> >
> > <hibernate version="2.1"/>
> >
> >
> > </hibernatedoclet>
> >
> >
> > ]]> </task>
> > </configuration>
> > </execution>
> > </executions>
> > </plugin>
> > </plugins>
> > </build>
> >
> > And I think this is the relevant part of the code
> > public void execute()
> > throws MojoExecutionException, MojoFailureException
> > {
> > String[] mappings = new String[] {
> > "@destDir", MantGoal.WEB_INF_GEN,
> > "fileset/@dir", MantGoal.JAVA,
> > // ,
> > // "deploymentdescriptor/@destDir",
> > MantGoal.META_INF_GEN,
> > // "jboss/@destDir",
> > MantGoal.META_INF_GEN
> > };
> > MantGoal goal = new MantGoal( this, project,
> > "xdoclet.modules.hibernate.HibernateDocletTask", task, mappings );
> > goal.execute( "xdoclet.class.path" );
> > }
> >
> > I see that the mapping has 2 elements but how to map things is not clear
> > to
> > me ?? Can anybody (or better Ashley) help get on with my problem.
> > My final goal is to generate the hbm.xml mappings from the code.
> >
> >
> > thx,
> >
> > koen
> >
> > ---------------------------------------------------------------------
> > 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]