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

plugin dependencies seem to get lost when using the plugin multiple times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.1
    • None
    • None

    Description

      say in the same pom you have

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-antrun-plugin</artifactId>
      <executions>
      <execution>
      <configuration>
      <tasks>
      <replace dir="${project.build.outputDirectory}"
      replaceFilterFile="${basedir}/src/main/properties/replaceSchemaNames.properties" />
      </tasks>
      </configuration>
      ............
      </build>

      and

      <profiles>
      <profile>
      ....
      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-antrun-plugin</artifactId>
      <executions>
      <execution>
      <id>Database recreation</id>
      <configuration>
      <tasks>
      <sql ..../>
      </tasks>
      </configuration>
      <goals>
      <goal>run</goal>
      </goals>
      </execution>
      </executions>
      <dependencies>
      <dependency>
      <groupId>oracle</groupId>
      <artifactId>oracle-jdbc</artifactId>
      <version>1.4_g</version>
      </dependency>
      </dependencies>
      </plugin>
      </plugins>
      </build>
      </profile>

      then the antrun configured in the profile will fail saying that it can't find the oracle driver. If i move the oracle dependency to the plugin configured in <build> then it works.

      Attachments

        Issue Links

          Activity

            People

              carlos Carlos Sanchez Gonzalez
              heymjo Jorg Heymans
              Votes:
              14 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: