This project provides the Maven archetype used to start a k.LAB component. Generated projects
follow the component and packaging conventions demonstrated by klab.component.generators and
klab.component.geospatial.
The generated project always contains the required KlabComponent plug-in entry point and may
independently include starter code for:
- a
@Librarywith a@KlabFunctionservice/contextualizer; - a k.Actors
@Actorwith a@Verband@AgentAdapter; - a
@ResourceAdapter; @Importerand@Exporterschemata;- a reasoner
@Authority.
mvn clean verifyThe integration tests generate both a full component and a minimal component, compile them, and verify that conditional source files are present or absent as requested.
Install this SNAPSHOT locally while developing the archetype:
mvn clean installThen run:
mvn archetype:generate \
-DarchetypeGroupId=org.integratedmodelling \
-DarchetypeArtifactId=klab.component.archetype \
-DarchetypeVersion=1.0.0-SNAPSHOT \
-DgroupId=org.example \
-DartifactId=klab.component.example \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=org.example.klab.component \
-DinteractiveMode=falseAll extension switches default to true. Set any of includeLibrary, includeAgents,
includeAdapter, includeIO, or includeAuthority to false to omit that starter. See
klab-services/docs/MAVEN.md for the complete property reference and release workflow.
The POM uses the same Sonatype Central snapshot and release endpoints as the other k.LAB Maven
artifacts. Deployment credentials are read from the ossrh server in the user's Maven settings;
they are never stored in this project.