Answer the question
In order to leave comments, you need to log in
How to create an Eclipse plugin using Spring?
Good afternoon!
There was a problem creating a plug-in for Eclipse. It needs to use Spring DI and a lot of modules and dependencies, so I decided to try and use Apache Maven to build it.
Initially took up the maven-bundle-plugin .
Configuration:
<pre>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<manifestLocation>META-INF</manifestLocation>
<ignoreMissingArtifacts>true</ignoreMissingArtifacts>
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}; singleton:=true</Bundle-SymbolicName>
<Bundle-Version>${pom.version}</Bundle-Version>
<Export-Package>${bundle.namespace}.*;version="${pom.version}"</Export-Package>
<Import-Package>.,*;resolution:=optional</Import-Package>
<Bundle-Activator>${bundle.namespace}.Activator</Bundle-Activator>
<Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
<Require-Bundle>org.eclipse.ui,org.eclipse.core.runtime</Require-Bundle>
<Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
<Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
<Embed-Directory>target/dependency</Embed-Directory>
<Embed-StripGroup>true</Embed-StripGroup>
<Embed-Transitive>true</Embed-Transitive>
</instructions>
</configuration>
</plugin>
</pre>
No available bundle exports package 'org.springframework.context'<br/>
No available bundle exports package 'groovy.lang'<br/>
No available bundle exports package 'org.apache.wicket'<br/>
... Еще штук 30 ошибок, абсолютно не связанных с org.springframework.context и с проектом вообще (Groovy и Wicket вообще в workspace поиском не находятся, транзитивных зависимостей вроде тоже нет) ...<br/>
Answer the question
In order to leave comments, you need to log in
Decided on my own, as written here .
Unfortunately, this approach did not justify itself at all. It was possible to embed the modules into the Spring_a plugin, but the advantages of the modular architecture were lost (if the 2nd plugin needs Spring, it will again have to be archived).
In addition, the Apache Camel framework, for which everything was started, cannot work in an OSGI environment with a regular spring. Apparently, everything needs to be redone to use Spring DM / Eclipse Gemini Blueprint
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question