On Thu, Jan 16, 2020 at 11:06 AM <r...@apache.org> wrote: > This is an automated email from the ASF dual-hosted git repository. > > remm pushed a commit to branch master > in repository > https://gitbox.apache.org/repos/asf/tomcat-jakartaee-migration.git > > > The following commit(s) were added to refs/heads/master by this push: > new 86bc4ee Shade and add a main class > 86bc4ee is described below > > commit 86bc4eea2804fa5df6a5089dd4a232847b709c91 > Author: remm <r...@apache.org> > AuthorDate: Thu Jan 16 11:06:25 2020 +0100 > > Shade and add a main class > > It seems easier to use to me: "java -jar overlylongjarname.jar src > dest". The overlylongjarname could be trimmed down a bit. >
So there's an option between this way and the assembly that was added (which I'm not sure how to use). Rémy > --- > pom.xml | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/pom.xml b/pom.xml > index 1370d14..ceeb2cf 100644 > --- a/pom.xml > +++ b/pom.xml > @@ -82,6 +82,18 @@ > </resources> > <plugins> > <plugin> > + <groupId>org.apache.maven.plugins</groupId> > + <artifactId>maven-jar-plugin</artifactId> > + <configuration> > + <archive> > + <manifest> > + <addClasspath>true</addClasspath> > + <mainClass>org.apache.tomcat.jakartaee.Migration</mainClass> > + </manifest> > + </archive> > + </configuration> > + </plugin> > + <plugin> > <!-- NOTE: We don't need a groupId specification because the > group is > org.apache.maven.plugins ...which is assumed by default. > --> > @@ -93,6 +105,18 @@ > </descriptors> > </configuration> > </plugin> > + <plugin> > + <groupId>org.apache.maven.plugins</groupId> > + <artifactId>maven-shade-plugin</artifactId> > + <executions> > + <execution> > + <phase>package</phase> > + <goals> > + <goal>shade</goal> > + </goals> > + </execution> > + </executions> > + </plugin> > </plugins> > </build> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > >