aQute | Snippets that show the use of OSGi and bndtools | Application Framework library
kandi X-RAY | aQute Summary
kandi X-RAY | aQute Summary
This project is a demonstration of using Vaadin with OSGi. You can now open a web browser on The code is commented with explanations. First look at HelloWorld.java. This is a component annotated with the bnd annotations. It uses the Component Factory model of Declarative Services. The aQute.vaadin.core bundle picks up any factory that has a factory id of "com.vaadin.Application/ ". It will automatically create instances. Next look at the AddressBook.java. This is the standard Vaadin example that is actually easier than the original because no scaffolding is used. The DempApp.java shows how you can use OSGi to extend a tab with contributions through services. Also here, the ComponentFactory model is used however now with "com.vaadin.Component/ ". In this example type is "contribution".
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of aQute
aQute Key Features
aQute Examples and Code Snippets
Community Discussions
Trending Discussions on aQute
QUESTION
I'm new to bndtools. I'd like to use testcontainers (https://www.testcontainers.org/) to test a osgi bundle which is supposed to connect to a MQTT broker. So I can test connect, connectionlost etc. strategies. I dont't understand how maven and bnd repositories work together, so until I understand, I don't use maven. Then I've tried to "import" testcontainers by adding it to build.bnd :
...ANSWER
Answered 2021-Apr-06 at 08:06The syntax you use is wrong ... The 'revision' parameter is taking a quoted string. That string ends with junit4:0.10.0", \
. You add the test containers parameter after the quoted string is closed. So the following should work:
QUESTION
I'm trying to simplify some of my Gradle builds. A typical build.gradle.kts
looks like
ANSWER
Answered 2021-Mar-03 at 22:40Looks like you're creating an extension function on KotlinBuildScript
which may or may not be the issue. Regardless, there's no need for extension functions since you can just use the DSL directly.
Gradle calls the shared build logic convention plugins: https://docs.gradle.org/current/samples/sample_convention_plugins.html#compiling_convention_plugins
So your Example.kt
would become kotlin-conventions.gradle.kts
:
QUESTION
i have 2 independent projects - first project is added as dependency in second project.i cannot make them as modules as number of maven projects that use first project is not fixed
Few lines from first project pom-
...ANSWER
Answered 2020-May-15 at 18:01No, you cannot use properties from dependencies.
If you need common properties, you can define them in a parent POM that is used by the different projects (this does not require them to be modules)
QUESTION
I'm trying to get bnd tools structure working (started with tutorial https://bndtools.org/tutorial.html)
Added use of javax.vecmath (as simple library as I could think of) in cnf/central.maven file
...ANSWER
Answered 2020-May-01 at 01:45Ended up solving the issue with help from https://groups.google.com/forum/#!forum/bndtools-users having found two (three?) problems with my configuration.
The correct form for repository definition in build.bnd seems to be
QUESTION
I created project using archetype-12 for AEM-6.3 referring here.
Also tried to compile projects from github like aem-simple
Getting following errors,
...ANSWER
Answered 2019-May-24 at 18:45I vaguely remember running into the same issue. If I am not mistaken, version 12 of the AEM Archetype had this issue. I believe it was fixed in version 13, although you may want to try the latest version (19) from the aem-project-archetype repository
QUESTION
I am creating bamboo plugin with java11 and maven project.
mvn clean install is returning success status with below NPE
...ANSWER
Answered 2019-Apr-30 at 12:40Bamboo doesn't work with Java 11 yet. So plugin should be built with Java 8 as well
QUESTION
I have followed given 2 tutorials to use COnfigurationAPI in a Liferay dxp plugins SDK portlet built using Ant/Ivy. COnfiguration API 1 COnfiguration API 2.
Below is the configuration class used:
...ANSWER
Answered 2019-Apr-26 at 06:43Without disecting the error message Caused by: java.lang.IllegalArgumentException: wrong number of arguments
:
The way you build your plugin (Ant, Maven, Gradle, manually) doesn't make a difference, as long as you build a plugin that will be understood by the runtime. aQute.bnd.annotation.metatype.Meta
points firmly into the OSGi world, and makes it almost certain that you'll need an OSGi module. You can build this with Ant, of course. Even in Ant you can embed tools like bnd, or you can write the proper Manifest.mf to include in your module manually (just kidding - you don't want to do it manually, but it would work).
Recommendation: Instead of moving everything over: Try to reproduce this with a minimal example in gradle or better Liferay Workspace (which is gradle based), just to get all the automatic wiring in. Check if it makes a difference and compare the generated output from your Ant build process with the workspace output. Pay specific attention to the Manifest.
In order to build the proper Manifest, you want to use bnd - if the Manifest turns out to be your issue: Find a way to embrace bnd - if that's by saying goodby to Ant, or by tweaking your build script remains your decision.
QUESTION
In my OSGI endeavours I'm struggeling with another seemling simple problem with logging.
We've included logging to our bundle and it works. We're actually using pax-logging service to do the heavy lifting for us.
...ANSWER
Answered 2018-Jun-12 at 12:07Currently the best practice for logging in OSGi is to use slf4j as front end.
QUESTION
alright i've been hiting my head against the wall for quite sometime now, and now i dont even know what to search for to find a solution, here are my files
build.gradle
...ANSWER
Answered 2017-Nov-22 at 20:48It is unclear if bnd_version
is defined in this line:
QUESTION
I've developed AEM
bundel for my exsiting project, when I upload bundel
to http://localhost:8182:/system/console/bundles
. It is not not getting activated, I resolved all exception related to dependancy. But for following exception i am not getting any clue.
I created my bundel project using using following command :
...ANSWER
Answered 2019-Jan-07 at 13:39The answer is in the stack trace. It is missing classes: Caused by: java.lang.NoClassDefFoundError: com/google/gson/Gson. Usually, Gson should be part of AEM out-of-the-box. Check if it is there and export/import of the classes works.
Thank You Jens
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aQute
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page