The Maven2 plugin for XDoclet uses the Ant XML configuration, exactly as
it is documented on the XDoclet home page
(http://xdoclet.sourceforge.net/xdoclet/index.html).  You do not have to
do any task definitions like in Ant, just define the task configurations
like <webdoclet>...</webdoclet> or <ejbdoclet>...</ejbdoclet>.

The Maven plugin configuration looks like this:
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xdoclet-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>xdoclet</goal>
            </goals>
            <configuration>
              <tasks>
                 ... Desired XDoclet XML fragment ...
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

-----Original Message-----
From: Sean McNamara [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 21, 2006 16:05
To: Maven Users List
Subject: Re: xdoclet-maven-plugin configuration question.


In re-reading my message, I wasn't really clear on
what I'm trying to do.

I'm building some EJBs using xdoclet.

My bean with XDoclet tags lives at: 

com.foo.bar.ejb.MyBean

When I generate the bean files via XDoclet, they get
put by default in:

com.foo.bar.ejb.MyBean
com.foo.bar.ejb.MyBeanHome

I need to do a couple things here:

1. Get it to generate the MyBeanUtil file.
2. Have the generated interfaces put in the
com.foo.bar.interfaces package.
3. Keep the generated bean file in com.foo.bar.ejb

This is done under M1 using the following settings:

maven.xdoclet.ejbdoclet.session.0=true
maven.xdoclet.ejbdoclet.packageSubstitution.0=true
maven.xdoclet.ejbdoclet.packageSubstitution.0.packages=ejb
maven.xdoclet.ejbdoclet.packageSubstitution.0.substituteWith=interfaces

I'm not sure why it doesn't generate the Util class
since it used to, but perhaps the defaults have
changed.

Thanks for any pointers.

--- Sean McNamara <[EMAIL PROTECTED]> wrote:

> I'm finding the documentation for the xdoclet plugin
> for M2 to be a little sparse and am hoping someone
> here can point me in the right direction.
> 
> Can anyone point me to a list of valid configuration
> parameters for the plugin?
> 
> I'm trying to change the package definitions for
> generated classes.  I was able to do this under M1,
> but I'm not seeing a clear way to do this in the M2
> POM format.
> 
> If someone can point me to docs, or if anyone knows
> of
> how to map M1 property settings into M2 XML in a
> generic way, that would help a lot!
> 
> Thanks,
> -Sean
> 
> P.S. No takers on my previous site generation
> question? :-)
> 
> __________________________________________________
> 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]
> 
> 


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


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

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

Reply via email to