'generate jar without groupid, version, artifact id in the path

I am looking to generate a jar and upload using ftp. HOwever, the jar gets generated in the groupId/artifactid/version/finaljar and tries to create the same on the ftp. IS there a way to just generate the a jar without the path and upload using ftp?

  <extensions>
  <!-- Enabling the use of FTP -->
  <extension>
    <groupId>org.apache.maven.wagon</groupId>
     <artifactId>wagon-ftp</artifactId>
     <version>1.0-beta-6</version>
  </extension>
</extensions>



 <distributionManagement>
<repository>
<id>ftp-repository</id>
<url>ftp://username:password@DNS/path</url>
</repository>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source