com.github.sdorra.buildfrontend.mojo.InstallDependenciesMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of buildfrontend-maven-plugin Show documentation
Show all versions of buildfrontend-maven-plugin Show documentation
Installs and run node, npm or yarn as part of your maven build
package com.github.sdorra.buildfrontend.mojo;
import com.github.sdorra.buildfrontend.Node;
import com.github.sdorra.buildfrontend.PackageManager;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
@Mojo(name = "install", defaultPhase = LifecyclePhase.PROCESS_RESOURCES)
public class InstallDependenciesMojo extends AbstractPackageManagerMojo {
@Override
protected void execute(Node node, PackageManager packageManager) {
packageManager.install();
}
}