@Service public class MavenCommands extends Object implements org.springframework.roo.shell.CommandMarker
MavenOperations and also to launch native mvn
commands.| Constructor and Description |
|---|
MavenCommands() |
protected static final Logger LOGGER
protected void activate(org.osgi.service.component.ComponentContext cContext)
public void addDependency(String groupId, String artifactId, String version, String classifier, DependencyScope scope)
public List<String> returnPomModules(org.springframework.roo.shell.ShellContext shellContext)
public void createModule(String moduleName, PackagingProvider packaging, String artifactId)
public void focusModule(Pom module)
public boolean isDependencyModificationAllowed()
public boolean isRepositoryModificationAllowed()
public boolean isModuleCreationAllowed()
public boolean isModuleFocusAllowed()
public boolean isPerformCommandAllowed()
public void mvn(String command) throws IOException
IOExceptionpublic void removeDependency(String groupId, String artifactId, String version, String classifier)
public void runAssembly()
throws IOException
IOExceptionpublic void runClean()
throws IOException
IOExceptionpublic void runEclipse()
throws IOException
IOExceptionpublic void runPackage()
throws IOException
IOExceptionpublic void runTest()
throws IOException
IOExceptionpublic MavenOperations getMavenOperations()
public ProjectOperations getProjectOperations()
Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.