本文整理汇总了Java中org.springframework.roo.project.maven.Pom.getDependencies方法的典型用法代码示例。如果您正苦于以下问题:Java Pom.getDependencies方法的具体用法?Java Pom.getDependencies怎么用?Java Pom.getDependencies使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.roo.project.maven.Pom
的用法示例。
在下文中一共展示了Pom.getDependencies方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isInstalledInModule
import org.springframework.roo.project.maven.Pom; //导入方法依赖的package包/类
/**
* Returns true if gvNIX Web MVC dependency is installed in current project.
*
* @param moduleName feature name to check in current project
* @return true if given feature name is installed, otherwise returns false
*/
public boolean isInstalledInModule(final String moduleName) {
final Pom pom = getProjectOperations().getPomFromModuleName(moduleName);
if (pom == null) {
return false;
}
// Look for gvnix web mvc dependency
for (final Dependency dependency : pom.getDependencies()) {
if ("org.gvnix.addon.web.mvc.annotations".equals(dependency
.getArtifactId())) {
return true;
}
}
return false;
}
示例2: isInstalledInModule
import org.springframework.roo.project.maven.Pom; //导入方法依赖的package包/类
/**
* Returns true if the given feature is installed in current project.
*
* @param moduleName feature name to check in current project
* @return true if given feature name is installed, otherwise returns false
*/
public boolean isInstalledInModule(final String moduleName) {
final Pom pom = getProjectOperations().getPomFromModuleName(moduleName);
if (pom == null) {
return false;
}
// Look for gvnix jpa dependency
for (final Dependency dependency : pom.getDependencies()) {
if ("org.gvnix.addon.jpa.annotations".equals(dependency
.getArtifactId())) {
return true;
}
}
return false;
}
示例3: isInstalledInModule
import org.springframework.roo.project.maven.Pom; //导入方法依赖的package包/类
/**
* Returns true if gvNIX Web MVC dependency is installed in current project.
*
* @param moduleName feature name to check in current project
* @return true if given feature name is installed, otherwise returns false
*/
public boolean isInstalledInModule(final String moduleName) {
final Pom pom = getProjectOperations().getPomFromModuleName(moduleName);
if (pom == null) {
return false;
}
// Look for gvnix web mvc dependency
for (final Dependency dependency : pom.getDependencies()) {
if ("org.gvnix.web.json.binding".equals(dependency.getArtifactId())) {
return true;
}
}
return false;
}
示例4: isInstalledInModule
import org.springframework.roo.project.maven.Pom; //导入方法依赖的package包/类
/**
* Returns true if the given feature is installed in current project.
*
* @param moduleName feature name to check in current project
* @return true if given feature name is installed, otherwise returns false
*/
public boolean isInstalledInModule(final String moduleName) {
final Pom pom = getProjectOperations().getPomFromModuleName(moduleName);
if (pom == null) {
return false;
}
// Look for datatables taglib dependency
for (final Dependency dependency : pom.getDependencies()) {
if ("org.gvnix.datatables.tags".equals(dependency.getArtifactId())) {
return true;
}
}
return false;
}
示例5: isInstalledInModule
import org.springframework.roo.project.maven.Pom; //导入方法依赖的package包/类
@Override
public boolean isInstalledInModule(String moduleName) {
final Pom pom = getProjectOperations().getPomFromModuleName(moduleName);
if (pom == null) {
return false;
}
for (final Dependency dependency : pom.getDependencies()) {
if ("spring-security-core".equals(dependency.getArtifactId())) {
return true;
}
}
return false;
}