You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Tony Thompson <To...@stone-ware.com> on 2007/05/10 15:48:04 UTC
RE: [ApacheDS] Custom schema issues (again)
I sent this out a while ago and never received a response. When I check the mail archive it doesn't appear to be in there so, I am not sure what happened....
OK, sorry, maybe I should read the warning the you explicitly told me to read :)
Ignore most of my last email. The script still has that error in it. Once I fix that, I am now back to my original issue:
\apache\sch\webnet-schema\target\generated-sources\com\stoneware\schema\apache\CarSchema.java:[41,17] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
ArrayList<String> list = new ArrayList<String>();
\apache\sch\webnet-schema\target\generated-sources\com\stoneware\schema\apache\CarAttributeTypeProducer.java:[60,17] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
ArrayList<String> names = new ArrayList<String>();
\apache\sch\webnet-schema\target\generated-sources\com\stoneware\schema\apache\CarObjectClassProducer.java:[59,17] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
ArrayList<String> array = new ArrayList<String>();
________________________________
From: Emmanuel Lecharny [mailto:elecharny@gmail.com]
Sent: Friday, April 27, 2007 1:30 PM
To: Tony Thompson; Apache Directory Developers List
Subject: Re: [ApacheDS] Custom schema issues (again)
Hi Tony,
I think the plugin is working. I have updated the site to reflect the real command to use (llok at the big warning box).
I have tested it, and it works.
Just tell me if you still have problem !
Emmanuel
On 4/26/07, Emmanuel Lecharny <el...@apache.org> wrote:
Tony Thompson a écrit :
>Any news on how soon I might be able to build a custom schema again?
>
>
Hi, Tony
we will try to find out a solution tomorrow. We are a little bit busy
right now, as many of us are converging to Amsterdam for Apache
Conference, or packing to do so.
Sorry for the delay ...
Emmanuel
>Thanks
>Tony
>
>-----Original Message-----
>From: Emmanuel Lecharny [mailto: elecharny@apache.org <ma...@apache.org> ]
>Sent: Tuesday, April 24, 2007 5:58 PM
>To: Tony Thompson
>Subject: Re: *** PROBABLY SPAM *** RE: [ApacheDS] Custom schema issues (again)
>
>Hi Tony,
>
>
>Tony Thompson a écrit :
>
>
>
>>OK, I wiped out my repository and started over. Now I can't get beyond the second step. I checked out the code from svn and did the "mvn install". That worked. Then I do this:
>>
>>mvn archetype:create -DarchetypeGroupId=org.apache.directory.server
>>-DarchetypeArtifactId=apacheds-schema-archetype
>>-DarchetypeVersion=1.0.1 -DgroupId=com.stoneware.schema.apache
>>-DartifactId=webnet-schema
>>
>>And I get this error:
>>
>>[INFO] [archetype:create]
>>[INFO] Defaulting package to group ID: com.stoneware.schema.apache
>>[INFO]
>>-----------------------------------------------------------------------
>>----- [INFO] Using following parameters for creating Archetype:
>>apacheds-schema-archetype:1.0.1 [INFO]
>>-----------------------------------------------------------------------
>>----- [INFO] Parameter: groupId, Value: com.stoneware.schema.apache
>>[INFO] Parameter: packageName, Value: com.stoneware.schema.apache
>>[INFO] Parameter: basedir, Value: D:\webNetwork-5.1.0.0\apache [INFO]
>>Parameter: package, Value: com.stoneware.schema.apache [INFO]
>>Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId,
>>Value: webnet-schema [INFO]
>>-----------------------------------------------------------------------
>>-
>>[ERROR] BUILD ERROR
>>[INFO]
>>-----------------------------------------------------------------------
>>-
>>[INFO] Error creating from archetype
>>
>>
>>
>>
>yeah, I get the same error :(
>
>We are investigating the problem, and will inform you asap !
>
>Emmanuel
>
>This message (and any associated files) is intended only for the
>use of the individual or entity to which it is addressed and may
>contain information that is confidential, subject to copyright or
>constitutes a trade secret. If you are not the intended recipient
>you are hereby notified that any dissemination, copying or
>distribution of this message, or files associated with this message,
>is strictly prohibited. If you have received this message in error,
>please notify us immediately by replying to the message and deleting
>it from your computer. Messages sent to and from Stoneware, Inc.
>may be monitored.
>
>
>
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.
Re: [ApacheDS] Custom schema issues (again)
Posted by Emmanuel Lecharny <el...@apache.org>.
Tony Thompson a écrit :
>>There is no ArrayList<String> here.
>>
>>Can you just follow the exact same sequence ? I think the key is
>>
>>
>removing the maven repository.
>
>
>>Don't forget to svn up, as I have fixed an error in the script.
>>
>>Emmanuel
>>
>>
>
>Well, I have tried about everything I can think of and it still does the
>same thing.
>
Embrarassing...
>I am on a Windows machine so I am not sure if that is part
>of the problem (it usually is).
>
I don't use windows :)
> I had a 1.4 JRE installed and I removed
>that but it didn't make a difference. I have my JAVA_HOME environment
>variable set to a 1.5 JDK directory. I wiped out the Maven repo and
>followed your steps and it still generates the source with the generics
>in there.
>
This is *very* strange. The generic is stored into a velocity template
which is stored into
apacheds/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template
If you look at this file, it should *not* contains any generic.
1.0 version can be seen here :
http://svn.apache.org/repos/asf/directory/apacheds/branches/1.0/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template
1.5 version is here :
http://svn.apache.org/repos/asf/directory/apacheds/trunk/core-plugin/src/main/resources/org/apache/directory/server/core/tools/schema/Schema.template
Those files are stored into
.m2/repository/org/apache/directory/server/apacheds-core-plugin/1.0.2-SNAPSHOT/apacheds-core-plugin-1.0.2-SNAPSHOT.jar
if you tries with trunk.
Can you check on your disk to see if you don't have an
apacheds-core-plugin-<whatever>.jar file which could be possibly in your
path? If so, just delete those files, and give it another try.
Emmanuel
RE: [ApacheDS] Custom schema issues (again)
Posted by Tony Thompson <To...@stone-ware.com>.
>There is no ArrayList<String> here.
>
>Can you just follow the exact same sequence ? I think the key is
removing the maven repository.
>
>Don't forget to svn up, as I have fixed an error in the script.
>
>Emmanuel
Well, I have tried about everything I can think of and it still does the
same thing. I am on a Windows machine so I am not sure if that is part
of the problem (it usually is). I had a 1.4 JRE installed and I removed
that but it didn't make a difference. I have my JAVA_HOME environment
variable set to a 1.5 JDK directory. I wiped out the Maven repo and
followed your steps and it still generates the source with the generics
in there. I tried all of the steps with JAVA_HOME set to a 1.4 JDK and
things won't work with that so it appears that I need to have 1.5. So,
I don't understand why if I am using 1.5 and the source generated is for
1.5, why won't the "mvn package" step configure itself to compile with
1.5 source?
Tony
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.
Re: [ApacheDS] Custom schema issues (again)
Posted by Emmanuel Lecharny <el...@apache.org>.
Tony Thompson a écrit :
>I sent this out a while ago and never received a response. When I check the mail archive it doesn't appear to be in there so, I am not sure what happened....
>
>
Hmmmm.... I think your mail may have been caught by the Moderator, and
not accepted. Are you using a server which add some strange HTML text at
the end of your own mail? Anyway ...
>
>
>OK, sorry, maybe I should read the warning the you explicitly told me to read :)
>
>Ignore most of my last email. The script still has that error in it. Once I fix that, I am now back to my original issue:
>
>\apache\sch\webnet-schema\target\generated-sources\com\stoneware\schema\apache\CarSchema.java:[41,17] generics are not supported in -source 1.3
>(try -source 1.5 to enable generics)
> ArrayList<String> list = new ArrayList<String>();
>
>\apache\sch\webnet-schema\target\generated-sources\com\stoneware\schema\apache\CarAttributeTypeProducer.java:[60,17] generics are not supported in -source 1.3
>(try -source 1.5 to enable generics)
> ArrayList<String> names = new ArrayList<String>();
>
>\apache\sch\webnet-schema\target\generated-sources\com\stoneware\schema\apache\CarObjectClassProducer.java:[59,17] generics are not supported in -source 1.3
>(try -source 1.5 to enable generics)
> ArrayList<String> array = new ArrayList<String>();
>
>
I have just fixed an error in the apacheds-schema-archetype.sh script (
I got a failure due to a old jar was used into this script)
I have completly removed my maven repository, and replayed the sample
given on the web site :
http://directory.apache.org/apacheds/1.0/custom-schema.html.
# mkdir schema-test
# cd schema-test
# svn co
http://svn.apache.org/repos/asf/directory/apacheds/releases/1.0.1/schema-archetype/
...
Checked out revision 536880.
# cd schema-archetype
# mvn install
(lots of logs ...)
[INFO] Installing
/home/elecharny/schema/schema-archetype/target/apacheds-schema-archetype-1.0.1.jar
to
/home/elecharny/.m2/repository/org/apache/directory/server/apacheds-schema-archetype/1.0.1/apacheds-schema-archetype-1.0.1.jar
[INFO] [plugin:updateRegistry]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu May 10 17:07:10 CEST 2007
[INFO] Final Memory: 7M/14M
[INFO]
------------------------------------------------------------------------
# cd ..
# schema-archetype/apacheds-schema-archetype.sh com.acme foo-schema
[INFO] Scanning for projects...
... (again, lots of logs ...)
[INFO] Archetype created in dir: /home/elecharny/schema/foo-schema
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu May 10 17:07:26 CEST 2007
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------
# cd foo-schema/
# mvn package
[INFO] Scanning for projects...
... (logs logs logs :)
[INFO] Building jar:
/home/elecharny/schema/foo-schema/target/foo-schema-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 52 seconds
[INFO] Finished at: Thu May 10 17:08:33 CEST 2007
[INFO] Final Memory: 8M/16M
[INFO]
------------------------------------------------------------------------
# cat target/generated-sources/com/acme/CarSchema.java
...
package com.acme;
import java.util.ArrayList;
import org.apache.directory.server.core.schema.bootstrap.*;
/**
* Top level car schema class. This code has been automatically generated
* using the directory plugin for maven.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory
Project</a>
* @version $Rev$
*/
public class CarSchema extends AbstractBootstrapSchema
{
public CarSchema()
{
super( "uid=admin,ou=system", "car", "com.acme" );
ArrayList list = new ArrayList();
list.clear();
...
There is no ArrayList<String> here.
Can you just follow the exact same sequence ? I think the key is
removing the maven repository.
Don't forget to svn up, as I have fixed an error in the script.
Emmanuel