db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bouschen <mbo.t...@spree.de>
Subject Re: Trouble changing groupId
Date Tue, 17 Jan 2006 11:25:43 GMT
Hi Craig,

it looks like you renamed the property jdo.jdoapi.jarfile to 
jdo.api.jarfile, but missed to adapt some places where the property is 
used. One of these places was setting the classpath for fsuid2.build and 
the jdo api jarfile was not included in the classpath.

Question: there is a difference in the setting of the value for 
<currentVersion> in the project.xml files. Some of them use 'SNAPSHOT', 
some other '2.0-SNAPSHOT'. I think 'SNAPSHOT' is the correct setting.

Attached you find my changes (groupId-mbo.patch) that fix the property 
naming and the currentVersion setting. I'm not sure whether you can run 
my patch on a workspace that already contains your changes.

Regards Michael

> Hey,
> 
> I got this problem that I can't figure out after changing groupId from 
> apache-jdo to javax.jdo and org.apache.jdo.
> 
> Any clues?
> 
> Thanks,
> 
> Craig
> 
> 
> ------------------------------------------------------------------------
> 
> 
> [Bruiser:~/apachejdo/jdo/trunk] clr% maven fostore20.build
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0.1
> 
> build:start:
> 
> fostore20.build:
> multiproject:projects-init:
>     [echo] Gathering project list
> Starting the reactor...
> Our processing order:
> JDO2 API
> Binary Tree for FOStore JDO
> JDO2 Implementation (Core)
> JDO2 Implementation (Enhancer)
> JDO2 Implementation (Runtime)
> JDO2 Implementation (Query)
> JDO2 Implementation (FOStore)
> +----------------------------------------
> | Gathering project list JDO2 API
> | Memory: 4M/6M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list Binary Tree for FOStore JDO
> | Memory: 4M/6M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list JDO2 Implementation (Core)
> | Memory: 4M/6M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list JDO2 Implementation (Enhancer)
> | Memory: 4M/6M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list JDO2 Implementation (Runtime)
> | Memory: 4M/6M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list JDO2 Implementation (Query)
> | Memory: 4M/6M
> +----------------------------------------
> +----------------------------------------
> | Gathering project list JDO2 Implementation (FOStore)
> | Memory: 4M/6M
> +----------------------------------------
> Starting the reactor...
> Our processing order:
> JDO2 API
> Binary Tree for FOStore JDO
> JDO2 Implementation (Core)
> JDO2 Implementation (Enhancer)
> JDO2 Implementation (Runtime)
> JDO2 Implementation (Query)
> JDO2 Implementation (FOStore)
> +----------------------------------------
> | Executing build JDO2 API
> | Memory: 4M/6M
> +----------------------------------------
> 
> multiproject:goal:
> build:start:
> 
> build:
> xdoc:init:
> 
> maven-javadoc-plugin:report:
>     [mkdir] Created dir: 
> /Users/clr/apachejdo/jdo/trunk/api20/target/javadoc/src
>     [javadoc] Generating Javadoc
>     [javadoc] Javadoc execution
>     [javadoc] Loading source files for package javax.jdo...
>     [javadoc] Loading source files for package javax.jdo.datastore...
>     [javadoc] Loading source files for package javax.jdo.identity...
>     [javadoc] Loading source files for package javax.jdo.listener...
>     [javadoc] Loading source files for package javax.jdo.spi...
>     [javadoc] Constructing Javadoc information...
>     [javadoc] Standard Doclet version 1.5.0_05
>     [javadoc] Building tree for all the packages and classes...
>     [javadoc] Generating 
> /Users/clr/apachejdo/jdo/trunk/api20/target/docs/apidocs/serialized-form.html...
>     [javadoc] Copying file 
> /Users/clr/.maven/cache/maven-javadoc-plugin-1.7/plugin-resources/stylesheet.css 
> to file 
> /Users/clr/apachejdo/jdo/trunk/api20/target/docs/apidocs/stylesheet.css...
>     [javadoc] Building index for all the packages and classes...
>     [javadoc] Building index for all classes...
>     [delete] Deleting directory 
> /Users/clr/apachejdo/jdo/trunk/api20/target/javadoc/src
> 
> javadoc:
> 
> default:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/api20/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
> 
> test:test:
>     [junit] Running javax.jdo.identity.ByteIdentityTest
>     [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.242 sec
>     [junit] Running javax.jdo.identity.CharIdentityTest
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 0.106 sec
>     [junit] Running javax.jdo.identity.IntIdentityTest
>     [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.571 sec
>     [junit] Running javax.jdo.identity.LongIdentityTest
>     [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.04 sec
>     [junit] Running javax.jdo.identity.ObjectIdentityTest
>     [junit] Tests run: 32, Failures: 0, Errors: 0, Time elapsed: 0.199 sec
>     [junit] Running javax.jdo.identity.ShortIdentityTest
>     [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.112 sec
>     [junit] Running javax.jdo.identity.SingleFieldIdentityTest
>     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.107 sec
>     [junit] Running javax.jdo.identity.StringIdentityTest
>     [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.051 sec
>     [junit] Running javax.jdo.JDOHelperTest
>     [junit] Tests run: 32, Failures: 0, Errors: 0, Time elapsed: 0.382 sec
>     [junit] Running javax.jdo.listener.InstanceLifecycleEventTest
>     [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.089 sec
>     [junit] Running javax.jdo.spi.JDOImplHelperTest
>     [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.132 sec
>     [junit] Running javax.jdo.spi.StateInterrogationTest
>     [junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed: 0.031 sec
> Installing snapshot 
> of:'/Users/clr/apachejdo/jdo/trunk/api20/target/jdo2-api-2.0-SNAPSHOT.jar''
> Copying: from 
> '/Users/clr/apachejdo/jdo/trunk/api20/target/jdo2-api-2.0-SNAPSHOT.jar' 
> to: '/Users/clr/.maven/repository/javax.jdo/jars/jdo2-api-SNAPSHOT.jar'
> Copying: from 
> '/Users/clr/apachejdo/jdo/trunk/api20/target/jdo2-api-2.0-SNAPSHOT.jar' 
> to: 
> '/Users/clr/.maven/repository/javax.jdo/jars/jdo2-api-20060117.042035.jar'
> Copying: from '/Users/clr/apachejdo/jdo/trunk/api20/project.xml' to: 
> '/Users/clr/.maven/repository/javax.jdo/poms/jdo2-api-SNAPSHOT.pom'
> Copying: from '/Users/clr/apachejdo/jdo/trunk/api20/project.xml' to: 
> '/Users/clr/.maven/repository/javax.jdo/poms/jdo2-api-20060117.042035.pom'
> +----------------------------------------
> | Executing build Binary Tree for FOStore JDO
> | Memory: 9M/11M
> +----------------------------------------
> 
> jar:jar:
> 
> jar:install-snapshot:
> 
> 
> 
> build:end:
> 
> build:start:
> 
> build:
> default:
> java:prepare-filesystem:
>     [echo] Using cvsroot :pserver:anoncvs@cvs.netbeans.org 
> <mailto:anoncvs@cvs.netbeans.org>:/cvs
>     [cvs] Using cvs passfile: /Users/clr/.cvspass
>     [cvs] cvs server: Updating mdr/src/org/netbeans/mdr/persistence
>     [cvs] Using cvs passfile: /Users/clr/.cvspass
>     [cvs] cvs server: Updating 
> mdr/src/org/netbeans/mdr/persistence/btreeimpl
>     [cvs] cvs server: Updating 
> mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreeindex
>     [cvs] cvs server: Updating 
> mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreestorage
>     [cvs] Using cvs passfile: /Users/clr/.cvspass
> 
> java:compile:
>     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/btree/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
>     [echo] No test source files to compile.
> 
> test:test:
>     [echo] No tests to run.
> Copying: from 
> '/Users/clr/apachejdo/jdo/trunk/btree/target/jdo-btree-1.1.jar' to: 
> '/Users/clr/.maven/repository/org.apache.jdo/jars/jdo-btree-1.1.jar'
> Copying: from '/Users/clr/apachejdo/jdo/trunk/btree/project.xml' to: 
> '/Users/clr/.maven/repository/org.apache.jdo/poms/jdo-btree-1.1.pom'
> +----------------------------------------
> | Executing build JDO2 Implementation (Core)
> | Memory: 9M/11M
> +----------------------------------------
> 
> jar:jar:
> 
> jar:install:
> 
> 
> 
> build:end:
> 
> build:start:
> 
> build:
> default:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to /Users/clr/apachejdo/jdo/trunk/core20/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
>     [echo] No test source files to compile.
> 
> test:test:
>     [echo] No tests to run.
> 
> jar:jar:
>     [jar] Building jar: 
> /Users/clr/apachejdo/jdo/trunk/core20/target/jdo2-core-SNAPSHOT.jar
> Copying: from 
> '/Users/clr/apachejdo/jdo/trunk/core20/target/jdo2-core-SNAPSHOT.jar' 
> to: 
> '/Users/clr/.maven/repository/org.apache.jdo/jars/jdo2-core-SNAPSHOT.jar'
> Copying: from '/Users/clr/apachejdo/jdo/trunk/core20/project.xml' to: 
> '/Users/clr/.maven/repository/org.apache.jdo/poms/jdo2-core-SNAPSHOT.pom'
> +----------------------------------------
> | Executing build JDO2 Implementation (Enhancer)
> | Memory: 10M/11M
> +----------------------------------------
> Attempting to download jdo2-api-SNAPSHOT.jar.
> Artifact /javax.jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in remote 
> repository, but it exists locally
> Attempting to download jdo2-core-2.0-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-core-2.0-SNAPSHOT.jar doesn't exists 
> in remote repository, but it exists locally
> 
> jar:install:
> 
> 
> 
> build:end:
> 
> build:start:
> 
> build:
> default:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to 
> /Users/clr/apachejdo/jdo/trunk/enhancer20/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
>     [echo] No test source files to compile.
> 
> test:test:
>     [echo] No tests to run.
> Copying: from 
> '/Users/clr/apachejdo/jdo/trunk/enhancer20/target/jdo2-enhancer-SNAPSHOT.jar' 
> to: 
> '/Users/clr/.maven/repository/org.apache.jdo/jars/jdo2-enhancer-SNAPSHOT.jar'
> Copying: from '/Users/clr/apachejdo/jdo/trunk/enhancer20/project.xml' 
> to: 
> '/Users/clr/.maven/repository/org.apache.jdo/poms/jdo2-enhancer-SNAPSHOT.pom'
> +----------------------------------------
> | Executing build JDO2 Implementation (Runtime)
> | Memory: 10M/11M
> +----------------------------------------
> Attempting to download jdo2-api-SNAPSHOT.jar.
> Artifact /javax.jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in remote 
> repository, but it exists locally
> Attempting to download jdo2-core-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in 
> remote repository, but it exists locally
> 
> jar:jar:
> 
> jar:install:
> 
> 
> 
> build:end:
> 
> build:start:
> 
> build:
> default:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to 
> /Users/clr/apachejdo/jdo/trunk/runtime20/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
>     [echo] No test source files to compile.
> 
> test:test:
>     [echo] No tests to run.
> Copying: from 
> '/Users/clr/apachejdo/jdo/trunk/runtime20/target/jdo2-runtime-SNAPSHOT.jar' 
> to: 
> '/Users/clr/.maven/repository/org.apache.jdo/jars/jdo2-runtime-SNAPSHOT.jar'
> Copying: from '/Users/clr/apachejdo/jdo/trunk/runtime20/project.xml' to: 
> '/Users/clr/.maven/repository/org.apache.jdo/poms/jdo2-runtime-SNAPSHOT.pom'
> +----------------------------------------
> | Executing build JDO2 Implementation (Query)
> | Memory: 7M/13M
> +----------------------------------------
> Attempting to download jdo2-api-SNAPSHOT.jar.
> Artifact /javax.jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in remote 
> repository, but it exists locally
> Attempting to download jdo2-core-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in 
> remote repository, but it exists locally
> Attempting to download jdo2-runtime-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-runtime-SNAPSHOT.jar doesn't exists 
> in remote repository, but it exists locally
> 
> jar:jar:
> 
> jar:install:
> 
> 
> 
> build:end:
> 
> build:start:
> 
> build:
> default:
> java:prepare-filesystem:
> 
> java:compile:
> antlr.compile:
> 
>     [echo] Compiling to 
> /Users/clr/apachejdo/jdo/trunk/query20/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
>     [echo] No test source files to compile.
> 
> test:test:
>     [echo] No tests to run.
> Copying: from 
> '/Users/clr/apachejdo/jdo/trunk/query20/target/jdo2-query-SNAPSHOT.jar' 
> to: 
> '/Users/clr/.maven/repository/org.apache.jdo/jars/jdo2-query-SNAPSHOT.jar'
> Copying: from '/Users/clr/apachejdo/jdo/trunk/query20/project.xml' to: 
> '/Users/clr/.maven/repository/org.apache.jdo/poms/jdo2-query-SNAPSHOT.pom'
> +----------------------------------------
> | Executing build JDO2 Implementation (FOStore)
> | Memory: 8M/13M
> +----------------------------------------
> Attempting to download jdo2-api-SNAPSHOT.jar.
> Artifact /javax.jdo/jars/jdo2-api-SNAPSHOT.jar doesn't exists in remote 
> repository, but it exists locally
> Attempting to download jdo2-runtime-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-runtime-SNAPSHOT.jar doesn't exists 
> in remote repository, but it exists locally
> Attempting to download jdo2-core-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-core-SNAPSHOT.jar doesn't exists in 
> remote repository, but it exists locally
> Attempting to download jdo2-enhancer-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-enhancer-SNAPSHOT.jar doesn't exists 
> in remote repository, but it exists locally
> Attempting to download jdo2-query-SNAPSHOT.jar.
> Artifact /org.apache.jdo/jars/jdo2-query-SNAPSHOT.jar doesn't exists in 
> remote repository, but it exists locally
> 
> jar:jar:
> 
> jar:install:
> 
> 
> 
> build:end:
> 
> build:start:
> 
> build:
> default:
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to 
> /Users/clr/apachejdo/jdo/trunk/fostore20/target/classes
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
> 
> test:test:
> pcclasses:
> 
> testjar.build:
>     [delete] Deleting: 
> /Users/clr/apachejdo/jdo/trunk/fostore20/target/test-classes/jdo-ri-tests.jar
>     [jar] Building jar: 
> /Users/clr/apachejdo/jdo/trunk/fostore20/target/test-classes/jdo-ri-tests.jar
> 
> fsuid2.build:
>     [java] aborted with errors.
>     [java] java.lang.RuntimeException: Cannot load javax/jdo/jdo.dtd, 
> because the file does not exist in the jdo.jar file, or the JDOParser 
> class is not granted permission to read this file.  The metadata .xml 
> file contained PUBLIC=-//Sun Microsystems, Inc.//DTD Java Data Objects 
> Metadata 1.0//EN SYSTEM=http://java.sun.com/dtd/jdo_1_0.dtd.
>     [java]      at 
> org.apache.jdo.impl.model.jdo.xml.JDOParser$JDOEntityResolver.resolveEntity(JDOParser.java:301)
>     [java]      at 
> com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:148)
>     [java]      at 
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:701)
>     [java]      at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1019)
>     [java]      at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>     [java]      at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
>     [java]      at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>     [java]      at 
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>     [java]      at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
>     [java]      at 
> org.apache.jdo.impl.model.jdo.xml.JDOParser.parse(JDOParser.java:245)
>     [java]      at 
> org.apache.jdo.impl.model.jdo.xml.JDOParser.parse(JDOParser.java:184)
>     [java]      at 
> org.apache.jdo.impl.model.jdo.JDOModelImplDynamic.loadXMLResource(JDOModelImplDynamic.java:603)
>     [java]      at 
> org.apache.jdo.impl.model.jdo.JDOModelImplDynamic.lookupXMLMetadata(JDOModelImplDynamic.java:564)
>     [java]      at 
> org.apache.jdo.impl.model.jdo.JDOModelImplDynamic.getJDOClass(JDOModelImplDynamic.java:303)
>     [java]      at 
> org.apache.jdo.impl.model.jdo.JDOModelImplDynamic.getJDOClass(JDOModelImplDynamic.java:266)
>     [java]      at 
> org.apache.jdo.impl.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.getJDOClass(EnhancerMetaDataJDOModelImpl.java:171)
>     [java]      at 
> org.apache.jdo.impl.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.isPersistenceCapableClass(EnhancerMetaDataJDOModelImpl.java:320)
>     [java]      at 
> org.apache.jdo.impl.enhancer.core.Analyzer.initPersistenceType(Analyzer.java:620)
>     [java]      at 
> org.apache.jdo.impl.enhancer.core.Analyzer.scan(Analyzer.java:542)
>     [java]      at 
> org.apache.jdo.impl.enhancer.core.Controller.scan(Controller.java:178)
>     [java]      at 
> org.apache.jdo.impl.enhancer.core.Controller.enhanceClass(Controller.java:133)
>     [java]      at 
> org.apache.jdo.impl.enhancer.core.EnhancerFilter.enhanceClassFile1(EnhancerFilter.java:193)
>     [java]      at 
> org.apache.jdo.impl.enhancer.core.EnhancerFilter.enhanceClassFile(EnhancerFilter.java:240)
>     [java]      at 
> org.apache.jdo.enhancer.Main.enhanceClassFile(Main.java:678)
>     [java]      at 
> org.apache.jdo.enhancer.Main.enhanceInputFiles(Main.java:634)
>     [java]      at org.apache.jdo.enhancer.Main.process(Main.java:178)
>     [java]      at org.apache.jdo.enhancer.Main.main(Main.java:138)
>     [java] Fatal error while enhancing
>     [java] org.apache.jdo.impl.enhancer.EnhancerFatalError: JDO 
> ENHANCER: An internal error occurred while enhancing input class; 
> detailed message: Cannot load javax/jdo/jdo.dtd, because the file does 
> not exist in the jdo.jar file, or the JDOParser class is not granted 
> permission to read this file.  The metadata .xml file contained 
> PUBLIC=-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 1.0//EN 
> SYSTEM=http://java.sun.com/dtd/jdo_1_0.dtd.
> 
> BUILD FAILED
> File...... 
> /Users/clr/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
> Element... maven:reactor
> Line...... 217
> Column.... 9
> Unable to obtain goal [build] -- 
> /Users/clr/apachejdo/jdo/trunk/fostore20/maven.xml:322:58: <ant> Java 
> returned: 1
> Total time: 1 minutes 25 seconds
> Finished at: Mon Jan 16 20:21:31 PST 2006
> 
> Craig Russell
> 
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 
> 408 276-5638 mailto:Craig.Russell@sun.com
> 
> P.S. A good JDO? O, Gasp!
> 
> 
> =


-- 
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin			

Mime
View raw message