Results 1 to 2 of 2

Thread: Creating archetypes from roo projects

  1. #1
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

    Unhappy Creating archetypes from roo projects

    Hi there,

    i tried to generate an archetype from a newly generated roo project. I just did:

    roo> project --topLevelPackage com.foo.demo
    shell> mvn archetype:create-from-project
    shell> mvn install

    but when trying to generate a project with:
    shell> mvn archetype:generate -DarchetypeCatalog=local

    there are some warnings:
    Code:
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 80,column 34] : ${aspectj.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 99,column 34] : ${spring.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 104,column 34] : ${spring.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 110,column 34] : ${spring.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 115,column 34] : ${spring.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 120,column 34] : ${spring.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 125,column 34] : ${spring.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 160,column 58] : ${aspectj.version} is not a valid reference.
    [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources\pom.xml [
    line 165,column 58] : ${aspectj.version} is not a valid reference.
    and nothing is there

    Any ideas?

    Greetings Fireball

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    The default Roo-generated pom.xml uses the <properties> element (at the bottom of the file) to store the Spring and AspectJ version numbers. I presume the Maven Archetype module is having a problem parsing this correctly. In any event I'd recommend you use Roo to generate new projects as we'll continue to improve what constitutes a default project in the future (whereas an archetype is a fixed version in time).
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •