Package org.jboss.forge.arquillian.maven

Examples of org.jboss.forge.arquillian.maven.ProjectHelper


    */
   private String resolveVersionFromPOM(Class<?> classUnderTest, String name)
   {
      if (dependencyMap == null)
      {
         ProjectHelper projectHelper = new ProjectHelper();
         dependencyMap = new HashMap<String, String>();
         File pomFile = getPomFileFor(classUnderTest);
         try
         {
            // Needed for single-project addons
            Model model = projectHelper.loadPomFromFile(pomFile);
            String thisAddonName = (model.getGroupId() == null) ? model.getParent().getGroupId() : model.getGroupId()
                     + ":" + model.getArtifactId();
            String thisVersion = model.getVersion();
            dependencyMap.put(thisAddonName, thisVersion);
            List<Dependency> dependencies = projectHelper.resolveDependenciesFromPOM(pomFile);
            for (Dependency dependency : dependencies)
            {
               Artifact artifact = dependency.getArtifact();
               String addonName = artifact.getGroupId() + ":" + artifact.getArtifactId();
               String version = artifact.getBaseVersion();
View Full Code Here


    * @param name
    * @return
    */
   private String resolveVersionFromPOM(Class<?> classUnderTest, String name)
   {
      ProjectHelper projectHelper = new ProjectHelper();
      if (dependencyMap == null)
      {
         dependencyMap = new HashMap<String, String>();
         File pomFile = getPomFileFor(classUnderTest);
         try
         {
            List<Dependency> dependencies = projectHelper.resolveDependenciesFromPOM(pomFile);
            for (Dependency dependency : dependencies)
            {
               Artifact artifact = dependency.getArtifact();
               String addonName = artifact.getGroupId() + ":" + artifact.getArtifactId();
               String version = artifact.getBaseVersion();
View Full Code Here

    */
   private String resolveVersionFromPOM(Class<?> classUnderTest, String name)
   {
      if (dependencyMap == null)
      {
         ProjectHelper projectHelper = new ProjectHelper();
         dependencyMap = new HashMap<String, String>();
         File pomFile = getPomFileFor(classUnderTest);
         try
         {
            // Needed for single-project addons
            Model model = projectHelper.loadPomFromFile(pomFile);
            String thisAddonName = (model.getGroupId() == null) ? model.getParent().getGroupId() : model.getGroupId()
                     + ":" + model.getArtifactId();
            String thisVersion = model.getVersion();
            dependencyMap.put(thisAddonName, thisVersion);
            List<Dependency> dependencies = projectHelper.resolveDependenciesFromPOM(pomFile);
            for (Dependency dependency : dependencies)
            {
               Artifact artifact = dependency.getArtifact();
               String addonName = artifact.getGroupId() + ":" + artifact.getArtifactId();
               String version = artifact.getBaseVersion();
View Full Code Here

TOP

Related Classes of org.jboss.forge.arquillian.maven.ProjectHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.