Unknown Tag Warning

View: New views
7 Messages — Rating Filter:   Alert me  

Unknown Tag Warning

by Peter Fajemisin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How can I use the excludedtags property for hibernate and spring doclets available in xdoclet1 in my xdoclet2 pom definition.

I keep getting unknown tags warning for tags that I have used previously in my code since integrating with maven2 - xdoclet2.

Some command line codes

Unknown tag: @todo in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/user/impl/UserServiceImpl.ja
va (line 50)
Unknown tag: @todo in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/user/impl/UserServiceImpl.ja
va (line 66)
Unknown tag: @todo in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/user/impl/UserServiceImpl.ja
va (line 88)
Unknown tag: @todo in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/user/impl/UserServiceImpl.ja
va (line 99)
Unknown tag: @todo in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/user/impl/UserServiceImpl.ja
va (line 110)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/user/User.java (line 9)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/user/UserService.java (li
ne 9)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/cli/CommandLineExcep
tion.java (line 7)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/cli/CommandLineInvok
er.java (line 9)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/cli/CommandLineInvok
erStreams.java (line 7)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/cli/impl/CommandLine
InvokerImpl.java (line 22)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/cli/impl/CommandLine
InvokerStreamsImpl.java (line 11)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/cli/impl/StreamReade
r.java (line 18)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/MobileUtils.java (li
ne 11)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/ObjectUtils.java (li
ne 16)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/PasswordGenerator.ja
va (line 9)
Unknown tag: @created in file:/D:/alps-services/trunk/src/main/java/net/netcollex/alps/service/util/StringUtils.java (li
ne 7).



Sample Implementation

/**
 * Implementation of the List Object
 *
 * @author $PeterFajemisin:$
 * @created Peter Fajemisin
 * @version 1.0
 */



Re: Unknown Tag Warning

by Konstantin Priblouda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


--- Peter Fajemisin <peter@...> wrote:

>
> How can I use the excludedtags property for
> hibernate and spring doclets
> available in xdoclet1 in my xdoclet2 pom definition.
>
>
> I keep getting unknown tags warning for tags that I
> have used previously in
> my code since integrating with maven2 - xdoclet2.
>
> Some command line codes
>

I'm affraid this is impossible at the moment.
Those Warnings are  done by CustomXDocletTagsFactory
( org.generama.defaults )  and this is not
configurable at the moment.
( some tags are ignored though, but not @todo )

To overcome this condition, some patching of m2xd2
plugin would be required.
( I would say, some tool - "ignorer" which will
register fake tag library )
otherwise 3 projects have to be touched -
generama, xd2 and m2 plugin.

dare to the task?


regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


      ____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unknown Tag Warning

by Peter Fajemisin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Konstantin, I will hold off and just bear with the warning for now.

However, I have another query.

My jstl tags does not seem to working in my jsp pages, amongst other things. I am guessing  something is wrong with my xdoclet2 plugin definition and its components and dependencies in my pom.xml.

I have included my previous working xdoclet plugin definition and my new working but not complete xdoclet2 plugin definition.

Thanks for all your help

XDOCLET2 PLUGIN
 <plugin>
        <groupId>xdoclet</groupId>
        <artifactId>maven2-xdoclet2-plugin</artifactId>
        <version>2.0.5-SNAPSHOT</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>xdoclet</goal>
            </goals>
          </execution>
        </executions>
          <dependencies>
          <dependency>
            <groupId>xdoclet-plugins</groupId>
            <artifactId>xdoclet-plugin-spring</artifactId>
            <version>1.0.4-SNAPSHOT</version>
          </dependency>
         <dependency>
         <groupId>xdoclet-plugins</groupId>
         <artifactId>xdoclet-plugin-web</artifactId>
         <version>1.0.4-SNAPSHOT</version>
       </dependency>
       <dependency>
         <groupId>javax.servlet</groupId>
         <artifactId>servlet-api</artifactId>
         <version>2.4</version>
       </dependency>
       <dependency>
         <groupId>javax.servlet</groupId>
         <artifactId>jsp-api</artifactId>
         <version>2.0</version>
       </dependency>
        </dependencies>
         <configuration>
          <generatedDirectory>${project.build.directory}/generated-sources/java</generatedDirectory>
          <configs>
            <config>
              <components>
               <component>
                  <classname>org.xdoclet.plugin.web.WebPlugin</classname>
                  <params>
                    <filereplace>spring-${project.build.finalName}-servlet.xml</filereplace>
                    <destdir>${project.build.directory}/${project.build.finalName}/WEB-INF</destdir>
                    <mergedir>src/main/xdoclet/webdoclet</mergedir>
                    <validate>true</validate>
                     <servletversion>2.4</servletversion>
                  </params>
                </component>
                 <component>
                  <classname>org.xdoclet.plugin.web.TaglibPlugin</classname>
                  <params>
                     <jspversion>2.0</jspversion>
                  </params>
                </component>
                <component>
                  <classname>org.xdoclet.plugin.spring.SpringConfigXMLPlugin</classname>
                  <params>
                    <filereplace>spring-${project.build.finalName}-servlet.xml</filereplace>
                    <destdir>${project.build.directory}/${project.build.finalName}/WEB-INF</destdir>
                    <mergedir>src/main/xdoclet/springdoclet</mergedir>
                    <validate>true</validate>
                    <defaultAutowire>no</defaultAutowire>
                    <defaultLazyInit>false</defaultLazyInit>
                    <defaultDependencyCheck>none</defaultDependencyCheck>
                  </params>
                </component>
              </components>
              <includes>**/*.java</includes>
              <params>
                <destdir>${project.build.directory}/generated-sources/resources</destdir>
              </params>
            </config>
          </configs>
        </configuration>
      </plugin>



Old working version using xdoclet

 <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xdoclet-maven-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>xdoclet</goal>
            </goals>
            <configuration>
              <generatedSourcesDirectory>${project.build.directory}/generated-sources/java</generatedSourcesDirectory>
              <tasks>
                <springdoclet destdir="${project.build.directory}/${project.build.finalName}/WEB-INF" force="true">
                  <fileset dir="${project.build.sourceDirectory}">
                    <include name="**\*.java" />
                  </fileset>
                  <springxml destinationFile="spring-${project.build.finalName}-servlet.xml" defaultAutowire="no" defaultLazyInit="false" defaultDependencyCheck="none" validateXML="true" useIds="true" mergeDir="src/main/xdoclet/springdoclet">
                  </springxml>
                </springdoclet>
                <webdoclet destdir="${project.build.directory}/${project.build.finalName}/WEB-INF" force="true" mergedir="src/main/xdoclet/webdoclet" excludedtags="@version,@author" verbose="true">
                  <fileset dir="src/main/java">
                    <include name="**\*.java" />
                  </fileset>
                  <deploymentdescriptor destdir="${project.build.directory}/${project.build.finalName}/WEB-INF" servletspec="2.4" validateXML="true">
                  </deploymentdescriptor>
                  <strutsconfigxml validateXML="true" version="1.2" mergeDir="src/main/xdoclet/strutsdoclet" destDir="${project.build.directory}/${project.build.finalName}/WEB-INF">
                  </strutsconfigxml>
                </webdoclet>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>

Konstantin Priblouda wrote:
--- Peter Fajemisin <peter@netcollex.net> wrote:

>
> How can I use the excludedtags property for
> hibernate and spring doclets
> available in xdoclet1 in my xdoclet2 pom definition.
>
>
> I keep getting unknown tags warning for tags that I
> have used previously in
> my code since integrating with maven2 - xdoclet2.
>
> Some command line codes
>

I'm affraid this is impossible at the moment.
Those Warnings are  done by CustomXDocletTagsFactory
( org.generama.defaults )  and this is not
configurable at the moment.
( some tags are ignored though, but not @todo )

To overcome this condition, some patching of m2xd2
plugin would be required.
( I would say, some tool - "ignorer" which will
register fake tag library )
otherwise 3 projects have to be touched -
generama, xd2 and m2 plugin.

dare to the task?


regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


      ____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Re: Unknown Tag Warning

by Konstantin Priblouda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


--- Peter Fajemisin <peter@...> wrote:

>
> Thanks Konstantin, I will hold off and just bear
> with the warning for now.
>
> However, I have another query.
>
> My jstl tags does not seem to working in my jsp
> pages, amongst other things.
> I am guessing  something is wrong with my xdoclet2
> plugin definition and its
> components and dependencies in my pom.xml.
>
> I have included my previous working xdoclet plugin
> definition and my new
> working but not complete xdoclet2 plugin definition.

definition looks OK for me ( does it run? ) , but I
must admit that I do not use jsp and taglibs so I can
not give much of help.

If I were you, I wouild examine generated content and
try to change it until it works properly.

Then it will be possible to examine differences and
decide whether XD2 plugin does something wrong

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unknown Tag Warning

by Peter Fajemisin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes. it does run.

I will try to examine and change generated contents as adviced, will get back to you if needed.
Thanks mate.


Konstantin Priblouda wrote:
--- Peter Fajemisin <peter@netcollex.net> wrote:

>
> Thanks Konstantin, I will hold off and just bear
> with the warning for now.
>
> However, I have another query.
>
> My jstl tags does not seem to working in my jsp
> pages, amongst other things.
> I am guessing  something is wrong with my xdoclet2
> plugin definition and its
> components and dependencies in my pom.xml.
>
> I have included my previous working xdoclet plugin
> definition and my new
> working but not complete xdoclet2 plugin definition.

definition looks OK for me ( does it run? ) , but I
must admit that I do not use jsp and taglibs so I can
not give much of help.

If I were you, I wouild examine generated content and
try to change it until it works properly.

Then it will be possible to examine differences and
decide whether XD2 plugin does something wrong

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Re: Unknown Tag Warning

by Peter Fajemisin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Konstantin,

Thanks for all your help so far, Now I seem to be having problem generating my deployment descriptor,

I haven't been able to figure out how to replicate this:

<deploymentdescriptor destdir="${project.build.directory}/${project.build.finalName}/WEB-INF" servletspec="2.4" validateXML="true">
</deploymentdescriptor>

Using Maven2 Xdoclet2

I have declared my WebPlugin component as follows:
 <component>
                   <classname>org.xdoclet.plugin.web.WebPlugin</classname>
                   <params>
                     <destdir>${project.build.directory}/${project.build.finalName}/WEB-INF</destdir>
                     <mergedir>src/main/xdoclet/webdoclet</mergedir>
                     <validate>false</validate>
                     <servletversion>2.4</servletversion>
                   </params>
</component>

But the Web.xml file is not been generated properly instead I get contents looking like this:

<!--start merging from source: src/main/xdoclet/webdocletweb-settings.xml-->
<!--To add context params, description, and display name to your generated
                web.xml add a file to your XDoclet merge director named
                web-settings.xml that contains elements such as
                <display-name></display-name>, <description></description>,
                <context-param> ... </context-param>
                Define root element as <j:jelly xmlns:j="jelly:core"/>-->
<!--end merging from source: src/main/xdoclet/webdocletweb-settings.xml-->







Yes. it does run.

I will try to examine and change generated contents as adviced, will get back to you if needed.
Thanks mate.


Konstantin Priblouda wrote:
--- Peter Fajemisin <peter@netcollex.net> wrote:

>
> Thanks Konstantin, I will hold off and just bear
> with the warning for now.
>
> However, I have another query.
>
> My jstl tags does not seem to working in my jsp
> pages, amongst other things.
> I am guessing  something is wrong with my xdoclet2
> plugin definition and its
> components and dependencies in my pom.xml.
>
> I have included my previous working xdoclet plugin
> definition and my new
> working but not complete xdoclet2 plugin definition.

definition looks OK for me ( does it run? ) , but I
must admit that I do not use jsp and taglibs so I can
not give much of help.

If I were you, I wouild examine generated content and
try to change it until it works properly.

Then it will be possible to examine differences and
decide whether XD2 plugin does something wrong

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Unknown Tag Warning

by Konstantin Priblouda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


--- Peter Fajemisin <peter@...> wrote:

>
> Hi Konstantin,
>
> Thanks for all your help so far, Now I seem to be
> having problem generating
> my deployment descriptor,
>
> I haven't been able to figure out how to replicate
> this:
>
> <deploymentdescriptor
>
destdir="${project.build.directory}/${project.build.finalName}/WEB-INF"
> servletspec="2.4" validateXML="true">
> </deploymentdescriptor>
>
> Using Maven2 Xdoclet2
>
> I have declared my WebPlugin component as follows:
>  <component>
>                  
>
<classname>org.xdoclet.plugin.web.WebPlugin</classname>
>                    <params>
>                    
>
<destdir>${project.build.directory}/${project.build.finalName}/WEB-INF</destdir>

>                    
> <mergedir>src/main/xdoclet/webdoclet</mergedir>
>                      <validate>false</validate>
>                    
> <servletversion>2.4</servletversion>
>                    </params>
> </component>
>
> But the Web.xml file is not been generated properly
> instead I get contents
> looking like this:
>
> <!--start merging from source:
> src/main/xdoclet/webdocletweb-settings.xml-->
> <!--To add context params, description, and display
> name to your generated
>                 web.xml add a file to your XDoclet
> merge director named
>                 web-settings.xml that contains
> elements such as
>                 <display-name></display-name>,
> <description></description>,
>                 <context-param> ... </context-param>
>                 Define root element as <j:jelly
> xmlns:j="jelly:core"/>-->
> <!--end merging from source:
> src/main/xdoclet/webdocletweb-settings.xml-->
>

mergedir has to be specified as:
file:/<ehatever you like>

I recommend you to look nto sources on sourceforge -
there is a testapp with working maven invocation

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


      ____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email