Part of this is user error; the exclude should have been
**/annotations/**  (with an 's').

It's still pretty difficult to do what I want. It's a bit of an edge
case, but still valid for the next couple of years for those of us who
build frameworks, rather than applications.

On 3/26/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> I'm not sure why the exclusions are ignored - that would need more
> investigation.
>
> Once past that, this declaration should be set to include only the
> annotations in the first execution listed, and would need to override
> the excludes with an empty list.
>
> The compiler plugin needs to be made more flexible. I'll make a note
> to revisit entirely. It would make a good use case for a rethink of
> lifecycle declaration in Maven 2.1.
>
> In the mean time, I'd suggest using the antrun plugin to compile your
> annotation sources.
>
> Cheers,
> Brett
>
> On 3/27/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> > Here's what I want to do:
> >
> > Compile some of the classes under src/main using JDK 1.3
> > Compile the remainder of the classes under src/main using JDK 1.5 (for
> > annotations).
> >
> > The goal is to have a single JAR that provides support for JDK 1.3 and
> > annotation support when JDK 1.5 is present.  The JDK 1.5/annotation
> > classes can be in their own package, and HiveMind will take care of
> > the late binding aspect of things.
> >
> > I've been fighting with maven on this, and losing. First I tried to
> > segregate the annotation classes as src/annotation/java, but I
> > couldn't find a way to get that compiled.  Now I'm trying to use file
> > exclusions to do the same thing, but that's not working either.
> >
> > I'd hate to have to split this up; it's already tiny and the
> > annotation part would be silly small (two tiny classes).
> >
> > Here's my first pass, but it seems to compile everything under
> > src/main/java using JDK 1.3, and gags on the annotation part.
> >
> > <plugin>
> >                 <groupId>org.apache.maven.plugins</groupId>
> >                 <artifactId>maven-compiler-plugin</artifactId>
> >                 <configuration>
> >                     <!-- Skip the test compile (a hack provided by Brent). 
> > -->
> >                     <skip>true</skip>
> >                     <source>1.3</source>
> >                     <target>1.3</target>
> >                     <!-- Skip the annotations until phase two. -->
> >                     <excludes>
> >                         <exclude>**/annotation/*.java</exclude>
> >                     </excludes>
> >                 </configuration>
> >                 <executions>
> >                     <execution>
> >                         <id>annotations</id>
> >                         <configuration>
> >                             <source>1.5</source>
> >                             <target>1.5</target>
> >                         </configuration>
> >                         <goals>
> >                             <goal>compile</goal>
> >                         </goals>
> >                     </execution>
> >                     <execution>
> >                         <id>test</id>
> >                         <configuration>
> >                             <!-- Now, this will be a second pass that
> > actually does compile
> >                                  the tests. Turn skip back to false so
> > tests actually compile.
> >                                  -->
> >                             <skip>false</skip>
> >                             <source>1.5</source>
> >                             <target>1.5</target>
> >                         </configuration>
> >                         <goals>
> >                             <!-- test-compile will execute its default
> > configuration (skip=true),
> >                                  then our overriding configuration
> > (just above). -->
> >                             <goal>testCompile</goal>
> >                         </goals>
> >                     </execution>
> >                 </executions>
> >             </plugin>
> >
> >
> >
> > bash-3.00$ mvn -X test
> > + 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:
> > '../common/pom.xml' for project: com.javaforge.tapestry:tapestry
> > -spring:jar:0.1.2
> > [DEBUG] com.javaforge.tapestry:tapestry-spring:jar:0.1.2 (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 Tapestry spring integration extension
> > [INFO]    task-segment: [test]
> > [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-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] maven-assembly-plugin: resolved to version 2.0.1 from repository 
> > central
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > null:maven-assembly-plugin:maven-plugin:2.0.1
> > [DEBUG] maven-source-plugin: resolved to version 2.0 from repository central
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > null:maven-source-plugin:maven-plugin:2.0
> > [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\tapestry-spring\target\classes
> > [DEBUG]   (f) project = [EMAIL PROTECTED]
> > [DEBUG]   (f) resources = [EMAIL PROTECTED]
> > [DEBUG] -- end configuration --
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [DEBUG] com.javaforge.tapestry:tapestry-spring:jar:0.1.2 (selected for null)
> > [DEBUG]   tapestry:tapestry:jar:4.0 (selected for compile)
> > [DEBUG]     commons-codec:commons-codec:jar:1.3 (selected for compile)
> > [DEBUG]     javassist:javassist:jar:3.0 (selected for runtime)
> > [DEBUG]     hivemind:hivemind:jar:1.1 (selected for compile)
> > [DEBUG]     oro:oro:jar:2.0.8 (selected for compile)
> > [DEBUG]     commons-fileupload:commons-fileupload:jar:1.0 (selected for 
> > compile)
> > [DEBUG]     commons-logging:commons-logging:jar:1.0.4 (selected for compile)
> > [DEBUG]     ognl:ognl:jar:2.6.7 (selected for compile)
> > [DEBUG]     hivemind:hivemind-lib:jar:1.1 (selected for compile)
> > [DEBUG]   javax.servlet:servlet-api:jar:2.2 (selected for provided)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > null:spring-web:jar:1.2.6
> > [DEBUG]   org.springframework:spring-web:jar:1.2.6 (selected for compile)
> > [DEBUG]     javax.servlet:jstl:jar:1.0 (selected for compile)
> > [DEBUG]     taglibs:standard:jar:1.0.6 (selected for compile)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > null:spring-context:jar:1.2.6
> > [DEBUG]     org.springframework:spring-context:jar:1.2.6 (selected for 
> > compile)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > null:spring-aop:jar:1.2.6
> > [DEBUG]       org.springframework:spring-aop:jar:1.2.6 (selected for 
> > compile)
> > [DEBUG]         aopalliance:aopalliance:jar:1.0 (selected for compile)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > null:spring-beans:jar:1.2.6
> > [DEBUG]         org.springframework:spring-beans:jar:1.2.6 (selected
> > for compile)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > null:spring-core:jar:1.2.6
> > [DEBUG]           org.springframework:spring-core:jar:1.2.6 (selected
> > for compile)
> > [DEBUG]             commons-collections:commons-collections:jar:3.1
> > (selected for compile)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > com.javaforge.tapestry:tapestry-testng:jar:0.0.1
> > [DEBUG]   com.javaforge.tapestry:tapestry-testng:jar:0.0.1 (selected for 
> > test)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > org.mortbay.jetty:jetty:jar:6.0.0beta10
> > [DEBUG]     org.mortbay.jetty:jetty:jar:standalone:6.0.0beta10
> > (selected for test)
> > [DEBUG] Retrieving parent-POM from the repository for project:
> > org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta10
> > [DEBUG]       org.mortbay.jetty:servlet-api-2.5:jar:6.0.0beta10
> > (selected for test)
> > [DEBUG]     log4j:log4j:jar:1.2.8 (selected for test)
> > [DEBUG]     easymock:easymock:jar:2.0 (selected for test)
> > [DEBUG]     org.testng:testng:jar:jdk15:4.6.1 (selected for test)
> > [DEBUG]       qdox:qdox:jar:1.5 (selected for test)
> > [DEBUG]       bsh:bsh:jar:2.0b1 (selected for test)
> > [DEBUG]       junit:junit:jar:3.8.1 (selected for test)
> > [DEBUG]   log4j:log4j:jar:1.2.8 (selected for test)
> > [DEBUG]   tapestry:tapestry-annotations:jar:4.0 (selected for compile)
> > [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\tapestry-spring
> > [DEBUG]   (f) buildDirectory = c:\workspace\tapestry-spring\target
> > [DEBUG]   (f) classpathElements =
> > [c:\workspace\tapestry-spring\target\classes, C:\Documents and
> > Settings\Howard\.m2\rep
> > ository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar, C:\Documents
> > and Settings\Howard\.m2\repository\commons-codec\c
> > ommons-codec\1.3\commons-codec-1.3.jar, C:\Documents and
> > Settings\Howard\.m2\repository\hivemind\hivemind\1.1\hivemind-1
> > .1.jar, C:\Documents and
> > Settings\Howard\.m2\repository\tapestry\tapestry\4.0\tapestry-4.0.jar,
> > C:\Documents and Setting
> > s\Howard\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar,
> > C:\Documents and Settings\Howar
> > d\.m2\repository\org\springframework\spring-aop\1.2.6\spring-aop-1.2.6.jar,
> > C:\Documents and Settings\Howard\.m2\reposit
> > ory\commons-collections\commons-collections\3.1\commons-collections-3.1.jar,
> > C:\Documents and Settings\Howard\.m2\reposi
> > tory\javax\servlet\jstl\1.0\jstl-1.0.jar, C:\Documents and
> > Settings\Howard\.m2\repository\javax\servlet\servlet-api\2.2\
> > servlet-api-2.2.jar, C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-core\1.2.6\spring-core-1
> > .2.6.jar, C:\Documents and
> > Settings\Howard\.m2\repository\commons-fileupload\commons-fileupload\1.0\commons-fileupload-1
> > .0.jar, C:\Documents and
> > Settings\Howard\.m2\repository\ognl\ognl\2.6.7\ognl-2.6.7.jar,
> > C:\Documents and Settings\Howard
> > \.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar, C:\Documents and
> > Settings\Howard\.m2\repository\taglibs\standard\1.0.6\stan
> > dard-1.0.6.jar, C:\Documents and
> > Settings\Howard\.m2\repository\hivemind\hivemind-lib\1.1\hivemind-lib-1.1.jar,
> > C:\Docum
> > ents and 
> > Settings\Howard\.m2\repository\org\springframework\spring-web\1.2.6\spring-web-1.2.6.jar,
> > C:\Documents and Sett
> > ings\Howard\.m2\repository\tapestry\tapestry-annotations\4.0\tapestry-annotations-4.0.jar,
> > C:\Documents and Settings\How
> > ard\.m2\repository\org\springframework\spring-beans\1.2.6\spring-beans-1.2.6.jar,
> > C:\Documents and Settings\Howard\.m2\r
> > epository\org\springframework\spring-context\1.2.6\spring-context-1.2.6.jar]
> > [DEBUG]   (f) compileSourceRoots = 
> > [c:\workspace\tapestry-spring\src\main\java]
> > [DEBUG]   (f) compilerId = javac
> > [DEBUG]   (f) debug = true
> > [DEBUG]   (f) excludes = [**/annotation/*.java]
> > [DEBUG]   (f) fork = false
> > [DEBUG]   (f) optimize = false
> > [DEBUG]   (f) outputDirectory = c:\workspace\tapestry-spring\target\classes
> > [DEBUG]   (f) outputFileName = tapestry-spring-0.1.2
> > [DEBUG]   (f) projectArtifact = 
> > com.javaforge.tapestry:tapestry-spring:jar:0.1.2
> > [DEBUG]   (f) source = 1.3
> > [DEBUG]   (f) staleMillis = 0
> > [DEBUG]   (f) target = 1.3
> > [DEBUG]   (f) verbose = false
> > [DEBUG] -- end configuration --
> > [INFO] [compiler:compile]
> > [DEBUG] Using compiler 'javac'.
> > [DEBUG] Source directories: [c:\workspace\tapestry-spring\src\main\java]
> > [DEBUG] Classpath: [c:\workspace\tapestry-spring\target\classes
> >  C:\Documents and
> > Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\hivemind\hivemind\1.1\hivemind-1.1.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\tapestry\tapestry\4.0\tapestry-4.0.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-aop\1.2.6\spring-aop-1.2.6.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
> >
> >  C:\Documents and
> > Settings\Howard\.m2\repository\javax\servlet\jstl\1.0\jstl-1.0.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\javax\servlet\servlet-api\2.2\servlet-api-2.2.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-core\1.2.6\spring-core-1.2.6.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\commons-fileupload\commons-fileupload\1.0\commons-fileupload-1.0.jar
> >  C:\Documents and 
> > Settings\Howard\.m2\repository\ognl\ognl\2.6.7\ognl-2.6.7.jar
> >  C:\Documents and Settings\Howard\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\taglibs\standard\1.0.6\standard-1.0.6.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\hivemind\hivemind-lib\1.1\hivemind-lib-1.1.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-web\1.2.6\spring-web-1.2.6.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\tapestry\tapestry-annotations\4.0\tapestry-annotations-4.0.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-beans\1.2.6\spring-beans-1.2.6.jar
> >  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-context\1.2.6\spring-context-1.2.6.jar]
> > [DEBUG] Output directory: c:\workspace\tapestry-spring\target\classes
> > [DEBUG] Classpath:
> > [DEBUG]  c:\workspace\tapestry-spring\target\classes
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\hivemind\hivemind\1.1\hivemind-1.1.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\tapestry\tapestry\4.0\tapestry-4.0.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar
> >
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-aop\1.2.6\spring-aop-1.2.6.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\commons-collections\commons-collections\3.1\commons-collections
> > -3.1.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\javax\servlet\jstl\1.0\jstl-1.0.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\javax\servlet\servlet-api\2.2\servlet-api-2.2.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-core\1.2.6\spring-core-1.2.6.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\commons-fileupload\commons-fileupload\1.0\commons-fileupload-1.
> > 0.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\ognl\ognl\2.6.7\ognl-2.6.7.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\taglibs\standard\1.0.6\standard-1.0.6.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\hivemind\hivemind-lib\1.1\hivemind-lib-1.1.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-web\1.2.6\spring-web-1.2.6.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\tapestry\tapestry-annotations\4.0\tapestry-annotations-4.0.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-beans\1.2.6\spring-beans-1.2.6.jar
> > [DEBUG]  C:\Documents and
> > Settings\Howard\.m2\repository\org\springframework\spring-context\1.2.6\spring-context-1.2.6.j
> > ar
> > [DEBUG] Source roots:
> > [DEBUG]  c:\workspace\tapestry-spring\src\main\java
> > Compiling 5 source files to c:\workspace\tapestry-spring\target\classes
> > [INFO] 
> > ----------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO] 
> > ----------------------------------------------------------------------------
> > [INFO] Compilation failure
> >
> > c:\workspace\tapestry-spring\src\main\java\com\javaforge\tapestry\spring\annotations\InjectSpring.java:[7,7]
> > static impo
> > rt declarations are not supported in -source 1.3
> > (try -source 1.5 to enable static import declarations)
> > import static java.lang.annotation.ElementType.METHOD;
> >
> > c:\workspace\tapestry-spring\src\main\java\com\javaforge\tapestry\spring\annotations\InjectSpring.java:[17,1]
> > annotation
> > s are not supported in -source 1.3
> > (try -source 1.5 to enable annotations)
> > @Target(METHOD)
> >
> > c:\workspace\tapestry-spring\src\main\java\com\javaforge\tapestry\spring\annotations\InjectSpringAnnotationWorker.java:[
> > 12,7] static import declarations are not supported in -source 1.3
> > (try -source 1.5 to enable static import declarations)
> > import static 
> > org.apache.tapestry.annotations.AnnotationUtils.getPropertyName;
> >
> >
> > [INFO] 
> > ----------------------------------------------------------------------------
> > [DEBUG] Trace
> > org.apache.maven.BuildFailureException: Compilation failure
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:552)
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
> > 2)
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
> > a:303)
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at 
> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >         at 
> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > Caused by: org.apache.maven.plugin.CompilationFailureException:
> > Compilation failure
> >         at 
> > org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:429)
> >         at 
> > org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)
> >         at 
> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
> >         at 
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
> >         ... 16 more
> > [INFO] 
> > ----------------------------------------------------------------------------
> > [INFO] Total time: 2 seconds
> > [INFO] Finished at: Sun Mar 26 14:35:42 PST 2006
> > [INFO] Final Memory: 4M/8M
> > [INFO] 
> > ----------------------------------------------------------------------------
> >
> >
> > So ... any thoughts? Examples?
> >
> > Thanks!
> >
> > --
> > 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
> >
> >
> > --
> > 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]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
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