Build failed in Jenkins: Errai » Errai::Codegen #1033
by ci-builds@redhat.com
See <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>
Changes:
[erikjan.dewit] It's now possible to create aliases for a group of annotations on classes
[erikjan.dewit] annotation aliasing now for methods and fields
[erikjan.dewit] It's now possible to create aliases for a group of annotations for example create @UiProperty that means the same as @Inject @Bound @DataField
------------------------------------------
projectStarted org.jboss.errai:errai-codegen:3.0-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Errai::Codegen 3.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
mojoStarted org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ errai-codegen ---
[INFO] Deleting <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>
[INFO] Deleting <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...> (includes = [www-test/**, .gwt/**, .errai/**, war/WEB-INF/deploy/**, war/WEB-INF/lib/**, war/WEB-INF/classes/**, src/main/webapp/WEB-INF/deploy/**, src/main/webapp/WEB-INF/lib/**, src/main/webapp/WEB-INF/classes/**, **/gwt-unitCache/**, **/*.JUnit/**], excludes = [])
mojoSucceeded org.apache.maven.plugins:maven-clean-plugin:2.4.1(default-clean)
mojoStarted org.apache.maven.plugins:maven-enforcer-plugin:1.2(enforce-sane-versions)
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-sane-versions) @ errai-codegen ---
mojoSucceeded org.apache.maven.plugins:maven-enforcer-plugin:1.2(enforce-sane-versions)
mojoStarted org.jboss.errai:jacoco-gwt-maven-plugin:0.5.4.201202141554(jacoco-initialize)
[INFO]
[INFO] --- jacoco-gwt-maven-plugin:0.5.4.201202141554:prepare-agent (jacoco-initialize) @ errai-codegen ---
[INFO] argLine set to -javaagent:/home/hudson/.m2/repository/org/jboss/errai/jacoco-gwt-maven-plugin/0.5.4.201202141554/jacoco-gwt-maven-plugin-0.5.4.201202141554.jar=snapshotDirectory=<http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...> -javaagent:/home/hudson/.m2/repository/org/jacoco/org.jacoco.agent/0.5.4.201111111111/org.jacoco.agent-0.5.4.201111111111-runtime.jar=destfile=<http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>
mojoSucceeded org.jboss.errai:jacoco-gwt-maven-plugin:0.5.4.201202141554(jacoco-initialize)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.6(default-resources)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ errai-codegen ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 228 resources
[INFO] skip non existing resourceDirectory <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.6(default-resources)
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.3.2(default-compile)
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ errai-codegen ---
[INFO] Compiling 228 source files to <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>
mojoSucceeded org.apache.maven.plugins:maven-compiler-plugin:2.3.2(default-compile)
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.6(default-testResources)
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ errai-codegen ---
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.6(default-testResources)
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.3.2(default-testCompile)
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ errai-codegen ---
[INFO] Compiling 59 source files to <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>:[4,31] package com.sun.tools.javac.util does not exist
[ERROR] <http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/Errai/org.jboss.errai...>:[36,83] cannot find symbol
symbol : variable List
location: class org.jboss.errai.codegen.test.AnnotationAliasTest
[INFO] 2 errors
[INFO] -------------------------------------------------------------
mojoFailed org.apache.maven.plugins:maven-compiler-plugin:2.3.2(default-testCompile)
projectFailed org.jboss.errai:errai-codegen:3.0-SNAPSHOT
11 years, 7 months
interceptors
by Erik Jan de Wit
Hi Guys,
What I like in a lot of security frameworks is that one can secure method calls with a simple annotation. So my idea was that we could make something like @RequireAuthentication on the remote interface and that would not allow the call if nobody is logged in. We could develop something like this based on the InterceptedCall functionality, but because of the way InterceptedCall is setup there is no way to make another annotation behave like InterceptedCall. To make it a bit more clear i cannot define an annotation like this:
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@InterceptedCall(SecurityInterceptor.class)
public @interface RequireAuthentication {
}
and have the SecurityInterceptor invoked the only way I can do it is by annotating the methods with:
@InterceptedCall(SecurityInterceptor.class)
Why now have it more like the CDI interceptor api http://docs.oracle.com/javaee/6/api/javax/interceptor/InterceptorBinding....
This gives me the ability to lousily couple the annotation with the interceptor are there reasons for the model that is implemented now? Can we change it so that it will be more flexible? Or shall we stick with how it's is now and extend the functionality to make it work with my example annotation?
Cheers,
Erik Jan
11 years, 7 months