Tomcat'a özgü bir kavanoz oluşturmak için maven profilini kullanıyoruz.Nihai ad belirtilirken varsayılan jar nesnesinin oluşturulması nasıl önlenir?
<profile>
<id>TOMCAT</id>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<finalName>${project.artifactId}-tomcat-${project.version}</finalName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>5.7.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-j2ee-management_1.1_spec</artifactId>
<version>1.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.javaee</groupId>
<artifactId>jboss-jms-api</artifactId>
<version>1.1.0.GA</version>
</dependency>
</dependencies>
</profile>
Beklentim ile tek kavanoz oluşturmaktır adı acme-tomcat-0.0.1-SNAPSHOT.jar ama projeyi oluşturmaya, maven bir tane (varsayılan bir) oluşturuyor Acme-0.0 .1-SNAPSHOT.jar. İkincisinin nesillerinden nasıl kurtulabiliriz (acme-0.0.1-SNAPSHOT.jar)?
Teşekkür