Hi, i'd like to know if it's possible to attach an artifact from an Ant mojo. I have seen archived posts in the mailing list that suggest usage of the "build helper" mojo. But, is it possible to use the "build helper" from my Ant mojo ? I mean from my understanding, the "build helper" plugin has to be executed from the pom that uses my Ant mojo but not from my Ant mojo itself ?
How could i know the name of the project that executes my plugin in the pom.xml of my Ant mojo ? I need it to find out what artifact filename should be used. The "build helper" plugin has to be used in conjunction with the AntRun plugin but not from an Ant Mojo, right ? Is it possible to attach an artifact to an ant mojo ? <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.1</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>How could i know if executed in my ant mojo </file> <type>extension of your file </type> <classifier>optional</classifier> </artifact> ... </artifacts> </configuration> </execution> </executions> </plugin>