unable to build Seam 3 booking project
gonorrhea Jun 13, 2009 6:07 AMUsing JBoss 5.0.0.GA and Maven 2.0.10 with SVN co of Seam 3 examples, docs, modules as per these instructions from Download page in this forum:
# Anonymous SVN checkout of the 3.0 development branch (trunk): mkdir seam-trunk && cd seam-trunk # creates directory to host the source svn co http://anonsvn.jboss.org/repos/seam/docs/trunk docs svn co http://anonsvn.jboss.org/repos/seam/examples/trunk examples svn co http://anonsvn.jboss.org/repos/seam/modules/trunk modules cd modules/version-matrix && mvn install # seeds the Maven 2 repository
I am seeing the following after executing mvn install -e. What am I doing wrong or is the build broken???
C:\java\seam-trunk\examples\booking>mvn install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] snapshot org.jboss.seam:seam-version-matrix:3.0.0-SNAPSHOT: checking for
updates from lunarlogic
[WARNING] repository metadata for: 'snapshot org.jboss.seam:seam-version-matrix:
3.0.0-SNAPSHOT' could not be retrieved from repository: lunarlogic due to an err
or: Error transferring file
[INFO] Repository 'lunarlogic' will be blacklisted
[INFO] Reactor build order:
[INFO] Seam Booking Example (Java EE 5)
[INFO] Seam Booking Example (EJB module)
[INFO] Seam Booking Example (Web module)
[INFO] Seam Booking Example (Enterprise application)
WAGON_VERSION: 1.0-beta-2
[INFO] ------------------------------------------------------------------------
[INFO] Building Seam Booking Example (Java EE 5)
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce}]
[INFO] [site:attach-descriptor]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [enforcer:enforce {execution: enforce}]
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\java\seam-trunk\examples\booking\pom.xml to C:\Users\asooka
zian\.m2\repository\org\jboss\seam\examples\seam-booking\3.0.0-SNAPSHOT\seam-boo
king-3.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Seam Booking Example (EJB module)
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 25 source files to C:\java\seam-trunk\examples\booking\ejb-jar\
target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
found : javax.enterprise.inject.spi.Bean<capture of ?>
required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
.User>
C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
found : javax.enterprise.inject.spi.Bean<capture of ?>
required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
.User>
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
found : javax.enterprise.inject.spi.Bean<capture of ?>
required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
.User>
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:580)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:500)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:479)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:331)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:292)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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 fail
ure
C:\java\seam-trunk\examples\booking\ejb-jar\src\main\java\org\jboss\seam\example
s\booking\security\AuthenticationEventListener.java:[39,122] incompatible types
found : javax.enterprise.inject.spi.Bean<capture of ?>
required: javax.enterprise.inject.spi.Bean<org.jboss.seam.examples.booking.model
.User>
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:453)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:559)
... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38 seconds
[INFO] Finished at: Fri Jun 12 20:58:09 PDT 2009
[INFO] Final Memory: 19M/34M
[INFO] ------------------------------------------------------------------------