Announcement Announcement Module
Collapse
No announcement yet.
Creating archetypes from roo projects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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).

    Comment

    Working...
    X