Maven 1.x War Plugin
  1. Maven 1.x War Plugin
  2. MPWAR-29

in the property "maven.war.classes.includes", Classes are relative to ${maven.build.dir}?

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.2
    • Labels:
      None
    • Number of attachments :
      0

      Description

      I don't know it's a bug or not, or just my misunderstanding, in the Doc for 1.7-SNAPSHOT(current version), in the properties page http://maven.apache.org/reference/plugins/war/properties.html. here have two properties (maven.war.classes.includes, maven.war.classes.excludes),the description NOTE the classes relative to $

      {maven.build.dir}, but after i checked the source code(plugin.jelly) in the cvs,i find it relatives to the ${maven.build.dest}.

      Because sometimes we need put some cacuts test case classes into the WEB-INF/classes, i think the path relative to the ${maven.build.dir}

      will be better.
      anyway, now i have walkaround it by write down
      maven.war.classes.includes=** ../test-classes/**
      in the project.properties,not
      maven.war.classes.includes=classes/** test-classes/**.

        Activity

        Hide
        Zhang Yang added a comment -

        sorry!
        maven.war.classes.includes=** ../test-classes/** can not walkaround it.

        Show
        Zhang Yang added a comment - sorry! maven.war.classes.includes=** ../test-classes/** can not walkaround it.
        Hide
        Carlos Sanchez added a comment -

        Why don't you use the cactus plugin?

        Show
        Carlos Sanchez added a comment - Why don't you use the cactus plugin?
        Hide
        Stéphane Nicoll added a comment -

        The properties are indeed relative maven.build.dest ; Fixed confusing documentation.

        Show
        Stéphane Nicoll added a comment - The properties are indeed relative maven.build.dest ; Fixed confusing documentation.

          People

          • Assignee:
            Stéphane Nicoll
            Reporter:
            Zhang Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: