you simply have to provide the maven-compiler-plugin and specify the
version of target and source.


if you don't want to put it everywhere you can use a parent pom.

- Romain


2012/3/23 Nestor Urquiza <nestor.urqu...@gmail.com>

> Probably a dumb question: Can you please help me to compile without having
> to update all the pom files? Basically by default my Maven 2.2.1 tries to
> compile with JDK source 1.3 but your code needs 1.5 or above:
>
>
> /Users/nestor/kk/rmannibucau/camel/diagram-generator-parent/diagram-generator-maven-plugin/src/main/java/fr/rmannibucau/graph/transformer/VertexShapeTransformer.java:[25,5]
> annotations are not supported in -source 1.3
> (use -source 5 or higher to enable annotations)
>    @Override public Shape transform(Node i) {
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 15 seconds
> [INFO] Finished at: Fri Mar 23 11:13:10 EDT 2012
> [INFO] Final Memory: 30M/81M
> [INFO]
> ------------------------------------------------------------------------
> nestor-krfs:rmannibucau nestor$ mvn -v
> Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
>
> Thanks!
> -Nestor
>
> On Thu, Mar 22, 2012 at 6:12 PM, Romain Manni-Bucau [via Camel] <
> ml-node+s465427n5587959...@n5.nabble.com> wrote:
>
> > just pushed some changes:
> > 1) the plugin name changed a bit to follow maven convention
> > 2) fixing some classloading issues when running the plugin from the build
> > when the route builder is defined
> >
> >
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5589792.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to