Index: src/main/java/org/apache/maven/plugin/ear/EarMojo.java =================================================================== --- src/main/java/org/apache/maven/plugin/ear/EarMojo.java (revision 476953) +++ src/main/java/org/apache/maven/plugin/ear/EarMojo.java (working copy) @@ -195,8 +195,13 @@ throw new MojoExecutionException( "Cannot copy a directory: " + sourceFile.getAbsolutePath() + "; Did you package/install " + module.getArtifact() + "?" ); } + if (destinationFile.getCanonicalPath().equals(sourceFile.getCanonicalPath())) + { + getLog().info( "Skipping artifact[" + module + "], as it already exists at[" + module.getUri() + "]." ); + continue; + } - // If the module is within the unpack, list make sure that no unpack wasn't forced (null or true) + // If the module is within the unpack list, make sure that no unpack wasn't forced (null or true) // If the module is not in the unpack list, it should be true if ( ( unpackTypesList.contains( module.getType() ) && ( module.shouldUnpack() == null || module.shouldUnpack().booleanValue() ) ) ||