8484 <plugins >
8585 <plugin >
8686 <groupId >org.apache.maven.plugins</groupId >
87- <artifactId >maven-compiler-plugin</artifactId >
88- <configuration >
89- <source >1.8</source >
90- <target >1.8</target >
91- </configuration >
92- </plugin >
93- <plugin >
94- <groupId >org.apache.maven.plugins</groupId >
95- <artifactId >maven-dependency-plugin</artifactId >
87+ <artifactId >maven-shade-plugin</artifactId >
88+ <version >2.4.3</version >
9689 <executions >
9790 <execution >
98- <id >copy-dependencies</id >
99- <phase >prepare-package</phase >
91+ <phase >package</phase >
10092 <goals >
101- <goal >copy-dependencies </goal >
93+ <goal >shade </goal >
10294 </goals >
10395 <configuration >
104- <outputDirectory >${project.build.directory} /lib</outputDirectory >
105- <overWriteReleases >true</overWriteReleases >
106- <overWriteSnapshots >true</overWriteSnapshots >
107- <overWriteIfNewer >true</overWriteIfNewer >
96+ <filters >
97+ <filter >
98+ <artifact >*:*</artifact >
99+ <excludes >
100+ <exclude >META-INF/*.SF</exclude >
101+ <exclude >META-INF/*.DSA</exclude >
102+ <exclude >META-INF/*.RSA</exclude >
103+ </excludes >
104+ </filter >
105+ </filters >
106+ <transformers >
107+ <transformer
108+ implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
109+ <mainClass >com.javabaas.shell.Main</mainClass >
110+ </transformer >
111+ <transformer
112+ implementation =" org.apache.maven.plugins.shade.resource.AppendingTransformer" >
113+ <resource >META-INF/spring.handlers</resource >
114+ </transformer >
115+ <transformer
116+ implementation =" org.apache.maven.plugins.shade.resource.AppendingTransformer" >
117+ <resource >META-INF/spring.schemas</resource >
118+ </transformer >
119+ </transformers >
108120 </configuration >
109121 </execution >
110122 </executions >
111123 </plugin >
112- <plugin >
113- <groupId >org.apache.maven.plugins</groupId >
114- <artifactId >maven-jar-plugin</artifactId >
115- <configuration >
116- <archive >
117- <manifest >
118- <addClasspath >true</addClasspath >
119- <useUniqueVersions >false</useUniqueVersions >
120- <classpathPrefix >lib/</classpathPrefix >
121- <mainClass >${jar.mainclass} </mainClass >
122- </manifest >
123- <manifestEntries >
124- <version >${project.version} </version >
125- </manifestEntries >
126- </archive >
127- </configuration >
128- </plugin >
129- <plugin >
130- <groupId >org.codehaus.mojo</groupId >
131- <artifactId >appassembler-maven-plugin</artifactId >
132- <version >1.10</version >
133- <configuration >
134- <repositoryLayout >flat</repositoryLayout >
135- <repositoryName >lib</repositoryName >
136- <programs >
137- <program >
138- <mainClass >com.javabaas.shell.Main</mainClass >
139- <name >shell</name >
140- </program >
141- </programs >
142- </configuration >
143- </plugin >
144124 </plugins >
145-
146125 </build >
147126
127+ <!-- <build>-->
128+ <!-- <plugins>-->
129+ <!-- <plugin>-->
130+ <!-- <groupId>org.apache.maven.plugins</groupId>-->
131+ <!-- <artifactId>maven-compiler-plugin</artifactId>-->
132+ <!-- <configuration>-->
133+ <!-- <source>1.8</source>-->
134+ <!-- <target>1.8</target>-->
135+ <!-- </configuration>-->
136+ <!-- </plugin>-->
137+ <!-- <plugin>-->
138+ <!-- <groupId>org.apache.maven.plugins</groupId>-->
139+ <!-- <artifactId>maven-dependency-plugin</artifactId>-->
140+ <!-- <executions>-->
141+ <!-- <execution>-->
142+ <!-- <phase>package</phase>-->
143+ <!-- <goals>-->
144+ <!-- <goal>copy-dependencies</goal>-->
145+ <!-- </goals>-->
146+ <!-- <configuration>-->
147+ <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
148+ <!-- <overWriteReleases>true</overWriteReleases>-->
149+ <!-- <overWriteSnapshots>true</overWriteSnapshots>-->
150+ <!-- <overWriteIfNewer>true</overWriteIfNewer>-->
151+ <!-- </configuration>-->
152+ <!-- </execution>-->
153+ <!-- </executions>-->
154+ <!-- </plugin>-->
155+ <!-- <plugin>-->
156+ <!-- <groupId>org.apache.maven.plugins</groupId>-->
157+ <!-- <artifactId>maven-jar-plugin</artifactId>-->
158+ <!-- <configuration>-->
159+ <!-- <archive>-->
160+ <!-- <manifest>-->
161+ <!-- <addClasspath>true</addClasspath>-->
162+ <!-- <useUniqueVersions>false</useUniqueVersions>-->
163+ <!-- <classpathPrefix>lib/</classpathPrefix>-->
164+ <!-- <mainClass>${jar.mainclass}</mainClass>-->
165+ <!-- </manifest>-->
166+ <!-- <manifestEntries>-->
167+ <!-- <version>${project.version}</version>-->
168+ <!-- </manifestEntries>-->
169+ <!-- </archive>-->
170+ <!-- </configuration>-->
171+ <!-- </plugin>-->
172+ <!-- <plugin>-->
173+ <!-- <groupId>org.codehaus.mojo</groupId>-->
174+ <!-- <artifactId>appassembler-maven-plugin</artifactId>-->
175+ <!-- <version>1.10</version>-->
176+ <!-- <configuration>-->
177+ <!-- <repositoryLayout>flat</repositoryLayout>-->
178+ <!-- <repositoryName>lib</repositoryName>-->
179+ <!-- <programs>-->
180+ <!-- <program>-->
181+ <!-- <mainClass>com.javabaas.shell.Main</mainClass>-->
182+ <!-- <name>shell</name>-->
183+ <!-- </program>-->
184+ <!-- </programs>-->
185+ <!-- </configuration>-->
186+ <!-- </plugin>-->
187+ <!-- </plugins>-->
188+
189+ <!-- </build>-->
190+
148191
149- <repositories >
150- <repository >
151- <id >libs-milestone</id >
152- <url >http://repo.spring.io/libs-milestone/</url >
153- </repository >
154- <repository >
155- <id >libs-release</id >
156- <url >http://repo.spring.io/libs-release/</url >
157- </repository >
158- </repositories >
192+ <!-- < repositories> -- >
193+ <!-- < repository> -- >
194+ <!-- < id>libs-milestone</id> -- >
195+ <!-- < url>http://repo.spring.io/libs-milestone/</url> -- >
196+ <!-- < /repository> -- >
197+ <!-- < repository> -- >
198+ <!-- < id>libs-release</id> -- >
199+ <!-- < url>http://repo.spring.io/libs-release/</url> -- >
200+ <!-- < /repository> -- >
201+ <!-- < /repositories> -- >
159202
160203</project >
0 commit comments