Maven搭建Eclipse-plugin(RCP)开发环境

 

一、下载安装:Eclipse for RCP and RAP Developers

       地址: http://www.eclipse.org/downloads/

 

二、安装插件: WindowBuilder Pro
       地址: http://www.eclipse.org/windowbuilder/download.php

 

三、安装插件:Tycho Configurator

        打开:m2e Marketplace

        查找:Tycho Configurator

        如图:Maven搭建Eclipse-plugin(RCP)开发环境_第1张图片

 

四、新建普通的maven项目:HelloEP

pom.xml


	4.0.0
	com.fetaoily
	HelloEP
	1.0.0-SNAPSHOT
	pom
	
		../HelloEP.application
		../HelloEP.feature
		../HelloEP.product
	

	
		0.18.1
	

	
		
			kepler
			p2
			http://download.eclipse.org/releases/kepler
		
	

	
		
			
				org.eclipse.tycho
				tycho-maven-plugin
				${tycho-version}
				true
			
			
				org.eclipse.tycho
				target-platform-configuration
				${tycho-version}
				
					
						
							win32
							win32
							x86
						
						
							win32
							win32
							x86_64
						
						
							linux
							gtk
							x86
						
						
							linux
							gtk
							x86_64
						
						
							macosx
							cocoa
							x86
						
						
							macosx
							cocoa
							x86_64
						
					
				
			
		
	

 

 

五、新建Eclipse plugin项目:HelloEP.application, 并将其转换成maven项目

pom.xml


	4.0.0
	
		../HelloEP/pom.xml
		com.fetaoily
		HelloEP
		1.0.0-SNAPSHOT
	

	HelloEP.application
	eclipse-plugin

 

六、新建Eclipse-feature项目:HelloEP.feature, 并将其转换成maven项目

pom.xml


	4.0.0
	
		../HelloEP/pom.xml
		com.fetaoily
		HelloEP
		1.0.0-SNAPSHOT
	
	HelloEP.feature
	eclipse-feature

 

feature.xml 



   
      [Enter Feature Description here.]
   

   
      [Enter Copyright Description here.]
   

   
      [Enter License Description here.]
   


 

 

七、新建普通的maven项目: HelloEP.product

pom.xml


	4.0.0
	
		../HelloEP/pom.xml
		com.fetaoily
		HelloEP
		1.0.0-SNAPSHOT
	

	HelloEP.product
	eclipse-repository

	
		
			
				org.eclipse.tycho
				tycho-p2-repository-plugin
				${tycho-version}
				
					true
				
			
			
				org.eclipse.tycho
				tycho-p2-director-plugin
				${tycho-version}
				
					
						materialize-products
						
							materialize-products
						
					
					
						archive-products
						
							archive-products
						
					
				

				
					
						zip
						tar.gz
						tar.gz
					
					
						
							HelloEP
							HelloEP
						
					
					
					true
					DefaultProfile
				
			
		
	

 

HelloEP.product





   
   

   
      -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
   

   

   
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
   

   
      
   


 

八、打包测试

>cd HelloEP
>mvn clean package
  

 

未完待续...

你可能感兴趣的:(Maven,Eclipse-plugin,Eclipse-RCP)