Hi all,

As per the offline discussion with Supun, modules/samples/pom.xml will be
the parent pom for modules/samples/products/pom.xml and [1] will be the
parent pom for modules/samples/pom.xml.  All the versions and dependencies
for the samples apps will be defined in modules/samples/pom.xml

[1] - https://github.com/wso2/carbon-parent/

Regards,
Nira


On Mon, May 11, 2015 at 1:52 PM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> What about maven.war.plugins version within modules/samples? For the
> moment shall I had the version to both root pom.xml and
> modules/samples/products/pom.xml?
>
> On Mon, May 11, 2015 at 12:50 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> For the moment lets add to modules/samples/products/pom.xml..
>>
>> On Mon, May 11, 2015 at 12:47 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Supun,
>>>
>>> Currently in the pom.xml in modules/samples/products has the parent as
>>> [1] and pom.xml in modules/samples has the parent as the root pom.xml of
>>> the product. As per the offline discussion with KasunG, he mentioned that
>>> we should be able to build the sample apps without having to build the
>>> entire product-as. Also when I checked the pom.xml in [1], it does not have
>>> any reference to maven.war.plugin version. How do I proceed forward?
>>>
>>> [1] - https://github.com/wso2/carbon-parent/
>>>
>>> Regards,
>>> Nira
>>>
>>> On Mon, May 11, 2015 at 12:40 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Please make sure that the dependency is declared in the parent pom as
>>>> per the standard..
>>>>
>>>> thanks,
>>>>
>>>>
>>>> On Mon, May 11, 2015 at 12:28 PM, Niranjan Karunanandham <
>>>> niran...@wso2.com> wrote:
>>>>
>>>>> Hi Sameera and KasunG,
>>>>>
>>>>> As per the offline discussion, i upgraded the maven-war-plugin to 2.6
>>>>> (latest) and was able to build product-as.. I will send a pull request for
>>>>> this.
>>>>>
>>>>> Regards,
>>>>> Nira
>>>>>
>>>>>
>>>>> On Mon, May 11, 2015 at 11:18 AM, Niranjan Karunanandham <
>>>>> niran...@wso2.com> wrote:
>>>>>
>>>>>> Hi Thusitha
>>>>>>
>>>>>> According to the [1], it seems that this is a issue with
>>>>>>> maven-war-plugin
>>>>>>> [1] -
>>>>>>> http://stackoverflow.com/questions/7539970/cannot-construct-org-apache-maven-plugin-war-util-webappstructure-as-it-does-not
>>>>>>> But I was able to build the java8support branch without any issue.
>>>>>>> Can you update the maven-war-plugin version in
>>>>>>> VirtualDirectoryListing sample and check?
>>>>>>>
>>>>>> I was able to build the pack after changing the maven-war-plugin
>>>>>> version in VirtualDirectoryListing sample from 2.1-beta-1 to 2.2. Still a
>>>>>> bit puzzled how you are able to build it successfully in 2.1-beta-1 
>>>>>> version
>>>>>> and it is failing for me.
>>>>>> @KasunG: Is there a standard maven-war-plugin version for product-as?
>>>>>>
>>>>>> Regards,
>>>>>> Nira
>>>>>>
>>>>>>
>>>>>> On Fri, May 8, 2015 at 10:06 PM, Thusitha Thilina Dayaratne <
>>>>>> thusit...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> According to the [1], it seems that this is a issue with
>>>>>>> maven-war-plugin
>>>>>>> [1] -
>>>>>>> http://stackoverflow.com/questions/7539970/cannot-construct-org-apache-maven-plugin-war-util-webappstructure-as-it-does-not
>>>>>>> But I was able to build the java8support branch without any issue.
>>>>>>> Can you update the maven-war-plugin version in
>>>>>>> VirtualDirectoryListing sample and check?
>>>>>>>
>>>>>>> Thanks
>>>>>>> Best Regards
>>>>>>>
>>>>>>> On Fri, May 8, 2015 at 6:35 PM, Niranjan Karunanandham <
>>>>>>> niran...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Kasun,
>>>>>>>>
>>>>>>>> Am using apache-maven-3.0.5.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Nira
>>>>>>>>
>>>>>>>> On Fri, May 8, 2015 at 6:33 PM, Kasun Gajasinghe <kas...@wso2.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Can you check the maven version you are using?
>>>>>>>>>
>>>>>>>>> On May 8, 2015, at 5:14 PM, Niranjan Karunanandham <
>>>>>>>>> niran...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I deleted my .m2 repo and tried to build the java8suport branch of
>>>>>>>>> product-as [1] and I got the error in [2]. As anyone encountered this 
>>>>>>>>> error?
>>>>>>>>>
>>>>>>>>> I am currently using JDK 1.7.0_45
>>>>>>>>>
>>>>>>>>> [1] - https://github.com/wso2/product-as/tree/java8support
>>>>>>>>> [2] - *[INFO] Sample/Mail Transport .............................
>>>>>>>>> SUCCESS [0.051s]*
>>>>>>>>> *[INFO] Sample/HelloWorldWebapp ...........................
>>>>>>>>> SUCCESS [0.160s]*
>>>>>>>>> *[INFO] Sample/WebappVersioning ...........................
>>>>>>>>> SUCCESS [0.071s]*
>>>>>>>>> *[INFO] Sample/VirtualDirectoryListing ....................
>>>>>>>>> FAILURE [39.630s]*
>>>>>>>>> *[INFO] Sample/EJBLibrary .................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Library EJB module ................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Library EAR Archive ...............................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Sample/GenericJavaBean ............................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Sample/JDBCDataSource .............................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] CarbonDataSourceAccessSample ......................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Samples/LogModule .................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Entitlement_Sample_WebApp .........................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - Samples Parent ...................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos  AppServer - Samples .................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AS - Sample SimpleStockQuoteService ..........
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos AppServer - Sample Installer .........
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AS - Example webapp ..........................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - Features Parent ..................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - Features Aggregator Module .......
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - Style Features ...................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - Utils Features ...................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - Nested Feature Categories ........
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Application Management ............................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Application Hosting ...............................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Javaee Runtime ....................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Miscellaneous .....................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Tenancy Management ................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] User Management ...................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Single Sign On(SAML2) .............................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Registry/Repository ...............................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] Monitoring ........................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] AppServer Tools ...................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] AppServer Styles ..................................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos  AppServer - Features Aggregator Module
>>>>>>>>>  SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos AppServer - Style Features ...........
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos AppServer - Utils Features ...........
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos  AppServer - Dashboard UI ............
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos AppServer - Dashboard UI Features ....
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos AppServer - Sample installer UI Features
>>>>>>>>>  SKIPPED*
>>>>>>>>> *[INFO] WSO2 AS - Login User Interface ....................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 Stratos AppServer - Deployment Features ......
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - AppServer Profile Generation .....
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO] WSO2 AppServer - Distribution .....................
>>>>>>>>> SKIPPED*
>>>>>>>>> *[INFO]
>>>>>>>>> ------------------------------------------------------------------------*
>>>>>>>>> *[INFO] BUILD FAILURE*
>>>>>>>>> *[INFO]
>>>>>>>>> ------------------------------------------------------------------------*
>>>>>>>>> *[INFO] Total time: 14:57.734s*
>>>>>>>>> *[INFO] Finished at: Fri May 08 17:07:42 IST 2015*
>>>>>>>>> *[INFO] Final Memory: 52M/580M*
>>>>>>>>> *[INFO]
>>>>>>>>> ------------------------------------------------------------------------*
>>>>>>>>> *[ERROR] Failed to execute goal
>>>>>>>>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war 
>>>>>>>>> (default-war) on
>>>>>>>>> project wso2appserver-samples-VirtualDirectoryListing: Execution
>>>>>>>>> default-war of goal
>>>>>>>>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed: 
>>>>>>>>> Cannot
>>>>>>>>> construct org.apache.maven.plugin.war.util.WebappStructure as it does 
>>>>>>>>> not
>>>>>>>>> have a no-args constructor : Cannot construct
>>>>>>>>> org.apache.maven.plugin.war.util.WebappStructure as it does not have a
>>>>>>>>> no-args constructor*
>>>>>>>>> *[ERROR] ---- Debugging information ----*
>>>>>>>>> *[ERROR] message             : Cannot construct
>>>>>>>>> org.apache.maven.plugin.war.util.WebappStructure as it does not have a
>>>>>>>>> no-args constructor*
>>>>>>>>> *[ERROR] cause-exception     :
>>>>>>>>> com.thoughtworks.xstream.converters.reflection.ObjectAccessException*
>>>>>>>>> *[ERROR] cause-message       : Cannot construct
>>>>>>>>> org.apache.maven.plugin.war.util.WebappStructure as it does not have a
>>>>>>>>> no-args constructor*
>>>>>>>>> *[ERROR] class               :
>>>>>>>>> org.apache.maven.plugin.war.util.WebappStructure*
>>>>>>>>> *[ERROR] required-type       :
>>>>>>>>> org.apache.maven.plugin.war.util.WebappStructure*
>>>>>>>>> *[ERROR] path                : /webapp-structure*
>>>>>>>>> *[ERROR] line number         : 1*
>>>>>>>>> *[ERROR] -------------------------------*
>>>>>>>>> *[ERROR] -> [Help 1]*
>>>>>>>>> *[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/PluginExecutionException
>>>>>>>>> <http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException>*
>>>>>>>>> *[ERROR] *
>>>>>>>>> *[ERROR] After correcting the problems, you can resume the build
>>>>>>>>> with the command*
>>>>>>>>> *[ERROR]   mvn <goals> -rf
>>>>>>>>> :wso2appserver-samples-VirtualDirectoryListing*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Nira
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> *Niranjan Karunanandham*
>>>>>>>>> Senior Software Engineer - WSO2 Inc.
>>>>>>>>> WSO2 Inc.: http://www.wso2.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *Niranjan Karunanandham*
>>>>>>>> Senior Software Engineer - WSO2 Inc.
>>>>>>>> WSO2 Inc.: http://www.wso2.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thusitha Dayaratne
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>>>>
>>>>>>> Mobile  +94712756809
>>>>>>> Blog      alokayasoya.blogspot.com
>>>>>>> About    http://about.me/thusithathilina
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Niranjan Karunanandham*
>>>>>> Senior Software Engineer - WSO2 Inc.
>>>>>> WSO2 Inc.: http://www.wso2.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Niranjan Karunanandham*
>>>>> Senior Software Engineer - WSO2 Inc.
>>>>> WSO2 Inc.: http://www.wso2.com
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Supun Malinga,
>>>>
>>>> Senior Software Engineer,
>>>> WSO2 Inc.
>>>> http://wso2.com
>>>> email: sup...@wso2.com <sup...@wso2.com>
>>>> mobile: +94 (0)71 56 91 321
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com <sup...@wso2.com>
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to