我有一个生成一个jar的maven项目,但没有附加maven-assembly-plugin的appendAssemblyId。
如何使Maven停止发出警告:“配置选项'appendAssemblyId'设置为false。” ?
编辑:我被要求包括pom文件,我不允许这样做。我包括了导致错误的maven-assembly-plugin块。
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>some.company.hello</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<!-- prevent appending <descriptorRef> "jar-with-dependencies" to final jar name -->
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<!-- For inheritance merges -->
<id>make-assembly</id>
<!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>