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.InvocationResult
org.apache.maven.shared.invoker.InvocationResult
void
generateMavenProject
(GenerateMavenProjectDto dto, String baseDirPath) List<org.apache.maven.model.Dependency>
getDependencies
(String pomFilePath) (package private) TestResultDto
getTestResultsFromTestOutput
(String output) void
install()
boolean
static void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.MavenInvocationException
IOException
InterruptedException
-
installed
public boolean installed()- Specified by:
installed
in interfaceTechnologyService
-
install
public void install()- Specified by:
install
in interfaceTechnologyService
-
getDependencies
public List<org.apache.maven.model.Dependency> getDependencies(String pomFilePath) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
getDependencies
in interfaceMavenService
- Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
build
public org.apache.maven.shared.invoker.InvocationResult build(String baseDirPath, String mavenExecutablePath) - Specified by:
build
in interfaceMavenService
-
build
- Specified by:
build
in interfaceMavenService
-
test
- Specified by:
test
in interfaceMavenService
-
test
- Specified by:
test
in interfaceMavenService
-
generateMavenProject
public void generateMavenProject(GenerateMavenProjectDto dto, String baseDirPath) throws IOException, InterruptedException - Specified by:
generateMavenProject
in interfaceMavenService
- Throws:
IOException
InterruptedException
-
getTestResultsFromTestOutput
-