0
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <executions>
                <execution>
                    <id>client</id>
                    <goals>
                        <goal>jar</goal>
                    </goals>
                    <configuration>
                        <classifier>client</classifier>
                        <includes>
                            <include>**/com.service/**</include>
                        </includes>
                    </configuration>

                </execution>
            </executions>
        </plugin>

I want the version to be appended to end of the jar.Right now it is building jar like ship-service-0.1-client.jar,I want it like ship-service-client-0.1.jar and i need to add it as dependency in another project.

  • Possible duplicate of [Controlling maven final name of jar artifact](https://stackoverflow.com/questions/4238944/controlling-maven-final-name-of-jar-artifact) – Jorge Campos May 29 '17 at 14:31
  • A classifiier sounds like a design flaw. You should make a separate maven module of the classifier part...The naming is `ship-service-0.1-client.jar` which you can't change if this is a classifer artifact. – khmarbaise May 29 '17 at 15:01

1 Answers1

-2

You can use

<build>
    <finalName>FinalNameOfYourProyect</finalName>
</build>

check this related question

Guru_Clef
  • 384
  • 4
  • 16
  • If there is already an answered question in SO, don't give another one. Flag the question as a duplicate. – Jorge Campos May 29 '17 at 14:31
  • This will only change the name in `target` folder but will not change the name which is deployed. Simply cause it can't be renamed. – khmarbaise May 29 '17 at 15:00