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
- java8 (not java11). For openjdk use "sudo apt-get install openjdk-8-jdk"
- mvn 3.6.0 setup for ONAP ( wget git.onap.org/oparent/plain/settings.xml -P ~/.m2)
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
2 Comments
KAPIL SINGAL
Herbert Eiselt
I am facing issue to compile CCSDK/features/sdnr/wt/odlux elalto-fluorine branch
Similar issue was reported at : https://github.com/eirslett/frontend-maven-plugin/issues/813 and seems to be fixed on 5th Sept.
But as per this wiki ODLUX is using plugin from a forked repo https://github.com/jacksitlab/frontend-maven-plugin
Do you own the forked repo, or knows who own that?
Please help in having the code fix from eirslett to jacksitlab.
Herbert Eiselt
Hi Kapil, we have add the fix to the code and pushed it to our server as version 1.7.2-SNAPSHOT. I tested to compile odlux locally and in our Jenkins environment.
So please try to change the plugin version in the following pom files and tell me if it's working.
odlux/framework/pom.xml
odlux/apps/*App/pom.xml
I'm also available in the ONAP RocketChat. Maybe that's the faster way to communicate and bring this to work if there are more problems.
Here the list of files that need to be adapted:
The version number: