Uploaded image for project: 'Maven Antrun Plugin'
  1. Maven Antrun Plugin
  2. MANTRUN-88

Profile properties not handled correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      [INFO] [help:effective-settings]
      [INFO]
      Effective settings:

      <?xml version="1.0"?>
      <settings>
        <localRepository>/home/tdiesler/.m2/repository</localRepository>
        <profiles>
          <profile>
            <properties>
              <jboss.local.repository>/home/tdiesler/svn/jboss.local.repository</jboss.local.repository>
            </properties>
          </profile>
        </profiles>
        <activeProfiles>
          <activeProfile>jbossws</activeProfile>
        </activeProfiles>
      </settings>
      

      This executes

      <tasks if="jboss.local.repository">
        <property name="version.id" value="${project.version}"/>
        <property name="jboss.local.repository" value="${jboss.local.repository}"/>
        <echo message="Install to jboss.local.repository=${jboss.local.repository}"/>
        <ant antfile="ant/build-install.xml" target="install"/>
      </tasks>
      

      because 'jboss.local.repository' is set, however later the property has no value

      [INFO] Executing tasks
      [echo] Install to jboss.local.repository=${jboss.local.repository}

      init:
      [echo] version.id=3.0.2-SNAPSHOT
      [echo] repository.id=3.0.2-SNAPSHOT
      [echo] jboss.local.repository=${jboss.local.repository}

      Attachments

        Issue Links

          Activity

            People

              pgier Paul Gier
              tdiesler Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: