maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng, Kai" <kai.zh...@intel.com>
Subject RE: Maven shade plugin generates uber-jar but in a file name like *.pom
Date Mon, 13 Jul 2015 06:18:49 GMT
Thanks Karl for the response.

I just logged an issue as follows. It was caused by the bad packaging (it's 'pom' instead
of 'jar'). Would you comment on it? Thanks.

https://issues.apache.org/jira/browse/MSHADE-198

Regards,
Kai

-----Original Message-----
From: Karl Heinz Marbaise [mailto:khmarbaise@gmx.de] 
Sent: Monday, July 13, 2015 2:04 PM
To: Maven Users List
Subject: Re: Maven shade plugin generates uber-jar but in a file name like *.pom

Hi,

just simply use

<finalName>client-api-all</finalName>
..

Kind regards
Karl Heinz Marbaise
On 7/13/15 1:02 AM, Zheng, Kai wrote:
> Hi experts,
>
> With the following, it generates a uber-jar, but the generated jar file name isn't expected,
being client-api-all.jar.pom. Note the content is correct, containing classes files, not any
POM stuff.
> Would anyone help? Thanks a lot.
>
>            <plugin>
>              <groupId>org.apache.maven.plugins</groupId>
>              <artifactId>maven-shade-plugin</artifactId>
>              <version>2.4</version>
>              <executions>
>                <execution>
>                  <phase>package</phase>
>                  <goals>
>                    <goal>shade</goal>
>                  </goals>
>                  <configuration>
>                    <finalName>client-api-all.jar</finalName>
>                  </configuration>
>                </execution>
>              </executions>
>            </plugin>
>
> Regards,
> Kai
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Mime
View raw message