I think you will obtain more informations on xdoclet mailin list.
Emmanuel
----- Original Message -----
From: "Eric Chow" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 10:29 AM
Subject: Generate jboss.xml and jbosscmp-jdbc.xml !!
> Hi,
>
> I want to use Maven with xdoclet.
>
> I can success config the properties to use ejbdoclet, but it seems not to
> generate the jboss.xml and jbosscmp-jdbc.xml !!
>
>
>
> I create a build.properties in the same directory of project.xml, and the
> following is the contents of the build.properties and the UserBean.java.
>
>
> It can generate the ejb-jar.xml, but no jboss.xml and jbosscmp-jdbc.xml
!!!!
>
>
> Eric
>
>
>
> #------------------------------------
> # Common properties in files
> #------------------------------------
> ejb.cmp.version=2.x
>
>
>
> #------------------------------------
> # XDoclet
> #------------------------------------
> # EJBDoclet
> maven.xdoclet.ejbdoclet.destDir=${maven.build.dir}/xdoclet/ejbdoclet
> maven.xdoclet.ejbdoclet.fileset.0=true
> maven.xdoclet.ejbdoclet.fileset.0.include=**/*Bean.java
> maven.xdoclet.ejbdoclet.fileset.1=true
> maven.xdoclet.ejbdoclet.fileset.1.include=**/model/*.java
>
> maven.xdoclet.ejbdoclet.deploymentdescriptor.0=true
>
> maven.xdoclet.ejbdoclet.valueobject.0=true
> maven.xdoclet.ejbdoclet.valueobject.0.packageSubstitutions=true
>
maven.xdoclet.ejbdoclet.valueobject.0.packageSubstitutions.0.packages=model.
> *
>
maven.xdoclet.ejbdoclet.valueobject.0.packageSubstitutions.0.substituteWith=
> interfaces
>
> maven.xdoclet.ejbdoclet.utilobject.0=true
> maven.xdoclet.ejbdoclet.utilobject.0.cacheHomes=true
> maven.xdoclet.ejbdoclet.utilobject.0.includeGUID=true
> maven.xdoclet.ejbdoclet.utilobject.0.localProxies=true
> maven.xdoclet.ejbdoclet.utilobject.0.packageSubstitutions=true
>
maven.xdoclet.ejbdoclet.utilobject.0.packageSubstitutions.0.packages=model.*
>
maven.xdoclet.ejbdoclet.utilobject.0.packageSubstitutions.0.substituteWith=i
> nterfaces
>
>
> # jboss
> maven.xdoclet.ejbdoclet.jboss.0=true
>
> maven.xdoclet.ejbdoclet.jboss.0.fileset.0=true
> maven.xdoclet.ejbdoclet.jboss.0.fileset.0.include=**/*Bean.java
> maven.xdoclet.ejbdoclet.jboss.fileset.1=true
> maven.xdoclet.ejbdoclet.jboss.fileset.1.include=**/model/*Bean.java
>
> maven.xdoclet.ejbdoclet.jboss.0.Version=3.0
>
maven.xdoclet.ejbdoclet.jboss.0.destDir=${maven.build.dir}/xdoclet/ejb/META-
> INF
> maven.xdoclet.ejbdoclet.jboss.0.jaws=false
> maven.xdoclet.ejbdoclet.jboss.0.datasource=java:/DefaultDS
> maven.xdoclet.ejbdoclet.jboss.0.datasourceMapping=Hypersonic SQL
> maven.xdoclet.ejbdoclet.jboss.0.typemapping=Hypersonic SQL
> maven.xdoclet.ejbdoclet.jboss.0.generateRelations=true
> maven.xdoclet.ejbdoclet.jboss.0.preferredRelationMapping=foreign-key
> maven.xdoclet.ejbdoclet.jboss.0.unauthenticatedPrincipal=nobody
> maven.xdoclet.ejbdoclet.jboss.0.createTable=true
> maven.xdoclet.ejbdoclet.jboss.0.removeTable=true
> maven.xdoclet.ejbdoclet.jboss.0.xmlencoding=UTF-8
> maven.xdoclet.ejbdoclet.jboss.0.validateXML=true
>
>
>
> ============================================
> /* ====================================================================
> * eChows.com Software License
> * ====================================================================
> */
>
> package com.echows.football.model;
>
>
> import javax.ejb.CreateException;
> import javax.ejb.EntityBean;
> import javax.ejb.EntityContext;
>
>
> /**
> * The UserBean.
> *
> * @ejb.bean
> * type="CMP"
> * cmp-version="${ejb.cmp.version}"
> * name="User"
> * view-type="local"
> * local-jndi-name="com.echows.football.local.User"
> *
> * @ejb.transaction
> * type="Required"
> *
> *
> * @ejb.persistence
> * table-name="footballpro_user"
> *
> * @ejb.home
> * local-class="com.echows.football.interfaces.UserHome"
> *
> * @ejb.interface
> * local-class="com.echows.football.interfaces.User"
> *
> * @ejb.pk
> * class="com.echows.football.pk.UserPK"
> *
> * @ejb.finder
> * signature="Collection findAll()"
> * query="SELECT OBJECT(a) FROM User AS a"
> * transaction-type="Required"
> * unchecked="true"
> *
> * @ejb.finder
> * signature="User findByPrimaryKey(com.echows.football.pk.UserPK pk)"
> *
> * @ejb.finder
> * signature="Collection findByUserName(java.lang.String userName)"
> * query="SELECT OBJECT(u) FROM User AS u WHERE u.userName = ?1"
> * methof-intf="LocalHome"
> * result-type-mapping="Local"
> *
> * @ejb.value-object
> *
> * @author
> * <a href="mailto:[EMAIL PROTECTED]">Eric Chow</a>
> */
> public abstract class UserBean implements EntityBean {
>
> protected EntityContext ctx;
>
> /**
> * @ejb.create-method
> */
> public com.echows.football.pk.UserPK ejbCreate(String userName, String
> password) throws CreateException {
> setUserName(userName);
> setPassword(password);
>
> return null;
> }
>
> /**
> * @ejb.create-method
> */
> public com.echows.football.pk.UserPK ejbCreate(UserValue userValue)
> throws CreateException {
> setUserValue(userValue);
>
> return null;
> }
>
> public void ejbPostCreate(String userName, String password) {
> ;
> }
>
> public void ejbPostCreate(UserValue userValue) {
> ;
> }
>
>
> /**
> * Sets the password.
> *
> * @param the password
> *
> *
> *
> * @ejb.interface-method
> */
> public abstract void setPassword(String password);
>
> /**
> * Gets the password.
> *
> * @return the password
> *
> *
> *
> *
> * @ejb.interface-method
> *
> * @ejb.transaction
> * type="Supports"
> *
> * @ejb.pk-field
> *
> * @ejb.persistence
> * column-name="password"
> *
> * @ejb.value-object
> *
> * @jboss.persistence
> * not-null="true"
> *
> *
> *
> */
> public abstract String getPassword();
>
> /**
> * Sets the userName.
> *
> * @param the userName
> *
> *
> *
> * @ejb.interface-method
> */
> public abstract void setUserName(String userName);
>
> /**
> * Gets the userName.
> *
> * @return the userName
> *
> *
> *
> *
> * @ejb.interface-method
> *
> * @ejb.transaction
> * type="Supports"
> *
> * @ejb.persistence
> * column-name="username"
> *
> * @ejb.value-object
> *
> * @jboss.persistence
> * not-null="true"
> *
> *
> *
> */
> public abstract String getUserName();
>
>
>
> /**
> * Sets the userValue.
> *
> * @param the userValue
> *
> *
> *
> * @ejb.interface-method
> */
> public abstract void setUserValue(UserValue userValue);
>
> /**
> * Sets the userValue.
> *
> * @param the userValue
> *
> *
> *
> * @ejb.interface-method
> */
> public abstract UserValue getUserValue();
> }
>
>
>
>
> ==========================
> If you know what you are doing,
> it is not called RESEARCH!
> ==========================
>
>
> ---------------------------------------------------------------------
> 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]