mvn archetype:generate -DgroupId=com.example -DartifactId=webapp -DarchetypeArtifactId=maven-archetype-quickstart
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>1.4.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>default-bnd-process-resources</id>
<goals>
<goal>process-resources</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>false</skip>
<bnd><![CDATA[
-plugin: biz.aQute.bnd.enroute.webresource.plugin.WebResourcePlugin
-runcapabilities: osgi.ee; capability="JavaSE"; version:List<String>="1.8"
-properties: \
Web-Resource: src/main/resources
]]></bnd>
</configuration>
</plugin>
</plugins>
</build>
angular/app.component.ts
typescript
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<h1>Hello, OSGi Enroute!</h1>
`
})
export class AppComponent {}
mvn clean install