Hi Kurt,

I just built successfully locally here on my laptop, using Java 5.0. I will try to build later on on Java 6.0 just to verify that the build is (not) broken, but it just occurred to me that the path where you have the Castor sources stored has a 'My Documents' in it.

Just for the sake of it, can I ask you to switch to a directory where there's no 'space' in its directory path ?

Regards
Werner

On 22.07.2010 22:52, KURT PETERS wrote:

Yes, I'm using java 6.  I just tried the svn instead of the release code and got "test 
failures" when packaging -- once again the "compile" says:below.  Which release tag 
would you suggest?
Kurt



[code]

[INFO] Castor XML - Integration tests ........................ SUCCESS [2.750s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 37 seconds
[INFO] Finished at: Thu Jul 22 14:47:55 MDT 2010
[INFO] Final Memory: 27M/63M
[INFO] ------------------------------------------------------------------------
C:\Documents and Settings\kpeters\My Documents\javalibs\castor-1.3.1-src>mvn pac
kage
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Castor
[INFO]   Castor CORE - Core code/functioanlity
[INFO]   Castor XML - core
[INFO]   Castor XML - XML diff
[INFO]   Castor XML - schema
[INFO]   Castor JDO - Persistence framework
[INFO]   Castor XML - Code generator
[INFO]   Castor DDL generator
[INFO]   Castor XML - Ant tasks for XML code generator
[INFO]   Castor XML - test suite framework code
[INFO]   Castor XML - Maven Mojos for executing XMLCTF tests
[INFO]   Castor JDO - Functional test suite
[INFO]   Castor XML - Integration tests for JDO extensions
[INFO]   Castor JDO - Integration tests for JPA annotation support
[INFO]   Castor XML - Integration tests
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor CORE - Core code/functioanlity
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
uild is platform dependent!
[INFO] Compiling 8 source files to C:\Documents and Settings\kpeters\My Document
s\javalibs\castor-1.3.1-src\core\target\test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Documents and Settings\kpeters\My Documents
\javalibs\castor-1.3.1-src\core\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.castor.core.nature.PropertyHolderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.015 sec
Running org.castor.core.annotationprocessing.BaseAnnotationProcessingServiceTest

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.util.CycleBreakerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.172 sec
Running org.castor.core.nature.BaseNatureTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.castor.core.annotationprocessing.BaseTargetAwareAnnotationProcessing
ServiceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.core.nature.TestNature
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec

Results :

Tests run: 26, Failures: 0, Errors: 0, Skipped: 2

[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: C:\Documents and Settings\kpeters\My Documents\javalibs\cas
tor-1.3.1-src\core\target\castor-core-1.3.2-SNAPSHOT.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] Building jar: C:\Documents and Settings\kpeters\My Documents\javalibs\cas
tor-1.3.1-src\core\target\castor-core-1.3.2-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor XML - core
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\xml\target\generated-sources\castor ...
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 25 resources
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
uild is platform dependent!
[INFO] Compiling 22 source files to C:\Documents and Settings\kpeters\My Documen
ts\javalibs\castor-1.3.1-src\xml\target\test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Documents and Settings\kpeters\My Documents
\javalibs\castor-1.3.1-src\xml\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.castor.util.TestBase64Encoder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running org.castor.util.TestIdentityMap
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.exolab.castor.util.TestDTDResolver
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.castor.util.StringUtilTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.exolab.castor.types.TestTime
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.exolab.castor.xml.SetPropertyXmlNamingTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.328 sec
Running org.castor.util.TestIdentitySet
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.mapping.TestMappingLoaderRegistry
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.exolab.castor.xml.util.XMLClassDescriptorResolverImplThreadSafetyTes
t
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.797 sec
Running org.exolab.castor.xml.util.XMLClassDescriptorResolverImplTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.util.TestBase64Decoder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.castor.xml.JavaNamingTest
[main] - Package name: . is not valid
[main] - Package name: .org is not valid
[main] - Package name: org. is not valid
[main] - Package name: . is not valid
[main] - Package name: .org is not valid
[main] - Package name: org. is not valid
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.exolab.castor.xml.validators.IntegerValidatorTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running org.castor.util.TestHex
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.castor.xml.XMLPropertiesTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.exolab.castor.xml.XMLContextTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.204 sec
Running org.exolab.castor.xml.TestUnmarshaller
[main] - InternalContext must not be null
[main] - InternalContext must not be null
[main] - InternalContext must not be null
[main] - InternalContext must not be null
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec

Results :

Tests run: 95, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: C:\Documents and Settings\kpeters\My Documents\javalibs\cas
tor-1.3.1-src\xml\target\castor-xml-1.3.2-SNAPSHOT.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\xml\target\generated-sources\castor ...
[INFO] [source:jar {execution: default}]
[INFO] Building jar: C:\Documents and Settings\kpeters\My Documents\javalibs\cas
tor-1.3.1-src\xml\target\castor-xml-1.3.2-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor XML - XML diff
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Documents and Settings\kpeters\My
Documents\javalibs\castor-1.3.1-src\diff\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: C:\Documents and Settings\kpeters\My Documents\javalibs\cas
tor-1.3.1-src\diff\target\castor-xml-diff-1.3.2-SNAPSHOT.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] Building jar: C:\Documents and Settings\kpeters\My Documents\javalibs\cas
tor-1.3.1-src\diff\target\castor-xml-diff-1.3.2-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor XML - schema
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\schema\target\generated-sources\castor ...
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 37 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
uild is platform dependent!
[INFO] Compiling 12 source files to C:\Documents and Settings\kpeters\My Documen
ts\javalibs\castor-1.3.1-src\schema\target\test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Documents and Settings\kpeters\My Documents
\javalibs\castor-1.3.1-src\schema\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.castor.xml.schema.simpleType.SimpleTypeTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.531 sec<<<  FA
ILURE!
Running org.exolab.castor.xml.schema.reader.SchemaUnmarshallerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.172 sec
Running org.castor.xml.schema.writer.SimpleTypeTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
Running org.castor.xml.schema.writer.GroupTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running org.castor.xml.schema.complexType.ComplexTypeTest
Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.047 sec<<<  FA
ILURE!
Running org.exolab.castor.xml.dtd.ConverterTest
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema";><element name="mapping"><comple
xType><sequence><element ref="description"/></sequence></complexType></element><
element name="description"><complexType mixed="true"/></element></schema>
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:test="http://test"; target
Namespace="http://test";><element name="mapping"><complexType><sequence><element
ref="test:description"/></sequence></complexType></element><element name="descri
ption"><complexType mixed="true"/></element></schema>
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running org.castor.xml.schema.writer.NamespaceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running org.castor.xml.schema.namespace.NamespaceTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.031 sec<<<  FA
ILURE!
Running org.castor.xml.schema.writer.ComplexTypeTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec

Results :

Tests in error:
   testSimpleType(org.castor.xml.schema.simpleType.SimpleTypeTest)
   testAttributeCreation(org.castor.xml.schema.simpleType.SimpleTypeTest)
   testSingleAttribute(org.castor.xml.schema.complexType.ComplexTypeTest)
   testSequenceAttribute(org.castor.xml.schema.complexType.ComplexTypeTest)
   testAllOrderAttribute(org.castor.xml.schema.complexType.ComplexTypeTest)
   testChoiceAttribute(org.castor.xml.schema.complexType.ComplexTypeTest)
   testExtension(org.castor.xml.schema.complexType.ComplexTypeTest)
   
testCreateElementForComplexType(org.castor.xml.schema.complexType.ComplexTypeT
est)
   testSingleNamespace(org.castor.xml.schema.namespace.NamespaceTest)
   testMultipleNamespace(org.castor.xml.schema.namespace.NamespaceTest)

Tests run: 33, Failures: 0, Errors: 10, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to C:\Documents and Settings\kpeters\My Documents\javalibs\castor-1
.3.1-src\schema\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Thu Jul 22 14:48:49 MDT 2010
[INFO] Final Memory: 28M/50M
[INFO] ------------------------------------------------------------------------
C:\Documents and Settings\kpeters\My Documents\javalibs\castor-1.3.1-src>



[/code]




From: [email protected]
Date: Thu, 22 Jul 2010 15:18:37 +0200
To: [email protected]
Subject: Re: [castor-user] compiling source code


Hey Kurt,


as far as I know, over the last couple of months there has been a lot of 
refactoring in this particular area of the source code.
Are you using Java 6? It seems to me as if your error is caused by using Java 
6, since the setNClob(..) methods have been introduced to PreparedStatement 
with version 6 [1].
I remember that building Castor worked fine for me with SE6 some time ago. 
Also, (to the best of my knowledge - as the Bamboo server is currently under 
maintenance) I think some of the continuous integration builds are broken for 
some time past.


If you do not depend on the source in trunk, please consider a checkout from 
one of the (release) tags which can be found at [2] or simply switching back to 
Java 5.


Best,
Lukas


[1] JavaDoc Java SE 6, PreparedStatement. URL: 
http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/sql/PreparedStatement.html#setNClob(int,
 java.io.Reader)
[2] http://svn.codehaus.org/castor/castor/tags/


Am 22.07.2010 um 14:40 schrieb KURT PETERS:

I seem to be able to compile fine with "mvn compile", but when I "mvn package" 
I get a compile error.

Why would that be?  See below.
Kurt

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Castor ................................................ SUCCESS [0.187s]
[INFO] Castor CORE - Core code/functioanlity ................. SUCCESS [0.703s]
[INFO] Castor XML - core ..................................... SUCCESS [0.391s]
[INFO] Castor XML - XML diff ................................. SUCCESS [0.000s]
[INFO] Castor XML - schema ................................... SUCCESS [0.047s]
[INFO] Castor JDO - Persistence framework .................... SUCCESS [0.125s]
[INFO] Castor XML - Code generator ........................... SUCCESS [0.110s]
[INFO] Castor DDL generator .................................. SUCCESS [0.062s]
[INFO] Castor XML - Ant tasks for XML code generator ......... SUCCESS [0.000s]
[INFO] Castor XML - test suite framework code ................ SUCCESS [0.047s]
[INFO] Castor XML - Maven Mojos for executing XMLCTF tests ... SUCCESS [1.094s]
[INFO] Castor CPA - JUnit test archetype ..................... SUCCESS [0.015s]
[INFO] Castor XML - Code generator JUnit test archetype ...... SUCCESS [0.032s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Jul 22 06:37:34 MDT 2010
[INFO] Final Memory: 17M/31M
[INFO] ------------------------------------------------------------------------
C:\Documents and Settings\kpeters\My Documents\javalibs\castor-1.3.1-src\castor-
1.3.1>mvn package
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Castor
[INFO]   Castor CORE - Core code/functioanlity
[INFO]   Castor XML - core
[INFO]   Castor XML - XML diff
[INFO]   Castor XML - schema
[INFO]   Castor JDO - Persistence framework
[INFO]   Castor XML - Code generator
[INFO]   Castor DDL generator
[INFO]   Castor XML - Ant tasks for XML code generator
[INFO]   Castor XML - test suite framework code
[INFO]   Castor XML - Maven Mojos for executing XMLCTF tests
[INFO]   Castor CPA - JUnit test archetype
[INFO]   Castor XML - Code generator JUnit test archetype
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor CORE - Core code/functioanlity
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Documents and Settings\kpeters\My Documents
\javalibs\castor-1.3.1-src\castor-1.3.1\core\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.castor.core.nature.PropertyHolderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.016 sec
Running org.castor.core.annotationprocessing.BaseAnnotationProcessingServiceTest

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.castor.core.nature.BaseNatureTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.core.annotationprocessing.BaseTargetAwareAnnotationProcessing
ServiceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.core.nature.TestNature
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec

Results :

Tests run: 25, Failures: 0, Errors: 0, Skipped: 2

[INFO] [jar:jar {execution: default-jar}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor XML - core
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\castor-1.3.1\xml\target\generated-sources\castor ...
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 23 resources
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Documents and Settings\kpeters\My Documents
\javalibs\castor-1.3.1-src\castor-1.3.1\xml\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.castor.util.TestBase64Encoder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.castor.util.TestIdentityMap
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.exolab.castor.util.TestDTDResolver
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.util.StringUtilTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.exolab.castor.types.TestTime
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.exolab.castor.xml.SetPropertyXmlNamingTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
Running org.castor.util.TestIdentitySet
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.castor.mapping.TestMappingLoaderRegistry
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.exolab.castor.xml.util.XMLClassDescriptorResolverImplThreadSafetyTes
t
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.719 sec
Running org.exolab.castor.xml.util.XMLClassDescriptorResolverImplTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.castor.util.TestBase64Decoder
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.castor.xml.JavaNamingTest
[main] - Package name: . is not valid
[main] - Package name: .org is not valid
[main] - Package name: org. is not valid
[main] - Package name: . is not valid
[main] - Package name: .org is not valid
[main] - Package name: org. is not valid
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.util.TestHex
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.castor.xml.XMLPropertiesTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running org.exolab.castor.xml.XMLContextTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec
Running org.exolab.castor.xml.TestUnmarshaller
[main] - InternalContext must not be null
[main] - InternalContext must not be null
[main] - InternalContext must not be null
[main] - InternalContext must not be null
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec

Results :

Tests run: 85, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\castor-1.3.1\xml\target\generated-sources\castor ...
[INFO] [source:jar {execution: default}]
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor XML - XML diff
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Documents and Settings\kpeters\My
Documents\javalibs\castor-1.3.1-src\castor-1.3.1\diff\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jar:jar {execution: default-jar}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: default}]
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor XML - schema
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\castor-1.3.1\schema\target\generated-sources\castor ...
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 23 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: C:\Documents and Settings\kpeters\My Documents
\javalibs\castor-1.3.1-src\castor-1.3.1\schema\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running org.exolab.castor.xml.schema.reader.SchemaUnmarshallerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec
Running org.castor.xml.schema.writer.SimpleTypeTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec
Running org.castor.xml.schema.writer.GroupTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running org.castor.xml.schema.writer.NamespaceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.castor.xml.schema.writer.ComplexTypeTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec

Results :

Tests run: 21, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\castor-1.3.1\schema\target\generated-sources\castor ...
[INFO] [source:jar {execution: default}]
[INFO] ------------------------------------------------------------------------
[INFO] Building Castor JDO - Persistence framework
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [castor:generate {execution: default}]
[INFO] Nothing to process - all xsds are up to date
[INFO] Adding resource C:\Documents and Settings\kpeters\My Documents\javalibs\c
astor-1.3.1-src\castor-1.3.1\cpa\target\generated-sources\castor ...
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
uild is platform dependent!
[INFO] Compiling 46 source files to C:\Documents and Settings\kpeters\My Documen
ts\javalibs\castor-1.3.1-src\castor-1.3.1\cpa\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \Documents and Settings\kpeters\My Documents\javalibs\castor-1.3.1-src\c
astor-1.3.1\cpa\src\test\java\org\castor\cpa\persistence\sql\query\PreparedState
mentMock.java:[47,13] org.castor.cpa.persistence.sql.query.PreparedStatementMock
  is not abstract and does not override abstract method 
setNClob(int,java.io.Read
er) in java.sql.PreparedStatement

[INFO] 1error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
\Documents and Settings\kpeters\My Documents\javalibs\castor-1.3.1-src\castor-1.
3.1\cpa\src\test\java\org\castor\cpa\persistence\sql\query\PreparedStatementMock
.java:[47,13] org.castor.cpa.persistence.sql.query.PreparedStatementMock is not
abstract and does not override abstract method setNClob(int,java.io.Reader) in j
ava.sql.PreparedStatement


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Thu Jul 22 06:38:02 MDT 2010
[INFO] Final Memory: 23M/41M
[INFO] ------------------------------------------------------------------------
C:\Documents and Settings\kpeters\My Documents\javalibs\castor-1.3.1-src\castor-
1.3.1>



From: [email protected]
Date: Wed, 21 Jul 2010 21:50:44 +0200
To: [email protected]
Subject: Re: [castor-user] compiling source code

First of all, you should download and install it, if its not on your system 
yet. Have a look at: http://maven.apache.org/ (Linux and OS X have ready 
packages for fetching it).
Also study some documentation before using it (you will need to understand how 
the maven build circle works). It will help you: 
http://maven.apache.org/guides/index.html


The largest reference is the maven book: 
http://www.sonatype.com/products/maven/documentation/book-defguide  ...


After that you can use the maven commands directly in castor's root directory 
(e.g. mvn clean compile - for compilation).
There is no difference in using maven with castor or any other project.


But I really recommend to get a little familiar with it before. There are lots 
of documents and examples online.


cheers,
daniel






Am 21.07.2010 um 21:35 schrieb KURT PETERS:

I'm not familiar with maven.  Have any tips on how to use it with castor?
kurt






--------------
http://soup.cyphorious.net
http://cyphorious.net



                                        

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

   http://xircles.codehaus.org/manage_email


Reply via email to