on this page
http://wso2.org/library/tutorials/build-ui-component-wso2-carbon-platform-part-1#step2
I was building a UI Component as the follow steps,
Steps
Step 1: Get a checkout from the following SVN location
svn
cohttps://svn.wso2.org/repos/wso2/branches/carbon/1.5/trunk/carbon/samples/ui/org.wso2.carbon.sample.myui
Step 2: Go inside the org.wso2.carbon.sample.myui folder
Step 3: Type (this step is required only the first time only, if repeating skip
and go to the next)
mvn clean install
If this is your first time building a component for WSO2's Carbon, it will take
sometime for the dependencies to be downloaded. Be patient. You will be
rewarded!
In the meantime, lets continue with the rest of the steps.
Step 4: Extract WSAS v3.0 zip file. From here on, we will refer to this
location as $WSAS_HOME.
Step 5:Go to org.wso2.carbon.sample.myui/src/main/resources/web/
Step 6: Add a folder called 'myui' inside the web folder
........................
in the step3
when I was execute the command "mvn clean install" under the folder
"org.wso2.carbon.sample.myui folder"
it complains the following errors:
------------------------------------------------------------------------
[INFO] Building Sample UI component
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory F:\stona126\org.wso2.carbon.sample.myui\target
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (GBK actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 2 resources
[WARNING] POM for
'org.apache.httpcomponents:httpcore-nio:pom:4.0-beta1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
......................
Downloading: http://repo1.maven.org/maven2/uddi/uddi4j/1.0.1/uddi4j-1.0.1.pom
[INFO] Unable to find resource 'uddi:uddi4j:pom:1.0.1' in repository central
(http://repo1.maven.org/maven2)
[WARNING] POM for 'org.apache.lucene:lucene-core:pom:2.3.1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (GBK actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
F:\stona126\org.wso2.carbon.sample.myui\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [bundle:bundle {execution: default-bundle}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error calculating classpath for project MavenProject:
org.wso2.carbon:org.wso2.carbon.sample.myui:SNAPSHOT @
F:\stona126\org.wso2.carbon.sample.myui\pom.xml
Embedded error: error in opening zip file
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException:Error calculating
classpath for project MavenProject:
org.wso2.carbon:org.wso2.carbon.sample.myui:SNAPSHOT @
F:\stona126\org.wso2.carbon.sample.myui\pom.xml
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error calculating
classpath for project MavenProject:
org.wso2.carbon:org.wso2.carbon.sample.myui:SNAPSHOT @
F:\stona126\org.wso2.carbon.sample.myui\pom.xml
at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:230)
at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:217)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:39)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:32)
at aQute.lib.osgi.Jar.<init>(Jar.java:35)
at
org.apache.felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.java:675)
at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:226)
... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Thu Sep 23 12:20:01 GMT+08:00 2010
[INFO] Final Memory: 25M/508M
[INFO] ------------------------------------------------------------------------
how can I solve this problem?
thank you a lot!
Best Wishes!
Shi Liang liang_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev