Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it only list predefined plugins? #53

Open
gilbertoca opened this issue Feb 26, 2021 · 2 comments
Open

Does it only list predefined plugins? #53

gilbertoca opened this issue Feb 26, 2021 · 2 comments

Comments

@gilbertoca
Copy link

gilbertoca commented Feb 26, 2021

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
Copy link
Member

jcgay commented Feb 26, 2021

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants