Skip to content

Commit

Permalink
Revert "Fix sources goal for multimodule projects"
Browse files Browse the repository at this point in the history
This reverts commit 0bb4c59.
  • Loading branch information
michael-o committed Jun 7, 2024
1 parent fd17de4 commit 9fd4ed5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 105 deletions.
48 changes: 0 additions & 48 deletions src/it/projects/sources/module-a/pom.xml

This file was deleted.

48 changes: 0 additions & 48 deletions src/it/projects/sources/module-b/pom.xml

This file was deleted.

18 changes: 10 additions & 8 deletions src/it/projects/sources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,24 @@
<modelVersion>4.0.0</modelVersion>

<groupId>org.apache.maven.its.dependency</groupId>
<artifactId>tree-multimodule</artifactId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>MultimoduleTest</name>
<name>Test</name>
<description>
Test dependency:tree on multimodule project
Test dependency:sources
</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<modules>
<module>module-a</module>
<module>module-b</module>
</modules>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.0.8</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@Mojo(
name = "sources",
defaultPhase = LifecyclePhase.GENERATE_SOURCES,
requiresDependencyCollection = ResolutionScope.TEST,
requiresDependencyResolution = ResolutionScope.TEST,
threadSafe = true)
public class ResolveDependencySourcesMojo extends ResolveDependenciesMojo {

Expand Down

0 comments on commit 9fd4ed5

Please sign in to comment.