OK, I'm getting very twisted up on configuration.

I want to compile my production code for JDK 1.3, and my test code for JDK 1.5.

As I understand it, the following should do that:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <executions>
                    <execution>
                        <id>compile-main</id>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <source>1.3</source>
                            <target>1.5</target>
                             <optimize>true</optimize>
                        </configuration>
                    </execution>
                    <execution>
                        <id>compile-tests</id>
                        <goals>
                            <goal>testCompile</goal>
                        </goals>
                        <configuration>
                            <source>1.5</source>
                            <target>1.5</target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

I'm interpreting this as:

"when the goal is compile:compile, use source 1.3, etc." and
"when the goal is "compile:testCompile, user source 1.5, etc."

However, that's isn't quite what I see when I build:

bash-3.00$ mvn -X install
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\Howard\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'c:\work\maven-2.0.2\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Using parent-POM from the project hierarchy at:
'../pom-common/pom.xml' for project: hivemind:hivemind-lib:jar:1.2.1
[DEBUG] hivemind:hivemind-lib:jar:1.2.1 (selected for null)
[DEBUG] wagon-ftp: resolved to version 1.0-alpha-6 from repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:wagon-ftp:jar:1.0-alpha-6
[DEBUG] Retrieving parent-POM from the repository for project:
null:wagon-providers:pom:1.0-alpha-6
[DEBUG]   org.apache.maven.wagon:wagon-ftp:jar:RELEASE (selected for runtime)
[DEBUG]     commons-net:commons-net:jar:1.4.1 (selected for runtime)
[DEBUG]       oro:oro:jar:2.0.8 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:wagon-provider-api:jar:1.0-alpha-6
[DEBUG]     org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6
(selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime)
[DEBUG] wagon-ftp: resolved to version 1.0-alpha-6 from repository central
[INFO] 
----------------------------------------------------------------------------
[INFO] Building HiveMind standard library
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------
[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-resources-plugin:maven-plugin:2.1
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] maven-surefire-plugin: resolved to version 2.1.2 from repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] maven-jar-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-jar-plugin:maven-plugin:2.0
[DEBUG] maven-install-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-install-plugin:maven-plugin:2.1
[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-site-plugin:maven-plugin:2.0-beta-4
[DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.1
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0
[DEBUG]   org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0
[DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
(selected for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0
(selected for runtime)
[DEBUG]       org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0
[DEBUG]     org.apache.maven:maven-profile:jar:2.0 (selected for runtime)
[DEBUG]   commons-io:commons-io:jar:1.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.1:resources' -->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory =
c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) resources = [EMAIL PROTECTED],
[EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] hivemind:hivemind-lib:jar:1.2.1 (selected for null)
[DEBUG]   aopalliance:aopalliance:jar:1.0 (selected for provided)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG] Retrieving parent-POM from the repository for project:
hivemind:hivemind:jar:1.2.1
[DEBUG]   hivemind:hivemind:jar:1.2.1 (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.0.3 (selected for compile)
[DEBUG]     javassist:javassist:jar:3.0 (selected for compile)
[DEBUG]     oro:oro:jar:2.0.6 (selected for compile)
[DEBUG]   jboss:jboss-j2ee:jar:3.2.1 (selected for provided)
[DEBUG]   groovy:groovy-all:jar:1.0-jsr-03 (selected for provided)
[DEBUG]   log4j:log4j:jar:1.2.8 (selected for provided)
[DEBUG]   easymock:easymock:jar:1.1 (selected for test)
[DEBUG]   org.springframework:spring-full:jar:1.0.1 (selected for provided)
[DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0
(selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-compiler-api:jar:1.5.1 (selected
for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime)
[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
(selected for runtime)
[DEBUG]       junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-compiler-manager:jar:1.5.1
(selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-compiler-javac:jar:1.5.1
(selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0:compile' -->
[DEBUG]   (f) basedir = c:\workspace\jakarta-hivemind\library
[DEBUG]   (f) buildDirectory = c:\workspace\jakarta-hivemind\library\target
[DEBUG]   (f) classpathElements =
[c:\workspace\jakarta-hivemind\library\target\classes, C:\Documents
and 
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
, C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar,
C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar,
C:\Documen
ts and 
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar,
C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar,
C:\Documents
and Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar,
C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar,
C:\Documents and Settings\Howard\.m2\r
epository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar,
C:\Documents and
Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar]
[DEBUG]   (f) compileSourceRoots =
[c:\workspace\jakarta-hivemind\library\src\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG]   (f) outputFileName = hivemind-lib-1.2.1
[DEBUG]   (f) projectArtifact = hivemind:hivemind-lib:jar:1.2.1
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [c:\workspace\jakarta-hivemind\library\src\java]
[DEBUG] Classpath: [c:\workspace\jakarta-hivemind\library\target\classes
 C:\Documents and
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
 C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar
 C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar
 C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar
 C:\Documents and Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar]
[DEBUG] Output directory: c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG] Classpath:
[DEBUG]  c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar
[DEBUG] Source roots:
[DEBUG]  c:\workspace\jakarta-hivemind\library\src\java
Compiling 53 source files to
c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG] hivemind:hivemind-lib:jar:1.2.1 (selected for null)
[DEBUG]   aopalliance:aopalliance:jar:1.0 (selected for provided)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG]   hivemind:hivemind:jar:1.2.1 (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.0.3 (selected for compile)
[DEBUG]     javassist:javassist:jar:3.0 (selected for compile)
[DEBUG]     oro:oro:jar:2.0.6 (selected for compile)
[DEBUG]   jboss:jboss-j2ee:jar:3.2.1 (selected for provided)
[DEBUG]   groovy:groovy-all:jar:1.0-jsr-03 (selected for provided)
[DEBUG]   log4j:log4j:jar:1.2.8 (selected for provided)
[DEBUG]   easymock:easymock:jar:1.1 (selected for test)
[DEBUG]   org.springframework:spring-full:jar:1.0.1 (selected for provided)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0:compile' -->
[DEBUG]   (f) basedir = c:\workspace\jakarta-hivemind\library
[DEBUG]   (f) buildDirectory = c:\workspace\jakarta-hivemind\library\target
[DEBUG]   (f) classpathElements =
[c:\workspace\jakarta-hivemind\library\target\classes, C:\Documents
and 
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
, C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar,
C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar,
C:\Documen
ts and 
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar,
C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar,
C:\Documents a
nd Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar,
C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar,
C:\Documents and Settings\Howard\.m2\r
epository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar,
C:\Documents and
Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar]
[DEBUG]   (f) compileSourceRoots =
[c:\workspace\jakarta-hivemind\library\src\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = true
[DEBUG]   (f) outputDirectory =
c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG]   (f) outputFileName = hivemind-lib-1.2.1
[DEBUG]   (f) projectArtifact = hivemind:hivemind-lib:jar:1.2.1
[DEBUG]   (f) source = 1.3
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.5
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:compile {execution: compile-main}]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [c:\workspace\jakarta-hivemind\library\src\java]
[DEBUG] Classpath: [c:\workspace\jakarta-hivemind\library\target\classes
 C:\Documents and
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
 C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar
 C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar
 C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar
 C:\Documents and Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar]
[DEBUG] Output directory: c:\workspace\jakarta-hivemind\library\target\classes
[INFO] Nothing to compile - all classes are up to date
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-resources-plugin:2.1:testResources'
-->
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory =
c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) resources = [EMAIL PROTECTED],
[EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] hivemind:hivemind-lib:jar:1.2.1 (selected for null)
[DEBUG]   aopalliance:aopalliance:jar:1.0 (selected for provided)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG]   hivemind:hivemind:jar:1.2.1 (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.0.3 (selected for compile)
[DEBUG]     javassist:javassist:jar:3.0 (selected for compile)
[DEBUG]     oro:oro:jar:2.0.6 (selected for compile)
[DEBUG]   jboss:jboss-j2ee:jar:3.2.1 (selected for provided)
[DEBUG]   groovy:groovy-all:jar:1.0-jsr-03 (selected for provided)
[DEBUG]   log4j:log4j:jar:1.2.8 (selected for provided)
[DEBUG]   easymock:easymock:jar:1.1 (selected for test)
[DEBUG]   org.springframework:spring-full:jar:1.0.1 (selected for provided)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0:testCompile' -->
[DEBUG]   (f) basedir = c:\workspace\jakarta-hivemind\library
[DEBUG]   (f) buildDirectory = c:\workspace\jakarta-hivemind\library\target
[DEBUG]   (f) classpathElements =
[c:\workspace\jakarta-hivemind\library\target\classes,
c:\workspace\jakarta-hivemind\library\target\test-classes,
C:\Documents and Settings\Howard\.m2\repository\comm
ons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar,
C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar,
C:\Documents and Settings\Howard\.m2\repos
itory\javassist\javassist\3.0\javassist-3.0.jar, C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar,
C:\Documents and Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2
.1\jboss-j2ee-3.2.1.jar, C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar,
C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1
\hivemind-1.2.1.jar, C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar,
C:\Documents and
Settings\Howard\.m2\repository\easymock\easymock\1.1\easymock-1.1.jar,
C:\Docum
ents and 
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar,
C:\Documents and
Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar]
[DEBUG]   (f) compileSourceRoots =
[c:\workspace\jakarta-hivemind\library\src\test]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG]   (f) outputFileName = hivemind-lib-1.2.1
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:testCompile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [c:\workspace\jakarta-hivemind\library\src\test]
[DEBUG] Classpath: [c:\workspace\jakarta-hivemind\library\target\classes
 c:\workspace\jakarta-hivemind\library\target\test-classes
 C:\Documents and
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
 C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar
 C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar
 C:\Documents and
Settings\Howard\.m2\repository\easymock\easymock\1.1\easymock-1.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar
 C:\Documents and Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar]
[DEBUG] Output directory:
c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG] Classpath:
[DEBUG]  c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG]  c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\easymock\easymock\1.1\easymock-1.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar
[DEBUG]  C:\Documents and
Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar
[DEBUG] Source roots:
[DEBUG]  c:\workspace\jakarta-hivemind\library\src\test
Compiling 50 source files to
c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG] hivemind:hivemind-lib:jar:1.2.1 (selected for null)
[DEBUG]   aopalliance:aopalliance:jar:1.0 (selected for provided)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG]   hivemind:hivemind:jar:1.2.1 (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.0.3 (selected for compile)
[DEBUG]     javassist:javassist:jar:3.0 (selected for compile)
[DEBUG]     oro:oro:jar:2.0.6 (selected for compile)
[DEBUG]   jboss:jboss-j2ee:jar:3.2.1 (selected for provided)
[DEBUG]   groovy:groovy-all:jar:1.0-jsr-03 (selected for provided)
[DEBUG]   log4j:log4j:jar:1.2.8 (selected for provided)
[DEBUG]   easymock:easymock:jar:1.1 (selected for test)
[DEBUG]   org.springframework:spring-full:jar:1.0.1 (selected for provided)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-compiler-plugin:2.0:testCompile' -->
[DEBUG]   (f) basedir = c:\workspace\jakarta-hivemind\library
[DEBUG]   (f) buildDirectory = c:\workspace\jakarta-hivemind\library\target
[DEBUG]   (f) classpathElements =
[c:\workspace\jakarta-hivemind\library\target\classes,
c:\workspace\jakarta-hivemind\library\target\test-classes,
C:\Documents and Settings\Howard\.m2\repository\comm
ons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar,
C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar,
C:\Documents and Settings\Howard\.m2\repository\
aopalliance\aopalliance\1.0\aopalliance-1.0.jar, C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar,
C:\Documents and Settings\Howard\.m2\repository\hivemind\hivemind\1.
2.1\hivemind-1.2.1.jar, C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar,
C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\j
boss-j2ee-3.2.1.jar, C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar,
C:\Documents and
Settings\Howard\.m2\repository\easymock\easymock\1.1\easymock-1.1.jar,
C:\Docum
ents and Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar,
C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar]
[DEBUG]   (f) compileSourceRoots =
[c:\workspace\jakarta-hivemind\library\src\test]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG]   (f) outputFileName = hivemind-lib-1.2.1
[DEBUG]   (f) source = 1.5
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.5
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:testCompile {execution: compile-tests}]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [c:\workspace\jakarta-hivemind\library\src\test]
[DEBUG] Classpath: [c:\workspace\jakarta-hivemind\library\target\classes
 c:\workspace\jakarta-hivemind\library\target\test-classes
 C:\Documents and
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
 C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
 C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar
 C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar
 C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar
 C:\Documents and
Settings\Howard\.m2\repository\easymock\easymock\1.1\easymock-1.1.jar
 C:\Documents and Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar
 C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar]
[DEBUG] Output directory:
c:\workspace\jakarta-hivemind\library\target\test-classes
[INFO] Nothing to compile - all classes are up to date
[DEBUG] hivemind:hivemind-lib:jar:1.2.1 (selected for null)
[DEBUG]   aopalliance:aopalliance:jar:1.0 (selected for provided)
[DEBUG]   junit:junit:jar:3.8.1 (selected for test)
[DEBUG]   hivemind:hivemind:jar:1.2.1 (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.0.3 (selected for compile)
[DEBUG]     javassist:javassist:jar:3.0 (selected for compile)
[DEBUG]     oro:oro:jar:2.0.6 (selected for compile)
[DEBUG]   jboss:jboss-j2ee:jar:3.2.1 (selected for provided)
[DEBUG]   groovy:groovy-all:jar:1.0-jsr-03 (selected for provided)
[DEBUG]   log4j:log4j:jar:1.2.8 (selected for provided)
[DEBUG]   easymock:easymock:jar:1.1 (selected for test)
[DEBUG]   org.springframework:spring-full:jar:1.0.1 (selected for provided)
[DEBUG] org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.1.2
(selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:surefire:jar:1.5.2
[DEBUG]   org.apache.maven.surefire:surefire:jar:1.5.2 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-utils:jar:1.0.5
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.5 (removed -
nearer found: 1.0.4)
[DEBUG] Retrieving parent-POM from the repository for project:
null:surefire-booter:jar:1.5.2
[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:1.5.2
(selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0 (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-surefire-plugin:2.1.2:test' -->
[DEBUG]   (f) basedir = c:\workspace\jakarta-hivemind\library
[DEBUG]   (f) childDelegation = true
[DEBUG]   (f) classesDirectory =
c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG]   (f) classpathElements =
[c:\workspace\jakarta-hivemind\library\target\classes,
c:\workspace\jakarta-hivemind\library\target\test-classes,
C:\Documents and Settings\Howard\.m2\repository\comm
ons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar,
C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar,
C:\Documents and Settings\Howard\.m2\repos
itory\javassist\javassist\3.0\javassist-3.0.jar, C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar,
C:\Documents and Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2
.1\jboss-j2ee-3.2.1.jar, C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar,
C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1
\hivemind-1.2.1.jar, C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar,
C:\Documents and
Settings\Howard\.m2\repository\easymock\easymock\1.1\easymock-1.1.jar,
C:\Docum
ents and Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar,
C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar]
[DEBUG]   (f) forkMode = none
[DEBUG]   (f) jvm = java
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents and
Settings\Howard\.m2\repository
[DEBUG]   (f) pluginArtifacts = [junit:junit:jar:3.8.1,
org.apache.maven.surefire:surefire:jar:1.5.2,
org.apache.maven.surefire:surefire-booter:jar:1.5.2,
org.codehaus.plexus:plexus-utils:jar:1.0.4, o
rg.apache.maven:maven-plugin-api:jar:2.0,
org.apache.maven:maven-artifact:jar:2.0]
[DEBUG]   (f) printSummary = true
[DEBUG]   (f) reportFormat = brief
[DEBUG]   (f) reportsDirectory =
c:\workspace\jakarta-hivemind\library\target/surefire-reports
[DEBUG]   (f) testClassesDirectory =
c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG]   (f) useFile = true
[DEBUG] -- end configuration --
[INFO] [surefire:test]
[INFO] Setting reports dir:
c:\workspace\jakarta-hivemind\library\target/surefire-reports
[DEBUG] Test Classpath :
[DEBUG] c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG] c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG] c:\workspace\jakarta-hivemind\library\target\classes
[DEBUG] c:\workspace\jakarta-hivemind\library\target\test-classes
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.3\commons-logging-1.0.3.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\javassist\javassist\3.0\javassist-3.0.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\jboss\jboss-j2ee\3.2.1\jboss-j2ee-3.2.1.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\groovy\groovy-all\1.0-jsr-03\groovy-all-1.0-jsr-03.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\hivemind\hivemind\1.2.1\hivemind-1.2.1.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\log4j\log4j\1.2.8\log4j-1.2.8.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\easymock\easymock\1.1\easymock-1.1.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar
[DEBUG] C:\Documents and
Settings\Howard\.m2\repository\org\springframework\spring-full\1.0.1\spring-full-1.0.1.jar
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\Howard\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\Howard\.m2\repository\org\apache\maven\surefire\surefire\1.5.2\surefire-1.5.2.jar
[DEBUG] Adding to surefire test classpath: C:\Documents and
Settings\Howard\.m2\repository\org\apache\maven\surefire\surefire-booter\1.5.2\surefire-booter-1.5.2.jar
[DEBUG] Adding to surefire test classpath:
c:\work\maven-2.0.2\core\plexus-utils-1.1.jar



So, what I'm seeing is that the compile executes TWICE.  Once with
default behavior, then a second (useless) time with my desired source
and optimization.

The same thing happens for the test compile.


So my problem is:

How do I configure this?

Is this caused by the fact that I'm inheriting the plugin
configuration from my parent POM?
I don't want to have to cut-n-paste that configuration into every
pom.xml in my multi-module project.

Further, how am I expected to know the correct goal/phase/whatever
from the documentation?  Sometimes Maven feels like an exclusive club
that leaves a lot of people, people not initmately familiar with the
source code and implications thereof, out in the cold!


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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

Reply via email to