Hi Fabien,

Thank you, I' ve seen this document ant tried to generate my first project but 
I've this error when using maven :

C:\nuxeo>mvn archetype:create -DartifactId=grctran -DgroupId=cnav.grc04 
-DarchetypeArtifactId=nuxeo-archetype-simple 
-DarchetypeGroupId=org.nuxeo.archetypes -DarchetypeVersion=nuxeo-5.1-SNAPSHOT 
-f C:/nuxeo/dummy.xml 
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central_proxy
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'9e749efaf2d447b500b25029fb5ec5dfe19b482f'; remote = 
'5418845a1c71ef58e18df8bac2e576dbd4bb2ae4' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 
'9e749efaf2d447b500b25029fb5ec5dfe19b482f'; remote = 
'5418845a1c71ef58e18df8bac2e576dbd4bb2ae4' - IGNORING
[INFO] org.apache.maven.plugins: checking for updates from nuxeo_release
[INFO] org.codehaus.mojo: checking for updates from central_proxy
[INFO] org.codehaus.mojo: checking for updates from nuxeo_release
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for 
updates from central_proxy
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for 
updates from nuxeo_release
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Unnamed - com.example:MNG-2261-workaround:pom:1
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] 
----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] ************************************************************** 
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: 
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class 
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: 
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class 
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any 
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm : 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT 
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be  
global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: cnav.grc04
[INFO] snapshot org.nuxeo.archetypes:nuxeo-archetype-simple:nuxeo-5.1-SNAPSHOT: 
checking for updates from external_snapshot
[INFO] snapshot org.nuxeo.archetypes:nuxeo-archetype-simple:nuxeo-5.1-SNAPSHOT: 
checking for updates from nuxeo_snapshot
Downloading: 
http://archiva.nuxeo.org/archiva/repository/external_snapshot/org/nuxeo/archetypes/nuxeo-archetype-simple/nuxeo-5.1-SNAPSHOT/nuxeo-archetype-simple-nuxeo-5.1-SNAPSHOT.jar
Downloading: 
http://archiva.nuxeo.org/archiva/repository/nuxeo_snapshot/org/nuxeo/archetypes/nuxeo-archetype-simple/nuxeo-5.1-SNAPSHOT/nuxeo-archetype-simple-nuxeo-5.1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.nuxeo.archetypes
ArtifactId: nuxeo-archetype-simple
Version: nuxeo-5.1-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command: 
    mvn install:install-file -DgroupId=org.nuxeo.archetypes 
-DartifactId=nuxeo-archetype-simple \
        -Dversion=nuxeo-5.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:   
  mvn deploy:deploy-file -DgroupId=org.nuxeo.archetypes 
-DartifactId=nuxeo-archetype-simple \
        -Dversion=nuxeo-5.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
         -Durl=[url] -DrepositoryId=[id]


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

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  nuxeo_release (http://archiva.nuxeo.org/archiva/repository/nuxeo_release),
  central_proxy (http://archiva.nuxeo.org/archiva/repository/central),
  nuxeo_snapshot (http://archiva.nuxeo.org/archiva/repository/nuxeo_snapshot),
  external_snapshot 
(http://archiva.nuxeo.org/archiva/repository/external_snapshot)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sun Nov 18 09:41:48 CET 2007
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

Could you help me ?

Thanks.
  ----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Sunday, November 18, 2007 12:34 AM
  Subject: Re: [Ecm] How to create a new document type


  Hi patrick,

  Look at this :

  http://doc.nuxeo.org/current/reference/html/getting-started.html 

  Chapter "3.3.1.3. Generate the sample project with nuxeo-archetype-simple 
archetype"

  You can take the "org.nuxeo.project.sample" project.

  I think it's good to start with Nuxeo.

  Good luck !

  Fabien





  "Patrick TURGY" <[EMAIL PROTECTED]>
  Sent by: [EMAIL PROTECTED]
  17/11/2007 14:17

  To   <[email protected]>
  cc   
  bcc   
  Subject   [Ecm] How to create a new document type
   



  Hi,

  Could you tell me how to create a new document type. In chapter 6 of the 
nuxeo-bok.pdf, there is some information but I think there are some errors.

  By example, where to define the /resources directory to place the .xsd file 
and where to define the OSGi-INF directory ?

  Thanks to help me ( I'm of course a new becomer).

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

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

Reply via email to