File tree Expand file tree Collapse file tree
japicmp-maven-plugin/src/main/java/japicmp/maven Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -755,13 +755,15 @@ private void setUpClassPathUsingMavenProject(final JarArchiveComparatorOptions c
755755 comparatorOptions .getClassPathEntries ().addAll (classPathEntries );
756756 }
757757
758- private Set <Artifact > getCompileArtifacts (final MavenProject mavenProject ) {
758+ private Set <Artifact > getCompileArtifacts (final MavenProject mavenProject ) throws MojoFailureException {
759759 // dependencies that this project has, including transitive ones
760760 Set <org .apache .maven .artifact .Artifact > projectDependencies =
761761 mavenProject .getArtifacts ();
762762
763763 HashSet <Artifact > result = new HashSet <>(1 +projectDependencies .size ());
764- result .add (RepositoryUtils .toArtifact (mavenProject .getArtifact ())); // include the project artifact
764+ // Include the project artifact; use the reactor to resolve the project artifact in case it's not being built
765+ Artifact project = RepositoryUtils .toArtifact (mavenProject .getArtifact ());
766+ result .add (resolveArtifact (project , ConfigurationVersion .NEW ));
765767 for (org .apache .maven .artifact .Artifact dep : projectDependencies ) {
766768 if (dep .getArtifactHandler ().isAddedToClasspath ()) {
767769 if (org .apache .maven .artifact .Artifact .SCOPE_COMPILE .equals (dep .getScope ())
You can’t perform that action at this time.
0 commit comments