Skip to content

[MSOURCES-8] maven-source-plugin causes generate-sources phase to execute twice #97

Description

@jira-importer

Andreas Schildbach opened MSOURCES-8 and commented

Due to the lack of documentation, I configured the plugin as follows, in order to install sources when doing "mvn install":

<plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-source-plugin</artifactId>
     <executions>
          <execution>
                   <phase>install</phase>
                   <goals>
                            <goal>jar</goal>
                   </goals>
          </execution>
     </executions>
</plugin>

Unfortunately, "mvn install" causes the generate-sources phase to execute twice, which can manifest for example in an antrun-task executing twice.


Affects: 2.0.1

Issue Links:

  • MSOURCES-13 No-Forking mojos for use within a POM instead of CLI

2 votes, 6 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions