Hi, > i'm trying to build a dojo release use maven2, i use maven-antrun-plugin > as > following: > ...... > <build> > ...... > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-antrun-plugin</artifactId> > <executions> > <execution> > <phase>compile</phase> > <configuration> > <tasks> > <ant > dir="src/main/javascript/dojo/release-0.4.2/buildscripts" > target="release"> > <property name="docless" value="true"/> > <property name="profileFile" > value="src/main/javascript/profiles/my.profile.js"/> > </ant> > </tasks> > </configuration> > > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > </plugins> > </build> > .... > > when i trying 'mvn compile' i got a : > .... > Embedded error: The following error occurred while executing this line: > F:\works\flexstudio-dojoext\src\main\javascript\dojo\release- > 0.4.2\buildscripts\build.xml:535: Could not create task or type of type: > script. > Ant could not find the task or a class this task relies upon. > .....
Depending on what you're doing in the build.xml I guess you have to add the corresponding optional Ant libraries as dependencies to your plugin configuration. For example, if you use the <script> task: <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.1</version> <dependencies> <dependency> <groupId>ant</groupId> <artifactId>ant-apache-bsf</artifactId> <version>1.6.5</version> </dependency> </dependencies> ... </plugin> ... </plugins> HTH Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]