Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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"


Code Block
<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:

Code Block

...

<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:


Code Block
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