/
SDN-R ODLUX and frontend-maven-plugin

SDN-R ODLUX and frontend-maven-plugin

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 the code below. Example is in pom of odlux framework in ONAP gerrit: "ccsdk/features":"/sdnr/wt/odlux/framework/pom.xml"



<plugins> <plugin> <groupId>de.jacksitlab</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>1.7.1</version> Some PLUGIN - CONFIGURATION </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 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

Download repo

  • clone the jacksitlab/frontend-maven-plugin using the github link

Compile plugin

  • cd into frontend-maven-plugin

  • mvn clean install -DskipTests

After executing the compile the plugin should be in the local repository and can be used.

Example below with user herbert showing result in local ".m2" repository:



herbert@dev-herbert:~/.m2/repository/de/jacksitlab$ ls -l total 16 drwxr-xr-x 3 herbert herbert 4096 May 15 12:06 frontend-maven-plugin drwxr-xr-x 3 herbert herbert 4096 May 15 12:00 frontend-plugin-core drwxr-xr-x 3 herbert herbert 4096 May 15 12:00 frontend-plugins -rw-r--r-- 1 herbert herbert 240 May 15 12:06 maven-metadata-local.xml





Related content

ONAP Version Manifest Maven Plugin (Decommissioned)
ONAP Version Manifest Maven Plugin (Decommissioned)
More like this
Developing ODLUX web application
Developing ODLUX web application
More like this
Third Party Package Version Standarization
Third Party Package Version Standarization
More like this
Creating and Installing a New Feature into SDN-R
Creating and Installing a New Feature into SDN-R
More like this
Removal of O-Parent from Policy
Removal of O-Parent from Policy
More like this
Run Code Changes In Local Dev Environment
Run Code Changes In Local Dev Environment
More like this