clynrey / android-soap-enabler

Automatically exported from code.google.com/p/android-soap-enabler
Other
0 stars 0 forks source link

Unable to generate sources of test application on Windows #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow this tutorial : 
http://code.google.com/p/android-soap-enabler/wiki/OneMinuteTutorial
2. At step 3 "mvn clean generate-sources" get :

"[WARNING] The POM for fr.norsys.asoape:asoape-maven-plugin:jar:1.1-SNAPSHOT is 
m
issing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.833s
[INFO] Finished at: Fri Feb 10 09:50:27 CET 2012
[INFO] Final Memory: 7M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin fr.norsys.asoape:asoape-maven-plugin:1.1-SNAPSHOT or one of its 
dependencies could not be resolved: Failed to read artifact descriptor for 
fr.norsys.asoape:asoape-maven-plugin:jar:1.1-SNAPSHOT: Could not find artifact 
fr.norsys.asoape:asoape-maven-plugin:pom:1.1-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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/PluginResolutionException"

What is the expected output? What do you see instead?

Generate sources

What version of the product are you using? On what operating system?

The git version on Windows

Original issue reported on code.google.com by ju.ver...@gmail.com on 10 Feb 2012 at 8:59

GoogleCodeExporter commented 9 years ago
I maybe found a fix by replacing "<version>1.1-SNAPSHOT</version>" by 
"<version>1.0</version>"  but I'm experiencing another problem :

Retrieving document at 
'C:\temp\android-soap-enabler\test\application\wsdl\contact.wsdl'.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.215s
[INFO] Finished at: Fri Feb 10 10:39:32 CET 2012
[INFO] Final Memory: 10M/24M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
fr.norsys.asoape:asoape-maven-plugin:1.0:generate-soap-stub (default) on 
project test-application: Execution default of goal fr.n
orsys.asoape:asoape-maven-plugin:1.0:generate-soap-stub failed: String index 
out of range: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
fr.norsys.asoape:asoape-maven-plugin:1.0:generate-soap-stub (default) on project
test-application: Execution default of goal 
fr.norsys.asoape:asoape-maven-plugin:1.0:generate-soap-stub failed: String 
index out of range: 1
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
        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(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default 
of goal fr.norsys.asoape:asoape-maven-plugin:1.0:generate-soap-stub failed: 
Strin
g index out of range: 1
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of 
range: 1
        at java.lang.String.charAt(Unknown Source)
        at java.util.regex.Matcher.appendReplacement(Unknown Source)
        at java.util.regex.Matcher.replaceAll(Unknown Source)
        at java.lang.String.replaceAll(Unknown Source)
        at fr.norsys.asoape.codegen.generator.WSDLGenerator.packageDirectoryPathForPackage(WSDLGenerator.java:237)
        at fr.norsys.asoape.codegen.generator.WSDLGenerator.packageDirectoryFor(WSDLGenerator.java:242)
        at fr.norsys.asoape.codegen.generator.WSDLGenerator.generateBeanForElement(WSDLGenerator.java:145)
        at fr.norsys.asoape.codegen.generator.WSDLGenerator.foundInput(WSDLGenerator.java:117)
        at fr.norsys.asoape.codegen.analyzer.WSDLAnalyzer.analyzeOperation(WSDLAnalyzer.java:114)
        at fr.norsys.asoape.codegen.analyzer.WSDLAnalyzer.analyzeService(WSDLAnalyzer.java:97)
        at fr.norsys.asoape.codegen.analyzer.WSDLAnalyzer.analyze(WSDLAnalyzer.java:69)
        at fr.norsys.asoape.codegen.generator.WSDLGenerator.generateFrom(WSDLGenerator.java:89)
        at fr.norsys.asoape.mojo.GenerateAndroidClientMojo.execute(GenerateAndroidClientMojo.java:91)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 20 more
[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

Original comment by ju.ver...@gmail.com on 10 Feb 2012 at 9:51

GoogleCodeExporter commented 9 years ago
Can you attach the WSDL file please ?

Original comment by wallet.g...@gmail.com on 10 Feb 2012 at 1:21

GoogleCodeExporter commented 9 years ago
Yes, this is this one : 
http://code.google.com/p/android-soap-enabler/source/browse/test/application/wsd
l/contact.wsdl

Original comment by ju.ver...@gmail.com on 10 Feb 2012 at 1:28

GoogleCodeExporter commented 9 years ago
Can you post the command output with -X ?
ie. mvn -X clean install

Original comment by wallet.g...@gmail.com on 10 Feb 2012 at 1:37

GoogleCodeExporter commented 9 years ago
Yes sure : http://pastebin.com/PqFj152A

Original comment by ju.ver...@gmail.com on 10 Feb 2012 at 1:51

GoogleCodeExporter commented 9 years ago
I've fixed the build process on Microsoft Windows operating system.
Version 1.1 is comming soon to fix this issue

Original comment by wallet.g...@gmail.com on 10 Feb 2012 at 5:04

GoogleCodeExporter commented 9 years ago
Thank you very much. Can't wait to test it :)

Original comment by ju.ver...@gmail.com on 11 Feb 2012 at 8:25

GoogleCodeExporter commented 9 years ago
Fixed in 1.1

Original comment by wallet.g...@gmail.com on 14 Feb 2012 at 7:55

GoogleCodeExporter commented 9 years ago

Original comment by wallet.g...@gmail.com on 14 Feb 2012 at 5:54