I got the same warnings under Maven 2.0.7, I believe they are harmless (they are variable that Velocity tries to expand, but that it really shouldn't since they are defined only at runtime), though it would be better to get rid of them (if there is a way to escape Velocity ${xyz} variable expansion).

I also get the sample_languages.sql error, which means somebody probably forgot to commit one file.

  S.

On Sep 5, 2007, at 5:34 PM, Cédric Joyau wrote:

I was using Maven 2.0.7, i rolled back to 2.0.6 and it's fine. The project structure is created, but there's a bunch of warnings and 1 error left. Is it a configuration issue on my side ?

[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 83,column 16] : ${nuxeo-ecm-core.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException : reference : template = archetype-resources/pom.xml [line 88,column 16] : ${nuxeo-ecm.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 93,column 16] : ${ nuxeo-ecm.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 101,column 16] : ${jboss.version} is not a valid reference. [INFO] ********************* End of debug info from resources from generated POM *********************** [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/build.xml [line 21,column 38] : ${ jboss.home} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/build.xml [line 21,column 59] : ${jboss.config} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/build.xml [line 50,column 18] : ${deploy.dir} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException : reference : template = archetype-resources/build.xml [line 50,column 32] : ${nuxeo.ear} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/build.xml [line 51,column 17] : ${ build.dir} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/build.xml [line 51,column 30] : ${name} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/build.xml [line 57,column 18] : ${deploy.dir} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException : reference : template = archetype-resources/build.xml [line 57,column 32] : ${nuxeo.ear} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/src/main/resources/OSGI- INF/deployment- fragment.xml [line 8,column 13] : $ {bundle.fileName} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/src/main/resources/OSGI- INF/deployment- fragment.xml [line 16,column 18] : $ {bundle.fileName} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/src/main/resources/OSGI- INF/deployment- fragment.xml [line 25,column 18] : $ {bundle.fileName} is not a valid reference. [ERROR] ResourceManager : unable to find resource 'archetype- resources/src/main/resources/directories/sample_languages.sql' in any resource loader. [INFO] ---------------------------------------------------------------------- --
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------------------- --
[INFO] Error creating from archetype
Embedded error: Error merging velocity templates
Unable to find resource 'archetype-resources/src/main/resources/ directories/sample_languages.sql'

--
Cédric


On 9/5/07, Cédric Joyau <[EMAIL PROTECTED]> wrote:
My settings are set correctly, i don't get it. I'll try on another machine and see if it works.

--
Cédric


On 9/5/07, Julien CARSIQUE <[EMAIL PROTECTED] > wrote:
Hi,

You got this error because maven don't know where are our repositories : do you have a ~/.m2/settings.xml.
Did you follow the point 3.2.1.2) Maven settings ?
If not, create it and paste in ~/.m2/settings.xml :
<settings>

  <profiles>
    <profile>
      <id>Nuxeo</id>

      <properties>
        <downloadSources>true</downloadSources>
      </properties>

      <repositories>
        <repository>
          <id>central_proxy</id>
          <url>http://archiva.nuxeo.org/archiva/repository/central

            false



          external_snapshot
http://archiva.nuxeo.org/archiva/repository/ external_snapshot


            false



          nuxeo_release
          http://archiva.nuxeo.org/archiva/repository/nuxeo_release



            false



          nuxeo_snapshot
          http://archiva.nuxeo.org/archiva/repository/nuxeo_snapshot



            false





          central_proxy
          http://archiva.nuxeo.org/archiva/repository/central

            false



          external_snapshot
http://archiva.nuxeo.org/archiva/repository/ external_snapshot


            false



          nuxeo_release
          http://archiva.nuxeo.org/archiva/repository/nuxeo_release



            false



          nuxeo_snapshot
          http://archiva.nuxeo.org/archiva/repository/nuxeo_snapshot



            false








    Nuxeo




Cdlt,
Julien.

Cédric Joyau a écrit :
I can't manage to create a sample project following the steps of the nuxeo book either :

[INFO] --------------------------------------------------------------------- ---
[ERROR] BUILD ERROR
[INFO] --------------------------------------------------------------------- ---
[INFO] Failed to resolve artifact.
GroupId: org.nuxeo.archetypes
ArtifactId: nuxeo-archetype-simple
Version: 5.1-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.nuxeo.archetypes:nuxeo-archetype-simple:jar:5.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Has anyone got an idea ?

--
Cédric


--
Julien CARSIQUE, Nuxeo (Paris, France)
Open Source Enterprise Content Management - http://www.nuxeo.org/
Nuxeo EP 5: extensible, Java EE and standards based ECM Platform
http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

--
Stefane Fermigier, CEO, Nuxeo SAS
Open Source Enterprise Content Management (ECM)
Nuxeo 5 EP is out! - Now Java EE based, standards compliant
Web: http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to