Try mvn -X to get more debugging information out of Maven while it executes.

Wayne

On 12/7/07, Arthur  Rodrigues Stilben <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an ant script with no errors and I tried to run it using a POM file. I 
> made a POM archive like this:
>
> <project>
>        <modelVersion>4.0.0</modelVersion>
>        <groupId>com.teste</groupId>
>        <artifactId>my-project</artifactId>
>        <version>1.0</version>
>
>        <build>
>                <plugins>
>                        <plugin>
>                                <artifactId>maven-antrun-plugin</artifactId>
>                                <executions>
>                                        <execution>
>                                                <goals>
>                                                        <goal>run</goal>
>                                                </goals>
>                                                <phase>compile</phase>
>                                                <configuration>
>                                                        <ant 
> antfile="build.xml">
>                                                                <target 
> name="test"/>
>                                                        </ant>
>                                                </configuration>
>                                        </execution>
>                                </executions>
>                        </plugin>
>                </plugins>
>        </build>
>
> </project>
>
> So, I used the DOS and run the command "mvn antrun:run" at the dir that 
> contains the POM.xml and build.xml files. The message below occurred:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'antrun'.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Unnamed - com.teste:my-project:jar:1.0
> [INFO]    task-segment: [antrun:run]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [antrun:run]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Dec 07 19:55:34 GMT-03:00 2007
> [INFO] Final Memory: 2M/4M
> [INFO] 
> ------------------------------------------------------------------------
>
> but, in fact, the build.xml didn't run.
> I would like to test just on target of my build.xml:
>
> <target name="compile" description="builds files in ${generated.dir} and 
> ${source.dir} directories">
>                <mkdir dir="${binary.dir}"/>
>                <javac destdir="${binary.dir}" debug="on" deprecation="on">
>                        <src path="${generated.dir}"/>
>                        <src path="${source.dir}"/>
>                        <classpath path="${project.class.path}"/>
>                </javac>
>        </target>
>
> How can I do it?
>
>
> Arthur Rodrigues Stilben
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to