Following parent POM entry has been added to the top level sample POM file
that cause this issue ( we didn't have this entry on earlier versions) . I
think top level sample POM file should not refer to any other parents POMs.

    <parent>
        <groupId>org.wso2.appserver</groupId>
        <artifactId>wso2appserver-samples-parent</artifactId>
        <version>5.2.1</version>
    </parent>


Corrected POM file is attached here, please replace
"wso2as-5.2.1/samples/pom.xml" file and this will solve your issue.


Thanks !




On Fri, Dec 13, 2013 at 10:52 AM, Sagara Gunathunga <[email protected]> wrote:

>
>
>
> On Fri, Dec 13, 2013 at 10:42 AM, Afkham Azeez <[email protected]> wrote:
>
>>
>>
>>
>> On Fri, Dec 13, 2013 at 11:08 PM, Afkham Azeez <[email protected]> wrote:
>>
>>>
>>>
>>>
>>> On Fri, Dec 13, 2013 at 11:06 PM, Sagara Gunathunga <[email protected]>wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Fri, Dec 13, 2013 at 10:34 AM, Afkham Azeez <[email protected]> wrote:
>>>>
>>>>> Looks like the pom files in the sample directories are pointing to
>>>>> invalid parents. Please take a look at the samples/pom.xml file.
>>>>>
>>>>
>>>>
>>>> It seems we have missed some other sample issues as well
>>>> https://wso2.org/jira/browse/WSAS-1641 :(
>>>>
>>>
>>> So even basic testing of samples is not before releasing? No automated
>>> tests that cover all the samples?
>>>
>>
>> If the POMs are in error, please provide me with the correct POMs. I need
>> to try out some stuff urgently.
>>
>
> Could you please try with DevS JAX-RS wizard for the time being ? it's
> easy and quicker. As I'm in middle of a workshop can't attend to fix POM
> file myself for next few hours.
>
> Thanks !
>
>>
>>
>>>
>>>> Thanks !
>>>>
>>>>>
>>>>>
>>>>> On Fri, Dec 13, 2013 at 10:58 PM, Afkham Azeez <[email protected]> wrote:
>>>>>
>>>>>> I downloaded AS 5.2.1 and tried to build the samples. I get the
>>>>>> following error.
>>>>>>
>>>>>> [INFO] Scanning for projects...
>>>>>>
>>>>>> [ERROR] The build could not read 1 project -> [Help 1]
>>>>>>
>>>>>> [ERROR]
>>>>>>
>>>>>> [ERROR]   The project org.wso2.appserver:jaxrs_basic:5.2.1
>>>>>> (/Users/azeez/software/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_basic/pom.xml)
>>>>>> has 1 error
>>>>>>
>>>>>> [ERROR]     Non-resolvable parent POM for
>>>>>> org.wso2.appserver:wso2appserver-samples:5.2.1: Failure to find
>>>>>> org.wso2.appserver:wso2appserver-samples-parent:pom:5.2.1 in
>>>>>> http://repo.maven.apache.org/maven2 was cached in the local
>>>>>> repository, resolution will not be reattempted until the update interval 
>>>>>> of
>>>>>> central has elapsed or updates are forced and 'parent.relativePath' 
>>>>>> points
>>>>>> at wrong local POM @ org.wso2.appserver:wso2appserver-samples:5.2.1,
>>>>>> /Users/azeez/software/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
>>>>>>
>>>>>>
>>>>>>
>>>>>> Also,
>>>>>> http://docs.wso2.org/display/AS521/Building+and+Running+JAX-RS+Samples,
>>>>>> has several minor mistakes
>>>>>>
>>>>>> --
>>>>>> *Afkham Azeez*
>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>> * <http://www.apache.org/>*
>>>>>> *email: **[email protected]* <[email protected]>
>>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>>>> *twitter: 
>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>>>
>>>>>> *Lean . Enterprise . Middleware*
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Afkham Azeez*
>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>> * <http://www.apache.org/>*
>>>>> *email: **[email protected]* <[email protected]>
>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>>> *twitter: 
>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>>
>>>>> *Lean . Enterprise . Middleware*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>*
>>> *email: **[email protected]* <[email protected]>
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * <http://www.apache.org/>*
>> *email: **[email protected]* <[email protected]>
>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* <http://blog.afkham.org>
>> *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> <http://lk.linkedin.com/in/afkhamazeez>*
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> 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
>
>


-- 
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
<!--
  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
 
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.wso2.appserver</groupId>
    <artifactId>wso2appserver-samples</artifactId>
    <version>5.2.1</version>
    <packaging>pom</packaging>
    <name>Samples</name>
    <description>All the samples contained in WSO2 AppServer</description>   

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.7.1</version>
                <configuration>
                    <outputDirectory>../../../target/site/${project.artifactId}</outputDirectory>
                    <reportsDirectory>target/surefire-reports</reportsDirectory>
                    <outputName>${project.artifactId}-test-report</outputName>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <configuration>
                    <outputDirectory>../../target/site/${project.artifactId}</outputDirectory>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <modules>
	<module>ASVersionSamples</module>
        <module>Chad</module>
        <module>CommodityQuote</module>
        <module>TinyURL</module>
        <module>Trader</module>
        <module>FlickrClient</module>
        <module>MEX</module>
        <module>MTOM</module>
        <module>Xfer</module>
        <module>Jaxws-Jaxrs</module>
        <module>JSON</module>
        <module>Jibx</module>
        <module>HelloWorld</module>
        <module>ClientAPI</module>
        <module>Mail</module>
        <module>HelloWorldWebapp</module>
        <module>WebappVersioning</module>
        <module>VirtualDirectoryListing</module>
        <module>EJBLibrary</module>
        <module>TomcatWebApps/GenericJavaBeanResource</module>
        <module>TomcatWebApps/JDBCDataSource</module>
        <module>TomcatWebApps/CarbonDataSourceAccessExample</module>
        <module>Axis2Module</module>
        <module>EntitlementFilter</module>
    </modules>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.apache.axis2.wso2</groupId>
                <artifactId>axis2</artifactId>
                <version>${appserver.axis2.version}</version>
            </dependency>
            <dependency>
                <groupId>org.wso2.carbon</groupId>
                <artifactId>org.wso2.carbon.utils</artifactId>
                <version>${carbon.platform.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ws.security.wso2</groupId>
                <artifactId>wss4j</artifactId>
                <version>${appserver.wss4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.rampart.wso2</groupId>
                <artifactId>rampart-core</artifactId>
                <version>${appserver.rampart.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.rampart.wso2</groupId>
                <artifactId>rampart-trust</artifactId>
                <version>${appserver.rampart.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.rampart.wso2</groupId>
                <artifactId>rampart-policy</artifactId>
                <version>${appserver.rampart.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ws.commons.axiom.wso2</groupId>
                <artifactId>axiom</artifactId>
                <version>${appserver.axiom.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate.wso2</groupId>
                <artifactId>hibernate</artifactId>
                <version>${appserver.hibernate.version}</version>
            </dependency>
            <dependency>
                <groupId>wsdl4j.wso2</groupId>
                <artifactId>wsdl4j</artifactId>
                <version>${orbit.version.wsdl4j}</version>
            </dependency>
            <dependency>
                <groupId>opensaml.wso2</groupId>
                <artifactId>opensaml2</artifactId>
                <version>${orbit.version.opensaml}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.neethi.wso2</groupId>
                <artifactId>neethi</artifactId>
                <version>${orbit.version.neethi}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.apache.neethi</groupId>
                        <artifactId>neethi</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.ws.commons.schema.wso2</groupId>
                <artifactId>XmlSchema</artifactId>
                <version>${orbit.version.xmlschema}</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>${version.commons.logging}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.woden.wso2</groupId>
                <artifactId>woden</artifactId>
                <version>${orbit.version.woden}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.apache.woden</groupId>
                        <artifactId>woden-impl-dom</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.apache.woden</groupId>
                        <artifactId>woden-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <properties>
	<carbon.platform.version>4.2.0</carbon.platform.version>
        <appserver.axis2.version>1.6.1.wso2v10</appserver.axis2.version>
        <appserver.axiom.version>1.2.11.wso2v4</appserver.axiom.version>
        <appserver.wss4j.version>1.5.11.wso2v3</appserver.wss4j.version>
        <appserver.rampart.version>1.6.1.wso2v10</appserver.rampart.version>
        <appserver.hibernate.version>3.2.5.ga-wso2v1</appserver.hibernate.version>
        <appserver.axis2.jibx.version>1.6.1.wso2v10</appserver.axis2.jibx.version>
        <orbit.version.wsdl4j>1.6.2.wso2v2</orbit.version.wsdl4j>
        <orbit.version.xmlschema>1.4.7.wso2v1</orbit.version.xmlschema>
        <orbit.version.woden>1.0.0.M8-wso2v1</orbit.version.woden>
        <orbit.version.opensaml>2.0.0.alpha1-wso2v1</orbit.version.opensaml>
        <orbit.version.neethi>2.0.4.wso2v4</orbit.version.neethi>
        <version.commons.logging>1.1.1</version.commons.logging>
        <rampart.osgi.version>1.6.1.wso2v9</rampart.osgi.version>
        <neethi.version>2.0.4-wso2v2</neethi.version>
        <version.tomcat>7.0.34</version.tomcat>
        <javax.servlet.jsp.version>2.2.0.v201112011158</javax.servlet.jsp.version>
    </properties>

</project>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to