What is the best way to avoid maven-jar?

后端 未结 9 2067
后悔当初
后悔当初 2020-11-27 05:40

I am using a different plugin (ant4eclipse) to jar my files. What is the best way to avoid the maven-jar plugin from executing?

  • I tried to remove the <
相关标签:
9条回答
  • 2020-11-27 06:24

    I am using a different plugin to jar my files. What is the best way to avoid the maven-jar plugin from executing?

    First, the jar:jar goal is bound by default on the package phase for a project with a packaging of type jar. Second, there is no way to unbind a plugin bound to a phase. So, if you are using another plugin(?), either accept to produce 2 JARs or change the packaging (but I don't think this will work well).

    0 讨论(0)
  • 2020-11-27 06:28

    Explicitly bind the jar plugin to a phase that doesn't exist.

    0 讨论(0)
  • 2020-11-27 06:35
           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>        
    
    0 讨论(0)
提交回复
热议问题