org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.24:generate (generate-api) on project xyz-spec: Execution generate-api of goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.24:generate failed: trying to create the same field twice: additionalProperties

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by chabhishek123
, 1 year ago
Failed to execute goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.24:generate (generate-api) on project xyz-spec: Execution generate-api of goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.24:generate failed: trying to create the same field twice: additionalProperties
via GitHub by parched
, 1 year ago
Failed to execute goal com.googlecode.cmake-maven-project:cmake-maven-plugin:2.8.11-b4:generate (generate) on project XXXX: Execution generate of goal com.googlecode.cmake-maven-project:cmake-maven-plugin:2.8.11-b4:generate failed.
via scriptscoop.net by Unknown author, 1 year ago
Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate (default) on project onebusaway-nyc-tcip-api: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.11.0:generate failed.
via Stack Overflow by user842225
, 2 years ago
Failed to execute goal com.saikoa.dexguard.maven:dexguard-maven-plugin:6.1.18:generate-sources (default-generate-sources) on project MyProject: Execution default-generate-sources of goal com.saikoa.dexguard.maven:dexguard-maven-plugin:6.1.18:generate-sources failed.
via GitHub by william-ferguson-au
, 2 years ago
Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.2:generate-sources (default-generate-sources) on project player-android: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.2:generate-sources failed.
via GitHub by zalavaari
, 2 years ago
Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.2:generate-sources (default-generate-sources) on project player-android: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.2:generate-sources failed.
java.lang.IllegalArgumentException: trying to create the same field twice: additionalProperties
at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:425)
at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:396)
at org.jsonschema2pojo.rules.AdditionalPropertiesRule.addAdditionalPropertiesField(AdditionalPropertiesRule.java:128)
at org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:108)
at org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:43)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:135)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:70)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:90)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:40)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:66)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
at org.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:75)
at org.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:43)
at org.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:64)
at org.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:32)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:125)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:70)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:90)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:40)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:66)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
at org.jsonschema2pojo.rules.ArrayRule.apply(ArrayRule.java:81)
at org.jsonschema2pojo.rules.ArrayRule.apply(ArrayRule.java:37)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:113)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:40)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
at org.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:75)
at org.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:43)
at org.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:64)
at org.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:32)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:125)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:70)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:90)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:40)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:66)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
at org.jsonschema2pojo.rules.ArrayRule.apply(ArrayRule.java:81)
at org.jsonschema2pojo.rules.ArrayRule.apply(ArrayRule.java:37)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:113)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:40)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
at org.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:75)
at org.jsonschema2pojo.rules.PropertyRule.apply(PropertyRule.java:43)
at org.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:64)
at org.jsonschema2pojo.rules.PropertiesRule.apply(PropertiesRule.java:32)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:125)
at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:70)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:90)
at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:40)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:66)
at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30)
at org.jsonschema2pojo.SchemaMapper.generate(SchemaMapper.java:92)
at org.jsonschema2pojo.Jsonschema2Pojo.generate(Jsonschema2Pojo.java:75)
at org.jsonschema2pojo.maven.Jsonschema2PojoMojo.execute(Jsonschema2PojoMojo.java:594)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.