You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/java-application-development/kura-addon-archetype.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ Don't forget to update the version in the various `MANIFEST.MF` of the bundles a
159
159
160
160
### Deploy artifacts
161
161
162
-
As default, the `distrib` project and the projects under `parent` are not deployed (they are configured to skip the execution of the `maven-deploy-plugin`). Only the BOM POM (the root `pom.xml`) and the single OSGi bundles are meant to be deployed.
162
+
As default, the projects are not deployed (they are configured to skip the execution of the `maven-deploy-plugin`). Only the BOM POM (the root `pom.xml`) and the single OSGi bundles are meant to be deployed.
163
163
164
164
Please add the proper `maven-deploy-plugin` configuration for the bundles that need to be deployed. See the archetype's generated bundle for details.
165
165
@@ -262,23 +262,21 @@ In the following sections we will see how this can be accomplished for the DEB p
262
262
263
263
```
264
264
org.eclipse.kura.myartifact
265
-
├── bundles
266
-
│ ├── org.eclipse.kura.myartifact.bundle
267
-
│ ├── org.eclipse.kura.myartifact.bundle.aarch64
268
-
│ ├── org.eclipse.kura.myartifact.bundle.x86_64
265
+
org.eclipse.kura.myartifact.aarch64
266
+
org.eclipse.kura.myartifact.x86_64
269
267
....
270
268
```
271
269
272
-
The `org.eclipse.kura.myartifact.bundle`folder contains the agnostic code, while the `org.eclipse.kura.myartifact.bundle.aarch64` and `org.eclipse.kura.myartifact.bundle.x86_64` fragments contain the architecture-specific code.
270
+
The `org.eclipse.kura.myartifact.bundle` contains the agnostic code, while the `org.eclipse.kura.myartifact.aarch64` and `org.eclipse.kura.myartifact.x86_64` fragments contain the architecture-specific code.
273
271
274
272
The objective is to produce two debian packages, one for each of the supported architectures. It is possible to modify the `pom.xml` in `distrib` to produce the correct metadata for the installers (see section below). Each debian package will install the main bundle and the relative fragment that matches the target environment. For example, the *aarch64* deb package will install:
Note that the fragment `org.eclipse.kura.myartifact.bundle.aarch64-<version>.jar` is put in a plugins folder that is not ending with `s` since fragments can never be started as they don't have their own lifecycle.
279
+
Note that the fragment `org.eclipse.kura.myartifact.aarch64-<version>.jar` is put in a plugins folder that is not ending with `s` since fragments can never be started as they don't have their own lifecycle.
282
280
283
281
### Create architecture dependant installers
284
282
@@ -291,10 +289,10 @@ Section: admin
291
289
Priority: optional
292
290
Depends: kura
293
291
Architecture: [[deb.architecture]]
294
-
Maintainer: Eclipse Kura Developers <kura-dev@eclipse.org>
292
+
Maintainer: [[deb.maintainer]]
295
293
Description: [[summary]]
296
294
[[long.description]]
297
-
Homepage: https://eclipse-kura.github.io/kura/ (add correct link to documentation here)
295
+
Homepage: [[deb.docs]]
298
296
```
299
297
300
298
The Architecture field is the one responsible to specify the architecture of the package. The value is set in the `/distrib/pom.xml` file, by the property `<deb.architecture>all</deb.architecture>`. The value `all` means that the package can be installed on any architecture. This is the recommended value for packages that do not contain architecture-specific files.
@@ -318,10 +316,10 @@ Section: admin
318
316
Priority: optional
319
317
Depends: kura
320
318
Architecture: [[deb.arm64.architecture]]
321
-
Maintainer: Eclipse Kura Developers <kura-dev@eclipse.org>
319
+
Maintainer: [[deb.maintainer]]
322
320
Description: [[summary]]
323
321
[[long.description]]
324
-
Homepage: https://eclipse-kura.github.io/kura/
322
+
Homepage: [[deb.docs]]
325
323
```
326
324
327
325
The same file for the `amd64` architecture will just change the `Architecture` field to `[[deb.amd64.architecture]]`.
0 commit comments