You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sean McNamara <ta...@yahoo.com> on 2006/04/24 20:26:31 UTC

Maven + J2EE + XDoclet Question.

When building J2EE components (EJB in particular) with
Maven & XDoclet, how do I set whether XDoclet should
create a J2EE 1.3 or 1.4 descriptor?  

Currently it looks like I'm getting a 1.4 descriptor
which is then failing the deploy.

Thanks!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven + J2EE + XDoclet Question.

Posted by Sean McNamara <ta...@yahoo.com>.
Thanks.  I ended up figuring that out about 2 minutes
before getting your email... Sorry for the lame
question.


--- ozeebee <oz...@gmail.com> wrote:

> 
> Hi
> 
> Simply put the ejbspec attribute of the ejbdoclet
> element to either "2.0"
> for J2EE 1.3 or "2.1" for 1.4 :
> 
> 	<ejbdoclet destdir="${xdoclet.generatedSources}"
> ejbspec="2.0">
> 		<fileset dir="${basedir}/src/main/java">
> 			<include name="**/ejb/*Bean.java"/>
> 		</fileset>
> 		<deploymentdescriptor
> destDir="${xdoclet.generatedDD}"/>
> 		<weblogic version="${weblogic.version}"
> destDir="${xdoclet.generatedDD}"
> createtables="Disabled"/>
> 		<remoteinterface />
> 		<homeinterface />
> 		<localinterface />
> 		<localhomeinterface />
> 		<session destDir="${xdoclet.generatedSources}"/>
> 	</ejbdoclet>
> 
> hope this helps
> Ozb.
> 
> --
> View this message in context:
>
http://www.nabble.com/Maven-%2B-J2EE-%2B-XDoclet-Question.-t1501123.html#a4071010
> Sent from the Maven - Users forum at Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven + J2EE + XDoclet Question.

Posted by ozeebee <oz...@gmail.com>.
Hi

Simply put the ejbspec attribute of the ejbdoclet element to either "2.0"
for J2EE 1.3 or "2.1" for 1.4 :

	<ejbdoclet destdir="${xdoclet.generatedSources}" ejbspec="2.0">
		<fileset dir="${basedir}/src/main/java">
			<include name="**/ejb/*Bean.java"/>
		</fileset>
		<deploymentdescriptor destDir="${xdoclet.generatedDD}"/>
		<weblogic version="${weblogic.version}" destDir="${xdoclet.generatedDD}"
createtables="Disabled"/>
		<remoteinterface />
		<homeinterface />
		<localinterface />
		<localhomeinterface />
		<session destDir="${xdoclet.generatedSources}"/>
	</ejbdoclet>

hope this helps
Ozb.

--
View this message in context: http://www.nabble.com/Maven-%2B-J2EE-%2B-XDoclet-Question.-t1501123.html#a4071010
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org