Questo contenuto non è disponibile nella lingua selezionata.
8.3. A service assembly project
Overview Copia collegamentoCollegamento copiato negli appunti!
Seeding a project using a Maven artifact Copia collegamentoCollegamento copiato negli appunti!
groupId value and the artifactId values, which correspond to the project's group ID and artifact ID.
Example 8.8. Maven archetype command for service assemblies
smx-arch
sa
[
"-DgroupId=my.group.id"
] [
"-DartifactId=my.artifact.id"
]
-DgroupId argument and the -DartifactId argument.
Contents of a project Copia collegamentoCollegamento copiato negli appunti!
Configuring the Maven plug-in Copia collegamentoCollegamento copiato negli appunti!
packaging element to jbi-service-assembly, as shown in Example 8.9.
Example 8.9. Configuring the Maven plug-in to build a service assembly
Specifying the target components Copia collegamentoCollegamento copiato negli appunti!
dependencies element. Add a dependency child element for each service unit. Example 8.10 shows the configuration for a service assembly that bundles two service units.
Example 8.10. Specifying the target components for a service unit
Example Copia collegamentoCollegamento copiato negli appunti!
Example 8.11. POM for a service assembly project
- 1
- Specifies that it is a part of the top-level project shown in Example 8.2, “Top-level POM for a Red Hat JBoss Fuse JBI project”
- 2
- Specifies that this project builds a service assembly
- 3
- Specifies the service units being bundled by the service assembly
- 4
- Specifies to use the JBoss Fuse Maven plug-in