[MAGNOLIA-3070] Fix xdoclet configuration for taglib projects Created: 10/Feb/10  Updated: 23/Jan/13  Resolved: 10/Feb/10

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3

Type: Task Priority: Major
Reporter: Fabrizio Giustina Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

With the current configuration we have 2 issues:

  • tlds gets included twice in sources
  • configuration generated by the eclipse plugin is invalid since the generated resource dir is nested in target/classes/

The xdoclet plugin seems really buggy about target directory handling... with a bit of voodo I found out that setting explicitely the taglib output dir to:

<destdir>${project.build.directory}/generated-resources/taglibs</destdir>

and adding the same dir to the resources list manually into <build>:

   <resource>
        <filtering>false</filtering>
        <directory>${project.build.directory}/generated-resources/taglibs</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>

is a good combination which solves both issues...



 Comments   
Comment by Magnolia International [ 10/Feb/10 ]
  • does the tld get included twice in the source jars ?
  • are you talking about the maven-eclise-plugin (i.e generating eclipse project using maven) or the integration of maven in eclipse (ie importing project into eclipse via pom). If the former, can you tell if the latter also has the issue ? (I'm not eclipse user myself, but you'll find details at http://wiki.magnolia-cms.com/display/DEV/Eclipse)
Comment by Fabrizio Giustina [ 10/Feb/10 ]

done

Comment by Fabrizio Giustina [ 10/Feb/10 ]
  1. does the tld get included twice in the source jars ?

you can see two tlds (in different folders) in target/classes/

  1. are you talking about the maven-eclise-plugin

yes, for the maven eclipse:eclipse goal

Generated at Mon Feb 12 03:42:53 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.