You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Janos Mucsi <mu...@yahoo.com> on 2004/11/13 00:53:40 UTC

XDoclet in Maven

Hi
I made HUGE progress since you helped me a lot!
This is how far I get, everything is going fine then I
start getting these "Could not load..." messages. Any
ideas?


    [ejbdoclet] [DEBUG] Resource
xdoclet/modules/ejb/dd/resources/ejb-body.xdt l
oaded from ant loader
    [ejbdoclet] [DEBUG] Finding class
xdoclet.template.PrettyPrintWriter
    [ejbdoclet] [DEBUG] Class java.io.PrintWriter
loaded from parent loader
    [ejbdoclet] [DEBUG] Class
xdoclet.template.PrettyPrintWriter loaded from ant
 loader
    [ejbdoclet] [DEBUG] Couldn't load Resource
ejb-env-entries-{0}.xml
    [ejbdoclet] [DEBUG] Couldn't load Resource
ejb-ejbrefs-{0}.xml
    [ejbdoclet] [DEBUG] Resource
xdoclet/modules/ejb/dd/resources/ejb-ref.xdt lo
aded from ant loader
    [ejbdoclet] [DEBUG] Couldn't load Resource
ejb-sec-rolerefs-{0}.xml
    [ejbdoclet] [DEBUG] Couldn't load Resource
ejb-resourcerefs-{0}.xml
    [ejbdoclet] [DEBUG] Couldn't load Resource
ejb-resource-env-refs-{0}.xml
    [ejbdoclet] [DEBUG] Finding class
xjavadoc.XParameter
    [ejbdoclet] [DEBUG] Class xjavadoc.XParameter
loaded from ant loader
    [ejbdoclet] [DEBUG] Couldn't load Resource
ejb-finders-{0}.xml
    [ejbdoclet] [DEBUG] Couldn't load Resource
session-beans.xml
    [ejbdoclet] [DEBUG] Resource
xdoclet/modules/ejb/dd/resources/ejb-body.xdt l
oaded from ant loader
    [ejbdoclet] [DEBUG] Couldn't load Resource
entity-beans.xml
    [ejbdoclet] [DEBUG] Resource
xdoclet/modules/ejb/dd/resources/ejb-body.xdt l
oaded from ant loader
    [ejbdoclet] [DEBUG] Couldn't load Resource
message-driven-beans.xml
    [ejbdoclet] [DEBUG] Resource
xdoclet/modules/ejb/dd/resources/relationships.
xdt loaded from ant loader
    [ejbdoclet] [DEBUG] Resource
xdoclet/modules/ejb/dd/resources/asm-descriptor
.xdt loaded from ant loader
    [ejbdoclet] [DEBUG] Class
sun.reflect.MethodAccessorImpl loaded from parent
loader
    [ejbdoclet] [DEBUG] Couldn't load Resource
assembly-descriptor.xml
    [ejbdoclet] [DEBUG] Couldn't load Resource
ejb-security-roles.xml
    [ejbdoclet] [DEBUG] Finding class
xdoclet.XDocletMessagesMessages
    [ejbdoclet] [DEBUG] ResourceStream for
xdoclet/XDocletMessagesMessages.prope
rties loaded from ant loader
    [ejbdoclet] [DEBUG] Finding class
xdoclet.XDocletMessagesMessages_en
    [ejbdoclet] [DEBUG] Couldn't load ResourceStream
for xdoclet/XDocletMessages
Messages_en.properties
    [ejbdoclet] [DEBUG] Finding class
xdoclet.XDocletMessagesMessages_en_US
    [ejbdoclet] [DEBUG] Couldn't load ResourceStream
for xdoclet/XDocletMessages
Messages_en_US.properties
    [ejbdoclet] [DEBUG] Finding class
xjavadoc.XJavaDoc$NoInnerClassesPredicate
    [ejbdoclet] [DEBUG] Class
xjavadoc.XJavaDoc$NoInnerClassesPredicate loaded f
rom ant loader
    [ejbdoclet] [DEBUG] Finding class
org.apache.commons.collections.CollectionU
tils
    [ejbdoclet] [DEBUG] Class
org.apache.commons.collections.CollectionUtils loa
ded from ant loader
    [ejbdoclet] [DEBUG] Class
java.lang.NullPointerException loaded from parent
loader
    [ejbdoclet] [DEBUG] Class
java.util.AbstractCollection loaded from parent lo
ader
    [ejbdoclet] [DEBUG] Class
java.lang.IndexOutOfBoundsException loaded from pa
rent loader
    [ejbdoclet] [DEBUG] Class java.lang.Integer loaded
from parent loader
    [ejbdoclet] [DEBUG] Finding class
org.apache.commons.collections.collection.
UnmodifiableCollection
    [ejbdoclet] [DEBUG] Finding class
org.apache.commons.collections.collection.
AbstractSerializableCollectionDecorator
    [ejbdoclet] [DEBUG] Finding class
org.apache.commons.collections.collection.
AbstractCollectionDecorator
    [ejbdoclet] [DEBUG] Class
org.apache.commons.collections.collection.Abstract
CollectionDecorator loaded from ant loader
    [ejbdoclet] [DEBUG] Class
org.apache.commons.collections.collection.Abstract
SerializableCollectionDecorator loaded from ant loader
    [ejbdoclet] [DEBUG] Finding class
org.apache.commons.collections.Unmodifiabl
e
    [ejbdoclet] [DEBUG] Class
org.apache.commons.collections.Unmodifiable loaded
 from ant loader
    [ejbdoclet] [DEBUG] Class
org.apache.commons.collections.collection.Unmodifi
ableCollection loaded from ant loader
[DEBUG] Adding reference:
ejbdoclet.java.compile.src.set ->

    [echo] Compiling to
C:\temp\eclipse\PlutoApp\modules\everest-module-registra
tion/target/classes
    [javac] [DEBUG] fileset: Setup scanner in dir
C:\temp\eclipse\PlutoApp\modul
es\everest-module-registration\src\java with
patternSet{ includes: [] excludes:
[**/package.html] }
    [javac] [VERBOSE]
com\mucsillc\ejb\AccountService.java added as
com/mucsillc
/ejb/AccountService.class is outdated.
popping off
org.apache.maven.jelly.MavenJellyContext@b09697 for
org.apache.maven
.jelly.MavenJellyContext@16eb6bc in
maven-xdoclet-plugin:maven-xdoclet-plugin
popping off
org.apache.maven.jelly.MavenJellyContext@a89ce3 for
org.apache.maven
.jelly.MavenJellyContext@1d439fe in
maven-pom-plugin:maven-pom-plugin
popping off
org.apache.maven.jelly.MavenJellyContext@969c29 for
org.apache.maven
.jelly.MavenJellyContext@1e67e6a in
maven-ejb-plugin:maven-ejb-plugin
popping off
org.apache.maven.jelly.MavenJellyContext@92dcdb for
org.apache.maven
.jelly.MavenJellyContext@1e1be92 in
maven-xdoc-plugin:maven-xdoc-plugin
popping off
org.apache.maven.jelly.MavenJellyContext@173ec72 for
org.apache.mave
n.jelly.MavenJellyContext@1a85d38 in
maven-license-plugin:maven-license-plugin
popping off
org.apache.maven.jelly.MavenJellyContext@16dc861 for
org.apache.mave
n.jelly.MavenJellyContext@7e8c4d in
maven-artifact-plugin:maven-artifact-plugin
popping off
org.apache.maven.jelly.MavenJellyContext@1acd47 for
org.apache.maven
.jelly.MavenJellyContext@19b04e2 in
everest:everest-module-registration

BUILD FAILED
File...... C:\Documents and
Settings\jmucsi\.maven\cache\maven-java-plugin-1.4\p
lugin.jelly
Element... ant:javac
Line...... 53
Column.... 48
srcdir
"C:\temp\eclipse\PlutoApp\modules\everest-module-registration\target\xdoc
let\ejbdoclet" does not exist!
com.werken.werkz.UnattainableGoalException: Unable to
obtain goal [ejb:init] --


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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


Re: [OT] Re: XDoclet in Maven

Posted by Arnaud HERITIER <ah...@gmail.com>.
Thanks Corey,

I saw this but there's only the 1.2.1 release on this repository.
Do you know if there's something planned to publish the 1.2.2 ??

Arnaud


On Tue, 16 Nov 2004 00:27:10 +0800, Corey Scott <co...@gmail.com> wrote:
> Arnaud,
> 
> There is a line on the xdoclet site (although it isnt as obvious and
> maybe it should be) but you can add the xdoclet maven repository to
> you maven.repo.remote setting and this should take care of downloading
> everything you need.
> 
> Your build.properties (or similar) may end up something like the following:
> maven.repo.remote=http://www.ibiblio.org/maven/,http://xdoclet.sourceforge.net/repository/
> 
> Hope this helps,
> Corey
> 
> 
> 
> On Sun, 14 Nov 2004 17:41:48 +0100, Arnaud HERITIER <ah...@gmail.com> wrote:
> > Did you find xdoclet 1.2.2 on a repository like ibiblio ??
> > I didn't find it. I must install it locally myself :-(
> >
> > Arnaud
> >
> > > -----Message d'origine-----
> > > De : Eric Pugh [mailto:epugh@upstate.com]
> > > Envoyé : dimanche 14 novembre 2004 17:22
> > > À : Pascal Thivent; epugh@upstate.com; Maven Users List
> > > Objet : RE: [OT] Re: XDoclet in Maven
> >
> >
> > >
> > > I'm glad you like the new "all in one" aspect in 1.2.2 ;-).
> > >
> > > Note though, I only added the most common dependencies.  I thought about
> > > adding all of them, but was worried it would make anyone using the plugin
> > > have to download a massive number of dependencies when they only need one.
> > > However, if people find there are some specific ones they would like added,
> > > hollar on the xdoclet-dev list.
> > >
> > > Eric
> > >
> > > > -----Original Message-----
> > > > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > > > Sent: Saturday, November 13, 2004 10:19 PM
> > > > To: epugh@upstate.com; Maven Users List
> > > > Subject: Re: [OT] Re: XDoclet in Maven
> > > >
> > > >
> > > > Actually, the maven xdoclet plugin has all xdoclet required
> > > > dependencies in its project.xml so I don't have to manage them
> > > > anymore.
> > > >
> > > > Thus, I would recommand more than ever to use the maven-xdoclet-plugin
> > > > rather than xdoclet ant tasks directly (for the same reason as
> > > > mentionned in a previous mail : maintainability).
> > > >
> > > > On Sat, 13 Nov 2004 20:47:38 -0100, Pascal Thivent
> > > > <pa...@gmail.com> wrote:
> > > > > Hi,
> > > > >
> > > > > I've upgraded my maven-xdoclet-plugin and my various xdoclet modules
> > > > > dependencies to version 1.2.2. EJBs classes and hibernate mappings
> > > > > generation works fine.
> > > > >
> > > > > Thanks.
> > > > >
> > > > >
> > > > >
> > > > > On Sat, 13 Nov 2004 12:47:53 -0000, Eric Pugh <ep...@upstate.com> wrote:
> > > > > > Have you tried with the latest and greatest of xdoclet?
> > > > 1.2.2 was released,
> > > > > > and had many improvements and cleanups applied to the Maven plugin.
> > > > > >
> > > > > >
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > > > > > > Sent: Saturday, November 13, 2004 6:32 AM
> > > > > > > To: Maven Users List
> > > > > > > Subject: Re: XDoclet in Maven
> > > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > in deed, you made a lot of progress since the first mail.
> > > > Lets try to
> > > > > > > tackle all pending issues.
> > > > > > >
> > > > > > > I'm not using the EjbDocletTask directly but use rather the maven
> > > > > > > xdoclet goal. So I have this in my maven.xml :
> > > > > > >
> > > > > > >     <preGoal name="java:compile">
> > > > > > >         <echo>Generates EJB classes and descriptor files</echo>
> > > > > > >         <attainGoal name="xdoclet:ejbdoclet"/>
> > > > > > >     </preGoal>
> > > > > > >
> > > > > > > And the following dependency in my project.xml (it's enough for what
> > > > > > > i'm doing for now) :
> > > > > > >
> > > > > > >     <dependency>
> > > > > > >       <groupId>xdoclet</groupId>
> > > > > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > > > > >       <version>1.2.1</version>
> > > > > > >       <type>jar</type>
> > > > > > >       <properties>
> > > > > > >         <eclipse.dependency>false</eclipse.dependency>
> > > > > > >       </properties>
> > > > > > >     </dependency>
> > > > > > >
> > > > > > > And this *works fine* (other potentially required libraries such as
> > > > > > > commons-collections, commons-logging, log4j are not
> > > > mentionned here).
> > > > > > >
> > > > > > > Anyway, it's also possible to use directly an ant task from
> > > > maven, as
> > > > > > > you are trying to do. I've tried to reproduce you configuration and
> > > > > > > replaced the content of my pregoal with :
> > > > > > >
> > > > > > >     <preGoal name="java:compile">
> > > > > > >       <taskdef
> > > > > > >        name="ejbdoclet"
> > > > > > >        classname="xdoclet.modules.ejb.EjbDocletTask"
> > > > > > >        classpathref="maven.dependency.classpath" />
> > > > > > >     </preGoal>
> > > > > > >
> > > > > > > This won't do anything more than adding a task definition to the
> > > > > > > current project, you still need to call it then (see for example :
> > > > > > > http://tinyurl.com/4xfw7 or xdoclet web site) but it is
> > > > enough to fix
> > > > > > > potential classpath issues.
> > > > > > >
> > > > > > > When running maven with the dependencies mentionned above, I get the
> > > > > > > following trace :
> > > > > > >
> > > > > > > BUILD FAILED
> > > > > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > > > > Element... taskdef
> > > > > > > Line...... 24
> > > > > > > Column.... 50
> > > > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > > > Total time: 12 seconds
> > > > > > > Finished at: Sat Nov 13 06:53:01 CET 2004
> > > > > > >
> > > > > > > This is surprising as everything was working fine with the
> > > > > > > xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
> > > > > > > that the maven-xdoclet-plugin has. When running maven with the -X
> > > > > > > option, I get the  :
> > > > > > >
> > > > > > > BUILD FAILED
> > > > > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > > > > Element... taskdef
> > > > > > > Line...... 24
> > > > > > > Column.... 50
> > > > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > > > com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> > > > > > > [cauldron:dist
> > > > > > > ] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50:
> > > > > > > <taskdef> taskdef class
> > > > > > >  xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > > >
> > > > > > > [...]
> > > > > > >
> > > > > > > --- Nested Exception ---
> > > > > > > java.lang.NoClassDefFoundError: xdoclet/DocletTask
> > > > > > >
> > > > > > > [...]
> > > > > > >
> > > > > > > No possible doubts, I'm missing some dependencies. Let's
> > > > try it again
> > > > > > > with the following set (after a first try with just xdoclet added, I
> > > > > > > saw that xjavadoc was required too) :
> > > > > > >
> > > > > > >     <dependency>
> > > > > > >       <groupId>xdoclet</groupId>
> > > > > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > > > > >       <version>1.2.1</version>
> > > > > > >       <type>jar</type>
> > > > > > >     </dependency>
> > > > > > >     <dependency>
> > > > > > >       <groupId>xdoclet</groupId>
> > > > > > >       <artifactId>xdoclet</artifactId>
> > > > > > >       <version>1.2.1</version>
> > > > > > >     </dependency>
> > > > > > >     <dependency>
> > > > > > >       <groupId>xdoclet</groupId>
> > > > > > >       <artifactId>xjavadoc</artifactId>
> > > > > > >       <version>1.0.3</version>
> > > > > > >     </dependency>
> > > > > > >
> > > > > > > Ok, this time, the EjbDocletTask has been properly loaded, everyting
> > > > > > > is fine. Would just have to do some stuff with it now :)
> > > > > > >
> > > > > > > You should be able to get it wotking too now.
> > > > > > >
> > > > > > > I don't know if you have any preferences but I suggest to use the
> > > > > > > maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
> > > > > > > maven-xodlet-plugin team is already adding the EjbDocletTask
> > > > > > > definition so I prefer to not duplicate (and maintain !)
> > > > this code in
> > > > > > > my scripts.
> > > > > > >
> > > > > > > On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi
> > > > > > > <mu...@yahoo.com> wrote:
> > > > > > > >
> > > > > > > > To rephrase my previous question, if the
> > > > > > > > ${pom.dependencyClasspath} contains
> > > > > > > > xdoclet-ejb-module-1.2.jar which contains
> > > > > > > > xdoclet.modules.ejb.EjbDocletTask, then why do I get
> > > > > > > > this if my taskdef is like this:
> > > > > > > >
> > > > > > > > ===================================================
> > > > > > > >
> > > > > > > >
> > > > > > > > <ant:taskdef name="ejbdoclet"
> > > > > > > > classname="xdoclet.modules.ejb.EjbDocletTask">
> > > > > > > >             <ant:classpath>
> > > > > > > >                                 <ant:pathelement
> > > > > > > > path="${pom.dependencyClasspath}"/>
> > > > > > > >                 <ant:path
> > > > > > > > refid="maven.dependency.classpath"/>
> > > > > > > >             </ant:classpath>
> > > > > > > >         </ant:taskdef>
> > > > > > > > =====================================
> > > > > > > >
> > > > > > > >
> > > > > > > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> > > > > > > > ejb:install
> > > > > > > >  __  __
> > > > > > > > |  \/  |__ _Apache__ ___
> > > > > > > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > > > > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> > > > > > > >
> > > > > > > > build:start:
> > > > > > > >
> > > > > > > > ejb:init:
> > > > > > > > java:prepare-filesystem:
> > > > > > > >
> > > > > > > > java:compile:
> > > > > > > >     [echo] java:compile ${pom.dependencyClasspath}=
> > > > > > > > C:\Documents and Settings\jm
> > > > > > > >
> > > > > > > ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;
> > > > > > > C:\Documents
> > > > > > > > a
> > > > > > > > nd
> > > > > > > >
> > > > Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> > > > > > > > and S
> > > > > > > >
> > > > > > > ettings\jmucsi/.maven/repository\commons-collections\jars\commons-
> > > > > > > collections-3.
> > > > > > > >
> > > > 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> > > > > > > > and Settin
> > > > > > > >
> > > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> > > > > > > > and Settin
> > > > > > > >
> > > > > > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.
> > > > > > > 2.jar;C:\Docum
> > > > > > > > ents and
> > > > > > > >
> > > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> > > > > > > > ar;C:\Documents and
> > > > > > > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> > > > > > > > nate-module-1.2.jar;C:\Documents and
> > > > > > > > Settings\jmucsi/.maven/repository\xdoclet\j
> > > > > > > > ars\xdoclet-jboss-module-1.2.jar;
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > BUILD FAILED
> > > > > > > > File......
> > > > > > > >
> > > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> > > > > > > > l
> > > > > > > > Element... ant:taskdef
> > > > > > > > Line...... 9
> > > > > > > > Column.... 84
> > > > > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> > > > > > > > be found
> > > > > > > >
> > > > > > > > __________________________________
> > > > > > > > Do you Yahoo!?
> > > > > > > > Check out the new Yahoo! Front Page.
> > > > > > > > www.yahoo.com
> > > > > > > >
> > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Pascal
> > > > > > >
> > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > >
> > > > > >
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > Pascal
> > > > >
> > > >
> > > >
> > > > --
> > > > Pascal
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Re: [OT] Re: XDoclet in Maven

Posted by Corey Scott <co...@gmail.com>.
Arnaud,

There is a line on the xdoclet site (although it isnt as obvious and
maybe it should be) but you can add the xdoclet maven repository to
you maven.repo.remote setting and this should take care of downloading
everything you need.

Your build.properties (or similar) may end up something like the following:
maven.repo.remote=http://www.ibiblio.org/maven/,http://xdoclet.sourceforge.net/repository/

Hope this helps,
Corey

On Sun, 14 Nov 2004 17:41:48 +0100, Arnaud HERITIER <ah...@gmail.com> wrote:
> Did you find xdoclet 1.2.2 on a repository like ibiblio ??
> I didn't find it. I must install it locally myself :-(
> 
> Arnaud
> 
> > -----Message d'origine-----
> > De : Eric Pugh [mailto:epugh@upstate.com]
> > Envoyé : dimanche 14 novembre 2004 17:22
> > À : Pascal Thivent; epugh@upstate.com; Maven Users List
> > Objet : RE: [OT] Re: XDoclet in Maven
> 
> 
> >
> > I'm glad you like the new "all in one" aspect in 1.2.2 ;-).
> >
> > Note though, I only added the most common dependencies.  I thought about
> > adding all of them, but was worried it would make anyone using the plugin
> > have to download a massive number of dependencies when they only need one.
> > However, if people find there are some specific ones they would like added,
> > hollar on the xdoclet-dev list.
> >
> > Eric
> >
> > > -----Original Message-----
> > > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > > Sent: Saturday, November 13, 2004 10:19 PM
> > > To: epugh@upstate.com; Maven Users List
> > > Subject: Re: [OT] Re: XDoclet in Maven
> > >
> > >
> > > Actually, the maven xdoclet plugin has all xdoclet required
> > > dependencies in its project.xml so I don't have to manage them
> > > anymore.
> > >
> > > Thus, I would recommand more than ever to use the maven-xdoclet-plugin
> > > rather than xdoclet ant tasks directly (for the same reason as
> > > mentionned in a previous mail : maintainability).
> > >
> > > On Sat, 13 Nov 2004 20:47:38 -0100, Pascal Thivent
> > > <pa...@gmail.com> wrote:
> > > > Hi,
> > > >
> > > > I've upgraded my maven-xdoclet-plugin and my various xdoclet modules
> > > > dependencies to version 1.2.2. EJBs classes and hibernate mappings
> > > > generation works fine.
> > > >
> > > > Thanks.
> > > >
> > > >
> > > >
> > > > On Sat, 13 Nov 2004 12:47:53 -0000, Eric Pugh <ep...@upstate.com> wrote:
> > > > > Have you tried with the latest and greatest of xdoclet?
> > > 1.2.2 was released,
> > > > > and had many improvements and cleanups applied to the Maven plugin.
> > > > >
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > > > > > Sent: Saturday, November 13, 2004 6:32 AM
> > > > > > To: Maven Users List
> > > > > > Subject: Re: XDoclet in Maven
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > in deed, you made a lot of progress since the first mail.
> > > Lets try to
> > > > > > tackle all pending issues.
> > > > > >
> > > > > > I'm not using the EjbDocletTask directly but use rather the maven
> > > > > > xdoclet goal. So I have this in my maven.xml :
> > > > > >
> > > > > >     <preGoal name="java:compile">
> > > > > >         <echo>Generates EJB classes and descriptor files</echo>
> > > > > >         <attainGoal name="xdoclet:ejbdoclet"/>
> > > > > >     </preGoal>
> > > > > >
> > > > > > And the following dependency in my project.xml (it's enough for what
> > > > > > i'm doing for now) :
> > > > > >
> > > > > >     <dependency>
> > > > > >       <groupId>xdoclet</groupId>
> > > > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > > > >       <version>1.2.1</version>
> > > > > >       <type>jar</type>
> > > > > >       <properties>
> > > > > >         <eclipse.dependency>false</eclipse.dependency>
> > > > > >       </properties>
> > > > > >     </dependency>
> > > > > >
> > > > > > And this *works fine* (other potentially required libraries such as
> > > > > > commons-collections, commons-logging, log4j are not
> > > mentionned here).
> > > > > >
> > > > > > Anyway, it's also possible to use directly an ant task from
> > > maven, as
> > > > > > you are trying to do. I've tried to reproduce you configuration and
> > > > > > replaced the content of my pregoal with :
> > > > > >
> > > > > >     <preGoal name="java:compile">
> > > > > >       <taskdef
> > > > > >        name="ejbdoclet"
> > > > > >        classname="xdoclet.modules.ejb.EjbDocletTask"
> > > > > >        classpathref="maven.dependency.classpath" />
> > > > > >     </preGoal>
> > > > > >
> > > > > > This won't do anything more than adding a task definition to the
> > > > > > current project, you still need to call it then (see for example :
> > > > > > http://tinyurl.com/4xfw7 or xdoclet web site) but it is
> > > enough to fix
> > > > > > potential classpath issues.
> > > > > >
> > > > > > When running maven with the dependencies mentionned above, I get the
> > > > > > following trace :
> > > > > >
> > > > > > BUILD FAILED
> > > > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > > > Element... taskdef
> > > > > > Line...... 24
> > > > > > Column.... 50
> > > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > > Total time: 12 seconds
> > > > > > Finished at: Sat Nov 13 06:53:01 CET 2004
> > > > > >
> > > > > > This is surprising as everything was working fine with the
> > > > > > xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
> > > > > > that the maven-xdoclet-plugin has. When running maven with the -X
> > > > > > option, I get the  :
> > > > > >
> > > > > > BUILD FAILED
> > > > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > > > Element... taskdef
> > > > > > Line...... 24
> > > > > > Column.... 50
> > > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > > com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> > > > > > [cauldron:dist
> > > > > > ] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50:
> > > > > > <taskdef> taskdef class
> > > > > >  xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > >
> > > > > > [...]
> > > > > >
> > > > > > --- Nested Exception ---
> > > > > > java.lang.NoClassDefFoundError: xdoclet/DocletTask
> > > > > >
> > > > > > [...]
> > > > > >
> > > > > > No possible doubts, I'm missing some dependencies. Let's
> > > try it again
> > > > > > with the following set (after a first try with just xdoclet added, I
> > > > > > saw that xjavadoc was required too) :
> > > > > >
> > > > > >     <dependency>
> > > > > >       <groupId>xdoclet</groupId>
> > > > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > > > >       <version>1.2.1</version>
> > > > > >       <type>jar</type>
> > > > > >     </dependency>
> > > > > >     <dependency>
> > > > > >       <groupId>xdoclet</groupId>
> > > > > >       <artifactId>xdoclet</artifactId>
> > > > > >       <version>1.2.1</version>
> > > > > >     </dependency>
> > > > > >     <dependency>
> > > > > >       <groupId>xdoclet</groupId>
> > > > > >       <artifactId>xjavadoc</artifactId>
> > > > > >       <version>1.0.3</version>
> > > > > >     </dependency>
> > > > > >
> > > > > > Ok, this time, the EjbDocletTask has been properly loaded, everyting
> > > > > > is fine. Would just have to do some stuff with it now :)
> > > > > >
> > > > > > You should be able to get it wotking too now.
> > > > > >
> > > > > > I don't know if you have any preferences but I suggest to use the
> > > > > > maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
> > > > > > maven-xodlet-plugin team is already adding the EjbDocletTask
> > > > > > definition so I prefer to not duplicate (and maintain !)
> > > this code in
> > > > > > my scripts.
> > > > > >
> > > > > > On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi
> > > > > > <mu...@yahoo.com> wrote:
> > > > > > >
> > > > > > > To rephrase my previous question, if the
> > > > > > > ${pom.dependencyClasspath} contains
> > > > > > > xdoclet-ejb-module-1.2.jar which contains
> > > > > > > xdoclet.modules.ejb.EjbDocletTask, then why do I get
> > > > > > > this if my taskdef is like this:
> > > > > > >
> > > > > > > ===================================================
> > > > > > >
> > > > > > >
> > > > > > > <ant:taskdef name="ejbdoclet"
> > > > > > > classname="xdoclet.modules.ejb.EjbDocletTask">
> > > > > > >             <ant:classpath>
> > > > > > >                                 <ant:pathelement
> > > > > > > path="${pom.dependencyClasspath}"/>
> > > > > > >                 <ant:path
> > > > > > > refid="maven.dependency.classpath"/>
> > > > > > >             </ant:classpath>
> > > > > > >         </ant:taskdef>
> > > > > > > =====================================
> > > > > > >
> > > > > > >
> > > > > > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> > > > > > > ejb:install
> > > > > > >  __  __
> > > > > > > |  \/  |__ _Apache__ ___
> > > > > > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > > > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> > > > > > >
> > > > > > > build:start:
> > > > > > >
> > > > > > > ejb:init:
> > > > > > > java:prepare-filesystem:
> > > > > > >
> > > > > > > java:compile:
> > > > > > >     [echo] java:compile ${pom.dependencyClasspath}=
> > > > > > > C:\Documents and Settings\jm
> > > > > > >
> > > > > > ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;
> > > > > > C:\Documents
> > > > > > > a
> > > > > > > nd
> > > > > > >
> > > Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> > > > > > > and S
> > > > > > >
> > > > > > ettings\jmucsi/.maven/repository\commons-collections\jars\commons-
> > > > > > collections-3.
> > > > > > >
> > > 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> > > > > > > and Settin
> > > > > > >
> > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> > > > > > > and Settin
> > > > > > >
> > > > > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.
> > > > > > 2.jar;C:\Docum
> > > > > > > ents and
> > > > > > >
> > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> > > > > > > ar;C:\Documents and
> > > > > > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> > > > > > > nate-module-1.2.jar;C:\Documents and
> > > > > > > Settings\jmucsi/.maven/repository\xdoclet\j
> > > > > > > ars\xdoclet-jboss-module-1.2.jar;
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > BUILD FAILED
> > > > > > > File......
> > > > > > >
> > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> > > > > > > l
> > > > > > > Element... ant:taskdef
> > > > > > > Line...... 9
> > > > > > > Column.... 84
> > > > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> > > > > > > be found
> > > > > > >
> > > > > > > __________________________________
> > > > > > > Do you Yahoo!?
> > > > > > > Check out the new Yahoo! Front Page.
> > > > > > > www.yahoo.com
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Pascal
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > >
> > > > >
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > > --
> > > > Pascal
> > > >
> > >
> > >
> > > --
> > > Pascal
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


RE: [OT] Re: XDoclet in Maven

Posted by Arnaud HERITIER <ah...@gmail.com>.
Did you find xdoclet 1.2.2 on a repository like ibiblio ??
I didn't find it. I must install it locally myself :-(

Arnaud

> -----Message d'origine-----
> De : Eric Pugh [mailto:epugh@upstate.com]
> Envoyé : dimanche 14 novembre 2004 17:22
> À : Pascal Thivent; epugh@upstate.com; Maven Users List
> Objet : RE: [OT] Re: XDoclet in Maven
> 
> I'm glad you like the new "all in one" aspect in 1.2.2 ;-).
> 
> Note though, I only added the most common dependencies.  I thought about
> adding all of them, but was worried it would make anyone using the plugin
> have to download a massive number of dependencies when they only need one.
> However, if people find there are some specific ones they would like added,
> hollar on the xdoclet-dev list.
> 
> Eric
> 
> > -----Original Message-----
> > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > Sent: Saturday, November 13, 2004 10:19 PM
> > To: epugh@upstate.com; Maven Users List
> > Subject: Re: [OT] Re: XDoclet in Maven
> >
> >
> > Actually, the maven xdoclet plugin has all xdoclet required
> > dependencies in its project.xml so I don't have to manage them
> > anymore.
> >
> > Thus, I would recommand more than ever to use the maven-xdoclet-plugin
> > rather than xdoclet ant tasks directly (for the same reason as
> > mentionned in a previous mail : maintainability).
> >
> > On Sat, 13 Nov 2004 20:47:38 -0100, Pascal Thivent
> > <pa...@gmail.com> wrote:
> > > Hi,
> > >
> > > I've upgraded my maven-xdoclet-plugin and my various xdoclet modules
> > > dependencies to version 1.2.2. EJBs classes and hibernate mappings
> > > generation works fine.
> > >
> > > Thanks.
> > >
> > >
> > >
> > > On Sat, 13 Nov 2004 12:47:53 -0000, Eric Pugh <ep...@upstate.com> wrote:
> > > > Have you tried with the latest and greatest of xdoclet?
> > 1.2.2 was released,
> > > > and had many improvements and cleanups applied to the Maven plugin.
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > > > > Sent: Saturday, November 13, 2004 6:32 AM
> > > > > To: Maven Users List
> > > > > Subject: Re: XDoclet in Maven
> > > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > in deed, you made a lot of progress since the first mail.
> > Lets try to
> > > > > tackle all pending issues.
> > > > >
> > > > > I'm not using the EjbDocletTask directly but use rather the maven
> > > > > xdoclet goal. So I have this in my maven.xml :
> > > > >
> > > > >     <preGoal name="java:compile">
> > > > >         <echo>Generates EJB classes and descriptor files</echo>
> > > > >         <attainGoal name="xdoclet:ejbdoclet"/>
> > > > >     </preGoal>
> > > > >
> > > > > And the following dependency in my project.xml (it's enough for what
> > > > > i'm doing for now) :
> > > > >
> > > > >     <dependency>
> > > > >       <groupId>xdoclet</groupId>
> > > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > > >       <version>1.2.1</version>
> > > > >       <type>jar</type>
> > > > >       <properties>
> > > > >         <eclipse.dependency>false</eclipse.dependency>
> > > > >       </properties>
> > > > >     </dependency>
> > > > >
> > > > > And this *works fine* (other potentially required libraries such as
> > > > > commons-collections, commons-logging, log4j are not
> > mentionned here).
> > > > >
> > > > > Anyway, it's also possible to use directly an ant task from
> > maven, as
> > > > > you are trying to do. I've tried to reproduce you configuration and
> > > > > replaced the content of my pregoal with :
> > > > >
> > > > >     <preGoal name="java:compile">
> > > > >       <taskdef
> > > > >        name="ejbdoclet"
> > > > >        classname="xdoclet.modules.ejb.EjbDocletTask"
> > > > >        classpathref="maven.dependency.classpath" />
> > > > >     </preGoal>
> > > > >
> > > > > This won't do anything more than adding a task definition to the
> > > > > current project, you still need to call it then (see for example :
> > > > > http://tinyurl.com/4xfw7 or xdoclet web site) but it is
> > enough to fix
> > > > > potential classpath issues.
> > > > >
> > > > > When running maven with the dependencies mentionned above, I get the
> > > > > following trace :
> > > > >
> > > > > BUILD FAILED
> > > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > > Element... taskdef
> > > > > Line...... 24
> > > > > Column.... 50
> > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > Total time: 12 seconds
> > > > > Finished at: Sat Nov 13 06:53:01 CET 2004
> > > > >
> > > > > This is surprising as everything was working fine with the
> > > > > xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
> > > > > that the maven-xdoclet-plugin has. When running maven with the -X
> > > > > option, I get the  :
> > > > >
> > > > > BUILD FAILED
> > > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > > Element... taskdef
> > > > > Line...... 24
> > > > > Column.... 50
> > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > > com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> > > > > [cauldron:dist
> > > > > ] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50:
> > > > > <taskdef> taskdef class
> > > > >  xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > >
> > > > > [...]
> > > > >
> > > > > --- Nested Exception ---
> > > > > java.lang.NoClassDefFoundError: xdoclet/DocletTask
> > > > >
> > > > > [...]
> > > > >
> > > > > No possible doubts, I'm missing some dependencies. Let's
> > try it again
> > > > > with the following set (after a first try with just xdoclet added, I
> > > > > saw that xjavadoc was required too) :
> > > > >
> > > > >     <dependency>
> > > > >       <groupId>xdoclet</groupId>
> > > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > > >       <version>1.2.1</version>
> > > > >       <type>jar</type>
> > > > >     </dependency>
> > > > >     <dependency>
> > > > >       <groupId>xdoclet</groupId>
> > > > >       <artifactId>xdoclet</artifactId>
> > > > >       <version>1.2.1</version>
> > > > >     </dependency>
> > > > >     <dependency>
> > > > >       <groupId>xdoclet</groupId>
> > > > >       <artifactId>xjavadoc</artifactId>
> > > > >       <version>1.0.3</version>
> > > > >     </dependency>
> > > > >
> > > > > Ok, this time, the EjbDocletTask has been properly loaded, everyting
> > > > > is fine. Would just have to do some stuff with it now :)
> > > > >
> > > > > You should be able to get it wotking too now.
> > > > >
> > > > > I don't know if you have any preferences but I suggest to use the
> > > > > maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
> > > > > maven-xodlet-plugin team is already adding the EjbDocletTask
> > > > > definition so I prefer to not duplicate (and maintain !)
> > this code in
> > > > > my scripts.
> > > > >
> > > > > On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi
> > > > > <mu...@yahoo.com> wrote:
> > > > > >
> > > > > > To rephrase my previous question, if the
> > > > > > ${pom.dependencyClasspath} contains
> > > > > > xdoclet-ejb-module-1.2.jar which contains
> > > > > > xdoclet.modules.ejb.EjbDocletTask, then why do I get
> > > > > > this if my taskdef is like this:
> > > > > >
> > > > > > ===================================================
> > > > > >
> > > > > >
> > > > > > <ant:taskdef name="ejbdoclet"
> > > > > > classname="xdoclet.modules.ejb.EjbDocletTask">
> > > > > >             <ant:classpath>
> > > > > >                                 <ant:pathelement
> > > > > > path="${pom.dependencyClasspath}"/>
> > > > > >                 <ant:path
> > > > > > refid="maven.dependency.classpath"/>
> > > > > >             </ant:classpath>
> > > > > >         </ant:taskdef>
> > > > > > =====================================
> > > > > >
> > > > > >
> > > > > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> > > > > > ejb:install
> > > > > >  __  __
> > > > > > |  \/  |__ _Apache__ ___
> > > > > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> > > > > >
> > > > > > build:start:
> > > > > >
> > > > > > ejb:init:
> > > > > > java:prepare-filesystem:
> > > > > >
> > > > > > java:compile:
> > > > > >     [echo] java:compile ${pom.dependencyClasspath}=
> > > > > > C:\Documents and Settings\jm
> > > > > >
> > > > > ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;
> > > > > C:\Documents
> > > > > > a
> > > > > > nd
> > > > > >
> > Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> > > > > > and S
> > > > > >
> > > > > ettings\jmucsi/.maven/repository\commons-collections\jars\commons-
> > > > > collections-3.
> > > > > >
> > 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> > > > > > and Settin
> > > > > >
> > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> > > > > > and Settin
> > > > > >
> > > > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.
> > > > > 2.jar;C:\Docum
> > > > > > ents and
> > > > > >
> > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> > > > > > ar;C:\Documents and
> > > > > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> > > > > > nate-module-1.2.jar;C:\Documents and
> > > > > > Settings\jmucsi/.maven/repository\xdoclet\j
> > > > > > ars\xdoclet-jboss-module-1.2.jar;
> > > > > >
> > > > > >
> > > > > >
> > > > > > BUILD FAILED
> > > > > > File......
> > > > > >
> > C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> > > > > > l
> > > > > > Element... ant:taskdef
> > > > > > Line...... 9
> > > > > > Column.... 84
> > > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> > > > > > be found
> > > > > >
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > Check out the new Yahoo! Front Page.
> > > > > > www.yahoo.com
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Pascal
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > >
> > > >
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > --
> > > Pascal
> > >
> >
> >
> > --
> > Pascal
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org





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


RE: [OT] Re: XDoclet in Maven

Posted by Eric Pugh <ep...@upstate.com>.
I'm glad you like the new "all in one" aspect in 1.2.2 ;-).

Note though, I only added the most common dependencies.  I thought about
adding all of them, but was worried it would make anyone using the plugin
have to download a massive number of dependencies when they only need one.
However, if people find there are some specific ones they would like added,
hollar on the xdoclet-dev list.

Eric

> -----Original Message-----
> From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> Sent: Saturday, November 13, 2004 10:19 PM
> To: epugh@upstate.com; Maven Users List
> Subject: Re: [OT] Re: XDoclet in Maven
>
>
> Actually, the maven xdoclet plugin has all xdoclet required
> dependencies in its project.xml so I don't have to manage them
> anymore.
>
> Thus, I would recommand more than ever to use the maven-xdoclet-plugin
> rather than xdoclet ant tasks directly (for the same reason as
> mentionned in a previous mail : maintainability).
>
> On Sat, 13 Nov 2004 20:47:38 -0100, Pascal Thivent
> <pa...@gmail.com> wrote:
> > Hi,
> >
> > I've upgraded my maven-xdoclet-plugin and my various xdoclet modules
> > dependencies to version 1.2.2. EJBs classes and hibernate mappings
> > generation works fine.
> >
> > Thanks.
> >
> >
> >
> > On Sat, 13 Nov 2004 12:47:53 -0000, Eric Pugh <ep...@upstate.com> wrote:
> > > Have you tried with the latest and greatest of xdoclet?
> 1.2.2 was released,
> > > and had many improvements and cleanups applied to the Maven plugin.
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > > > Sent: Saturday, November 13, 2004 6:32 AM
> > > > To: Maven Users List
> > > > Subject: Re: XDoclet in Maven
> > > >
> > > >
> > > > Hi,
> > > >
> > > > in deed, you made a lot of progress since the first mail.
> Lets try to
> > > > tackle all pending issues.
> > > >
> > > > I'm not using the EjbDocletTask directly but use rather the maven
> > > > xdoclet goal. So I have this in my maven.xml :
> > > >
> > > >     <preGoal name="java:compile">
> > > >         <echo>Generates EJB classes and descriptor files</echo>
> > > >         <attainGoal name="xdoclet:ejbdoclet"/>
> > > >     </preGoal>
> > > >
> > > > And the following dependency in my project.xml (it's enough for what
> > > > i'm doing for now) :
> > > >
> > > >     <dependency>
> > > >       <groupId>xdoclet</groupId>
> > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > >       <version>1.2.1</version>
> > > >       <type>jar</type>
> > > >       <properties>
> > > >         <eclipse.dependency>false</eclipse.dependency>
> > > >       </properties>
> > > >     </dependency>
> > > >
> > > > And this *works fine* (other potentially required libraries such as
> > > > commons-collections, commons-logging, log4j are not
> mentionned here).
> > > >
> > > > Anyway, it's also possible to use directly an ant task from
> maven, as
> > > > you are trying to do. I've tried to reproduce you configuration and
> > > > replaced the content of my pregoal with :
> > > >
> > > >     <preGoal name="java:compile">
> > > >       <taskdef
> > > >        name="ejbdoclet"
> > > >        classname="xdoclet.modules.ejb.EjbDocletTask"
> > > >        classpathref="maven.dependency.classpath" />
> > > >     </preGoal>
> > > >
> > > > This won't do anything more than adding a task definition to the
> > > > current project, you still need to call it then (see for example :
> > > > http://tinyurl.com/4xfw7 or xdoclet web site) but it is
> enough to fix
> > > > potential classpath issues.
> > > >
> > > > When running maven with the dependencies mentionned above, I get the
> > > > following trace :
> > > >
> > > > BUILD FAILED
> > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > Element... taskdef
> > > > Line...... 24
> > > > Column.... 50
> > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > Total time: 12 seconds
> > > > Finished at: Sat Nov 13 06:53:01 CET 2004
> > > >
> > > > This is surprising as everything was working fine with the
> > > > xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
> > > > that the maven-xdoclet-plugin has. When running maven with the -X
> > > > option, I get the  :
> > > >
> > > > BUILD FAILED
> > > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > > Element... taskdef
> > > > Line...... 24
> > > > Column.... 50
> > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > > com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> > > > [cauldron:dist
> > > > ] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50:
> > > > <taskdef> taskdef class
> > > >  xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > >
> > > > [...]
> > > >
> > > > --- Nested Exception ---
> > > > java.lang.NoClassDefFoundError: xdoclet/DocletTask
> > > >
> > > > [...]
> > > >
> > > > No possible doubts, I'm missing some dependencies. Let's
> try it again
> > > > with the following set (after a first try with just xdoclet added, I
> > > > saw that xjavadoc was required too) :
> > > >
> > > >     <dependency>
> > > >       <groupId>xdoclet</groupId>
> > > >       <artifactId>xdoclet-ejb-module</artifactId>
> > > >       <version>1.2.1</version>
> > > >       <type>jar</type>
> > > >     </dependency>
> > > >     <dependency>
> > > >       <groupId>xdoclet</groupId>
> > > >       <artifactId>xdoclet</artifactId>
> > > >       <version>1.2.1</version>
> > > >     </dependency>
> > > >     <dependency>
> > > >       <groupId>xdoclet</groupId>
> > > >       <artifactId>xjavadoc</artifactId>
> > > >       <version>1.0.3</version>
> > > >     </dependency>
> > > >
> > > > Ok, this time, the EjbDocletTask has been properly loaded, everyting
> > > > is fine. Would just have to do some stuff with it now :)
> > > >
> > > > You should be able to get it wotking too now.
> > > >
> > > > I don't know if you have any preferences but I suggest to use the
> > > > maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
> > > > maven-xodlet-plugin team is already adding the EjbDocletTask
> > > > definition so I prefer to not duplicate (and maintain !)
> this code in
> > > > my scripts.
> > > >
> > > > On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi
> > > > <mu...@yahoo.com> wrote:
> > > > >
> > > > > To rephrase my previous question, if the
> > > > > ${pom.dependencyClasspath} contains
> > > > > xdoclet-ejb-module-1.2.jar which contains
> > > > > xdoclet.modules.ejb.EjbDocletTask, then why do I get
> > > > > this if my taskdef is like this:
> > > > >
> > > > > ===================================================
> > > > >
> > > > >
> > > > > <ant:taskdef name="ejbdoclet"
> > > > > classname="xdoclet.modules.ejb.EjbDocletTask">
> > > > >             <ant:classpath>
> > > > >                                 <ant:pathelement
> > > > > path="${pom.dependencyClasspath}"/>
> > > > >                 <ant:path
> > > > > refid="maven.dependency.classpath"/>
> > > > >             </ant:classpath>
> > > > >         </ant:taskdef>
> > > > > =====================================
> > > > >
> > > > >
> > > > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> > > > > ejb:install
> > > > >  __  __
> > > > > |  \/  |__ _Apache__ ___
> > > > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> > > > >
> > > > > build:start:
> > > > >
> > > > > ejb:init:
> > > > > java:prepare-filesystem:
> > > > >
> > > > > java:compile:
> > > > >     [echo] java:compile ${pom.dependencyClasspath}=
> > > > > C:\Documents and Settings\jm
> > > > >
> > > > ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;
> > > > C:\Documents
> > > > > a
> > > > > nd
> > > > >
> Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> > > > > and S
> > > > >
> > > > ettings\jmucsi/.maven/repository\commons-collections\jars\commons-
> > > > collections-3.
> > > > >
> 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> > > > > and Settin
> > > > >
> gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> > > > > and Settin
> > > > >
> > > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.
> > > > 2.jar;C:\Docum
> > > > > ents and
> > > > >
> Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> > > > > ar;C:\Documents and
> > > > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> > > > > nate-module-1.2.jar;C:\Documents and
> > > > > Settings\jmucsi/.maven/repository\xdoclet\j
> > > > > ars\xdoclet-jboss-module-1.2.jar;
> > > > >
> > > > >
> > > > >
> > > > > BUILD FAILED
> > > > > File......
> > > > >
> C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> > > > > l
> > > > > Element... ant:taskdef
> > > > > Line...... 9
> > > > > Column.... 84
> > > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> > > > > be found
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > Check out the new Yahoo! Front Page.
> > > > > www.yahoo.com
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Pascal
> > > >
> > > >
> ---------------------------------------------------------------------
> > >
> > >
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > --
> > Pascal
> >
>
>
> --
> Pascal


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


Re: [OT] Re: XDoclet in Maven

Posted by Pascal Thivent <pa...@gmail.com>.
Actually, the maven xdoclet plugin has all xdoclet required
dependencies in its project.xml so I don't have to manage them
anymore.

Thus, I would recommand more than ever to use the maven-xdoclet-plugin
rather than xdoclet ant tasks directly (for the same reason as
mentionned in a previous mail : maintainability).

On Sat, 13 Nov 2004 20:47:38 -0100, Pascal Thivent
<pa...@gmail.com> wrote:
> Hi,
> 
> I've upgraded my maven-xdoclet-plugin and my various xdoclet modules
> dependencies to version 1.2.2. EJBs classes and hibernate mappings
> generation works fine.
> 
> Thanks.
> 
> 
> 
> On Sat, 13 Nov 2004 12:47:53 -0000, Eric Pugh <ep...@upstate.com> wrote:
> > Have you tried with the latest and greatest of xdoclet?  1.2.2 was released,
> > and had many improvements and cleanups applied to the Maven plugin.
> >
> >
> >
> > > -----Original Message-----
> > > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > > Sent: Saturday, November 13, 2004 6:32 AM
> > > To: Maven Users List
> > > Subject: Re: XDoclet in Maven
> > >
> > >
> > > Hi,
> > >
> > > in deed, you made a lot of progress since the first mail. Lets try to
> > > tackle all pending issues.
> > >
> > > I'm not using the EjbDocletTask directly but use rather the maven
> > > xdoclet goal. So I have this in my maven.xml :
> > >
> > >     <preGoal name="java:compile">
> > >         <echo>Generates EJB classes and descriptor files</echo>
> > >         <attainGoal name="xdoclet:ejbdoclet"/>
> > >     </preGoal>
> > >
> > > And the following dependency in my project.xml (it's enough for what
> > > i'm doing for now) :
> > >
> > >     <dependency>
> > >       <groupId>xdoclet</groupId>
> > >       <artifactId>xdoclet-ejb-module</artifactId>
> > >       <version>1.2.1</version>
> > >       <type>jar</type>
> > >       <properties>
> > >         <eclipse.dependency>false</eclipse.dependency>
> > >       </properties>
> > >     </dependency>
> > >
> > > And this *works fine* (other potentially required libraries such as
> > > commons-collections, commons-logging, log4j are not mentionned here).
> > >
> > > Anyway, it's also possible to use directly an ant task from maven, as
> > > you are trying to do. I've tried to reproduce you configuration and
> > > replaced the content of my pregoal with :
> > >
> > >     <preGoal name="java:compile">
> > >       <taskdef
> > >        name="ejbdoclet"
> > >        classname="xdoclet.modules.ejb.EjbDocletTask"
> > >        classpathref="maven.dependency.classpath" />
> > >     </preGoal>
> > >
> > > This won't do anything more than adding a task definition to the
> > > current project, you still need to call it then (see for example :
> > > http://tinyurl.com/4xfw7 or xdoclet web site) but it is enough to fix
> > > potential classpath issues.
> > >
> > > When running maven with the dependencies mentionned above, I get the
> > > following trace :
> > >
> > > BUILD FAILED
> > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > Element... taskdef
> > > Line...... 24
> > > Column.... 50
> > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > Total time: 12 seconds
> > > Finished at: Sat Nov 13 06:53:01 CET 2004
> > >
> > > This is surprising as everything was working fine with the
> > > xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
> > > that the maven-xdoclet-plugin has. When running maven with the -X
> > > option, I get the  :
> > >
> > > BUILD FAILED
> > > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > > Element... taskdef
> > > Line...... 24
> > > Column.... 50
> > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > > com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> > > [cauldron:dist
> > > ] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50:
> > > <taskdef> taskdef class
> > >  xdoclet.modules.ejb.EjbDocletTask cannot be found
> > >
> > > [...]
> > >
> > > --- Nested Exception ---
> > > java.lang.NoClassDefFoundError: xdoclet/DocletTask
> > >
> > > [...]
> > >
> > > No possible doubts, I'm missing some dependencies. Let's try it again
> > > with the following set (after a first try with just xdoclet added, I
> > > saw that xjavadoc was required too) :
> > >
> > >     <dependency>
> > >       <groupId>xdoclet</groupId>
> > >       <artifactId>xdoclet-ejb-module</artifactId>
> > >       <version>1.2.1</version>
> > >       <type>jar</type>
> > >     </dependency>
> > >     <dependency>
> > >       <groupId>xdoclet</groupId>
> > >       <artifactId>xdoclet</artifactId>
> > >       <version>1.2.1</version>
> > >     </dependency>
> > >     <dependency>
> > >       <groupId>xdoclet</groupId>
> > >       <artifactId>xjavadoc</artifactId>
> > >       <version>1.0.3</version>
> > >     </dependency>
> > >
> > > Ok, this time, the EjbDocletTask has been properly loaded, everyting
> > > is fine. Would just have to do some stuff with it now :)
> > >
> > > You should be able to get it wotking too now.
> > >
> > > I don't know if you have any preferences but I suggest to use the
> > > maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
> > > maven-xodlet-plugin team is already adding the EjbDocletTask
> > > definition so I prefer to not duplicate (and maintain !) this code in
> > > my scripts.
> > >
> > > On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi
> > > <mu...@yahoo.com> wrote:
> > > >
> > > > To rephrase my previous question, if the
> > > > ${pom.dependencyClasspath} contains
> > > > xdoclet-ejb-module-1.2.jar which contains
> > > > xdoclet.modules.ejb.EjbDocletTask, then why do I get
> > > > this if my taskdef is like this:
> > > >
> > > > ===================================================
> > > >
> > > >
> > > > <ant:taskdef name="ejbdoclet"
> > > > classname="xdoclet.modules.ejb.EjbDocletTask">
> > > >             <ant:classpath>
> > > >                                 <ant:pathelement
> > > > path="${pom.dependencyClasspath}"/>
> > > >                 <ant:path
> > > > refid="maven.dependency.classpath"/>
> > > >             </ant:classpath>
> > > >         </ant:taskdef>
> > > > =====================================
> > > >
> > > >
> > > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> > > > ejb:install
> > > >  __  __
> > > > |  \/  |__ _Apache__ ___
> > > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> > > >
> > > > build:start:
> > > >
> > > > ejb:init:
> > > > java:prepare-filesystem:
> > > >
> > > > java:compile:
> > > >     [echo] java:compile ${pom.dependencyClasspath}=
> > > > C:\Documents and Settings\jm
> > > >
> > > ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;
> > > C:\Documents
> > > > a
> > > > nd
> > > > Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> > > > and S
> > > >
> > > ettings\jmucsi/.maven/repository\commons-collections\jars\commons-
> > > collections-3.
> > > > 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> > > > and Settin
> > > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> > > > and Settin
> > > >
> > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.
> > > 2.jar;C:\Docum
> > > > ents and
> > > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> > > > ar;C:\Documents and
> > > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> > > > nate-module-1.2.jar;C:\Documents and
> > > > Settings\jmucsi/.maven/repository\xdoclet\j
> > > > ars\xdoclet-jboss-module-1.2.jar;
> > > >
> > > >
> > > >
> > > > BUILD FAILED
> > > > File......
> > > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> > > > l
> > > > Element... ant:taskdef
> > > > Line...... 9
> > > > Column.... 84
> > > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> > > > be found
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Check out the new Yahoo! Front Page.
> > > > www.yahoo.com
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Pascal
> > >
> > > ---------------------------------------------------------------------
> >
> >
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> --
> Pascal
> 


-- 
Pascal

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


[OT] Re: XDoclet in Maven

Posted by Pascal Thivent <pa...@gmail.com>.
Hi,

I've upgraded my maven-xdoclet-plugin and my various xdoclet modules
dependencies to version 1.2.2. EJBs classes and hibernate mappings
generation works fine.

Thanks.

On Sat, 13 Nov 2004 12:47:53 -0000, Eric Pugh <ep...@upstate.com> wrote:
> Have you tried with the latest and greatest of xdoclet?  1.2.2 was released,
> and had many improvements and cleanups applied to the Maven plugin.
> 
> 
> 
> > -----Original Message-----
> > From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> > Sent: Saturday, November 13, 2004 6:32 AM
> > To: Maven Users List
> > Subject: Re: XDoclet in Maven
> >
> >
> > Hi,
> >
> > in deed, you made a lot of progress since the first mail. Lets try to
> > tackle all pending issues.
> >
> > I'm not using the EjbDocletTask directly but use rather the maven
> > xdoclet goal. So I have this in my maven.xml :
> >
> >     <preGoal name="java:compile">
> >         <echo>Generates EJB classes and descriptor files</echo>
> >         <attainGoal name="xdoclet:ejbdoclet"/>
> >     </preGoal>
> >
> > And the following dependency in my project.xml (it's enough for what
> > i'm doing for now) :
> >
> >     <dependency>
> >       <groupId>xdoclet</groupId>
> >       <artifactId>xdoclet-ejb-module</artifactId>
> >       <version>1.2.1</version>
> >       <type>jar</type>
> >       <properties>
> >         <eclipse.dependency>false</eclipse.dependency>
> >       </properties>
> >     </dependency>
> >
> > And this *works fine* (other potentially required libraries such as
> > commons-collections, commons-logging, log4j are not mentionned here).
> >
> > Anyway, it's also possible to use directly an ant task from maven, as
> > you are trying to do. I've tried to reproduce you configuration and
> > replaced the content of my pregoal with :
> >
> >     <preGoal name="java:compile">
> >       <taskdef
> >        name="ejbdoclet"
> >        classname="xdoclet.modules.ejb.EjbDocletTask"
> >        classpathref="maven.dependency.classpath" />
> >     </preGoal>
> >
> > This won't do anything more than adding a task definition to the
> > current project, you still need to call it then (see for example :
> > http://tinyurl.com/4xfw7 or xdoclet web site) but it is enough to fix
> > potential classpath issues.
> >
> > When running maven with the dependencies mentionned above, I get the
> > following trace :
> >
> > BUILD FAILED
> > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > Element... taskdef
> > Line...... 24
> > Column.... 50
> > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > Total time: 12 seconds
> > Finished at: Sat Nov 13 06:53:01 CET 2004
> >
> > This is surprising as everything was working fine with the
> > xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
> > that the maven-xdoclet-plugin has. When running maven with the -X
> > option, I get the  :
> >
> > BUILD FAILED
> > File...... E:\myprojects\cauldron\modules\biz\maven.xml
> > Element... taskdef
> > Line...... 24
> > Column.... 50
> > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> > com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> > [cauldron:dist
> > ] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50:
> > <taskdef> taskdef class
> >  xdoclet.modules.ejb.EjbDocletTask cannot be found
> >
> > [...]
> >
> > --- Nested Exception ---
> > java.lang.NoClassDefFoundError: xdoclet/DocletTask
> >
> > [...]
> >
> > No possible doubts, I'm missing some dependencies. Let's try it again
> > with the following set (after a first try with just xdoclet added, I
> > saw that xjavadoc was required too) :
> >
> >     <dependency>
> >       <groupId>xdoclet</groupId>
> >       <artifactId>xdoclet-ejb-module</artifactId>
> >       <version>1.2.1</version>
> >       <type>jar</type>
> >     </dependency>
> >     <dependency>
> >       <groupId>xdoclet</groupId>
> >       <artifactId>xdoclet</artifactId>
> >       <version>1.2.1</version>
> >     </dependency>
> >     <dependency>
> >       <groupId>xdoclet</groupId>
> >       <artifactId>xjavadoc</artifactId>
> >       <version>1.0.3</version>
> >     </dependency>
> >
> > Ok, this time, the EjbDocletTask has been properly loaded, everyting
> > is fine. Would just have to do some stuff with it now :)
> >
> > You should be able to get it wotking too now.
> >
> > I don't know if you have any preferences but I suggest to use the
> > maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
> > maven-xodlet-plugin team is already adding the EjbDocletTask
> > definition so I prefer to not duplicate (and maintain !) this code in
> > my scripts.
> >
> > On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi
> > <mu...@yahoo.com> wrote:
> > >
> > > To rephrase my previous question, if the
> > > ${pom.dependencyClasspath} contains
> > > xdoclet-ejb-module-1.2.jar which contains
> > > xdoclet.modules.ejb.EjbDocletTask, then why do I get
> > > this if my taskdef is like this:
> > >
> > > ===================================================
> > >
> > >
> > > <ant:taskdef name="ejbdoclet"
> > > classname="xdoclet.modules.ejb.EjbDocletTask">
> > >             <ant:classpath>
> > >                                 <ant:pathelement
> > > path="${pom.dependencyClasspath}"/>
> > >                 <ant:path
> > > refid="maven.dependency.classpath"/>
> > >             </ant:classpath>
> > >         </ant:taskdef>
> > > =====================================
> > >
> > >
> > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> > > ejb:install
> > >  __  __
> > > |  \/  |__ _Apache__ ___
> > > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> > >
> > > build:start:
> > >
> > > ejb:init:
> > > java:prepare-filesystem:
> > >
> > > java:compile:
> > >     [echo] java:compile ${pom.dependencyClasspath}=
> > > C:\Documents and Settings\jm
> > >
> > ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;
> > C:\Documents
> > > a
> > > nd
> > > Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> > > and S
> > >
> > ettings\jmucsi/.maven/repository\commons-collections\jars\commons-
> > collections-3.
> > > 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> > > and Settin
> > > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> > > and Settin
> > >
> > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.
> > 2.jar;C:\Docum
> > > ents and
> > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> > > ar;C:\Documents and
> > > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> > > nate-module-1.2.jar;C:\Documents and
> > > Settings\jmucsi/.maven/repository\xdoclet\j
> > > ars\xdoclet-jboss-module-1.2.jar;
> > >
> > >
> > >
> > > BUILD FAILED
> > > File......
> > > C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> > > l
> > > Element... ant:taskdef
> > > Line...... 9
> > > Column.... 84
> > > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> > > be found
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Check out the new Yahoo! Front Page.
> > > www.yahoo.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Pascal
> >
> > ---------------------------------------------------------------------
> 
> 
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> 

-- 
Pascal

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


Re: XDoclet in Maven

Posted by Corey Scott <co...@gmail.com>.
Aparently that is something that was fixed with Maven 1.1 and should
not be effecting the plugin's behaviour.

-Corey


On Tue, 16 Nov 2004 15:47:04 -0800 (PST), Janos Mucsi <mu...@yahoo.com> wrote:
> Hi
> I commented out my dependencies, ran Maven, then I put
> back the XDoclet dependencies, ran Maven again, and
> everything started working. Here they are:
> <dependency>
>            <groupId>xdoclet</groupId>
> 
> <artifactId>xdoclet-ejb-module</artifactId>
>            <version>1.2.2</version>
>            <type>jar</type>
>            <properties>
> 
> <eclipse.dependency>false</eclipse.dependency>
>            </properties>
>      </dependency>
>      <dependency>
>            <groupId>xdoclet</groupId>
> 
> <artifactId>xdoclet-web-module</artifactId>
>            <version>1.2</version>
>            <type>jar</type>
>            <properties>
> 
> <eclipse.dependency>false</eclipse.dependency>
>            </properties>
>      </dependency>
>       <dependency>
>            <groupId>xdoclet</groupId>
>            <artifactId>xdoclet</artifactId>
>            <version>1.2.2</version>
>            <properties/>
>        </dependency>
>        <dependency>
>            <groupId>xdoclet</groupId>
>            <artifactId>xjavadoc</artifactId>
>            <version>1.0.3</version>
>            <properties/>
>        </dependency>
> 
> The JBoss and Hibernate XDoclet modules are still
> commented out. I have two questions:
> 
> 1. Why I see:
> Tag library requested that is not present: 'doc' in
> plugin: 'maven-ejb-plugin-1.
> 5'
> Tag library requested that is not present: 'maven' in
> plugin: 'maven-xdoclet-plu
> gin-1.2.2-SNAPSHOT'
> 
> 2. Why it is trying to download *every time* I run
> Maven: Attempting to download
> xdoclet-1.2.2-SNAPSHOT.jar.
> Attempting to download
> xdoclet-xdoclet-module-1.2.2-SNAPSHOT.jar.
> 
> Thanks.
> 
> Janos
> 
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
Eric
I checked now in project.xml, it looks like this:
<dependency>
			<groupId>xdoclet</groupId>
			<artifactId>xdoclet</artifactId>
			<version>1.2.2-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>xdoclet</groupId>
			<artifactId>xdoclet-xdoclet-module</artifactId>
			<version>1.2.2-SNAPSHOT</version>
		</dependency>

Of course, the multiple downloads cease when I remove
SNAPSHOT from the dependencies, but I still get:

Tag library requested that is not present: 'doc' in
plugin: 'maven-war-plugin-1.
6.1'

Janos

The snapshot error is worrisome..  double check that
the version of 
xdoclet
used by the plugin in
MAVEN_HOME\cache\maven-xdoclet-plugin\project.xml
isn't marked as SNAPSHOT.

If it is, where did you get this plugin, from the
download at
xdoclet.sf.net?

Eric



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
Eric
In the plugins directory, I have
maven-xdoclet-plugin-1.2.2-SNAPSHOT.jar. I do not know
where I got it. Of course, all the other plugins are
not SNAPSHOT. In
http://xdoclet.sourceforge.net/repository/xdoclet/plugins/
there is only 1.2.1. Is that the right version?
Should I change the file name in my plugins directory
to maven-xdoclet-plugin-1.2.2.jar so it does not get
dowloaded every time?

Janos

The snapshot error is worrisome..  double check that
the version of 
xdoclet
used by the plugin in
MAVEN_HOME\cache\maven-xdoclet-plugin\project.xml
isn't marked as SNAPSHOT.

If it is, where did you get this plugin, from the
download at
xdoclet.sf.net?

Eric



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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


RE: XDoclet in Maven

Posted by Eric Pugh <ep...@upstate.com>.
The snapshot error is worrisome..  double check that the version of xdoclet
used by the plugin in MAVEN_HOME\cache\maven-xdoclet-plugin\project.xml
isn't marked as SNAPSHOT.

If it is, where did you get this plugin, from the download at
xdoclet.sf.net?

Eric


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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
Hi 
I commented out my dependencies, ran Maven, then I put
back the XDoclet dependencies, ran Maven again, and
everything started working. Here they are:
<dependency>
            <groupId>xdoclet</groupId>
           
<artifactId>xdoclet-ejb-module</artifactId>
            <version>1.2.2</version>
            <type>jar</type>
            <properties>
               
<eclipse.dependency>false</eclipse.dependency>
            </properties>
      </dependency>
      <dependency>
            <groupId>xdoclet</groupId>
           
<artifactId>xdoclet-web-module</artifactId>
            <version>1.2</version>
            <type>jar</type>
            <properties>
               
<eclipse.dependency>false</eclipse.dependency>
            </properties>
      </dependency>
       <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet</artifactId>
            <version>1.2.2</version>
            <properties/>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xjavadoc</artifactId>
            <version>1.0.3</version>
            <properties/>
        </dependency>

The JBoss and Hibernate XDoclet modules are still
commented out. I have two questions:

1. Why I see: 
Tag library requested that is not present: 'doc' in
plugin: 'maven-ejb-plugin-1.
5' 
Tag library requested that is not present: 'maven' in
plugin: 'maven-xdoclet-plu
gin-1.2.2-SNAPSHOT'

2. Why it is trying to download *every time* I run
Maven: Attempting to download
xdoclet-1.2.2-SNAPSHOT.jar.
Attempting to download
xdoclet-xdoclet-module-1.2.2-SNAPSHOT.jar.


Thanks.

Janos


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


Re: XDoclet in Maven

Posted by Arnaud HERITIER <ah...@gmail.com>.
Thanks Eric.
It will help us a lot.

Arnaud


On Mon, 15 Nov 2004 23:37:05 -0000, Eric Pugh <ep...@upstate.com> wrote:
> I am in the process of updating the XDoclet repository at
> http://xdoclet.sf.net/repository.  I have everything bug the newest plugin
> uploaded, I ran into an issue with permissions on the filesystem that is
> stopping me.  Hopefully everything will be online in the next day or so.
> 
> Eric
> 
> 
> 
> > -----Original Message-----
> > From: Janos Mucsi [mailto:mucsij@yahoo.com]
> > Sent: Monday, November 15, 2004 11:01 PM
> > To: Maven Users List; Pascal Thivent
> > Subject: XDoclet in Maven
> >
> >
> > Pascal
> >
> > I set my dependencies exactly like you said. It solved
> > the class not found problem.
> > So now if I do
> >
> > <preGoal name="java:compile">
> >         <echo>Generates EJB classes and descriptor
> > files</echo>
> >         <attainGoal name="xdoclet:ejbdoclet"/>
> >     </preGoal>
> >
> > I get:
> >
> >     [echo] Generates EJB classes and descriptor files
> > Tag library requested that is not present: 'maven' in
> > plugin: 'maven-xdoclet-plu
> > gin-1.2.1'
> > xdoclet:ejbdoclet:
> >
> > However, if I define a taskdef like you said:
> >
> > <ant:taskdef name="ejbdoclet"
> >
> > classname="xdoclet.modules.ejb.EjbDocletTask"
> >            classpathref="maven.dependency.classpath"/>
> >
> >         <ejbdoclet destdir="${maven.build.src}"
> >                    ejbspec="2.0"
> >                    force="false">
> >
> >             <fileset dir="${maven.build.src}">
> >                 <include name="**/*Bean.java" />
> >             </fileset>
> >
> >             <utilobject kind="logical"
> > cacheHomes="true"/>
> >
> >             <remoteinterface/>
> >             <homeinterface/>
> >             <localinterface/>
> >             <localhomeinterface/>
> >
> >             <deploymentdescriptor
> >                 destdir="${ejb.descriptor.dir}"/>
> >
> >             <jboss version="3.0"
> >                    xmlencoding="UTF-8"
> >                    typemapping="Hypersonic SQL"
> >                    datasource="java:/DefaultDS"
> >                    destdir="${ejb.descriptor.dir}"/>
> >
> >         </ejbdoclet>
> >
> >
> > I see no errors, however XDoclet does absolutely
> > nothing. The resulting jar only contains my marked up
> > class and the manifest. No ejb.xml. Can you please
> > send me a sample EJB-marked up class. Is there
> > something wrong with my source directory? I only have
> >   src
> >      + ejb
> >          + META-INF
> >               + MANIFEST.MF
> >      + java
> >           *Bean.java
> >
> >
> > Is there something  wrong with my directory structure
> > and the files in it? Why are the two ways behave
> > differently?
> > Thanks.
> >
> > Janos
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The all-new My Yahoo! - Get yours free!
> > http://my.yahoo.com
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Re: XDoclet in Maven

Posted by Pascal Thivent <pa...@gmail.com>.
Jose,

as you can see at
http://xdoclet.sourceforge.net/repository/xdoclet/plugins/, the plugin
is still not available in xdoclet repository. I guess Eric still has
some write access problems.

So you can't use for now the plugin:download goal (see a previous mail
for the exact command).

Anyway, installing the plugin is a manual intervention. 

Regarding the needed dependencies, you'll need to add only
dependencies that you would like to use and that are not referenced in
the plugin's project.xml.

Regards,

On Thu, 18 Nov 2004 15:37:32 +0100, Jose Gonzalez Gomez
<jg...@opentechnet.com> wrote:
> 
>     Pascal,
> 
>     I (and all the team) would like, if possible, to install the plugin
> (and the dependencies needed) from the web with minimal intervention. If
> this is not possible, we will download and install manually the plugin
> and the dependencies. I just wanted to know if there is any progress on
> this, as it seemed Eric was going to upload the plugin in a short period
> of time, or this wasn't going to happen, in order to go the manual way.
> 
>     Thanks, best regards
>     Jose
> 
> 
> 
> Pascal Thivent wrote:
> 
> >Hi,
> >
> >the maven xdoclet plugin is available in xdoclet distribution.
> >
> >See http://sourceforge.net/project/showfiles.php?group_id=31602&package_id=23635&release_id=277003
> >
> >On Thu, 18 Nov 2004 13:51:22 +0100, Jose Gonzalez Gomez
> ><jg...@opentechnet.com> wrote:
> >
> >
> >>    Eric,
> >>
> >>    Any news regarding this? I have taken a look at the web, but I still
> >>cannot find the 1.2.2 version of the plugin.
> >>
> >>    Best regards
> >>    Jose
> >>
> >>
> >>
> >>Eric Pugh wrote:
> >>
> >>
> >>
> >>>I am in the process of updating the XDoclet repository at
> >>>http://xdoclet.sf.net/repository.  I have everything bug the newest plugin
> >>>uploaded, I ran into an issue with permissions on the filesystem that is
> >>>stopping me.  Hopefully everything will be online in the next day or so.
> >>>
> >>>Eric
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Janos Mucsi [mailto:mucsij@yahoo.com]
> >>>>Sent: Monday, November 15, 2004 11:01 PM
> >>>>To: Maven Users List; Pascal Thivent
> >>>>Subject: XDoclet in Maven
> >>>>
> >>>>
> >>>>Pascal
> >>>>
> >>>>I set my dependencies exactly like you said. It solved
> >>>>the class not found problem.
> >>>>So now if I do
> >>>>
> >>>><preGoal name="java:compile">
> >>>>       <echo>Generates EJB classes and descriptor
> >>>>files</echo>
> >>>>       <attainGoal name="xdoclet:ejbdoclet"/>
> >>>>   </preGoal>
> >>>>
> >>>>I get:
> >>>>
> >>>>   [echo] Generates EJB classes and descriptor files
> >>>>Tag library requested that is not present: 'maven' in
> >>>>plugin: 'maven-xdoclet-plu
> >>>>gin-1.2.1'
> >>>>xdoclet:ejbdoclet:
> >>>>
> >>>>However, if I define a taskdef like you said:
> >>>>
> >>>><ant:taskdef name="ejbdoclet"
> >>>>
> >>>>classname="xdoclet.modules.ejb.EjbDocletTask"
> >>>>          classpathref="maven.dependency.classpath"/>
> >>>>
> >>>>       <ejbdoclet destdir="${maven.build.src}"
> >>>>                  ejbspec="2.0"
> >>>>                  force="false">
> >>>>
> >>>>           <fileset dir="${maven.build.src}">
> >>>>               <include name="**/*Bean.java" />
> >>>>           </fileset>
> >>>>
> >>>>           <utilobject kind="logical"
> >>>>cacheHomes="true"/>
> >>>>
> >>>>           <remoteinterface/>
> >>>>           <homeinterface/>
> >>>>           <localinterface/>
> >>>>           <localhomeinterface/>
> >>>>
> >>>>           <deploymentdescriptor
> >>>>               destdir="${ejb.descriptor.dir}"/>
> >>>>
> >>>>           <jboss version="3.0"
> >>>>                  xmlencoding="UTF-8"
> >>>>                  typemapping="Hypersonic SQL"
> >>>>                  datasource="java:/DefaultDS"
> >>>>                  destdir="${ejb.descriptor.dir}"/>
> >>>>
> >>>>       </ejbdoclet>
> >>>>
> >>>>
> >>>>I see no errors, however XDoclet does absolutely
> >>>>nothing. The resulting jar only contains my marked up
> >>>>class and the manifest. No ejb.xml. Can you please
> >>>>send me a sample EJB-marked up class. Is there
> >>>>something wrong with my source directory? I only have
> >>>> src
> >>>>    + ejb
> >>>>        + META-INF
> >>>>             + MANIFEST.MF
> >>>>    + java
> >>>>         *Bean.java
> >>>>
> >>>>
> >>>>Is there something  wrong with my directory structure
> >>>>and the files in it? Why are the two ways behave
> >>>>differently?
> >>>>Thanks.
> >>>>
> >>>>Janos
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>__________________________________
> >>>>Do you Yahoo!?
> >>>>The all-new My Yahoo! - Get yours free!
> >>>>http://my.yahoo.com
> >>>>
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>>For additional commands, e-mail: users-help@maven.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> 
> 
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

-- 
Pascal

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


Re: XDoclet in Maven

Posted by Jose Gonzalez Gomez <jg...@opentechnet.com>.
    Pascal,

    I (and all the team) would like, if possible, to install the plugin 
(and the dependencies needed) from the web with minimal intervention. If 
this is not possible, we will download and install manually the plugin 
and the dependencies. I just wanted to know if there is any progress on 
this, as it seemed Eric was going to upload the plugin in a short period 
of time, or this wasn't going to happen, in order to go the manual way.

    Thanks, best regards
    Jose

Pascal Thivent wrote:

>Hi,
>
>the maven xdoclet plugin is available in xdoclet distribution.
>
>See http://sourceforge.net/project/showfiles.php?group_id=31602&package_id=23635&release_id=277003
>
>On Thu, 18 Nov 2004 13:51:22 +0100, Jose Gonzalez Gomez
><jg...@opentechnet.com> wrote:
>  
>
>>    Eric,
>>
>>    Any news regarding this? I have taken a look at the web, but I still
>>cannot find the 1.2.2 version of the plugin.
>>
>>    Best regards
>>    Jose
>>
>>
>>
>>Eric Pugh wrote:
>>
>>    
>>
>>>I am in the process of updating the XDoclet repository at
>>>http://xdoclet.sf.net/repository.  I have everything bug the newest plugin
>>>uploaded, I ran into an issue with permissions on the filesystem that is
>>>stopping me.  Hopefully everything will be online in the next day or so.
>>>
>>>Eric
>>>
>>>
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Janos Mucsi [mailto:mucsij@yahoo.com]
>>>>Sent: Monday, November 15, 2004 11:01 PM
>>>>To: Maven Users List; Pascal Thivent
>>>>Subject: XDoclet in Maven
>>>>
>>>>
>>>>Pascal
>>>>
>>>>I set my dependencies exactly like you said. It solved
>>>>the class not found problem.
>>>>So now if I do
>>>>
>>>><preGoal name="java:compile">
>>>>       <echo>Generates EJB classes and descriptor
>>>>files</echo>
>>>>       <attainGoal name="xdoclet:ejbdoclet"/>
>>>>   </preGoal>
>>>>
>>>>I get:
>>>>
>>>>   [echo] Generates EJB classes and descriptor files
>>>>Tag library requested that is not present: 'maven' in
>>>>plugin: 'maven-xdoclet-plu
>>>>gin-1.2.1'
>>>>xdoclet:ejbdoclet:
>>>>
>>>>However, if I define a taskdef like you said:
>>>>
>>>><ant:taskdef name="ejbdoclet"
>>>>
>>>>classname="xdoclet.modules.ejb.EjbDocletTask"
>>>>          classpathref="maven.dependency.classpath"/>
>>>>
>>>>       <ejbdoclet destdir="${maven.build.src}"
>>>>                  ejbspec="2.0"
>>>>                  force="false">
>>>>
>>>>           <fileset dir="${maven.build.src}">
>>>>               <include name="**/*Bean.java" />
>>>>           </fileset>
>>>>
>>>>           <utilobject kind="logical"
>>>>cacheHomes="true"/>
>>>>
>>>>           <remoteinterface/>
>>>>           <homeinterface/>
>>>>           <localinterface/>
>>>>           <localhomeinterface/>
>>>>
>>>>           <deploymentdescriptor
>>>>               destdir="${ejb.descriptor.dir}"/>
>>>>
>>>>           <jboss version="3.0"
>>>>                  xmlencoding="UTF-8"
>>>>                  typemapping="Hypersonic SQL"
>>>>                  datasource="java:/DefaultDS"
>>>>                  destdir="${ejb.descriptor.dir}"/>
>>>>
>>>>       </ejbdoclet>
>>>>
>>>>
>>>>I see no errors, however XDoclet does absolutely
>>>>nothing. The resulting jar only contains my marked up
>>>>class and the manifest. No ejb.xml. Can you please
>>>>send me a sample EJB-marked up class. Is there
>>>>something wrong with my source directory? I only have
>>>> src
>>>>    + ejb
>>>>        + META-INF
>>>>             + MANIFEST.MF
>>>>    + java
>>>>         *Bean.java
>>>>
>>>>
>>>>Is there something  wrong with my directory structure
>>>>and the files in it? Why are the two ways behave
>>>>differently?
>>>>Thanks.
>>>>
>>>>Janos
>>>>
>>>>
>>>>
>>>>
>>>>__________________________________
>>>>Do you Yahoo!?
>>>>The all-new My Yahoo! - Get yours free!
>>>>http://my.yahoo.com
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>    
>>
>
>
>  
>


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


Re: XDoclet in Maven

Posted by Pascal Thivent <pa...@gmail.com>.
Hi,

the maven xdoclet plugin is available in xdoclet distribution.

See http://sourceforge.net/project/showfiles.php?group_id=31602&package_id=23635&release_id=277003

On Thu, 18 Nov 2004 13:51:22 +0100, Jose Gonzalez Gomez
<jg...@opentechnet.com> wrote:
> 
>     Eric,
> 
>     Any news regarding this? I have taken a look at the web, but I still
> cannot find the 1.2.2 version of the plugin.
> 
>     Best regards
>     Jose
> 
> 
> 
> Eric Pugh wrote:
> 
> >I am in the process of updating the XDoclet repository at
> >http://xdoclet.sf.net/repository.  I have everything bug the newest plugin
> >uploaded, I ran into an issue with permissions on the filesystem that is
> >stopping me.  Hopefully everything will be online in the next day or so.
> >
> >Eric
> >
> >
> >
> >>-----Original Message-----
> >>From: Janos Mucsi [mailto:mucsij@yahoo.com]
> >>Sent: Monday, November 15, 2004 11:01 PM
> >>To: Maven Users List; Pascal Thivent
> >>Subject: XDoclet in Maven
> >>
> >>
> >>Pascal
> >>
> >>I set my dependencies exactly like you said. It solved
> >>the class not found problem.
> >>So now if I do
> >>
> >><preGoal name="java:compile">
> >>        <echo>Generates EJB classes and descriptor
> >>files</echo>
> >>        <attainGoal name="xdoclet:ejbdoclet"/>
> >>    </preGoal>
> >>
> >>I get:
> >>
> >>    [echo] Generates EJB classes and descriptor files
> >>Tag library requested that is not present: 'maven' in
> >>plugin: 'maven-xdoclet-plu
> >>gin-1.2.1'
> >>xdoclet:ejbdoclet:
> >>
> >>However, if I define a taskdef like you said:
> >>
> >><ant:taskdef name="ejbdoclet"
> >>
> >>classname="xdoclet.modules.ejb.EjbDocletTask"
> >>           classpathref="maven.dependency.classpath"/>
> >>
> >>        <ejbdoclet destdir="${maven.build.src}"
> >>                   ejbspec="2.0"
> >>                   force="false">
> >>
> >>            <fileset dir="${maven.build.src}">
> >>                <include name="**/*Bean.java" />
> >>            </fileset>
> >>
> >>            <utilobject kind="logical"
> >>cacheHomes="true"/>
> >>
> >>            <remoteinterface/>
> >>            <homeinterface/>
> >>            <localinterface/>
> >>            <localhomeinterface/>
> >>
> >>            <deploymentdescriptor
> >>                destdir="${ejb.descriptor.dir}"/>
> >>
> >>            <jboss version="3.0"
> >>                   xmlencoding="UTF-8"
> >>                   typemapping="Hypersonic SQL"
> >>                   datasource="java:/DefaultDS"
> >>                   destdir="${ejb.descriptor.dir}"/>
> >>
> >>        </ejbdoclet>
> >>
> >>
> >>I see no errors, however XDoclet does absolutely
> >>nothing. The resulting jar only contains my marked up
> >>class and the manifest. No ejb.xml. Can you please
> >>send me a sample EJB-marked up class. Is there
> >>something wrong with my source directory? I only have
> >>  src
> >>     + ejb
> >>         + META-INF
> >>              + MANIFEST.MF
> >>     + java
> >>          *Bean.java
> >>
> >>
> >>Is there something  wrong with my directory structure
> >>and the files in it? Why are the two ways behave
> >>differently?
> >>Thanks.
> >>
> >>Janos
> >>
> >>
> >>
> >>
> >>__________________________________
> >>Do you Yahoo!?
> >>The all-new My Yahoo! - Get yours free!
> >>http://my.yahoo.com
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Pascal

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


Re: XDoclet in Maven

Posted by Jose Gonzalez Gomez <jg...@opentechnet.com>.
    Eric,

    Any news regarding this? I have taken a look at the web, but I still 
cannot find the 1.2.2 version of the plugin.

    Best regards
    Jose

Eric Pugh wrote:

>I am in the process of updating the XDoclet repository at
>http://xdoclet.sf.net/repository.  I have everything bug the newest plugin
>uploaded, I ran into an issue with permissions on the filesystem that is
>stopping me.  Hopefully everything will be online in the next day or so.
>
>Eric
>
>  
>
>>-----Original Message-----
>>From: Janos Mucsi [mailto:mucsij@yahoo.com]
>>Sent: Monday, November 15, 2004 11:01 PM
>>To: Maven Users List; Pascal Thivent
>>Subject: XDoclet in Maven
>>
>>
>>Pascal
>>
>>I set my dependencies exactly like you said. It solved
>>the class not found problem.
>>So now if I do
>>
>><preGoal name="java:compile">
>>        <echo>Generates EJB classes and descriptor
>>files</echo>
>>        <attainGoal name="xdoclet:ejbdoclet"/>
>>    </preGoal>
>>
>>I get:
>>
>>    [echo] Generates EJB classes and descriptor files
>>Tag library requested that is not present: 'maven' in
>>plugin: 'maven-xdoclet-plu
>>gin-1.2.1'
>>xdoclet:ejbdoclet:
>>
>>However, if I define a taskdef like you said:
>>
>><ant:taskdef name="ejbdoclet"
>>
>>classname="xdoclet.modules.ejb.EjbDocletTask"
>>           classpathref="maven.dependency.classpath"/>
>>
>>        <ejbdoclet destdir="${maven.build.src}"
>>                   ejbspec="2.0"
>>                   force="false">
>>
>>            <fileset dir="${maven.build.src}">
>>                <include name="**/*Bean.java" />
>>            </fileset>
>>
>>            <utilobject kind="logical"
>>cacheHomes="true"/>
>>
>>            <remoteinterface/>
>>            <homeinterface/>
>>            <localinterface/>
>>            <localhomeinterface/>
>>
>>            <deploymentdescriptor
>>                destdir="${ejb.descriptor.dir}"/>
>>
>>            <jboss version="3.0"
>>                   xmlencoding="UTF-8"
>>                   typemapping="Hypersonic SQL"
>>                   datasource="java:/DefaultDS"
>>                   destdir="${ejb.descriptor.dir}"/>
>>
>>        </ejbdoclet>
>>
>>
>>I see no errors, however XDoclet does absolutely
>>nothing. The resulting jar only contains my marked up
>>class and the manifest. No ejb.xml. Can you please
>>send me a sample EJB-marked up class. Is there
>>something wrong with my source directory? I only have
>>  src
>>     + ejb
>>         + META-INF
>>              + MANIFEST.MF
>>     + java
>>          *Bean.java
>>
>>
>>Is there something  wrong with my directory structure
>>and the files in it? Why are the two ways behave
>>differently?
>>Thanks.
>>
>>Janos
>>
>>
>>
>>
>>__________________________________
>>Do you Yahoo!?
>>The all-new My Yahoo! - Get yours free!
>>http://my.yahoo.com
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>


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


Re: XDoclet in Maven - almost good

Posted by Pascal Thivent <pa...@gmail.com>.
The plugin doesn't seem to be installed. Refer to previous mail to install it.

On Mon, 15 Nov 2004 19:35:17 -0800 (PST), Janos Mucsi <mu...@yahoo.com> wrote:
> I cleaned out the cache so everything was downloaded
> very well, I am still getting the following error:

This has nothing to do with the clean of the plugins cache. Jars have
been downloaded because you added them as dependencies.

> 
> C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> ejb:install
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> 
> Attempting to download xdoclet-ejb-module-1.2.2.jar.
> 206K downloaded
> Attempting to download xdoclet-1.2.2.jar.
> 143K downloaded
> Attempting to download xjavadoc-1.0.3.jar.
> 229K downloaded
> Attempting to download
> xdoclet-hibernate-module-1.2.2.jar.
> 46K downloaded
> Attempting to download xdoclet-jboss-module-1.2.jar.
> 84K downloaded
> Tag library requested that is not present: 'doc' in
> plugin: 'maven-ejb-plugin-1.
> 5'
> build:start:
> 
> ejb:init:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Generates EJB classes and descriptor files
> 
> BUILD FAILED
> File......
> C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> l
> Element... attainGoal
> Line...... 8
> Column.... 51
> No goal [xdoclet:ejbdoclet]

Install maven xdoclet plugin.

> 
> In maven.xml I have:
> 
> <preGoal name="java:compile">
>         <echo>Generates EJB classes and descriptor
> files</echo>
>             <attainGoal name="xdoclet:ejbdoclet"/>
>     </preGoal>
> 
> In project.xml how many dependencies must I declare?
> From the previous postings I gathered that one is
> enough?
> I currently have these:
> 
> <dependency>
>             <groupId>xdoclet</groupId>
> 
> <artifactId>xdoclet-ejb-module</artifactId>
>             <version>1.2.2</version>
>             <type>jar</type>
>             <properties>
> 
> <eclipse.dependency>false</eclipse.dependency>
>             </properties>
>       </dependency>
>        <dependency>
>             <groupId>xdoclet</groupId>
>             <artifactId>xdoclet</artifactId>
>             <version>1.2.2</version>
>             <properties/>
>         </dependency>
>         <dependency>
>             <groupId>xdoclet</groupId>
>             <artifactId>xjavadoc</artifactId>
>             <version>1.0.3</version>
>             <properties/>
>         </dependency>
>        <dependency>
>             <groupId>xdoclet</groupId>
> 
> <artifactId>xdoclet-hibernate-module</artifactId>
>             <version>1.2.2</version>
>             <properties/>
>         </dependency>
>         <dependency>
>             <groupId>xdoclet</groupId>
> 
> <artifactId>xdoclet-jboss-module</artifactId>
>             <version>1.2</version>
>             <properties/>
>         </dependency>
> 

It's not required to declare these dependencies if you install the
maven xdoclet plugin 1.2.2

> Thanks!
> Janos
> 
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

-- 
Pascal

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


XDoclet in Maven - almost good

Posted by Janos Mucsi <mu...@yahoo.com>.
I cleaned out the cache so everything was downloaded
very well, I am still getting the following error:

C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
ejb:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1

Attempting to download xdoclet-ejb-module-1.2.2.jar.
206K downloaded
Attempting to download xdoclet-1.2.2.jar.
143K downloaded
Attempting to download xjavadoc-1.0.3.jar.
229K downloaded
Attempting to download
xdoclet-hibernate-module-1.2.2.jar.
46K downloaded
Attempting to download xdoclet-jboss-module-1.2.jar.
84K downloaded
Tag library requested that is not present: 'doc' in
plugin: 'maven-ejb-plugin-1.
5'
build:start:

ejb:init:
java:prepare-filesystem:

java:compile:
    [echo] Generates EJB classes and descriptor files

BUILD FAILED
File......
C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
l
Element... attainGoal
Line...... 8
Column.... 51
No goal [xdoclet:ejbdoclet]

In maven.xml I have:

<preGoal name="java:compile">
        <echo>Generates EJB classes and descriptor
files</echo>
            <attainGoal name="xdoclet:ejbdoclet"/>
    </preGoal>


In project.xml how many dependencies must I declare?
>From the previous postings I gathered that one is
enough?
I currently have these:

<dependency>
            <groupId>xdoclet</groupId>
           
<artifactId>xdoclet-ejb-module</artifactId>
            <version>1.2.2</version>
            <type>jar</type>
            <properties>
               
<eclipse.dependency>false</eclipse.dependency>
            </properties>
      </dependency>
       <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet</artifactId>
            <version>1.2.2</version>
            <properties/>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xjavadoc</artifactId>
            <version>1.0.3</version>
            <properties/>
        </dependency>
       <dependency>
            <groupId>xdoclet</groupId>
           
<artifactId>xdoclet-hibernate-module</artifactId>
            <version>1.2.2</version>
            <properties/>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
           
<artifactId>xdoclet-jboss-module</artifactId>
            <version>1.2</version>
            <properties/>
        </dependency>


Thanks!
Janos


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
Eric
When you are done, please let us know the list of
exact modules and their versions.
Thanks.
J

I am in the process of updating the XDoclet repository
at
http://xdoclet.sf.net/repository.  I have everything
bug the newest 
plugin
uploaded, I ran into an issue with permissions on the
filesystem that 
is
stopping me.  Hopefully everything will be online in
the next day or 
so.

Eric



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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


RE: XDoclet in Maven

Posted by Eric Pugh <ep...@upstate.com>.
I am in the process of updating the XDoclet repository at
http://xdoclet.sf.net/repository.  I have everything bug the newest plugin
uploaded, I ran into an issue with permissions on the filesystem that is
stopping me.  Hopefully everything will be online in the next day or so.

Eric

> -----Original Message-----
> From: Janos Mucsi [mailto:mucsij@yahoo.com]
> Sent: Monday, November 15, 2004 11:01 PM
> To: Maven Users List; Pascal Thivent
> Subject: XDoclet in Maven
>
>
> Pascal
>
> I set my dependencies exactly like you said. It solved
> the class not found problem.
> So now if I do
>
> <preGoal name="java:compile">
>         <echo>Generates EJB classes and descriptor
> files</echo>
>         <attainGoal name="xdoclet:ejbdoclet"/>
>     </preGoal>
>
> I get:
>
>     [echo] Generates EJB classes and descriptor files
> Tag library requested that is not present: 'maven' in
> plugin: 'maven-xdoclet-plu
> gin-1.2.1'
> xdoclet:ejbdoclet:
>
> However, if I define a taskdef like you said:
>
> <ant:taskdef name="ejbdoclet"
>
> classname="xdoclet.modules.ejb.EjbDocletTask"
>            classpathref="maven.dependency.classpath"/>
>
>         <ejbdoclet destdir="${maven.build.src}"
>                    ejbspec="2.0"
>                    force="false">
>
>             <fileset dir="${maven.build.src}">
>                 <include name="**/*Bean.java" />
>             </fileset>
>
>             <utilobject kind="logical"
> cacheHomes="true"/>
>
>             <remoteinterface/>
>             <homeinterface/>
>             <localinterface/>
>             <localhomeinterface/>
>
>             <deploymentdescriptor
>                 destdir="${ejb.descriptor.dir}"/>
>
>             <jboss version="3.0"
>                    xmlencoding="UTF-8"
>                    typemapping="Hypersonic SQL"
>                    datasource="java:/DefaultDS"
>                    destdir="${ejb.descriptor.dir}"/>
>
>         </ejbdoclet>
>
>
> I see no errors, however XDoclet does absolutely
> nothing. The resulting jar only contains my marked up
> class and the manifest. No ejb.xml. Can you please
> send me a sample EJB-marked up class. Is there
> something wrong with my source directory? I only have
>   src
>      + ejb
>          + META-INF
>               + MANIFEST.MF
>      + java
>           *Bean.java
>
>
> Is there something  wrong with my directory structure
> and the files in it? Why are the two ways behave
> differently?
> Thanks.
>
> Janos
>
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
Pascal

I set my dependencies exactly like you said. It solved
the class not found problem.
So now if I do

<preGoal name="java:compile">
        <echo>Generates EJB classes and descriptor
files</echo>
        <attainGoal name="xdoclet:ejbdoclet"/>
    </preGoal>  

I get:

    [echo] Generates EJB classes and descriptor files
Tag library requested that is not present: 'maven' in
plugin: 'maven-xdoclet-plu
gin-1.2.1'
xdoclet:ejbdoclet:

However, if I define a taskdef like you said:

<ant:taskdef name="ejbdoclet" 
          
classname="xdoclet.modules.ejb.EjbDocletTask"
           classpathref="maven.dependency.classpath"/>
            
        <ejbdoclet destdir="${maven.build.src}"
                   ejbspec="2.0"
                   force="false">

            <fileset dir="${maven.build.src}">
                <include name="**/*Bean.java" />
            </fileset>

            <utilobject kind="logical"
cacheHomes="true"/>

            <remoteinterface/>
            <homeinterface/>
            <localinterface/>
            <localhomeinterface/>

            <deploymentdescriptor
                destdir="${ejb.descriptor.dir}"/>

            <jboss version="3.0"
                   xmlencoding="UTF-8"
                   typemapping="Hypersonic SQL"
                   datasource="java:/DefaultDS"
                   destdir="${ejb.descriptor.dir}"/>

        </ejbdoclet>


I see no errors, however XDoclet does absolutely
nothing. The resulting jar only contains my marked up
class and the manifest. No ejb.xml. Can you please
send me a sample EJB-marked up class. Is there
something wrong with my source directory? I only have 
  src
     + ejb
         + META-INF
              + MANIFEST.MF
     + java 
          *Bean.java


Is there something  wrong with my directory structure
and the files in it? Why are the two ways behave
differently?
Thanks.

Janos



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


Re: XDoclet in Maven

Posted by Pascal Thivent <pa...@gmail.com>.
Hi,

have you tried the *Maven Plug-in* entry on xdoclet website ?
http://xdoclet.sourceforge.net/xdoclet/maven-plugin.html. On this
page, we can read :

"Maven is an increasingly popular build tool, and XDoclet maintains
its own Maven plug-in. This plug-in is located in the same folder as
the other xdoclet jar files, and is named
maven-xdoclet-plugin-<version>.jar. Just drop it in your
$MAVEN_HOME/plugins directory and you're ready to go. You might have
to delete your $MAVEN_HOME/cache/*.* files and previous un-zipped
XDoclet plug-ins in $MAVEN_HOME/plugins to be able to get it to work
properly."

So download xdoclet, unpack it and you'll find the plugin.

The second option would be to add the xdoclet repository to the
maven.repo.remote property in your build.properties :

maven.repo.remote=http://www.ibiblio.org/maven/,http://xdoclet.sourceforge.net/repository/

and to use the plugin:download goal and in a command prompt, type the
following command :

C:\WINDOWS\system32>maven -DgroupId=xdoclet -DartifactId=maven-xdoclet-plugin -D
version=1.2.2 plugin:download

This will be possible as soon as Eric will have updated the xdoclet repository.

On Mon, 15 Nov 2004 14:42:34 -0800 (PST), Janos Mucsi <mu...@yahoo.com> wrote:
> Eric
> Where is this?
> I am still getting:
> java:compile:
>     [echo] Generates EJB classes and descriptor files
> Tag library requested that is not present: 'maven' in
> plugin: 'maven-xdoclet-plugin-1.2.1'
> xdoclet:ejbdoclet:
> 
> Have you tried with the latest and greatest of
> xdoclet?  1.2.2 was
> released,
> and had many improvements and cleanups applied to the
> Maven plugin.
> 
>                 
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

-- 
Pascal

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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
Eric
Where is this?
I am still getting:
java:compile:
    [echo] Generates EJB classes and descriptor files
Tag library requested that is not present: 'maven' in
plugin: 'maven-xdoclet-plu
gin-1.2.1'
xdoclet:ejbdoclet:

Have you tried with the latest and greatest of
xdoclet?  1.2.2 was 
released,
and had many improvements and cleanups applied to the
Maven plugin.



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


RE: XDoclet in Maven

Posted by Eric Pugh <ep...@upstate.com>.
Have you tried with the latest and greatest of xdoclet?  1.2.2 was released,
and had many improvements and cleanups applied to the Maven plugin.

> -----Original Message-----
> From: Pascal Thivent [mailto:pascal.thivent@gmail.com]
> Sent: Saturday, November 13, 2004 6:32 AM
> To: Maven Users List
> Subject: Re: XDoclet in Maven
>
>
> Hi,
>
> in deed, you made a lot of progress since the first mail. Lets try to
> tackle all pending issues.
>
> I'm not using the EjbDocletTask directly but use rather the maven
> xdoclet goal. So I have this in my maven.xml :
>
>     <preGoal name="java:compile">
>         <echo>Generates EJB classes and descriptor files</echo>
>         <attainGoal name="xdoclet:ejbdoclet"/>
>     </preGoal>
>
> And the following dependency in my project.xml (it's enough for what
> i'm doing for now) :
>
>     <dependency>
>       <groupId>xdoclet</groupId>
>       <artifactId>xdoclet-ejb-module</artifactId>
>       <version>1.2.1</version>
>       <type>jar</type>
>       <properties>
>         <eclipse.dependency>false</eclipse.dependency>
>       </properties>
>     </dependency>
>
> And this *works fine* (other potentially required libraries such as
> commons-collections, commons-logging, log4j are not mentionned here).
>
> Anyway, it's also possible to use directly an ant task from maven, as
> you are trying to do. I've tried to reproduce you configuration and
> replaced the content of my pregoal with :
>
>     <preGoal name="java:compile">
>       <taskdef
>        name="ejbdoclet"
>        classname="xdoclet.modules.ejb.EjbDocletTask"
>        classpathref="maven.dependency.classpath" />
>     </preGoal>
>
> This won't do anything more than adding a task definition to the
> current project, you still need to call it then (see for example :
> http://tinyurl.com/4xfw7 or xdoclet web site) but it is enough to fix
> potential classpath issues.
>
> When running maven with the dependencies mentionned above, I get the
> following trace :
>
> BUILD FAILED
> File...... E:\myprojects\cauldron\modules\biz\maven.xml
> Element... taskdef
> Line...... 24
> Column.... 50
> taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> Total time: 12 seconds
> Finished at: Sat Nov 13 06:53:01 CET 2004
>
> This is surprising as everything was working fine with the
> xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
> that the maven-xdoclet-plugin has. When running maven with the -X
> option, I get the  :
>
> BUILD FAILED
> File...... E:\myprojects\cauldron\modules\biz\maven.xml
> Element... taskdef
> Line...... 24
> Column.... 50
> taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
> com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> [cauldron:dist
> ] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50:
> <taskdef> taskdef class
>  xdoclet.modules.ejb.EjbDocletTask cannot be found
>
> [...]
>
> --- Nested Exception ---
> java.lang.NoClassDefFoundError: xdoclet/DocletTask
>
> [...]
>
> No possible doubts, I'm missing some dependencies. Let's try it again
> with the following set (after a first try with just xdoclet added, I
> saw that xjavadoc was required too) :
>
>     <dependency>
>       <groupId>xdoclet</groupId>
>       <artifactId>xdoclet-ejb-module</artifactId>
>       <version>1.2.1</version>
>       <type>jar</type>
>     </dependency>
>     <dependency>
> 	<groupId>xdoclet</groupId>
> 	<artifactId>xdoclet</artifactId>
> 	<version>1.2.1</version>
>     </dependency>
>     <dependency>
> 	<groupId>xdoclet</groupId>
> 	<artifactId>xjavadoc</artifactId>
> 	<version>1.0.3</version>
>     </dependency>
>
> Ok, this time, the EjbDocletTask has been properly loaded, everyting
> is fine. Would just have to do some stuff with it now :)
>
> You should be able to get it wotking too now.
>
> I don't know if you have any preferences but I suggest to use the
> maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
> maven-xodlet-plugin team is already adding the EjbDocletTask
> definition so I prefer to not duplicate (and maintain !) this code in
> my scripts.
>
> On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi
> <mu...@yahoo.com> wrote:
> >
> > To rephrase my previous question, if the
> > ${pom.dependencyClasspath} contains
> > xdoclet-ejb-module-1.2.jar which contains
> > xdoclet.modules.ejb.EjbDocletTask, then why do I get
> > this if my taskdef is like this:
> >
> > ===================================================
> >
> >
> > <ant:taskdef name="ejbdoclet"
> > classname="xdoclet.modules.ejb.EjbDocletTask">
> >             <ant:classpath>
> >                                 <ant:pathelement
> > path="${pom.dependencyClasspath}"/>
> >                 <ant:path
> > refid="maven.dependency.classpath"/>
> >             </ant:classpath>
> >         </ant:taskdef>
> > =====================================
> >
> >
> > C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> > ejb:install
> >  __  __
> > |  \/  |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> >
> > build:start:
> >
> > ejb:init:
> > java:prepare-filesystem:
> >
> > java:compile:
> >     [echo] java:compile ${pom.dependencyClasspath}=
> > C:\Documents and Settings\jm
> >
> ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;
> C:\Documents
> > a
> > nd
> > Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> > and S
> >
> ettings\jmucsi/.maven/repository\commons-collections\jars\commons-
> collections-3.
> > 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> > and Settin
> > gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> > and Settin
> >
> gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.
> 2.jar;C:\Docum
> > ents and
> > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> > ar;C:\Documents and
> > Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> > nate-module-1.2.jar;C:\Documents and
> > Settings\jmucsi/.maven/repository\xdoclet\j
> > ars\xdoclet-jboss-module-1.2.jar;
> >
> >
> >
> > BUILD FAILED
> > File......
> > C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> > l
> > Element... ant:taskdef
> > Line...... 9
> > Column.... 84
> > taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> > be found
> >
> > __________________________________
> > Do you Yahoo!?
> > Check out the new Yahoo! Front Page.
> > www.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Pascal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


Re: XDoclet in Maven

Posted by Pascal Thivent <pa...@gmail.com>.
Hi,

in deed, you made a lot of progress since the first mail. Lets try to
tackle all pending issues.

I'm not using the EjbDocletTask directly but use rather the maven
xdoclet goal. So I have this in my maven.xml :

    <preGoal name="java:compile">
        <echo>Generates EJB classes and descriptor files</echo>
        <attainGoal name="xdoclet:ejbdoclet"/>
    </preGoal>  

And the following dependency in my project.xml (it's enough for what
i'm doing for now) :

    <dependency>
      <groupId>xdoclet</groupId>
      <artifactId>xdoclet-ejb-module</artifactId>
      <version>1.2.1</version>
      <type>jar</type>
      <properties>
        <eclipse.dependency>false</eclipse.dependency>
      </properties>
    </dependency>

And this *works fine* (other potentially required libraries such as
commons-collections, commons-logging, log4j are not mentionned here).

Anyway, it's also possible to use directly an ant task from maven, as
you are trying to do. I've tried to reproduce you configuration and
replaced the content of my pregoal with :

    <preGoal name="java:compile">
      <taskdef 
       name="ejbdoclet"
       classname="xdoclet.modules.ejb.EjbDocletTask" 
       classpathref="maven.dependency.classpath" />
    </preGoal>

This won't do anything more than adding a task definition to the
current project, you still need to call it then (see for example :
http://tinyurl.com/4xfw7 or xdoclet web site) but it is enough to fix
potential classpath issues.

When running maven with the dependencies mentionned above, I get the
following trace :

BUILD FAILED
File...... E:\myprojects\cauldron\modules\biz\maven.xml
Element... taskdef
Line...... 24
Column.... 50
taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
Total time: 12 seconds
Finished at: Sat Nov 13 06:53:01 CET 2004

This is surprising as everything was working fine with the
xdoclet:ejbdoclet goal. I'm for sure missing now some dependencies
that the maven-xdoclet-plugin has. When running maven with the -X
option, I get the  :

BUILD FAILED
File...... E:\myprojects\cauldron\modules\biz\maven.xml
Element... taskdef
Line...... 24
Column.... 50
taskdef class xdoclet.modules.ejb.EjbDocletTask cannot be found
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [cauldron:dist
] -- E:\myprojects\cauldron\modules\biz\maven.xml:24:50: <taskdef> taskdef class
 xdoclet.modules.ejb.EjbDocletTask cannot be found

[...]

--- Nested Exception ---
java.lang.NoClassDefFoundError: xdoclet/DocletTask

[...]

No possible doubts, I'm missing some dependencies. Let's try it again
with the following set (after a first try with just xdoclet added, I
saw that xjavadoc was required too) :

    <dependency>
      <groupId>xdoclet</groupId>
      <artifactId>xdoclet-ejb-module</artifactId>
      <version>1.2.1</version>
      <type>jar</type>
    </dependency>
    <dependency>
	<groupId>xdoclet</groupId>
	<artifactId>xdoclet</artifactId>
	<version>1.2.1</version>
    </dependency>
    <dependency>
	<groupId>xdoclet</groupId>
	<artifactId>xjavadoc</artifactId>
	<version>1.0.3</version>
    </dependency>

Ok, this time, the EjbDocletTask has been properly loaded, everyting
is fine. Would just have to do some stuff with it now :)

You should be able to get it wotking too now. 

I don't know if you have any preferences but I suggest to use the
maven-xdoclet-plugin and the xdoclet:ejbdoclet goal directly. The
maven-xodlet-plugin team is already adding the EjbDocletTask
definition so I prefer to not duplicate (and maintain !) this code in
my scripts.

On Fri, 12 Nov 2004 17:22:17 -0800 (PST), Janos Mucsi <mu...@yahoo.com> wrote:
> 
> To rephrase my previous question, if the
> ${pom.dependencyClasspath} contains
> xdoclet-ejb-module-1.2.jar which contains
> xdoclet.modules.ejb.EjbDocletTask, then why do I get
> this if my taskdef is like this:
> 
> ===================================================
> 
> 
> <ant:taskdef name="ejbdoclet"
> classname="xdoclet.modules.ejb.EjbDocletTask">
>             <ant:classpath>
>                                 <ant:pathelement
> path="${pom.dependencyClasspath}"/>
>                 <ant:path
> refid="maven.dependency.classpath"/>
>             </ant:classpath>
>         </ant:taskdef>
> =====================================
> 
> 
> C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
> ejb:install
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> 
> build:start:
> 
> ejb:init:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] java:compile ${pom.dependencyClasspath}=
> C:\Documents and Settings\jm
> ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;C:\Documents
> a
> nd
> Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
> and S
> ettings\jmucsi/.maven/repository\commons-collections\jars\commons-collections-3.
> 1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
> and Settin
> gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
> and Settin
> gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.2.jar;C:\Docum
> ents and
> Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
> ar;C:\Documents and
> Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
> nate-module-1.2.jar;C:\Documents and
> Settings\jmucsi/.maven/repository\xdoclet\j
> ars\xdoclet-jboss-module-1.2.jar;
> 
> 
> 
> BUILD FAILED
> File......
> C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
> l
> Element... ant:taskdef
> Line...... 9
> Column.... 84
> taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
> be found
> 
> __________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Pascal

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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
To rephrase my previous question, if the
${pom.dependencyClasspath} contains
xdoclet-ejb-module-1.2.jar which contains
xdoclet.modules.ejb.EjbDocletTask, then why do I get
this if my taskdef is like this:

===================================================
<ant:taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask">
            <ant:classpath>
				<ant:pathelement
path="${pom.dependencyClasspath}"/>
                <ant:path
refid="maven.dependency.classpath"/>
            </ant:classpath>
        </ant:taskdef>
=====================================
C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
ejb:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1

build:start:

ejb:init:
java:prepare-filesystem:

java:compile:
    [echo] java:compile ${pom.dependencyClasspath}=
C:\Documents and Settings\jm
ucsi/.maven/repository\opcert\jars\everest-module-bedrock-1.0.jar;C:\Documents
a
nd
Settings\jmucsi/.maven/repository\j2ee\jars\j2ee-1.3.1.jar;C:\Documents
and S
ettings\jmucsi/.maven/repository\commons-collections\jars\commons-collections-3.
1.jar;C:\ccviews\USOpCert\source\complib\log4j-1.2.8.jar;C:\Documents
and Settin
gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-1.2.jar;C:\Documents
and Settin
gs\jmucsi/.maven/repository\xdoclet\jars\xdoclet-xdoclet-module-1.2.jar;C:\Docum
ents and
Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-ejb-module-1.2.j
ar;C:\Documents and
Settings\jmucsi/.maven/repository\xdoclet\jars\xdoclet-hiber
nate-module-1.2.jar;C:\Documents and
Settings\jmucsi/.maven/repository\xdoclet\j
ars\xdoclet-jboss-module-1.2.jar;

BUILD FAILED
File......
C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
l
Element... ant:taskdef
Line...... 9
Column.... 84
taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
be found


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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


XDoclet in Maven

Posted by Janos Mucsi <mu...@yahoo.com>.
Hi 
I have this in my maven.xml:

<project default="foobar-dist" xmlns:ant="jelly:ant"
                               
xmlns:maven="jelly:maven">
   <goal name="opcert-dist">
     <attainGoal name="ejb:install" />
   </goal>

   <preGoal name="java:compile">
       <ant:echo>java:compile executing</ant:echo>
       <ant:taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask">
            <ant:classpath>
				<ant:pathelement
path="${pom.dependencyClasspath}"/>
                <ant:path
refid="maven.dependency.classpath"/>
            </ant:classpath>
        </ant:taskdef>

The project.xml contains all XDoclet references:

<dependency>
            <groupId>xdoclet</groupId>
            <artifactId>xdoclet</artifactId>
            <version>1.2</version>
            <properties/>
        </dependency>
        <dependency>
            <groupId>xdoclet</groupId>
           
<artifactId>xdoclet-xdoclet-module</artifactId>
            <version>1.2</version>
            <properties/>
        </dependency>
       <dependency>
            <groupId>xdoclet</groupId>
           
<artifactId>xdoclet-ejb-module</artifactId>
            <version>1.2</version>
            <type>jar</type>
            <properties>
               
<eclipse.dependency>false</eclipse.dependency>
            </properties>
      </dependency>


Still I am getting  this:
C:\temp\eclipse\PlutoApp\modules\everest-module-registration>maven
ejb:install
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.1

build:start:

ejb:init:
java:prepare-filesystem:

java:compile:
    [echo] java:compile executing

BUILD FAILED
File......
C:\temp\eclipse\PlutoApp\modules\everest-module-registration\maven.xm
l
Element... ant:taskdef
Line...... 9
Column.... 84
taskdef class xdoclet.modules.ejb.EjbDocletTask cannot
be found
Total time: 3 seconds
Finished at: Fri Nov 12 17:10:14 PST 2004

Any ideas?

Thanks.

Janos



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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