Annotation « Development « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Development » Annotation 

1. How do I get Maven to find org.osoa.sca.annotations.Remotable from Apache Tuscany?    stackoverflow.com

I'm trying to put together an extremely simple proof-of-concept, but I can't get Maven to find any of the Tuscany SCA stuff.

2. Java APT how to break a maven1 build when some apt condition are true    stackoverflow.com

I have an APT processor that display warnings on some conditions. My project is using a maven1 build calling ant:apt How to make maven fails when warning conditions are met ? (the processor ...

3. How to process annotations with Maven?    stackoverflow.com

I'm trying to process annotations with my own annotations processor in a maven project. Using org.bsc.maven:maven-processor-plugin I had some success, but many problems. I wonder if there is a demo project comparable ...

4. Using JRE 1.5, still maven says annotation not supported in -source 1.3    stackoverflow.com

I am using JRE 1.5. Still when I try to compile my code it fails by saying to use JRE 1.5 instead of 1.3 C:\temp\SpringExample>mvn -e clean install + Error stacktraces are ...

5. Maven annotation processing with maven-compiler-plugin    stackoverflow.com

I try to compile my code that contains annotations that generate source code. I use the maven-compiler-plugin and build-helper-maven-plugin. My POM is looking like that:

       ...

6. Writing an annotation processor for maven-processor-plugin    stackoverflow.com

I am interested in writing an annotation processor for the maven-processor-plugin. I am relatively new to Maven. Where in the project path should the processor Java source code go (e.g.: src/main/java/...) so ...

7. maven 3 + pmd fails when code has annotations and generics    stackoverflow.com

When I run mvn pmd:pmd I get an warning / error from PMD saying that the code cannot use generics, annotations or Enums with java 1.4 or 1.5. This is supposed ...

8. Any way to strip off some annotations by maven?    stackoverflow.com

I wonder if there a way to strip off some annotations when 'maven build' ? For convenience reason , I annotate some 3rd party's annotation into my POJO , such as javax.persistence.* ...

9. Cannot initialize Velocity engine in an apt processor class    stackoverflow.com

I am trying to use Velocity in an apt annotation processing class (with Maven). On initializing Velocity

Properties vProps = new Properties();
vProps.load(this.getClass().getResourceAsStream("velocity.properties"));
mEngine = new VelocityEngine(vProps);
with the following velocity.properties
runtime.log.logsystem.class=org.apache.velocity.runtime.log.NullLogChute

resource.loader=class
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
class.resource.loader.path=.
Here is the apt debug ...

10. Howto run Pluggable Annotation API Processor from Maven?    stackoverflow.com

How can I run javax.annotation.processing.Processor implementation(s) from Maven ? I really want to use Java 6 Pluggable Annotation API, not apt.

11. Is it possible to inject extra annotations to classes before annotation processing?    stackoverflow.com

Imagine the following:

@MyAnnotation
public class A { ... };

@MyOtherAnnotation
public class B { ... };
If a class is annotated with @MyAnnotation, an extra @MyExtraAnnotation should be added before annotation processing. So, after that ...

12. Maven complains about @Override annotation first time but compiles successfully next time    stackoverflow.com

I run command like this:

mvn tomcat:redeploy 
as see a lot of errors like "...of type ImageDaoImpl must override a superclass method" But after this I do nothing, just run this command ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.