SDN-R ODLUX does require compilation of Javascript and Typescript files as runnable code for the Web-Clients.
A specific compilation environment is created, that requires an extension of the actual version of "frontend-maven-plugin".
Dependency is like this:
<plugins> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ --> <version>LATEST_VERSION</version> ... </plugin> ...
The extension for ONAP SDN-R is published in github repository https://github.com/jacksitlab/frontend-maven-plugin.
Usage in ODLUX pom files
In ONAP ODLUX the plugin is used as already pre-compiled plugin.
For getting it from public available repository, the follwong additonal repository was added to the related ODLUX pom files:
<pluginRepository> <id>highstreet repo</id> <url>https://cloud-highstreet-technologies.com/mvn/</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </pluginRepository>
How to compile it locally
A further option is to download the source code to a local server and compile to the local ".m2" maven repository.
For compiling the version 1.7.1 of the frontend plugin the environment is
- java8 (not java11). For openjdk use "sudo apt-get install openjdk-8-jdk"
- mvn 3.6.0 setup for ONAP (cd ~/.m2 ; wget https://git.onap.org/oparent/plain/settings.xml)
Download repo
- clone the jacksitlab/frontend-maven-plugin using the github link
Compile plugin
- cd into frontend-maven-plugin
- mvn clean install -DskipTests