Hi Werner

forget this. It was a namespace mapping issue.

James

----- Original Message ----- From: "James Cowan" <[email protected]>
To: <[email protected]>
Sent: Tuesday, December 01, 2009 11:18 AM
Subject: SimpleType generation



Hi Werner

I found the error -  There was a dependency elsewhere to castor 1.3.0.1 -
I changed to dependency to castor 1.3 and everything is working again.

I have a new problem with SimpleType generation:

<!-- *************************************** -->
<!-- EntityAssociationMetaData -->

<xsd:complexType name="EntityAssociationMetaData">
 <xsd:sequence>
 </xsd:sequence>
<xsd:attribute name="entityAssociationType" type="EntityAssociationType"/>
 <xsd:attribute name="className" type="xsd:string" default=""/>
 <xsd:attribute name="lookupName" type="xsd:string" default=""/>
 <xsd:attribute name="name" type="xsd:string" default=""/>
</xsd:complexType>

<!-- *************************************** -->
<!-- EntityAssociationType -->

<xsd:simpleType name="EntityAssociationType">
 <xsd:restriction base="xsd:string">
  <xsd:enumeration value="MANYTOONE"/>
  <xsd:enumeration value="ONETOONE"/>
  <xsd:enumeration value="ONETOMANY"/>
 </xsd:restriction>
</xsd:simpleType>

The code generation correctly generates EntityAssociationType.java in the types directory
but EntityAssociationMetaData does not import it.

James




----- Original Message ----- From: "James Cowan" <[email protected]>
To: <[email protected]>
Sent: Tuesday, December 01, 2009 9:19 AM
Subject: Re: [castor-user] repository jar files


Hi Werner

I am using Maven and everything stopped working when I cleaned my local repository yesterday.

These are the versions I am using:

. <castor.version>1.3</castor.version>
 <castor-codegen.version>1.3</castor-codegen.version>
 <castor-maven-plugin.version>1.5</castor-maven-plugin.version>

When I run the castor maven plugin for some reason it fails looking for a dependency on castor 1.3.0.1

Downloading: http://repository.springsource.com/maven/bundles/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository SpringSource Enterprise Bundle Repository - External Bundle Milestones (http://repository.springsource.com/maven/bundles/milestone) Downloading: http://repository.springsource.com/maven/bundles/release/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases (http://repository.springsource.com/maven/bundles/release) Downloading: http://repository.springsource.com/maven/bundles/external/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository SpringSource Enterprise Bundle Repository - External Bundle Releases (http://repository.springsource.com/maven/bundles/external) Downloading: http://repository.springsource.com/maven/libraries/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository SpringSource Enterprise Bundle Repository - Library Milestones (http://repository.springsource.com/maven/libraries/milestone) Downloading: http://repository.sonatype.org/content/groups/flexgroup//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository sonatype (http://repository.sonatype.org/content/groups/flexgroup/) Downloading: http://download.java.net/maven/2//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2/) Downloading: http://repository.codehaus.org//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository codehaus (http://repository.codehaus.org/) Downloading: http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR

The dependencies when invoking the maven plugin are:

   <dependency>
      <groupId>org.codehaus.castor</groupId>
      <artifactId>castor</artifactId>
      <version>${castor.version}</version>
     </dependency>
     <dependency>
      <groupId>org.codehaus.castor</groupId>
      <artifactId>castor-codegen</artifactId>
      <version>${castor-codegen.version}</version>
      <scope>compile</scope>
     </dependency>
     <dependency>
      <groupId>org.codehaus.castor</groupId>
      <artifactId>castor-core</artifactId>
      <version>${castor.version}</version>
     </dependency>
     <dependency>
      <groupId>org.codehaus.castor</groupId>
      <artifactId>castor-xml-schema</artifactId>
      <version>${castor.version}</version>
     </dependency>

Any ideas what is causing it to look for castor 1.3.0.1?

James

----- Original Message ----- From: "Werner Guttmann" <[email protected]>
To: <[email protected]>
Sent: Monday, November 30, 2009 9:16 PM
Subject: Re: [castor-user] repository jar files


Hi James,

this is what I expected as this is a Maven repository, and the directory
given below points to the project's parent POM; by definition, there
won't be any JARs produced for the parent POM.

You will have to look into the individual sub-modules such as xml, etc.
to find the JARS. Better even, simply start using Maven and have Maven
downloaded all dependencies into your local Maven repository.

Cheers
Werner

James Cowan wrote:
Hi Werner

There do not seem to be any jar files in the codehaus repository here:

http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/

James

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email






---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to