Maven 1.x Clean Plugin

"maven clean" triggers download of unrelated jar files

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

The job of the clean target is to delete a few files. It should not be necessary to download jcoverage and java-getopt, and the other jars are probably not too useful either. My project doesn't even use jcoverage...

For a user new to Maven (like me) this is confusing, I did not expect to start a download when I wanted to delete some files. It also takes much longer than necessary to execute the clean task (26s instead of 2s)

I should mention that this is a multiproject build, maven clean was executed on top level.

Here the console log of the build process (download artifacts compressed, path prefixes omitted)

clirr> maven clean
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0-rc3

Attempting to download jcoverage-1.0.5.jar.
..
Attempting to download velocity-1.3.jar.
..
Attempting to download java-getopt-1.0.9.jar.
..
Attempting to download xpp3-1.1.2a.jar.
..
Attempting to download xercesImpl-2.4.0.jar.
..
Attempting to download xmlParserAPIs-2.2.1.jar.
..
build:start:

clean:clean:
[delete] Deleting directory .../clirr/target
[delete] Deleting: .../clirr/velocity.log
BUILD SUCCESSFUL
Total time: 26 seconds

Activity

Hide
Brett Porter added a comment -

duplicate of MAVEN-1297.
Design limitation in Maven 1.0 that will be fixed in future versions.

Show
Brett Porter added a comment - duplicate of MAVEN-1297. Design limitation in Maven 1.0 that will be fixed in future versions.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: