Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12756

-Dmaven.skip.tests disables default profile when building locally

    XMLWordPrintable

Details

    Description

      Riddle me this...

      1. This works:

      mvn clean install -DskipTests=true
      
      [INFO] Scanning for projects...
      [INFO] Computing target platform for MavenProject: org.jboss.tools.common.plugins:org.jboss.tools.common.core:3.4.0-SNAPSHOT @ /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/common/plugins/org.jboss.tools.common.core/pom.xml
      [INFO] Adding repository http://download.jboss.org/jbosstools/updates/target-platform_4.0.juno.SR0a/latest/
      [INFO] Adding repository http://download.jboss.org/jbosstools/updates/target-platform_4.0.juno.SR0a/latest/
      

      2. And this works:

      mvn clean install -Dmaven.test.skip -Pdefault
      
      [INFO] Scanning for projects...
      [INFO] Computing target platform for MavenProject: org.jboss.tools.common.plugins:org.jboss.tools.common.core:3.4.0-SNAPSHOT @ /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/common/plugins/org.jboss.tools.common.core/pom.xml
      [INFO] Adding repository http://download.jboss.org/jbosstools/updates/target-platform_4.0.juno.SR0a/latest/
      [INFO] Adding repository http://download.jboss.org/jbosstools/updates/target-platform_4.0.juno.SR0a/latest/
      

      3. But this does not:

      mvn clean install -Dmaven.test.skip
      
      [INFO] Scanning for projects...
      [INFO] Computing target platform for MavenProject: org.jboss.tools.common.plugins:org.jboss.tools.common.core:3.4.0-SNAPSHOT @ /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/common/plugins/org.jboss.tools.common.core/pom.xml
      [INFO] Resolving dependencies of MavenProject: org.jboss.tools.common.plugins:org.jboss.tools.common.core:3.4.0-SNAPSHOT @ /home/nboldt/eclipse/workspace-jboss/jbosstools_trunk/common/plugins/org.jboss.tools.common.core/pom.xml
      [INFO] Cannot complete the request.  Generating details.
      [INFO] Cannot complete the request.  Generating details.
      [INFO] {osgi.ws=cocoa, osgi.os=macosx, osgi.arch=x86, org.eclipse.update.install.features=true}
      [ERROR] Cannot resolve project dependencies:
      [ERROR]   Software being installed: org.jboss.tools.common.core 3.4.0.qualifier
      [ERROR]   Missing requirement: org.jboss.tools.common.core 3.4.0.qualifier requires 'bundle org.eclipse.core.runtime 3.7.0' but it could not be found
      

      So... why does -Dmaven.test.skip cause the default profile in the parent pom, default, to be disabled when you turn off the tests, but DOES keep it enabled w/ -DskipTests?

      Attachments

        Issue Links

          Activity

            People

              mistria@redhat.com Mickael Istria
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: