Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 53153 invoked from network); 26 Aug 2006 19:30:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Aug 2006 19:30:38 -0000 Received: (qmail 68959 invoked by uid 500); 26 Aug 2006 19:30:37 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 68924 invoked by uid 500); 26 Aug 2006 19:30:37 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 68913 invoked by uid 99); 26 Aug 2006 19:30:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Aug 2006 12:30:37 -0700 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.73.178.217] (HELO web60714.mail.yahoo.com) (209.73.178.217) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 26 Aug 2006 12:30:35 -0700 Received: (qmail 16945 invoked by uid 60001); 26 Aug 2006 19:30:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Wlv4iSbGepdL3DQJamBaHMWvenEX8c7AGtkDmu8rBf8hziptkl961ZvyLA/pKh8DI9wi0IGoxt5742J/+/OuXXF4PP1U37whuX/TyegWzaiNfQry+zNeMIsptkO6wusONrO9Vb34RUe/bgHfQtFxyIW4k7FTS09TqIFo5IT4DzI= ; Message-ID: <20060826193013.16943.qmail@web60714.mail.yahoo.com> Received: from [24.13.179.233] by web60714.mail.yahoo.com via HTTP; Sat, 26 Aug 2006 12:30:13 PDT Date: Sat, 26 Aug 2006 12:30:13 -0700 (PDT) From: Ole Ersoy Subject: Re: [ApacheDS] Custom Schema (was: Adding an objectClass to ApacheDS) To: Apache Directory Developers List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It looks like it's complaining that one of the templates it needs are missing from the directory it expects the template to be in. Maven reads the archetype descriptor archetype.xml, and that's how it figures out what templates it needs. In this case I'm guessing that: 'src/test/java/SchemaTest.java' is defined like this in the archetype.xml descriptor: src/test/java/SchemaTest.java but it should be defined like this: src/test/java/SchemaTest.java Cheers, - Ole --- Ersin Er wrote: > Alex, > > I am cd'ing to any directory, say to my Desktop > directory and running > the command: > > mvn archetype:create > -DarchetypeGroupId=org.apache.directory.server \ > > -DarchetypeArtifactId=apacheds-schema-archetype \ > > -DarchetypeVersion=1.0-RC4-SNAPSHOT \ > -DgroupId=com.acme > -DartifactId=foo-schema > > and the result is: > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error creating from archetype > > Embedded error: Template > 'src/test/java/SchemaTest.java' not in > directory 'src/main/java' > > Do you think it's a local problem ? > > -- > Ersin > > On 8/26/06, Alex Karasulu > wrote: > > This happens if you run the command inside the > archetype directory. CD > > out of schema-archetype and try the command. > > > > Alex > > > > > > Craig L. Ching wrote: > > > Bah, that error should have been: > > > > > > Embedded error: Unable to add module to the > current project as it is not > > > of packaging type 'pom' > > > > > > Cheers, > > > Craig > > > > > >> -----Original Message----- > > >> From: Craig L. Ching > [mailto:cching@mqsoftware.com] > > >> Sent: Friday, August 25, 2006 4:54 PM > > >> To: Apache Directory Developers List > > >> Cc: elecharny@apache.org > > >> Subject: RE: [ApacheDS] Custom Schema (was: > Adding an > > >> objectClass to ApacheDS) > > >> > > >> Hi Alex, > > >> > > >> Ok, I've tried this a few times and I'm stuck. > I think I'm > > >> following the directions you gave out, but when > I issue the > > >> mvn archetype:create command, I get an error > that says: > > >> > > >> Embedded error: Unable to add module to the > current project > > >> as it is not of pack > > >> > > >> Here is a snapshot of the full command line > (I'm using Maven > > >> 2.0.4 on Windows XP): > > >> > > >> C:\dev\apacheds\schema-archetype>mvn -e > archetype:create > > >> -DarchetypeGroupId=org. > > >> apache.directory.server > > >> -DarchetypeArtifactId=apacheds-schema-archetype > > >> -Darchet > > >> ypeVersion=1.0-RC4-SNAPSHOT -DgroupId=com.acme > -DartifactId=foo-schema > > >> + Error stacktraces are turned on. > > >> [INFO] Scanning for projects... > > >> [INFO] Searching repository for plugin with > prefix: 'archetype'. > > >> [INFO] > > >> > -------------------------------------------------------------- > > >> ---------- > > >> - > > >> --- > > >> [INFO] Building ApacheDS Schema Archetype > > >> [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.pr > > >> operties > > >> [INFO] Default ResourceManager initializing. > (class > > >> org.apache.velocity.runtime. > > >> resource.ResourceManagerImpl) > > >> [INFO] Resource Loader Instantiated: > > >> org.codehaus.plexus.velocity.ContextClassLo > > >> aderResourceLoader > > >> [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 'V M_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 glob al in scope if allowed. > > >> [INFO] Velocimacro : initialization complete. > > >> [INFO] Velocity successfully started. > > >> [INFO] [archetype:create] > > >> [INFO] Defaulting package to group ID: com.acme > [INFO] > > >> > -------------------------------------------------------------- > > >> ---------- > > >> - > > >> --- > > >> [INFO] Using following parameters for creating > Archetype: > > >> apacheds-schema-archet > > >> ype:1.0-RC4-SNAPSHOT > > >> [INFO] > > >> > -------------------------------------------------------------- > > >> ---------- > > >> - > > >> --- > > >> [INFO] Parameter: groupId, Value: com.acme > [INFO] === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com