Re: XDoclet plugin troubles
> The default settings for the plugin are supposed to run against a > fileset that matches **/*Bean.java pattern. I verified that there should > be at least one file that matches that specification (CenterBean.java). > > My source specification in project.xml points to /src/java. I've > verified that the above java file is in that source directory. > > Here's the part of my project.xml file that defines the source > location: > > > ${basedir}/src/java > I just verified that the xdoclet plugin seems to be looking in the correct directory. By running maven -X xdoclet:ejbdoclet, I get the output below (I've included the entire debug output at the end of this message): [ejbdoclet] [DEBUG] fileset: Setup scanner in dir D:\dev\BISWEB2\bis-persistence-classes\src\java with patternSet{ includes: [**/*Bean.java] excludes: [] } That appears to be the correct location of my files Here's the remainder of my debug output: maven.bat -X xdoclet:ejbdoclet __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0-beta-10 [DEBUG] Adding reference: maven.dependency.classpath -> D:\dev\Java\repository\repository\j2ee\jars\j2ee-1.3.jar;D:\dev\Java\repository\repository\cactus\jars\cactus-13-1.6dev-20030829.jar;D:\dev\Java\repository\repository\commons-logging\jars\commons-logging-1.1-dev.jar;D:\dev\Java\repository\repository\cactus\jars\cactus-ant-13-1.6dev-20030829.jar;D:\dev\Java\repository\repository\commons-httpclient\jars\commons-httpclient-SNAPSHOT.jar;D:\dev\Java\repository\repository\aspectj\jars\aspectjrt-1.1.0.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-ejb-module-1.2b2.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-jboss-module-1.2b2.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-jmx-module-1.2b2.jar;D:\dev\Java\repository\repository\ejb\jars\ejb-2.1.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-1.2b2.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-client-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\javassist-2.5.1.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-common-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-system-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\jbossall-client-3.2.1.jar [available] [VERBOSE] Found: src\java [available] [VERBOSE] Found: test\java [DEBUG] Adding reference: maven-classpath -> [DEBUG] Adding reference: maven.compile.src.set -> [DEBUG] Adding reference: maven.test.compile.src.set -> Attempting to download commons-httpclient-SNAPSHOT.jar. [DEBUG] Adding reference: maven.dependency.classpath -> D:\dev\Java\repository\repository\commons-collections\jars\commons-collections-2.1.jar;D:\dev\Java\repository\repository\commons-logging\jars\commons-logging-1.1-dev.jar;D:\dev\Java\repository\repository\log4j\jars\log4j-1.2.6.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-1.2b3-dev.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-xdoclet-module-1.2b3-dev.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-xjavadoc-1.2b3-dev.jar [DEBUG] Adding reference: maven-classpath -> [DEBUG] Adding reference: maven.compile.src.set -> [DEBUG] Adding reference: maven.test.compile.src.set -> xdoclet:ejbdoclet: [taskdef] [DEBUG] Finding class xdoclet.modules.ejb.EjbDocletTask [taskdef] [DEBUG] Finding class xdoclet.DocletTask [taskdef] [DEBUG] Finding class xjavadoc.ant.XJavadocTask [taskdef] [DEBUG] Class org.apache.tools.ant.Task loaded from parent loader [taskdef] [DEBUG] Class xjavadoc.ant.XJavadocTask loaded from ant loader [taskdef] [DEBUG] Class org.apache.tools.ant.DynamicConfigurator loaded from parent loader [taskdef] [DEBUG] Class xdoclet.DocletTask loaded from ant loader [taskdef] [DEBUG] Class xdoclet.modules.ejb.EjbDocletTask loaded from ant loader [taskdef] [DEBUG] Class java.lang.Object loaded from parent loader [taskdef] [DEBUG] Class java.lang.Throwable loaded from parent loader [taskdef] [DEBUG] Class org.apache.tools.ant.BuildException loaded from parent loader [taskdef] [DEBUG] Class java.lang.OutOfMemoryError loaded from parent loader [taskdef] [DEBUG] Class java.util.Map loaded from parent loader [taskdef] [DEBUG] Finding class xjavadoc.SourceSet [taskdef] [DEBUG] Class java.io.Serializable loaded from parent loader [taskdef] [DEBUG] Class xjavadoc.SourceSet loaded from ant loader [taskdef] [DEBUG] Finding class xdoclet.XDocletException [taskdef] [DEBUG] Finding class xdoclet.template.TemplateException [taskdef] [DEBUG] Class java.lang.Exception loaded from parent loader [taskdef] [DEBUG] Class xdoclet.template.TemplateException loaded from ant loader [taskdef] [DEBUG] Class xdoclet.XDocletException loaded from ant loader [taskdef] [DEBUG] Finding class xdoclet.TemplateSubTask [taskdef] [DEBUG] Find
Re: XDoclet plugin troubles
> Nothing weird here. XDoclet goal just adds path where > generated files shall go to compilation source set. > It's added, but directory is not created because your > subtask was not run / did not found sources. Ok. So I'm pretty sure that the XDoclet plugin cannot find my sources. I'm having difficulty trying to figure out why especially since the java:compile task has no trouble finding them. So I must be missing something very obvious. > > Is there any special property you need to set to > > tell xdoclet where your > > source is? > > It's just happy with your source specification in > project.xml. Though you may set pattern of source > files to be included, and activate certain subtasks. > ( refer to plugin.jelly ) The default settings for the plugin are supposed to run against a fileset that matches **/*Bean.java pattern. I verified that there should be at least one file that matches that specification (CenterBean.java). My source specification in project.xml points to /src/java. I've verified that the above java file is in that source directory. Here's the part of my project.xml file that defines the source location: ${basedir}/src/java -- Bryce Fischer <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XDoclet plugin troubles
--- Bryce Fischer <[EMAIL PROTECTED]> wrote: > > --- Bryce Fischer <[EMAIL PROTECTED]> > wrote: > > > When I try to build my project, which has a > preGoal > > > for xdoclet, I get > > > the following error (debug information tagged at > the > > > end of this > > > message): > > > > > > com.werken.werkz.UnattainableGoalException: > Unable > > > to obtain goal [java:compile] -- > > > file:/C:/Documents and Settings/Bryce > > > > Fischer/.maven/plugins/maven-java-plugin-1.3/:55:48: > > > srcdir > > > > > > "D:\dev\BISWEB2\bis-persistence-classes\target\xdoclet\ejbdoclet" > > > does > > > not exist! > > > > > This means that xdocet did not produced any > output. > > Either you did not started any subtask, or subtask > did > > not found any source files. > > That's the wierd part. If I take the pregoal out, > and do java:compile, > it compiles fine (well, fine isn't the right word, > as it fails because > the dependent files that xdoclet are supposed to > create aren't created, > but it finds the sources). Nothing weird here. XDoclet goal just adds path where generated files shall go to compilation source set. It's added, but directory is not created because your subtask was not run / did not found sources. > Is there any special property you need to set to > tell xdoclet where your > source is? It's just happy with your source specification in project.xml. Though you may set pattern of source files to be included, and activate certain subtasks. ( refer to plugin.jelly ) regards, = [ Konstantin Pribluda ( ko5tik ) ] Zu Verstärkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] für die Festanstellung. Arbeitsort: Mainz Skills: Programieren, Kentnisse in OpenSource-Bereich [ http://www.pribluda.de ] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XDoclet plugin troubles
You may be running into a problem with the " " spaces in your directory name. Documents and Settings - Original Message - From: "Bryce Fischer" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Thursday, October 09, 2003 6:44 AM Subject: Re: XDoclet plugin troubles > > --- Bryce Fischer <[EMAIL PROTECTED]> wrote: > > > When I try to build my project, which has a preGoal > > > for xdoclet, I get > > > the following error (debug information tagged at the > > > end of this > > > message): > > > > > > com.werken.werkz.UnattainableGoalException: Unable > > > to obtain goal [java:compile] -- > > > file:/C:/Documents and Settings/Bryce > > > Fischer/.maven/plugins/maven-java-plugin-1.3/:55:48: > > > srcdir > > > > > "D:\dev\BISWEB2\bis-persistence-classes\target\xdoclet\ejbdoclet" > > > does > > > not exist! > > > > > This means that xdocet did not produced any output. > > Either you did not started any subtask, or subtask did > > not found any source files. > > That's the wierd part. If I take the pregoal out, and do java:compile, > it compiles fine (well, fine isn't the right word, as it fails because > the dependent files that xdoclet are supposed to create aren't created, > but it finds the sources). > > Is there any special property you need to set to tell xdoclet where your > source is? > > I've also overridden the destDir property to point to a different > directory than the default, which is ${maven.build.dir}/xdoclet/ejbdoclet, > but it still seems to be trying to find the default location. > > -- > Bryce Fischer <[EMAIL PROTECTED]> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XDoclet plugin troubles
> --- Bryce Fischer <[EMAIL PROTECTED]> wrote: > > When I try to build my project, which has a preGoal > > for xdoclet, I get > > the following error (debug information tagged at the > > end of this > > message): > > > > com.werken.werkz.UnattainableGoalException: Unable > > to obtain goal [java:compile] -- > > file:/C:/Documents and Settings/Bryce > > Fischer/.maven/plugins/maven-java-plugin-1.3/:55:48: > > srcdir > > > "D:\dev\BISWEB2\bis-persistence-classes\target\xdoclet\ejbdoclet" > > does > > not exist! > > > This means that xdocet did not produced any output. > Either you did not started any subtask, or subtask did > not found any source files. That's the wierd part. If I take the pregoal out, and do java:compile, it compiles fine (well, fine isn't the right word, as it fails because the dependent files that xdoclet are supposed to create aren't created, but it finds the sources). Is there any special property you need to set to tell xdoclet where your source is? I've also overridden the destDir property to point to a different directory than the default, which is ${maven.build.dir}/xdoclet/ejbdoclet, but it still seems to be trying to find the default location. -- Bryce Fischer <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XDoclet plugin troubles
--- Bryce Fischer <[EMAIL PROTECTED]> wrote: > When I try to build my project, which has a preGoal > for xdoclet, I get > the following error (debug information tagged at the > end of this > message): > > com.werken.werkz.UnattainableGoalException: Unable > to obtain goal [java:compile] -- > file:/C:/Documents and Settings/Bryce > Fischer/.maven/plugins/maven-java-plugin-1.3/:55:48: > srcdir > "D:\dev\BISWEB2\bis-persistence-classes\target\xdoclet\ejbdoclet" > does > not exist! > This means that xdocet did not produced any output. Either you did not started any subtask, or subtask did not found any source files. regards, = [ Konstantin Pribluda ( ko5tik ) ] Zu Verstärkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] für die Festanstellung. Arbeitsort: Mainz Skills: Programieren, Kentnisse in OpenSource-Bereich [ http://www.pribluda.de ] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XDoclet plugin troubles
When I try to build my project, which has a preGoal for xdoclet, I get the following error (debug information tagged at the end of this message): com.werken.werkz.UnattainableGoalException: Unable to obtain goal [java:compile] -- file:/C:/Documents and Settings/Bryce Fischer/.maven/plugins/maven-java-plugin-1.3/:55:48: srcdir "D:\dev\BISWEB2\bis-persistence-classes\target\xdoclet\ejbdoclet" does not exist! I've set the following in my build.properties: maven.xdoclet.ejbdoclet.destDir=${maven.build.dir}/src/java maven.xdoclet.ejbdoclet.deploymentdescriptor.0.destDir=${maven.build.dir}/src/ejb/META-INF What's strange, is that it doesn't seem to be executing the xdoclet goal... Here's my relevant maven.xml entries: > Any help/tips would be appreciated. TIA This was obtained using maven -X java:compile [START DEBUG INFORMATION] maven.bat -X java:compile __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0-beta-10 [DEBUG] Adding reference: maven.dependency.classpath -> D:\dev\Java\repository\repository\j2ee\jars\j2ee-1.3.jar;D:\dev\Java\repository\repository\cactus\jars\cactus-13-1.6dev-20030829.jar;D:\dev\Java\repository\repository\commons-logging\jars\commons-logging-1.1-dev.jar;D:\dev\Java\repository\repository\cactus\jars\cactus-ant-13-1.6dev-20030829.jar;D:\dev\Java\repository\repository\commons-httpclient\jars\commons-httpclient-SNAPSHOT.jar;D:\dev\Java\repository\repository\aspectj\jars\aspectjrt-1.1.0.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-ejb-module-1.2b2.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-jboss-module-1.2b2.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-jmx-module-1.2b2.jar;D:\dev\Java\repository\repository\ejb\jars\ejb-2.1.jar;D:\dev\Java\repository\repository\xdoclet\jars\xdoclet-1.2b2.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-client-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\javassist-2.5.1.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-common-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\jboss-system-3.2.1.jar;D:\dev\Java\repository\repository\jboss\jars\jbossall-client-3.2.1.jar [available] [VERBOSE] Found: src\java [available] [VERBOSE] Found: test\java [DEBUG] Adding reference: maven-classpath -> [DEBUG] Adding reference: maven.compile.src.set -> [DEBUG] Adding reference: maven.test.compile.src.set -> Attempting to download commons-httpclient-SNAPSHOT.jar. [DEBUG] Adding reference: maven.dependency.classpath -> D:\dev\Java\repository\repository\ant\jars\ant-1.5.1.jar;D:\dev\Java\repository\repository\commons-jelly\jars\commons-jelly-tags-antlr-20030211.143720.jar;D:\dev\Java\repository\repository\commons-lang\jars\commons-lang-1.0-b1.1.jar;D:\dev\Java\repository\repository\antlr\jars\antlr-2.7.2.jar [DEBUG] Adding reference: maven-classpath -> [DEBUG] Adding reference: maven.compile.src.set -> [DEBUG] Adding reference: maven.test.compile.src.set -> [DEBUG] Adding reference: maven.dependency.classpath -> [DEBUG] Adding reference: maven-classpath -> [DEBUG] Adding reference: maven.compile.src.set -> [DEBUG] Adding reference: maven.test.compile.src.set -> [DEBUG] Adding reference: maven.jar.resources.set -> patternSet{ includes: [] excludes: [] } [DEBUG] Adding reference: maven.dependency.classpath -> D:\dev\Java\repository\repository\junit\jars\junit-3.8.1.jar;D:\dev\Java\repository\repository\xml-apis\jars\xml-apis-1.0.b2.jar;D:\dev\Java\repository\repository\xerces\jars\xerces-2.0.2.jar [DEBUG] Adding reference: maven-classpath -> [DEBUG] Adding reference: maven.compile.src.set -> [DEBUG] Adding reference: maven.test.compile.src.set -> [DEBUG] Adding reference: maven.dependency.classpath -> D:\dev\Java\repository\repository\maven\jars\maven-SNAPSHOT.jar;D:\dev\Java\repository\repository\commons-io\jars\commons-io-20030203.000550.jar;D:\dev\Java\repository\repository\commons-net\jars\commons-net-1.0.0.jar;D:\dev\Java\repository\repository\commons-httpclient\jars\commons-httpclient-2.0-beta1.jar;D:\dev\Java\repository\repository\commons-lang\jars\commons-lang-1.0.jar;D:\dev\Java\repository\repository\jsch\jars\jsch-0.1.5.jar;D:\dev\Java\repository\repository\commons-jelly\jars\commons-jelly-20030310.073407.jar;D:\dev\Java\repository\repository\commons-jelly\jars\commons-jelly-tags-velocity-20030303.205659.jar;D:\dev\Java\repository\repository\velocity\jars\velocity-1.3.jar [DEBUG] Adding reference: maven-classpath -> [DEBUG] Adding reference: maven.compile.src.set -> [DEBUG] Adding reference: maven.test.compile.src.set -> [DEBUG] Adding reference: maven.dependency.classpath -> D:\dev\Java\repository\repository\dom4j\jars\dom4j-1.4-dev-7.jar;D:\dev\Java\repository\repository\xml-apis\jars\xml-apis-1.0.b2.jar;D:\dev\Java\repository\repository\maven\jars\maven.jar;D:\dev\Java\repository\repository\isorelax\jars\isorelax