In the compilation of eclipse source base. I have "An API baseline has not been set ..." error.
I tried to add API Baseline, but I don't know how to make or add it.
What's the API Baseline is for, and how can I add or make one?
In the compilation of eclipse source base. I have "An API baseline has not been set ..." error.
I tried to add API Baseline, but I don't know how to make or add it.
What's the API Baseline is for, and how can I add or make one?
I try to answer the "What's the API Baseline is for, ..." part of the question.
API Baseline is a concept from PDE Tools / API Tools. They are intended to help you maintain plugins that others can use. They help you create compatible API versions.
If you develop a plugin just for your personal use and are not interested to maintain a compatible API, you can follow the advices to disable the warnings.
When you develop plugins for a community, e. g. the eclipse plugins themselves, it is essential that you keep API incompatibilities to a minimum. Then you will follow the advice and set the baseline to 4.2 when you develop for 4.3. The API tools will help you make 4.3 an enjoyment for all current 4.2 users.
Please note, that the API Tools are for the developers of the plugins that will be used by others. They are not addressed at the users of those plugins.
Quoting from Eclipse site, "An API baseline defines the state you want to compare your development workspace bundles against for the purposes of binary compatibility, bundle version numbers, and @since tags. For example, if you are developing bundles for Eclipse 3.4, you could use Eclipse 3.3 as your baseline."
So basically what this means is that you are building bundles (a Plugin Project, which is either an OSGi bundle or an Eclipse Plugin) that require other bundles (dependency bundles/plugins + OSGi framework (core and compendium API/services)), you specify it through an "API Baseline" which guarantees their (dependencies) existence akin to a "profile" (e.g. a Liberty profile in IBM WAS).
As a workaround, you could avoid setting an API baseline for your workspace through the "Plugin Preferences", setting it to "Warning" or "Ignore". This allows you to compile your Plugin (OSGi) project.
you could also just "ignore" it: http://exploreeclipse.blogspot.ch/2014/01/eclipse-error-api-baseline-has-not-been.html
"Windows > Preferences > Plug-in Development > API Baselines > Options > Missing API baseline Then, change "Error" to "Ignore" in the drop down list."
Keep in mind that ignoring can be the wrong thing to do, depending on the use case: