Expand my Community achievements bar.

SOLVED

com.github.erislett:frontend-maven-plugin Issue while build the codebase

Avatar

Level 5

Hi Team

 

Currently we are working on Government Project where we are not allowed to used Public repositories & install the Plugin After necessary Approval .

 

Currently we getting following error even though we installed NPM and NodeJS . Please advice to fix Frontend module  build issue  & Is there any way build only Frontend Module same as core module.

varaande_1-1710852834169.png

 

<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>npm run prod</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run prod</arguments>
</configuration>
</execution>
</executions>
</plugin>

 

Regards

Vara

 

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi @varaande ,

 

You can build the ui.frontend module by simply doing a mvn clean install -Padobe-public, which will then minify the JS/CSS and put them under ui.apps, under appropriate clientlibs and then  simply run mvn clean install -PautoInstallPackage -Padobe-public for it to be deployed on server.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Hi @varaande ,

 

You can build the ui.frontend module by simply doing a mvn clean install -Padobe-public, which will then minify the JS/CSS and put them under ui.apps, under appropriate clientlibs and then  simply run mvn clean install -PautoInstallPackage -Padobe-public for it to be deployed on server.