microsoft / vscode-maven

VSCode extension "Maven for Java"
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven
Other
181 stars 88 forks source link

maven execution by id #971

Open ebadta81 opened 1 year ago

ebadta81 commented 1 year ago

Hi,

I have multiple executions in my pom.xml, but in the vscode maven panel i see only the goals. Is there a way, to see there the goals, with different execution id-s?

The executions work fine from command line, like mvn exec:java@server -f pom.xml

my relevant pom.xml detail:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>${exec-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <id>server</id>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>io.vertx.core.Launcher</mainClass>
                            <arguments>
                                <argument>run</argument>
                                <argument>${main.verticle}</argument>
                            </arguments>
                        </configuration>
                    </execution>
                    <execution>
                        <id>create-user</id>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>io.vertx.core.Launcher</mainClass>
                            <arguments>
                                <argument>run</argument>
                                <argument>dc.server.CreateUserVerticle</argument>
                            </arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>