Domanda

I'm using this maven plugin:

<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>

I want to be able to pass in a parameter to skip the execution of the specified goal. (e.g. mvm install -skipGemPlugin=true) How do I do that?

È stato utile?

Soluzione

I ended up creating a separate profile to run tomcat and skips the goal execution:

<profile>
    <id>foo</id>
        <build>
            <plugins>
                <plugin>
                    <groupId>de.saumya.mojo</groupId>
                    <artifactId>gem-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>compassProcessSource</id>
                                <phase>none</phase>
                            </execution>
                        </executions>
                        ... 

Altri suggerimenti

If you call "bin" to your assembly.xml and in pom.xml put

<descriptorRefs>
<descriptorRef>bin</descriptorRef>
</descriptorRefs>

the plugin use a default assembly definition named "bin" and it annoys you!

SOLUTION: Remove bin and curses its creators

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top