Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 22992 invoked from network); 25 Aug 2006 21:56:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 21:56:07 -0000 Received: (qmail 62163 invoked by uid 500); 25 Aug 2006 21:56:06 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 62124 invoked by uid 500); 25 Aug 2006 21:56:06 -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 62113 invoked by uid 99); 25 Aug 2006 21:56:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 14:56:06 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of cching@mqsoftware.com designates 66.192.70.108 as permitted sender) Received: from [66.192.70.108] (HELO emailmn.mqsoftware.com) (66.192.70.108) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 14:56:03 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [ApacheDS] Custom Schema (was: Adding an objectClass to ApacheDS) Date: Fri, 25 Aug 2006 16:55:42 -0500 Message-ID: <63BEA5E623E09F4D92233FB12A9F79435FFE4F@emailmn.mqsoftware.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ApacheDS] Custom Schema (was: Adding an objectClass to ApacheDS) Thread-Index: AcbIZglxV9TiQ1vpSg+J8//P5sEB/QAKp00AAAAgtiA= From: "Craig L. Ching" To: "Apache Directory Developers List" Cc: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Bah, that error should have been: Embedded error: Unable to add module to the current project as it is not of packaging type 'pom'=20 Cheers, Craig > -----Original Message----- > From: Craig L. Ching [mailto:cching@mqsoftware.com]=20 > 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=20 > objectClass to ApacheDS) >=20 > Hi Alex, >=20 > Ok, I've tried this a few times and I'm stuck. I think I'm=20 > following the directions you gave out, but when I issue the=20 > mvn archetype:create command, I get an error that says: >=20 > Embedded error: Unable to add module to the current project=20 > as it is not of pack >=20 > Here is a snapshot of the full command line (I'm using Maven=20 > 2.0.4 on Windows XP): >=20 > C:\dev\apacheds\schema-archetype>mvn -e archetype:create=20 > -DarchetypeGroupId=3Dorg. > apache.directory.server=20 > -DarchetypeArtifactId=3Dapacheds-schema-archetype > -Darchet > ypeVersion=3D1.0-RC4-SNAPSHOT -DgroupId=3Dcom.acme = -DartifactId=3Dfoo-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 =3D>=20 > 'org.codehaus.plexus .velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on =3D> 'false'. > [INFO] Setting property: resource.loader =3D> 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound =3D> '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=20 > 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=20 > 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=20 > 'VM_global_library.vm' > in any > resource loader. > [INFO] Velocimacro : error using VM library template=20 > VM_global_library.vm : org > .apache.velocity.exception.ResourceNotFoundException: Unable=20 > to find resource 'V M_global_library.vm' > [INFO] Velocimacro : VM library template macro registration complete. > [INFO] Velocimacro : allowInline =3D true : VMs can be defined=20 > inline in templates >=20 > [INFO] Velocimacro : allowInlineToOverride =3D false : VMs=20 > defined inline may NOT replace previous VM definitions [INFO]=20 > Velocimacro : allowInlineLocal =3D false : VMs defined inline=20 > 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] Parameter:=20 > packageName, Value: com.acme [INFO] Parameter: basedir,=20 > Value: C:\dev\apacheds\schema-archetype [INFO] Parameter:=20 > package, Value: com.acme [INFO] Parameter: version, Value:=20 > 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: foo-schema [INFO] > -------------------------------------------------------------- > ---------- > [ERROR] BUILD ERROR > [INFO] > -------------------------------------------------------------- > ---------- > [INFO] Error creating from archetype >=20 > Embedded error: Unable to add module to the current project=20 > as it is not of pack aging type 'pom' > [INFO] > -------------------------------------------------------------- > ---------- > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error=20 > creating from arch etype > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:559) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > Goal(DefaultLifecycleExecutor.java:488) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > ltLifecycleExecutor.java:458) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:219) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.java:140) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at=20 > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >=20 > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException:=20 > Error creating from a rchetype > at > org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArc > hetypeMojo.java:201) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:534) > ... 16 more > Caused by: > org.apache.maven.archetype.ArchetypeTemplateProcessingExceptio > n: Unab le to add module to the current project as it is not=20 > of packaging type 'pom' > at > org.apache.maven.archetype.DefaultArchetype.createArchetype(DefaultAr > chetype.java:306) > at > org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArc > hetypeMojo.java:188) > ... 18 more > [INFO] > -------------------------------------------------------------- > ---------- > [INFO] Total time: 1 second > [INFO] Finished at: Fri Aug 25 16:50:48 CDT 2006 [INFO] Final=20 > Memory: 4M/8M [INFO] > -------------------------------------------------------------- > ---------- >=20 > C:\dev\apacheds\schema-archetype> >=20 > Any ideas? >=20 > Cheers, > Craig=20 >=20 > > -----Original Message----- > > From: Alex Karasulu [mailto:aok123@bellsouth.net] > > Sent: Friday, August 25, 2006 11:48 AM > > To: Apache Directory Developers List > > Cc: elecharny@apache.org > > Subject: [ApacheDS] Custom Schema (was: Adding an objectClass to=20 > > ApacheDS) > >=20 > > Peoples, > >=20 > > I've created a maven archetype to create ApacheDS schema=20 > projects as=20 > > maven projects. The artifact generated by these schema=20 > projects are=20 > > jars containing the classes of your schema. In a wiki page we show=20 > > you how to use this jar with stock installations of ApacheDS and=20 > > embedded instances to install and use your custom schemas. =20 > But first, > >=20 > > *WARNING*: Adding schema files to the core is *not* a=20 > proper solution=20 > > to your problem of adding custom schema to ApacheDS. > >=20 > > The technique for doing this properly using this new archetype is=20 > > outlined here: > >=20 > > http://docs.safehaus.org/display/APACHEDS/Custom+Schema > >=20 > > Those of you interested in using this archetype to extend=20 > the schema=20 > > for both embedded and stock installs please take a minute to review=20 > > this HowTo. It would be good if you followed it and gave some=20 > > feedback so I can make corrections to it for others. > >=20 > > Alex > >=20 >=20