dolfdijkstra / gst-foundation

Sites Global Foundation Project
Apache License 2.0
13 stars 14 forks source link

Installation of GSF jars into local maven repo is broken on .8 (cs-cache jar is incorrect) #20

Open tfield opened 10 years ago

tfield commented 10 years ago

Last login: Thu Nov 21 14:41:58 on ttys001 Oberon-III:~ tfield$ mkdir tmp Oberon-III:~ tfield$ cd tmp Oberon-III:tmp tfield$ git clone https://github.com/dolfdijkstra/gst-foundation Cloning into 'gst-foundation'... remote: Counting objects: 29903, done. remote: Compressing objects: 100% (6884/6884), done. remote: Total 29903 (delta 17740), reused 29701 (delta 17538) Receiving objects: 100% (29903/29903), 20.34 MiB | 637.00 KiB/s, done. Resolving deltas: 100% (17740/17740), done. Checking connectivity... done Oberon-III:tmp tfield$ mv ~/.m2 .m2-disabled Oberon-III:tmp tfield$ cd ~/Desktop/WCS_Sites/Sites Oberon-III:Sites tfield$ ./maven-contentserver-jars.sh Please provide the version of Content Server and press [ENTER]: 11.1.1.8.0 Registering assetapi-impl.jar Registering assetapi.jar Registering assetframework.jar Registering assetmaker.jar Registering basic.jar Registering batch.jar Registering catalog.jar Registering cs-core.jar Registering cs.jar Registering cscommerce.jar Registering directory.jar Registering firstsite-filter.jar Registering firstsite-uri.jar Registering flame.jar Registering framework.jar Registering gator.jar Registering gatorbulk.jar Registering ics.jar Registering logging.jar Registering lucene-search.jar Registering MSXML.jar Registering rules.jar Registering sampleasset.jar Registering sseed.jar Registering sserve.jar Registering transformer.jar Registering visitor.jar Registering xcelerate.jar Oberon-III:tmp tfield$ cd ~/tmp/gst-foundation/ Oberon-III:gst-foundation tfield$ ./package.sh 11.6.2-SNAPSHOT The GSF artifacts are not present in your maven maven repository. This is expected if you are building for the first time on this computer. Starting initial build

[ERROR] Failed to execute goal on project gsf-cs-all: Could not resolve dependencies for project com.fatwire.gst:gsf-cs-all:pom:11.6.2-SNAPSHOT: Could not find artifact com.fatwire.cs:cs-cache:jar:11.1.1.8.0 in central (http://repo1.maven.org/maven2) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :gsf-cs-all finished initial build downloading all artifacts

An error occured. In many case this is caused by missing artifacts from the local maven repository. Try running (cd gsf-build-tools && mvn -q -Dmaven.test.skip=true install && cd .. && mvn install && mvn -P '!samples' site) mvn -o site:stage -P '!samples' -DstagingDirectory=/tmp/gsf-deploy/gsf-11.6.2-SNAPSHOT/site and then try to run package.sh again. the output of the failed build is propably in /tmp/mvn-gsf.out. Oberon-III:gst-foundation tfield$ Oberon-III:gst-foundation tfield$ Oberon-III:gst-foundation tfield$ Oberon-III:gst-foundation tfield$ Oberon-III:gst-foundation tfield$ cd ~/Desktop/WCS_Sites/Sites Oberon-III:Sites tfield$ cp cs-cache/cs-cache-11.1.1.8.0.jar . Oberon-III:Sites tfield$ mv cs-cache-11.1.1.8.0.jar cs-cache.jar Oberon-III:Sites tfield$ mvn -B --quiet install:install-file -Dfile=cs-cache.jar -DgroupId=com.fatwire.cs -DartifactId=cs-cache -Dversion=11.1.1.8.0 -Dpackaging=jar -DgeneratePom=true Oberon-III:Sites tfield$ cd ~/tmp/ Oberon-III:tmp tfield$ cd gst-foundation/ Oberon-III:gst-foundation tfield$ ./package.sh 11.6.2-SNAPSHOT The GSF artifacts are not present in your maven maven repository. This is expected if you are building for the first time on this computer. Starting initial build


T E S T S

There are no tests to run.

Results :

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

[ERROR] Error fetching link: /Users/tfield/tmp/gst-foundation/gsf-cs-all/target/apidocs/package-list. Ignored it.


T E S T S

Running com.fatwire.gst.foundation.DebugHelperTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 sec Running com.fatwire.gst.foundation.facade.assetapi.AssetIdUtilsTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running com.fatwire.gst.foundation.facade.assetapi.ConditionParserTest Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec Running com.fatwire.gst.foundation.facade.runtag.render.CallTemplateTest ARGS_foo false Argument 'ARGS_foo' not found as PageCriterium . Arguments are: [ARGS_foo, ARGS_TNAME, TTYPE, ARGS_locale]. PageCriteria: [locale, p] Argument 'ARGS_foo' is removed from the call as it is not a PageCriterium. ARGS_TNAME true ARGS_locale false Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Running com.fatwire.gst.foundation.facade.search.FSIIRepositoryTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running com.fatwire.gst.foundation.facade.uri.PageUriBuilderTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec

Results :

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

[ERROR] Error fetching link: /Users/tfield/tmp/gst-foundation/gsf-cs-all/target/apidocs/package-list. Ignored it.


T E S T S

Running com.fatwire.gst.foundation.controller.AssetIdWithSiteTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec

Results :

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


T E S T S

There are no tests to run.

Results :

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


T E S T S

Running com.fatwire.gst.foundation.controller.action.AnnotationBinderTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.18 sec Running com.fatwire.gst.foundation.controller.action.AnnotationInjectorTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running com.fatwire.gst.foundation.controller.action.ModelTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running com.fatwire.gst.foundation.controller.action.support.BaseFactoryTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec Running com.fatwire.gst.foundation.controller.annotation.ControllerMappingResolverTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running com.fatwire.gst.foundation.controller.support.TemplateMethodFactoryTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec

Results :

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


T E S T S

Running com.fatwire.gst.foundation.mobile.mobiforge.MobiForceDeviceDetectorTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec

Results :

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


T E S T S

Running com.fatwire.gst.foundation.groovy.context.GroovyFactoryTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec Running com.fatwire.gst.foundation.groovy.GroovyLoaderTest (5021us) 5.21ms Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.104 sec

Results :

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


T E S T S

There are no tests to run.

Results :

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


T E S T S

There are no tests to run.

Results :

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


T E S T S

There are no tests to run.

Results :

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

finished initial build downloading all artifacts building jars building site ./Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. adding primary artifacts to kit copying license to kit compressing done packaging gst-foundation Oberon-III:gst-foundation tfield$

tfield commented 10 years ago

Here is the critical workaround: Oberon-III:gst-foundation tfield$ cd ~/Desktop/WCS_Sites/Sites Oberon-III:Sites tfield$ cp cs-cache/cs-cache-11.1.1.8.0.jar . Oberon-III:Sites tfield$ mv cs-cache-11.1.1.8.0.jar cs-cache.jar Oberon-III:Sites tfield$ mvn -B --quiet install:install-file -Dfile=cs-cache.jar -DgroupId=com.fatwire.cs -DartifactId=cs-cache -Dversion=11.1.1.8.0 -Dpackaging=jar -DgeneratePom=true

dolfdijkstra commented 10 years ago

Here is the critical workaround: Oberon-III:gst-foundation tfield$ cd ~/Desktop/WCS_Sites/Sites Oberon-III:Sites tfield$ cp cs-cache/cs-cache-11.1.1.8.0.jar . Oberon-III:Sites tfield$ mv cs-cache-11.1.1.8.0.jar cs-cache.jar Oberon-III:Sites tfield$ mvn -B --quiet install:install-file -Dfile=cs-cache.jar -DgroupId=com.fatwire.cs -DartifactId=cs-cache -Dversion=11.1.1.8.0 -Dpackaging=jar -DgeneratePom=true


Reply to this email directly or view it on GitHub: https://github.com/dolfdijkstra/gst-foundation/issues/20#issuecomment-29537447

I have another workaround that i thought i pushend to master. Will check again in a couple of weeks