[ http://jira.codehaus.org/browse/MANTRUN-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133657#action_133657 ]
seafoxx edited comment on MANTRUN-52 at 5/6/08 5:11 AM: ---------------------------------------------------------------- i thing, this might basically be ste same problem as described in MANTRUN-51 http://jira.codehaus.org/browse/MANTRUN-51 -> When using more than one antrun-blocks, the first one sets all properties which cannot be overwritten by the other antrun-blocks called afterwards was (Author: seafoxx): i thing, this might basically be ste same problem as described in MANTRUN-51 http://jira.codehaus.org/browse/MANTRUN-51 > plugin dependencies seem to get lost when using the plugin multiple times > ------------------------------------------------------------------------- > > Key: MANTRUN-52 > URL: http://jira.codehaus.org/browse/MANTRUN-52 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Affects Versions: 1.1 > Reporter: Jorg Heymans > Priority: Critical > > 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira