Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Gemini/DBAccess/CommitterGuide/HowToBuild"

(New page: = Eclipse IDE = To compile and run the projects in Eclipse, you have to open the gemini.dbaccess.targetdef project, open the file gemini.dbaccess.target with the Target Editor and execute...)
 
(Background)
Line 30: Line 30:
 
* Maven builds every bundle. Result are in the /target folder of the respective directory.
 
* Maven builds every bundle. Result are in the /target folder of the respective directory.
 
* features, which include the bundles of the supported database platforms are also built.
 
* features, which include the bundles of the supported database platforms are also built.
* an update site is generated: /gemini.dbaccess.updatesite . You find the p2 repository under /target/site/ a p2 containing the features
+
* an update site is generated: /gemini.dbaccess.updatesite . You find the p2 repository under /target/site/ a p2 containing the features and all plugins included.
and all plugins included.  
+
* currently not all tests are executed
+

Revision as of 07:31, 9 January 2013

Eclipse IDE

To compile and run the projects in Eclipse, you have to open the gemini.dbaccess.targetdef project, open the file gemini.dbaccess.target with the Target Editor and execute "Set as Target Platform"

Maven Build

  1. install Maven 3.
  2. go into the directory mvn_parent/
  3. run the build and tests by entering on the command line:
    • mvn clean install


Tips and Tricks for Maven Builds

You may need to configure the proxy settings. In case you are behind a firewall, edit the file /mvn_parent/settings.xml and replace the TODOs with the right proxy settings. If you have configured the settings.xml:

  1. go into the directory mvn_parent/
  2. run on the command line:
    • mvn -fae -s settings.xml clean install

Static Code Analysis for Maven Builds

If you add findbugs:findbugs at the end of the command line, you will find information from findbugs in the different /target directories: > mvn clean install findbugs:findbugs

Note: This could be aggregated and displayed in late stage by Hudson.


Background

Some remarks on what the Maven build does:

  • the folder /mvn_parent contains a pom.xml which is the "parent" of all subprojects. Every bundle which is build has its own pom.xml file
  • Maven builds every bundle. Result are in the /target folder of the respective directory.
  • features, which include the bundles of the supported database platforms are also built.
  • an update site is generated: /gemini.dbaccess.updatesite . You find the p2 repository under /target/site/ a p2 containing the features and all plugins included.

Back to the top