Maven Gwt plugin v1.4.61 || < Return to Index >

Contact and support : forge-gwt-plugin@gwtforge.com

1- Declare the forge plugin repository inside your pom :

	
		
			gwtforge
			http://gwtforge.com/maven-repository/trunk/
		
	

2- Declare the forge Gwt repository inside your pom :
	
		
			gwtforge
			http://gwtforge.com/maven-repository/trunk/
		
	

3- Declare and associate the plugin with the maven compile phase :

	
		
			
				maven-compiler-plugin
				
					1.5
					1.5
				
			
			
				gwtforge.gwtplugin
				gwtforge.gwtplugin
				1.4.61
                
                
				
                
					
						compile
						
							compile
						
					
				
	
               
					
					gwt
					INFO
			   
	
    		
		
	

4 - Plugin parameters :

          

				
					
					
					
					
					gwt
					
					
					
					
					
					INFO
                    



					
					
					
				    500m
				
					
				
					500m
					
					
					
					250m
					

          

6 - Compile your sources :

at this level the only thing you have to do is :

mvn compile or mvn install

if you want to compile only the gwt sources included in your project do a mvn gwt:compile

7- Complete exemple :





	4.0.0
	web.gwtforge.example
	web.gwtforge.example
	war
	0.0.1-SNAPSHOT
	web.gwtforge.example Distribution 
	 web.gwtforge.example Distribution 
	
	
		
			gwtforge
			http://gwtforge.com/maven-repository/trunk/
		
	
	
		
			gwtforge
			http://gwtforge.com/maven-repository/trunk/
		
	
	
	
	
		
			
				maven-compiler-plugin
				
					1.5
					1.5
				
			
			
				gwtforge.gwtplugin
				gwtforge.gwtplugin
				1.4.61
				
					
						compile
						
							compile
						
					
				
				
					gwt
					INFO
				
			
		
	
	
	
	
		
			com.google.gwt
			gwt-servlet
			1.4.61
		
        
        
        
        
			my.gwt.component.library.here
			my.gwt.component.library.here
			0.0.1-SNAPSHOT
		
	
    	
    
    	
			db.gwtforge.example
			db.gwtforge.example
			0.0.1-SNAPSHOT
		
	
    	
			services.gwtforge.example.def
			services.gwtforge.example.def
			0.0.1-SNAPSHOT
		
	
    	
			services.gwtforge.example.impl
			services.gwtforge.example.impl
			0.0.1-SNAPSHOT