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:[EMAIL PROTECTED]">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

Reply via email to