Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with accessing file path in windows os while generating backbase specification project #188

Open
monax-csgo opened this issue Mar 24, 2021 · 0 comments

Comments

@monax-csgo
Copy link

I am trying to create a backbase specification project and while doing mvn clean install for the project i am getting the below errors:

I think this is related only to windows operating system as it clearly that " : " is invalid in the path name, I am using 12.1.0 sdk version of the backbase.

[DEBUG] fixInlineExamples: 'ExampleHolder{name='null', ref=examples/body/example-message.json}', relative resolvedUri 'null'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.275 s
[INFO] Finished at: 2021-03-24T08:29:35+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.backbase.oss:boat-maven-plugin:0.13.0:bundle (boat-bundle) on project exchange-rate-specification2: Execution boat-bu
ndle of goal com.backbase.oss:boat-maven-plugin:0.13.0:bundle failed: Illegal char <:> at index 2: /C:/Users/rohitsinha4/backbase_dir/rohit/dis2/exchang
e-rate-specification2/src/main/resources/examples/body/example-message.json -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.backbase.oss:boat-maven-plugin:0.13.0:bundle (boat-bundle) on project
exchange-rate-specification2: Execution boat-bundle of goal com.backbase.oss:boat-maven-plugin:0.13.0:bundle failed: Illegal char <:> at index 2: /C:/U
sers/rohitsinha4/backbase_dir/rohit/dis2/exchange-rate-specification2/src/main/resources/examples/body/example-message.json
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution boat-bundle of goal com.backbase.oss:boat-maven-plugin:0.13.0:bundle failed: Ille
gal char <:> at index 2: /C:/Users/rohitsinha4/backbase_dir/rohit/dis2/exchange-rate-specification2/src/main/resources/examples/body/example-message.jso
n
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/rohitsinha4/backbase_dir/rohit/dis2/exchange-rate-specification2/s
rc/main/resources/examples/body/example-message.json
at sun.nio.fs.WindowsPathParser.normalize (WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse (WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse (WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse (WindowsPath.java:92)
at sun.nio.fs.WindowsFileSystem.getPath (WindowsFileSystem.java:229)
at java.nio.file.Path.of (Path.java:147)
at java.nio.file.Paths.get (Paths.java:69)
at com.backbase.oss.boat.transformers.bundler.ExamplesProcessor.fixInlineExamples (ExamplesProcessor.java:169)
at com.backbase.oss.boat.transformers.bundler.ExamplesProcessor.processMediaType (ExamplesProcessor.java:116)
at com.backbase.oss.boat.transformers.bundler.ExamplesProcessor.lambda$processExamples$2 (ExamplesProcessor.java:81)
at java.util.LinkedHashMap.forEach (LinkedHashMap.java:684)
at com.backbase.oss.boat.transformers.bundler.ExamplesProcessor.lambda$processExamples$3 (ExamplesProcessor.java:79)
at java.util.LinkedHashMap.forEach (LinkedHashMap.java:684)
at com.backbase.oss.boat.transformers.bundler.ExamplesProcessor.lambda$processExamples$4 (ExamplesProcessor.java:76)
at java.util.LinkedHashMap.forEach (LinkedHashMap.java:684)
at com.backbase.oss.boat.transformers.bundler.ExamplesProcessor.lambda$processExamples$5 (ExamplesProcessor.java:68)
at java.util.LinkedHashMap.forEach (LinkedHashMap.java:684)
at com.backbase.oss.boat.transformers.bundler.ExamplesProcessor.processExamples (ExamplesProcessor.java:66)
at com.backbase.oss.boat.transformers.bundler.BoatOpenAPIResolver.resolve (BoatOpenAPIResolver.java:44)
at com.backbase.oss.boat.transformers.Bundler.transform (Bundler.java:26)
at com.backbase.oss.boat.transformers.Transformer.transform (Transformer.java:12)
at com.backbase.oss.boat.BundleMojo.bundleOpenAPI (BundleMojo.java:118)
at com.backbase.oss.boat.BundleMojo.execute (BundleMojo.java:103)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[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/PluginExecutionException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant