mojohaus / buildplan-maven-plugin

A Maven 3.x plugin to inspect project lifecyle.
https://www.mojohaus.org/buildplan-maven-plugin/
Apache License 2.0
99 stars 14 forks source link

Does it only list predefined plugins? #53

Open gilbertoca opened 3 years ago

gilbertoca commented 3 years ago

Hi, this is more a question. In my project I have only defined two plugins:

        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-params</artifactId>
            <version>5.6.0</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <release>11</release>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.openjfx</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>0.0.3</version>
                <configuration>
                    <mainClass>com.gilbertoca.corretagem.App</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
gilberto@linux-ycqq:~/tmp/JAVAFX/nota-corretagem-fx (master)$

But the list-plugin goal shows nothing about them:

image

Perhaps I didn't understand the plugin usage? Shouldn't it list only the defined one, two in this case? Thank you!

jcgay commented 3 years ago

Hi,

The plugin will show you every plugins that would be executed if you run a mvn deploy by default. In your example it shows you that the maven-compiler-plugin will indeed be run twice, one time to compile your production code and one more time to compile your test code.

I don't know what is the purpose of javafx-maven-plugin but if it doesn't show up, this is certainly because there is no execution bind to a pre-defined phase by default. Nothing is executed by this plugin when you run mvn deploy.

You can find some examples on http://buildplan.jcgay.fr/usage.html.

Hopes that help, let me know :)

hboutemy commented 2 years ago

see also #33, which is another consequence of what is in the build plan and what is not