Add Maven Assembly plugin to pom.xml
This commit is contained in:
		
							
								
								
									
										30
									
								
								simple-factory/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								simple-factory/pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
			
		||||
  <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
  <parent>
 | 
			
		||||
    <groupId>com.iluwatar</groupId>
 | 
			
		||||
    <artifactId>java-design-patterns</artifactId>
 | 
			
		||||
    <version>1.24.0-SNAPSHOT</version>
 | 
			
		||||
  </parent>
 | 
			
		||||
  <artifactId>simple-factory</artifactId>
 | 
			
		||||
  <build>
 | 
			
		||||
		<plugins>
 | 
			
		||||
			<!-- Maven assembly plugin is invoked with default setting which we have 
 | 
			
		||||
				in parent pom and specifying the class having main method -->
 | 
			
		||||
			<plugin>
 | 
			
		||||
				<groupId>org.apache.maven.plugins</groupId>
 | 
			
		||||
				<artifactId>maven-assembly-plugin</artifactId>
 | 
			
		||||
				<executions>
 | 
			
		||||
					<execution>
 | 
			
		||||
						<configuration>
 | 
			
		||||
							<archive>
 | 
			
		||||
								<manifest>
 | 
			
		||||
									<mainClass>com.iluwatar.abstractfactory.App</mainClass>
 | 
			
		||||
								</manifest>
 | 
			
		||||
							</archive>
 | 
			
		||||
						</configuration>
 | 
			
		||||
					</execution>
 | 
			
		||||
				</executions>
 | 
			
		||||
			</plugin>
 | 
			
		||||
		</plugins>
 | 
			
		||||
	</build>
 | 
			
		||||
</project>
 | 
			
		||||
		Reference in New Issue
	
	Block a user