Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public abstract class AbstractFromDependenciesMojo extends AbstractDependencyFil
* @since 2.0-alpha-2
*/
@Parameter(property = "mdep.failOnMissingClassifierArtifact", defaultValue = "false")
protected boolean failOnMissingClassifierArtifact = true;
protected boolean failOnMissingClassifierArtifact;

/**
* @return Returns the outputDirectory.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class CopyDependenciesMojo extends AbstractFromDependenciesMojo {
* @since 2.0
*/
@Parameter(property = "mdep.copyPom", defaultValue = "false")
protected boolean copyPom = true;
protected boolean copyPom;

@Component
private CopyUtil copyUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ public void testArtifactResolutionException() throws MojoFailureException {

public void dotestArtifactExceptions() throws MojoFailureException {
mojo.classifier = "jdk";
mojo.failOnMissingClassifierArtifact = true;
mojo.type = "java-sources";

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,16 +491,13 @@ public void dotestClassifierType(String testClassifier, String testType) throws
}
}

public void testArtifactNotFound() throws Exception {
dotestArtifactExceptions(false, true);
public void testArtifactResolutionException() throws MojoFailureException {
dotestArtifactExceptions();
}

public void testArtifactResolutionException() throws Exception {
dotestArtifactExceptions(true, false);
}

public void dotestArtifactExceptions(boolean are, boolean anfe) throws Exception {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the parameters from this test method because it looks like they were unused since 809bfe1, so testArtifactNotFound and testArtifactResolutionException were effectively equivalent.

public void dotestArtifactExceptions() throws MojoFailureException {
mojo.classifier = "jdk";
mojo.failOnMissingClassifierArtifact = true;
mojo.type = "java-sources";

try {
Expand Down