Re: WOProject: First Time Maven User

From: Lachlan Deck (lachlan.dec..mail.com)
Date: Sun Feb 15 2009 - 21:20:49 EST

  • Next message: Lachlan Deck: "Re: WOProject: First Time Maven User"

    Hi Dov,

    we'll need a bit more info. Can you tell us
    - what version of maven do you have installed?
    - have you installed the settings.xml file from the quick-start guide
    into ~/.m2/?
    - are you aware of what version of the archetype you're using.
    - can you attach the complete output?

    Thanks.

    On 16/02/2009, at 12:17 PM, Dov Rosenberg wrote:

    > When I tried using the woframework-archetype I got a bunch of errors
    > like:
    >
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/pom.xml [line 33,column
    > 34] :
    > ${woversion} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/pom.xml [line 38,column
    > 34] :
    > ${woversion} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/pom.xml [line 43,column
    > 34] :
    > ${woversion} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 17,column
    > 33] :
    > ${user.home} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 17,column
    > 45] :
    > ${file.separator} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 19,column
    > 33] :
    > ${user.home} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 19,column
    > 45] :
    > ${file.separator} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 19,column
    > 69] :
    > ${file.separator} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 28,column
    > 47] :
    > ${user.home} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 28,column
    > 59] :
    > ${file.separator} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 28,column
    > 83] :
    > ${file.separator} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 29,column
    > 53] :
    > ${wo.wolocalroot} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 35,column
    > 50] :
    > ${install.dir} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 36] :
    > ${project.name} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 62] :
    > ${dest.dir} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 99] :
    > ${customInfoPListContent} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 142] :
    > ${principalClass} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 181] :
    > ${eoAdaptorClassName} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 217] :
    > ${javaVersion} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 250] :
    > ${cfBundleVersion} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 292] :
    > ${cfBundleShortVersion} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 49,column
    > 329] :
    > ${cfBundleID} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 50,column
    > 39] :
    > ${classes.dir} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 91,column
    > 43] :
    > ${wo.dir.user.home.library.frameworks} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line 96,column
    > 43] :
    > ${wo.wolocalroot} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line
    > 101,column 43] :
    > ${wo.wosystemroot} is not a valid reference.
    > [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
    > reference : template = archetype-resources/build.xml [line
    > 107,column 47] :
    > ${wo.wolocalroot} is not a valid reference.
    >
    > Thanks
    >
    >
    > Dov
    >
    >
    > On 2/15/09 5:37 PM, "Lachlan Deck" <lachlan.dec..mail.com> wrote:
    >
    >> Hi Dov,
    >>
    >> On 16/02/2009, at 9:08 AM, Dov Rosenberg wrote:
    >>
    >>> We are considering a swap over to Maven for our build system and I
    >>> had some
    >>> questions:
    >>
    >> pre-requisite plugins
    >> - either m2eclipse (http://m2eclipse.sonatype.org/)
    >> - or q4e (http://code.google.com/p/q4e/, http://eclipse.org/iam)
    >>
    >> Readings:
    >> - http://wiki.objectstyle.org/confluence/display/WOL/Quick+Start
    >> -
    >> http://wiki.objectstyle.org/confluence/display/WOL/Maven+Create+WO+Application
    >> +Project
    >>
    >>> * How do I create a Maven enabled project for Eclipse for a
    >>> WOFramework?
    >>> I see there is a woapplication-archetype. Is there something similar
    >>> for
    >>> WOFrameworks?
    >>
    >>
    >> So to create a brand new framework follow the same instructions as
    >> the
    >> above for creating a project. Rather than choosing woapplication-
    >> archetype use woframework-archtype.
    >>
    >> If you've done this via the command line, for example, then in
    >> Eclipse
    >> you can import > Maven Projects.
    >>
    >> If you happen to manually added the pom file to your project and want
    >> to enable maven then right click and choose Maven > Enable Dependency
    >> Management to enable the maven build nature.
    >>
    >>> * We just started using Project Wonder – is that stored in the
    >>> repository as
    >>> well? Is there any special archetyes for Project Wonder?
    >>
    >> It's not currently being built to a shared repository. However it's
    >> quite possible to build/install Wonder via maven to your local
    >> repository. This is possible to do now but that stores it as a 5.0.0-
    >> SNAPSHOT which can obviously change. So when you want to store it
    >> as a
    >> specific version (e.g., 5.0.0.svn#) then this just takes a bit of
    >> regex before running the build. I've previously been downloading the
    >> built jars from mdimdension but these have turned out to be wrong for
    >> 5.4. Thus I'm just about done with a script to do this. Ping me in a
    >> day.
    >>
    >> If someone had the bandwidth and was willing to host the maven-repo
    >> then it could be accessible for everyone. But you'll want your own
    >> repo anyway...
    >>
    >> As you've got questions, fire away. I need to flesh out some more
    >> stuff on the wiki.
    >>
    >> with regards,
    >> --
    >>
    >> Lachlan Deck
    >>
    >

    with regards,

    --
    

    Lachlan Deck



    This archive was generated by hypermail 2.0.0 : Sun Feb 15 2009 - 21:21:42 EST