On Fri, Jun 13, 2014 at 8:58 PM, Chamara Ariyarathne <chama...@wso2.com>
wrote:

> Why do we have build.xml and pom.xml both here?
>

 AS samples support for both Maven and Ant.

>
> mvn clean install doesn't work here.
>

 - This is originally discovered in last December few weeks after 5.2.1
release, you can find root cause and related discussions here[1]
 - This was reported in JIRA and already resolved[2].
 - Product documentation is also updated in the same time with the
workaround [3]

[1] - "JaxRS samples not building" Thread
[2] - https://wso2.org/jira/browse/WSAS-1663
[3] -
https://docs.wso2.org/display/AS521/Building+and+Running+JAX-WS+Samples

Thanks !

>
> chamara@chamaradell:~/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service$
> ant
> Buildfile:
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build.xml
>
> clean:
>    [delete] Deleting directory
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build
>
> init:
>     [mkdir] Created dir:
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build
>     [mkdir] Created dir:
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/classes
>     [mkdir] Created dir:
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/webapps
>     [mkdir] Created dir:
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/lib
>      [copy] Copying 39 files to
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/lib
>
> compile:
>     [javac]
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build.xml:51:
> warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last; set to false for repeatable builds
>     [javac] Compiling 8 source files to
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/classes
>
> war:
>      [echo] Creating webapp jaxrs_starbucks_service.war.
>      [copy] Copying 1 file to
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/classes/demo/jaxrs/client
>      [copy] Copying 1 file to
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/classes/demo/jaxrs/client
>      [copy] Copying 1 file to
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/classes/demo/jaxrs/client
>       [war] Building war:
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/build/webapps/jaxrs_starbucks_service.war
>
> build-all:
>      [echo] Copying the created war file in to the deployment directory
>      [copy] Copying 1 file to
> /home/chamara/as/5.2.1/wso2as-5.2.1/repository/deployment/server/webapps
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
> chamara@chamaradell:~/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service$
> mvn clean install
> [INFO] Scanning for projects...
> Downloading:
> http://repo.maven.apache.org/maven2/org/wso2/appserver/wso2appserver-samples-parent/5.2.1/wso2appserver-samples-parent-5.2.1.pom
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project org.wso2.appserver:jaxrs_starbucks_service:5.2.1
> (/home/chamara/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service/pom.xml)
> has 1 error
> [ERROR]     Non-resolvable parent POM for
> org.wso2.appserver:wso2appserver-samples:5.2.1: Could not find artifact
> org.wso2.appserver:wso2appserver-samples-parent:pom:5.2.1 in central (
> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
> wrong local POM @ org.wso2.appserver:wso2appserver-samples:5.2.1,
> /home/chamara/as/5.2.1/wso2as-5.2.1/samples/pom.xml, line 21, column 13 ->
> [Help 2]
> [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/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> chamara@chamaradell
> :~/as/5.2.1/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_starbucks_service$
>
>
> --
> *Chamara Ariyarathne*
> Senior Software Engineer - QA;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; *+94772786766 <%2B94772786766>*
>
> _______________________________________________
> Carbon-dev mailing list
> carbon-...@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;    http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to