Why I cann't use Spring and Blossom annotations?

I use Magnolia CMS and Blossom.
When I add annotations to my classes I get something like this:

annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations)
@Template(value="Blossom Template")*

Spring annotation(like @Controller) doesn't compaile too. Where is my mistake?

My pom.xml dependencies:

<dependencies> <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-module-blossom</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-module-admininterface</artifactId> <version>4.3.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-taglib-cms</artifactId> <version>4.3.5</version> <scope>provided</scope> </dependency> <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-taglib-utility</artifactId> <version>4.3.5</version> <scope>provided</scope> </dependency> </dependencies>

-------------Problems Reply------------

You have to change your maven.compiler properties to compile with java 1.5.

<!-- maven-compiler-plugin configuration -->

Another way to do this (but less discreet) is this :


Resources :

  • http://maven.apache.org/ - compile MoJo - Source

On the same topic :

  • How can I force maven to package my project against 1.5?

I am happy this got answered but encourage you to use the Magnolia community, especially the mailing-list to ask questions about Magnolia in the future. This will benefit you and the community.

See http://www.magnolia-cms.com/home/community/mailing-lists.html

Thanks - Boris

Category:java Views:0 Time:2010-08-29

Related post

  • Help with spring-json using annotated controllers 2010-01-10

    I've scourged the internet for an example that would use both spring-json and annotated controllers, I'm new to spring so I've had no luck adapting the configuration on spring-json's samples (it uses SimpleController et. al.) Currently I have a contr

  • Creating lazily initialized Spring beans using annotation based configuration 2010-03-02

    I am using Spring's @Component annotation to configure many of the beans in my Spring 3.0 application. I would like to know if it's possible to construct some of these beans lazily - especially the prototype beans? --------------Solutions------------

  • Spring MVC with annotations: how to become that method is always called 2010-03-28

    I'm currently migrating a project that is using Spring MVC without annotations to Spring MVC with annotations. This is causing less problems than expected but I did come across one issue. In my project I have set up an access mechanisme. Whether or n

  • executing stored procedure from Spring-Hibernate using Annotations 2010-05-31

    I'm trying to execute a simple stored procedure with Spring/Hibernate using Annotations. Here are my code snippets: DAO class: public class UserDAO extends HibernateDaoSupport { public List selectUsers(final String eid){ return (List) getHibernateTem

  • Spring AOP with annotations Help Needed ! 2011-05-09

    Can anyone help me with some sample code? I need to implement Spring AOP and Annotations to achieve a Db Audit or Logging, in a Services Level. Some code I found online, but nothing very clear and tidy. I tried it with examples, but I never could get

  • Use Spring 3 MVC Annotation Validation with Freemarker 2011-05-26

    I am using Spring 3 MVC Annotation Validation. I know how to do it in JSP(using modelAttribute property in JSP), but I don't have any clue how to apply this kind of data binding in Freemarker. Example of JSP equivalence <c:url var="addUrl" value="

  • AOP with Spring 3 using Annotations 2011-09-21

    I am trying to get Aspect working with Spring 3 and annotations. @Aspect public class AttributeAspect { @Pointcut("@annotation(com.mak.selective.annotation.Attribute)") public void process(){ System.out.println("Inside Process ...."); } @Around("proc

  • Spring Security Method Annotations - Do they require DispatchServlet 2011-12-12

    I'm learning Spring Security. (I used to program in Java extensively years ago). I couldn't get Spring method security to work despite reading the documentaion multiple times and reading multiple websites (including StackOverflow). However, I'm now w

  • Spring batch with Annotation 2012-01-04

    I am new to Spring batch, looking for some example developed Spring batch with Annotation concept. This link (click) talks about Spring batch, but not Spring batch with annotation concept. As discussed in given link documentation is not clear. I am u

  • Spring 3 @Scheduled annotation : 2processes using the same service 2012-02-03

    I have a problem with Spring's @Scheduled annotation. Basically, what I'm trying to do is this : class service1 { @Scheduled(fixedDelay=120000) //120 seconds public void processSomething() { //something that processes very quick - a few seconds beanX

  • Is there a JSR-330 equivalent of Spring's @Value annotation? 2012-02-06

    I'm trying to use JSR-330 annotations with Spring 3. Is there a JSR-330 equivalent of Spring's @Value annotation for inserting property values? e.g. can I use @Provider in a way that will instruct Spring to inject a property value? --------------Solu

  • How to define a Spring bean using annotation instead of XML? 2012-04-12

    I have defined in a xml config file: <bean id="bootstrap" class="com.package.Bootstrap"></bean> this works fine. The bootsrap class : public class Bootstrap { @PostConstruct public void onServerStart() { System.out.println("PRINTSSSSSSSSS

  • Recommended usage of Spring's @Required annotation 2009-05-05

    I see that Spring has a @Required annotation to mark member variables in beans that must be set. Is there a best practice for using this? For instance, might it be better to set these values in the constructor and make these parameters explicitly req

  • Can I inject code in spring using AOP annotations? 2009-06-19

    Is it possible to do something like the following: public void doStuff(@RequirePrivilege("foo") User user) { // ... } and have it effectively run as if it were the following? public void doStuff(User user) { if(!user.hasPrivilege("foo")) throw new Us

  • Spring 2 Hibernate Annotation 2009-08-06

    I am setting up Hibernate Annotation (User JPA for mapping) with Spring. (i.e. AnnotationSessionFactoryBean) I have a few questions Do I need a hibernate.cfg.xml for mapping? From the example http://www.zabada.com/tutorials/hibernate-and-jpa-with-spr

  • Is there any way to create form with multiple submit buttons on Spring MVC using annotations? 2009-10-27

    I'm trying to create simple add/remove form using annotation based Spring MVC. 'Add' functionality comes smoothly, but when I tried to add another button to form i've got stuck. Here is my code: Controller actions: @RequestMapping(value = "/books/doc

  • Spring MVC and annotated controllers issue: 2009-12-29

    I'm having a strange issue with annotated controllers and Spring MVC. I was trying to use Annotated controllers for the sample MVC application that Spring ships with its documentation. I used 2.5 version. When I specify @RequestMapping at type level,

  • Data does not persist using HIbernate with Spring's @Transactional Annotation 2010-02-02

    I have an application that I am currently writing that will use Spring and Hibernate. In my services layer I have injected a DAO that will do some very basic CRUD-ing actions. For grins, I have created a method annotated as follows: @Transactional(re

  • How configure a RESTful controller in Spring 3 with annotations? 2010-02-19

    I am trying to create a RESTful controller using Spring 3.0. The controller is for a management API for a portal application. The operations I want to perform are: GET /api/portals to list all the portals POST /api/portals to create a new portal GET

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.091 (s). 11 q(s)