xp-framework/xp-contrib — Issue #2: mxp: Repeated runs
Author: kiesel
Created: 2012-01-06 15:03:10+00:00
State: open

When testing with maven-xpframework-plugin, internal targets are being run repeated times:

```
Alex@seven ~/dev/xp.public/core [master]
$ mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XP Framework 5.8.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ core ---
[INFO] Deleting C:\cygwin\home\Alex\dev\xp.public\core\target
[INFO]
[INFO] >>> maven-xpframework-plugin:1.1:validate (default-validate) @ core >>>
[INFO]
[INFO] <<< maven-xpframework-plugin:1.1:validate (default-validate) @ core <<<
[INFO]
[INFO] --- maven-xpframework-plugin:1.1:validate (default-validate) @ core ---
[INFO] ------------------------------------------------------------------------
[INFO] VALIDATE XP-FRAMEWORK INSTALL
[INFO] ------------------------------------------------------------------------
[INFO] Found xcc at [C:\cygwin\home\Alex\bin\xcc.exe]
[INFO] Found xar at [C:\cygwin\home\Alex\bin\xar.exe]
[INFO] Found unittest at [C:\cygwin\home\Alex\bin\unittest.exe]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\cygwin\home\Alex\dev\xp.public\core\src\main\resources
[INFO]
[INFO] >>> maven-xpframework-plugin:1.1:xcc (default-xcc) @ core >>>
[INFO]
[INFO] >>> maven-xpframework-plugin:1.1:validate (default-validate) @ core >>>
[INFO]
[INFO] <<< maven-xpframework-plugin:1.1:validate (default-validate) @ core <<<
[INFO]
[INFO] --- maven-xpframework-plugin:1.1:validate (default-validate) @ core ---
[INFO] ------------------------------------------------------------------------
[INFO] VALIDATE XP-FRAMEWORK INSTALL
[INFO] ------------------------------------------------------------------------
[INFO] Found xcc at [C:\cygwin\home\Alex\bin\xcc.exe]
[INFO] Found xar at [C:\cygwin\home\Alex\bin\xar.exe]
[INFO] Found unittest at [C:\cygwin\home\Alex\bin\unittest.exe]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
```

With the ```validate``` phase, that would be ok, but it seems the corresponding ```compile``` targets will also be run repeatedly:

```
[INFO] --- maven-xpframework-plugin:1.1:xcc (default-xcc) @ core ---
[INFO] ------------------------------------------------------------------------
[INFO] COPY PHP SOURCES
[INFO] ------------------------------------------------------------------------
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1003 resources
[INFO] ------------------------------------------------------------------------
[INFO] COMPILE XP SOURCES
[INFO] ------------------------------------------------------------------------
[INFO] There are no sources to compile
...
[INFO] --- maven-xpframework-plugin:1.1:xcc (default-xcc) @ core ---
[INFO] ------------------------------------------------------------------------
[INFO] COPY PHP SOURCES
[INFO] ------------------------------------------------------------------------
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1003 resources
[INFO] ------------------------------------------------------------------------
[INFO] COMPILE XP SOURCES
[INFO] ------------------------------------------------------------------------
[INFO] There are no sources to compile
[INFO]
```

Unittests are run once, btw.