Hi Uli,

Please try to use the xdoclet maven plugin from codehaus.
I am not sure if it´s gonna work. Just give a shot and let me know the results.

        <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xdoclet-maven-plugin</artifactId>
        <version>1.0-alpha-2</version>
          ...
        
Regards,
Dário

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: sábado, 10 de dezembro de 2005 12:05
To: [email protected]
Subject: Maven 2 xdoclet Null Pointer Exception


Hello,
i'm new to m2 and i want to move a little project with xdoclet for 
hibernate mapping from ant to maven 2.

I'm not sure if i'm on the right way.. I've  added to the generated pom 
following :

<build>
        <plugins>
            <plugin>
                <groupId>xdoclet</groupId>
                <artifactId>maven-xdoclet-plugin</artifactId>
                <version>1.2</version>
               
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>xdoclet</goal>
                        </goals>
                        <configuration>
                            <tasks>
                               
                                <!-- here i think must be the 
hibernatedoclet : -->
                               
                              
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
               
            </plugin>
        </plugins>
    </build>

Question 1: With this i get following error in a mvn compile:

[DEBUG] maven-resources-plugin: resolved to version 2.0 from repository 
central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-resour
ces-plugin:maven-plugin:2.0
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository 
central
[DEBUG] Retrieving parent-POM from the repository for project: 
null:maven-compil
er-plugin:maven-plugin:2.0
[INFO] 
-------------------------------------------------------------------------
---
[ERROR] FATAL ERROR
[INFO] 
-------------------------------------------------------------------------
---
[INFO] null
[INFO] 
-------------------------------------------------------------------------
---
[DEBUG] Trace
java.lang.NullPointerException
        at 
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginM
anager.java:292)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
faultPluginManager.java:198)
        at 
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:163)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1095)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifec
ycle(DefaultLifecycleExecutor.java:1060)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl
eMappings(DefaultLifecycleExecutor.java:869)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:447)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:301)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:268)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:137)
        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(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)
[INFO] 
-------------------------------------------------------------------------

Question 2: Are the paramters for hibernatedoclet like the  
hibernatedoclet -ant-task?

 Hope that sounds not too stupid, but in my web researches i got nothing 
what this explain..

Uli

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

Reply via email to