Changed pom.xml to also build a jar file and upload it to the repository
This commit is contained in:
		
							
								
								
									
										35
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								pom.xml
									
									
									
									
									
								
							| @ -65,16 +65,31 @@ | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-jar-plugin</artifactId> | ||||
|                 <version>2.5</version> | ||||
|                 <artifactId>maven-war-plugin</artifactId> | ||||
|                 <version>2.6</version> | ||||
|                 <configuration> | ||||
|                     <attachClasses>true</attachClasses> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.codehaus.mojo</groupId> | ||||
|                 <artifactId>build-helper-maven-plugin</artifactId> | ||||
|                 <version>1.7</version> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <id>create-jar</id> | ||||
|                         <phase>compile</phase> | ||||
|                         <id>attach-artifacts</id> | ||||
|                         <phase>package</phase> | ||||
|                         <goals> | ||||
|                             <goal>jar</goal> | ||||
|                             <goal>attach-artifact</goal> | ||||
|                         </goals> | ||||
|                         <configuration> | ||||
|                             <artifacts> | ||||
|                                 <artifact> | ||||
|                                     <file>${project.build.directory}/WebGoat-Container-${project.version}-classes.jar</file> | ||||
|                                     <type>classes-jar</type> | ||||
|                                 </artifact> | ||||
|                             </artifacts> | ||||
|                         </configuration> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|             </plugin> | ||||
| @ -192,7 +207,7 @@ | ||||
|             <artifactId>log4j</artifactId> | ||||
|             <version>1.2.17</version> | ||||
|         </dependency> | ||||
|          | ||||
|  | ||||
|         <dependency> | ||||
|             <groupId>wsdl4j</groupId> | ||||
|             <artifactId>wsdl4j</artifactId> | ||||
| @ -241,7 +256,7 @@ | ||||
|             <artifactId>spring-core</artifactId> | ||||
|             <version>${org.springframework.version}</version> | ||||
|         </dependency> | ||||
|          | ||||
|  | ||||
|         <!-- Jackson --> | ||||
|         <dependency> | ||||
|             <groupId>com.fasterxml.jackson.core</groupId> | ||||
| @ -356,9 +371,9 @@ | ||||
|             <version>1.7.7</version> | ||||
|             <type>jar</type> | ||||
|         </dependency> | ||||
|         </dependencies> | ||||
|     </dependencies> | ||||
|  | ||||
|  | ||||
|         <!-- ************* END spring MVC and related dependencies ************** --> | ||||
|     <!-- ************* END spring MVC and related dependencies ************** --> | ||||
|  | ||||
| </project> | ||||
| @ -70,7 +70,7 @@ public class Plugin { | ||||
|                 this.lesson = clazz; | ||||
|             } | ||||
|         } catch (ClassNotFoundException e) { | ||||
|             logger.error("Unable to load class {}", name); | ||||
|             logger.error("Unable to load class {}", name, e); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|  | ||||
| @ -43,7 +43,7 @@ public class PluginsLoader implements Runnable { | ||||
|                             plugins.add(plugin);                 		 | ||||
|                     	} | ||||
|                     } catch (Plugin.PluginLoadingFailure e) { | ||||
|                        logger.error("Unable to load plugin, continue loading others..."); | ||||
|                        logger.error("Unable to load plugin, continue loading others...", e); | ||||
|                     } | ||||
|                     return FileVisitResult.CONTINUE; | ||||
|                 } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user