Uploaded image for project: 'Maven Clean Plugin'
  1. Maven Clean Plugin
  2. MCLEAN-27

fileset directory does not work as expected when cleaning "modules" in sub-directories

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.2
    • None

    Description

      Following the example given on the plugin site, I used a fileset with a directory like so.

      <plugin>
      	<artifactId>maven-clean-plugin</artifactId>
      	<configuration>
      		<filesets>
      			<fileset>
      				<directory>
      					src/main/application
      				</directory>
      				<includes>
      					<include>*.jar</include>
      				</includes>
      			</fileset>
      		</filesets>
      	</configuration>
      </plugin>
      

      I did this, or a variation on it, to several projects. I then created a parent pom in the directory above those projects, added them as modules in that pom, and ran "mvn clean" expecting to have those specified directories cleaned for me (of all jar files). However, it did not work. To get it to work, I had to prefix my directories with ${basedir}, for example "${basedir}/src/main/application".

      If this is the desired behavior, I recommend adding one sentence to the documentation to explain this.

      Attachments

        Issue Links

          Activity

            People

              siveton Siveton Vincent
              jacob.robertson Jacob Robertson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: