Nope, and I've already fixed it :-)
Cheers
Andrea
Il 8 set 2017 10:55 PM, "Jody Garnett" <jody.garn...@gmail.com> ha scritto:
> Andrea I am not seeing this failure locally, is it specific to the new
> yaml file you are working on?
>
> *mvn process-resources*
> *...*
> *[INFO] --- swagger-codegen-maven-plugin:2.2.2:generate (featureTypes) @
> gs-docs ---[INFO] reading from
> /Users/jody/java/geoserver/jive/doc/en/api/1.0.0/featuretypes.yaml[INFO]
> writing file
> /Users/jody/java/geoserver/jive/doc/en/target/api/featuretypes/index.html[INFO]
> ...*
> *[INFO] --- swagger-codegen-maven-plugin:2.2.2:generate (importer-data) @
> gs-docs ---*
> *[INFO] reading from
> /Users/jody/java/geoserver/jive/doc/en/api/1.0.0/importerData.yaml*
> *[INFO] writing file
> /Users/jody/java/geoserver/jive/doc/en/target/api/importerData/index.html*
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] BUILD SUCCESS*
>
>
>
> --
> Jody Garnett
>
> On 8 September 2017 at 10:07, Andrea Aime <andrea.a...@geo-solutions.it>
> wrote:
>
>> Hum,
>> I just added a new yaml file among the API ones, however I tried building
>> the revision
>> before and it still failed in the same way (so, does not look like it's
>> the fault of the latest change).
>>
>> I saw that the codegen plugin has a minor update version, 2.2.3, that
>> survives generation of the featureTypes,
>> but then dies in reload:
>>
>> [INFO] --- swagger-codegen-maven-plugin:2.2.3:generate (reload) @
>> gs-docs ---
>> [INFO] reading from /home/aaime/devel/git-gs/doc/en/api/1.0.0/reload.yaml
>> [WARNING] Output directory does not exist, or is inaccessible. No file
>> (.swager-codegen-ignore) will be evaluated.
>> [ERROR]
>> java.lang.NullPointerException
>> at io.swagger.codegen.languages.StaticHtmlGenerator.preprocessS
>> wagger(StaticHtmlGenerator.java:186)
>> at io.swagger.codegen.DefaultGenerator.configureGeneratorProper
>> ties(DefaultGenerator.java:134)
>> at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerato
>> r.java:687)
>> at io.swagger.codegen.plugin.CodeGenMojo.execute(CodeGenMojo.java:534)
>> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj
>> o(DefaultBuildPluginManager.java:134)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:208)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:154)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:146)
>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:117)
>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:81)
>> at org.apache.maven.lifecycle.internal.builder.singlethreaded.S
>> ingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
>> (LifecycleStarter.java:128)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnha
>> nced(Launcher.java:289)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Lau
>> ncher.java:229)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx
>> itCode(Launcher.java:415)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launc
>> her.java:356)
>> [INFO] ------------------------------------------------------------
>> ------------
>>
>>
>> Trying to see if I can make it build
>>
>> Cheers
>> Andrea
>>
>>
>> On Fri, Sep 8, 2017 at 6:57 PM, <moni...@boundlessgeo.com> wrote:
>>
>>> See <http://ares.boundlessgeo.com/jenkins/job/geoserver-master-l
>>> ive-docs/952/changes>
>>>
>>> Changes:
>>>
>>> [andrea.aime] [GEOS-8272] Randomness in JPEG 2000 support reader/writer
>>> lookup
>>>
>>> [dvick] Update GWC context for REST update
>>>
>>> [dvick] updating tests to work with the new spring mvc rest api for
>>>
>>> [jody.garnett] temp ignore ysld upload tests to restore build, restore
>>> before release
>>>
>>> [andrea.aime] Make sure a collection can be created outside the default
>>> workspace
>>>
>>> [andrea.aime] Factor out all layer management in a separate class
>>>
>>> [andrea.aime] Documentation for the opensearch-eo community module
>>>
>>> ------------------------------------------
>>> Started by an SCM change
>>> Building in workspace <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/>
>>> > git rev-parse --is-inside-work-tree # timeout=10
>>> Fetching changes from the remote Git repository
>>> > git config remote.origin.url git://github.com/geoserver/geoserver.git
>>> # timeout=10
>>> Fetching upstream changes from git://github.com/geoserver/geoserver.git
>>> > git --version # timeout=10
>>> > git -c core.askpass=true fetch --tags --progress git://
>>> github.com/geoserver/geoserver.git +refs/heads/*:refs/remotes/origin/*
>>> > git rev-parse origin/master^{commit} # timeout=10
>>> Checking out Revision 63d155c15b37842c09e74b064808212e3cce4ac9
>>> (origin/master)
>>> > git config core.sparsecheckout # timeout=10
>>> > git checkout -f 63d155c15b37842c09e74b064808212e3cce4ac9
>>> > git rev-list 5210f479eef2786a9fea55a4f9eefa744633cace # timeout=10
>>> [geoserver-master-docs] $ /opt/apache-maven-3.3.9/bin/mvn -f
>>> doc/en/pom.xml compile
>>> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
>>> MaxPermSize=256m; support was removed in 8.0
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> [INFO] ------------------------------------------------------------
>>> ------------
>>> [INFO] Building GeoServer English Documentation 2.12-SNAPSHOT
>>> [INFO] ------------------------------------------------------------
>>> ------------
>>> [INFO]
>>> [INFO] --- swagger-codegen-maven-plugin:2.2.2:generate (coverages) @
>>> gs-docs ---
>>> [INFO] reading from <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/doc/en/api/1.0.0/c
>>> overages.yaml>
>>> [INFO] writing file <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/doc/en/target/api/
>>> coverages/index.html>
>>> [INFO]
>>> [INFO] --- swagger-codegen-maven-plugin:2.2.2:generate (coverageStores)
>>> @ gs-docs ---
>>> [INFO] reading from <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/doc/en/api/1.0.0/c
>>> overagestores.yaml>
>>> [INFO] writing file <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/doc/en/target/api/
>>> coveragestores/index.html>
>>> [INFO]
>>> [INFO] --- swagger-codegen-maven-plugin:2.2.2:generate (datastores) @
>>> gs-docs ---
>>> [INFO] reading from <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/doc/en/api/1.0.0/d
>>> atastores.yaml>
>>> [INFO] writing file <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/doc/en/target/api/
>>> datastores/index.html>
>>> [INFO]
>>> [INFO] --- swagger-codegen-maven-plugin:2.2.2:generate (featureTypes) @
>>> gs-docs ---
>>> [INFO] reading from <http://ares.boundlessgeo.com/
>>> jenkins/job/geoserver-master-live-docs/ws/doc/en/api/1.0.0/f
>>> eaturetypes.yaml>
>>> [ERROR]
>>> java.lang.RuntimeException: Could not process operation:
>>> Tag: default
>>> Operation: deleteFeatureType
>>> Resource: delete /workspaces/{workspaceName}/da
>>> tastores/{datastoreName}/featuretypes/{featureTypeName}
>>> Definitions: {FeatureTypeInfo=io.swagger.models.ModelImpl@cf6124aa,
>>> MetadataEntry=io.swagger.models.ModelImpl@b5817465,
>>> inline_response_200_featureTypes_featureType=io.swagger.mode
>>> ls.ModelImpl@1ed8beea, inline_response_200_featureTyp
>>> es=io.swagger.models.ModelImpl@8fd0d5b3, inline_response_200=io.swagger
>>> .models.ModelImpl@9ecdda9d, inline_response_200_1=io.swagg
>>> er.models.ModelImpl@1ed910c2, FeatureTypeInfo_namespace=io.s
>>> wagger.models.ModelImpl@7d998a8, FeatureTypeInfo_keywords=io.sw
>>> agger.models.ModelImpl@6c4617eb, FeatureTypeInfo_metadatalinks_
>>> metadataLink=io.swagger.models.ModelImpl@efa33b26,
>>> FeatureTypeInfo_metadatalinks=io.swagger.models.ModelImpl@532beff3,
>>> FeatureTypeInfo_dataLinks_metadataLink=io.swagger.models.Mod
>>> elImpl@48e96781, FeatureTypeInfo_dataLinks=io.s
>>> wagger.models.ModelImpl@e3bc98c1, FeatureTypeInfo_nativeBounding
>>> Box=io.swagger.models.ModelImpl@eea4ecf, FeatureTypeInfo_latLonBounding
>>> Box=io.swagger.models.ModelImpl@24d628f4, FeatureTypeInfo_store=io.swagg
>>> er.models.ModelImpl@4f4cce31, FeatureTypeInfo_responseSRS=io
>>> .swagger.models.ModelImpl@1e0939ed, FeatureTypeInfo_attributes_att
>>> ribute=io.swagger.models.ModelImpl@faa5937e,
>>> FeatureTypeInfo_attributes=io.swagger.models.ModelImpl@e5e99c7b}
>>> Exception: null
>>> at io.swagger.codegen.DefaultGenerator.processOperation(Default
>>> Generator.java:827)
>>> at io.swagger.codegen.DefaultGenerator.processPaths(DefaultGene
>>> rator.java:731)
>>> at io.swagger.codegen.DefaultGenerator.generateApis(DefaultGene
>>> rator.java:356)
>>> at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerato
>>> r.java:666)
>>> at io.swagger.codegen.plugin.CodeGenMojo.execute(CodeGenMojo.ja
>>> va:338)
>>> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj
>>> o(DefaultBuildPluginManager.java:134)
>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>>> oExecutor.java:207)
>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>>> oExecutor.java:153)
>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>>> oExecutor.java:145)
>>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>>> uildProject(LifecycleModuleBuilder.java:116)
>>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>>> uildProject(LifecycleModuleBuilder.java:80)
>>> at org.apache.maven.lifecycle.internal.builder.singlethreaded.S
>>> ingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
>>> (LifecycleStarter.java:128)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:30
>>> 7)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:19
>>> 3)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:497)
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnha
>>> nced(Launcher.java:289)
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Lau
>>> ncher.java:229)
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithEx
>>> itCode(Launcher.java:415)
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launc
>>> her.java:356)
>>> Caused by: java.lang.NullPointerException
>>> at io.swagger.codegen.DefaultCodegen.updateCodegenPropertyEnum(
>>> DefaultCodegen.java:3445)
>>> at io.swagger.codegen.DefaultCodegen.fromParameter(DefaultCodeg
>>> en.java:2405)
>>> at io.swagger.codegen.DefaultCodegen.fromOperation(DefaultCodeg
>>> en.java:2121)
>>> at io.swagger.codegen.DefaultGenerator.processOperation(Default
>>> Generator.java:774)
>>> ... 26 more
>>> [INFO] ------------------------------------------------------------
>>> ------------
>>> [INFO] BUILD FAILURE
>>> [INFO] ------------------------------------------------------------
>>> ------------
>>> [INFO] Total time: 5.810 s
>>> [INFO] Finished at: 2017-09-08T16:57:41+00:00
>>> [INFO] Final Memory: 15M/172M
>>> [INFO] ------------------------------------------------------------
>>> ------------
>>> [ERROR] Failed to execute goal
>>> io.swagger:swagger-codegen-maven-plugin:2.2.2:generate
>>> (featureTypes) on project gs-docs: Code generation failed. See above for
>>> the full exception. -> [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/conflu
>>> ence/display/MAVEN/MojoExecutionException
>>> Build step 'Invoke top-level Maven targets' marked build as failure
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Geoserver-devel mailing list
>>> Geoserver-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>>
>>
>>
>>
>> --
>>
>> Regards,
>>
>> Andrea Aime
>>
>> ==
>> GeoServer Professional Services from the experts! Visit
>> http://goo.gl/it488V for more information.
>> ==
>>
>> Ing. Andrea Aime
>> @geowolf
>> Technical Lead
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>> 55054 Massarosa
>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>> (LU)
>> phone: +39 0584 962313 <+39%200584%20962313>
>> fax: +39 0584 1660272 <+39%200584%20166%200272>
>> mob: +39 339 8844549 <+39%20339%20884%204549>
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>>
>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>> principi dettati dal D.Lgs. 196/2003.
>>
>> The information in this message and/or attachments, is intended solely
>> for the attention and use of the named addressee(s) and may be confidential
>> or proprietary in nature or covered by the provisions of privacy act
>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>> copying, distribution, or either dissemination, either whole or partial, is
>> strictly forbidden except previous formal approval of the named
>> addressee(s). If you are not the intended recipient, please contact
>> immediately the sender by telephone, fax or e-mail and delete the
>> information in this message that has been received in error. The sender
>> does not give any warranty or accept liability as the content, accuracy or
>> completeness of sent messages and accepts no responsibility for changes
>> made after they were sent or for other risks which arise as a result of
>> e-mail transmission, viruses, etc.
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Geoserver-devel mailing list
>> Geoserver-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel