Class MavenServiceImpl
java.lang.Object
com.winchesters.devopsify.service.technologies.maven.MavenServiceImpl
- All Implemented Interfaces:
MavenService,TechnologyService
-
Field Summary
Fields inherited from interface com.winchesters.devopsify.service.technologies.TechnologyService
scriptDirectory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.shared.invoker.InvocationResultorg.apache.maven.shared.invoker.InvocationResultvoidgenerateMavenProject(GenerateMavenProjectDto dto, String baseDirPath) List<org.apache.maven.model.Dependency>getDependencies(String pomFilePath) (package private) TestResultDtogetTestResultsFromTestOutput(String output) voidinstall()booleanstatic voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.winchesters.devopsify.service.technologies.TechnologyService
installed, installFromScript
-
Constructor Details
-
MavenServiceImpl
public MavenServiceImpl()
-
-
Method Details
-
main
public static void main(String[] args) throws org.apache.maven.shared.invoker.MavenInvocationException, IOException, InterruptedException - Throws:
org.apache.maven.shared.invoker.MavenInvocationExceptionIOExceptionInterruptedException
-
installed
public boolean installed()- Specified by:
installedin interfaceTechnologyService
-
install
public void install()- Specified by:
installin interfaceTechnologyService
-
getDependencies
public List<org.apache.maven.model.Dependency> getDependencies(String pomFilePath) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
getDependenciesin interfaceMavenService- Throws:
IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserException
-
build
public org.apache.maven.shared.invoker.InvocationResult build(String baseDirPath, String mavenExecutablePath) - Specified by:
buildin interfaceMavenService
-
build
- Specified by:
buildin interfaceMavenService
-
test
- Specified by:
testin interfaceMavenService
-
test
- Specified by:
testin interfaceMavenService
-
generateMavenProject
public void generateMavenProject(GenerateMavenProjectDto dto, String baseDirPath) throws IOException, InterruptedException - Specified by:
generateMavenProjectin interfaceMavenService- Throws:
IOExceptionInterruptedException
-
getTestResultsFromTestOutput
-