I have set the
*MAVEN_OPTS = -Xmx2048m -Xms512m -XX:MaxPermSize=800m
-XX:ReservedCodeCacheSize=256m*

Build was successful with the following command.
* mvn clean install -rf :wso2carbon-core -Dmaven.test.skip=true*

I put this *-rf :wso2carbon-core* option from the previous error message.
But i don't know whether this is an acceptable build.


On Fri, Jan 4, 2013 at 1:26 PM, Supun Malinga <[email protected]> wrote:

> Issue is as indicated,
> Out of memory. [90108-140]: PermGen space.
>
> you need to set MAVEN_OPTS for a higher memory value.
>
> thanks,
>
>
> On Fri, Jan 4, 2013 at 1:08 PM, Chanaka Fernando <[email protected]>wrote:
>
>> I am using Maven 3.0.4 and java version 1.6.0_28.
>>
>> I got the following error when i am running the build.
>>
>> [INFO] --- maven-antrun-plugin:1.1:run (1-run-ant) @ wso2carbon-core ---
>> [INFO] Executing tasks
>>      [echo] ########### Create Default Database ##############
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Apache Axis2 - Parent ............................. SUCCESS
>> [44.903s]
>> [INFO] Apache Axis2 - Resource bundle .................... SUCCESS
>> [41.495s]
>> [INFO] Apache Axis2 - Kernel ............................. SUCCESS
>> [1:30.977s]
>> [INFO] Apache Axis2 - Data Binding ....................... SUCCESS
>> [9.907s]
>> [INFO] Apache Axis2 - Transport - Local .................. SUCCESS
>> [2.893s]
>> [INFO] Apache Axis2 - Transport - HTTP ................... SUCCESS
>> [7.309s]
>> [INFO] Apache Axis2 - Code Generation .................... SUCCESS
>> [3.464s]
>> [INFO] Apache Axis2 - ADB Codegen ........................ SUCCESS
>> [22.508s]
>> [INFO] Apache Axis2 - Addressing ......................... SUCCESS
>> [2.515s]
>> [INFO] Apache Axis2 - Java2WSDL .......................... SUCCESS
>> [1:32.440s]
>> [INFO] Apache Axis2 - tool - Repository Maven Plugin ..... SUCCESS
>> [35.071s]
>> [INFO] Apache Axis2 - Fast Infoset ....................... SUCCESS
>> [1.829s]
>> [INFO] Apache Axis2 - Clustering ......................... SUCCESS
>> [3.151s]
>> [INFO] Apache Axis2 - Scripting .......................... SUCCESS
>> [1.145s]
>> [INFO] Apache Axis2 - JAXB-RI Data Binding ............... SUCCESS
>> [4.930s]
>> [INFO] Apache Axis2 - SAAJ ............................... SUCCESS
>> [10.940s]
>> [INFO] Apache Axis2 - Metadata ........................... SUCCESS
>> [18.103s]
>> [INFO] Apache Axis2 - JAXWS .............................. SUCCESS
>> [6.651s]
>> [INFO] Apache Axis2 - Test Utilities ..................... SUCCESS
>> [0.578s]
>> [INFO] Apache Axis2 - JAXWS Integration Tests ............ SUCCESS
>> [1.360s]
>> [INFO] Apache Axis2 - JiBX Data Binding .................. SUCCESS
>> [4.561s]
>> [INFO] Apache Axis2 - JSON ............................... SUCCESS
>> [3.647s]
>> [INFO] Apache Axis2 - MTOM Policy ........................ SUCCESS
>> [1.042s]
>> [INFO] Apache Axis2 - spring ............................. SUCCESS
>> [8.604s]
>> [INFO] Apache Axis2 - OSGi Integration ................... SUCCESS
>> [2.756s]
>> [INFO] Apache Axis2 - XMLBeans Data Binding .............. SUCCESS
>> [1.059s]
>> [INFO] Apache Axis2 - Integration ........................ SUCCESS
>> [0.801s]
>> [INFO] Apache Axis2 - MEX ................................ SUCCESS
>> [0.975s]
>> [INFO] Apache Axis2 - MTOM Policy module ................. SUCCESS
>> [0.672s]
>> [INFO] Apache Axis2 - Ping ............................... SUCCESS
>> [2.039s]
>> [INFO] Apache Axis2 - Version Service .................... SUCCESS
>> [1.268s]
>> [INFO] Apache Axis2 - SOAP Monitor Servlet ............... SUCCESS
>> [0.949s]
>> [INFO] Apache Axis2 - SOAP Monitor Module ................ SUCCESS
>> [0.661s]
>> [INFO] Apache Axis2 - tool - AAR Maven Plugin ............ SUCCESS
>> [0.837s]
>> [INFO] Apache Axis2 - tool - Ant Plugin .................. SUCCESS
>> [1.053s]
>> [INFO] Apache Axis2 - tool - Java2WSDL Maven Plugin ...... SUCCESS
>> [1.576s]
>> [INFO] Apache Axis2 - tool - MAR Maven Plugin ............ SUCCESS
>> [0.801s]
>> [INFO] Apache Axis2 - tool - WSDL2Code Maven Plugin ...... SUCCESS
>> [0.948s]
>> [INFO] Apache Axis2 - CORBA .............................. SUCCESS
>> [2.874s]
>> [INFO] Apache Axis2 - JAXWS (mar) ........................ SUCCESS
>> [0.715s]
>> [INFO] Apache Axis2 - Web Application module ............. SUCCESS
>> [1:12.478s]
>> [INFO] Apache Axis2 - Root ............................... SUCCESS
>> [14.685s]
>> [INFO] axis2.wso2 ........................................ SUCCESS
>> [17.683s]
>> [INFO] axis2.json.wso2 ................................... SUCCESS
>> [0.124s]
>> [INFO] axis2.client.wso2 ................................. SUCCESS
>> [23.151s]
>> [INFO] axis2.jaxbri.wso2 ................................. SUCCESS
>> [0.114s]
>> [INFO] axis2.jibx.wso2 ................................... SUCCESS
>> [0.125s]
>> [INFO] WSO2 Carbon - Aggregate Pom ....................... SUCCESS
>> [0.048s]
>> [INFO] WSO2 Carbon - Patch releases - dependencies - Aggregator Module
>> SUCCESS [0.003s]
>> [INFO] WSO2 Carbon - User Management Stub ................ SUCCESS
>> [25.782s]
>> [INFO] WSO2 Carbon - Patch releases - service-stubs - Aggregator Module
>> SUCCESS [0.005s]
>> [INFO] WSO2 Carbon - Utilities ........................... SUCCESS
>> [1:02.404s]
>> [INFO] WSO2 Carbon - User Manager Kernel ................. SUCCESS
>> [40.838s]
>> [INFO] WSO2 Carbon - Registry Kernel ..................... SUCCESS
>> [4:06.931s]
>> [INFO] WSO2 Carbon - Kernel .............................. SUCCESS
>> [10.767s]
>> [INFO] WSO2 Carbon - carbon tomcat bundle ................ SUCCESS
>> [11.182s]
>> [INFO] WSO2 Carbon - Carbon specific tomcat extensions ... SUCCESS
>> [8.314s]
>> [INFO] WSO2 Carbon - User Management Common .............. SUCCESS
>> [1.643s]
>> [INFO] WSO2 Carbon - User Management ..................... SUCCESS
>> [16.263s]
>> [INFO] WSO2 Carbon - User Management UI .................. SUCCESS
>> [2.430s]
>> [INFO] WSO2 Carbon - Services ............................ SUCCESS
>> [8.378s]
>> [INFO] WSO2 Carbon - UI .................................. SUCCESS
>> [11.249s]
>> [INFO] WSO2 Carbon - New Data Sources Core ............... SUCCESS
>> [5.215s]
>> [INFO] WSO2 Carbon - Internationalization ................ SUCCESS
>> [0.178s]
>> [INFO] WSO2 Carbon - Feature Manager UI .................. SUCCESS
>> [4.048s]
>> [INFO] WSO2 Carbon - Application Deployer ................ SUCCESS
>> [4.696s]
>> [INFO] WSO2 Carbon - Feature Manager Core ................ SUCCESS
>> [3.698s]
>> [INFO] WSO2 Carbon - Servlet Bridge ...................... SUCCESS
>> [2.935s]
>> [INFO] WSO2 Carbon - Patch releases - core - Aggregator Module  SUCCESS
>> [0.024s]
>> [INFO] WSO2 Carbon - Carbon Common Feature ............... SUCCESS
>> [11.595s]
>> [INFO] WSO2 Carbon - Carbon UI Feature ................... SUCCESS
>> [2.464s]
>> [INFO] WSO2 Carbon - Carbon Server Feature ............... SUCCESS
>> [2.739s]
>> [INFO] WSO2 Carbon - Carbon Feature ...................... SUCCESS
>> [5.077s]
>> [INFO] WSO2 Carbon - Patch releases - features - Aggregator Module
>> SUCCESS [0.168s]
>> *[INFO] WSO2 Carbon Core - Distribution ................... FAILURE
>> [7.730s]*
>>
>> [INFO] WSO2 Carbon - Integration ......................... SKIPPED
>> [INFO] WSO2 Carbon - Security Verification Service ....... SKIPPED
>> [INFO] WSO2 Carbon - Integration Core .................... SKIPPED
>> [INFO] WSO2 Carbon - Integration Testing Framework ....... SKIPPED
>> [INFO] WSO2 Carbon - Integration Tests ................... SKIPPED
>> [INFO] WSO2 Carbon - Patch releases - distribution - Aggregator Module
>> SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>>  [INFO] Total time: 17:51.503s
>> [INFO] Finished at: Fri Jan 04 12:47:46 IST 2013
>> [INFO] Final Memory: 80M/767M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-antrun-plugin:1.1:run (1-run-ant) on project
>> wso2carbon-core: Error executing ant tasks: org.h2.jdbc.JdbcSQLException:
>> Out of memory. [90108-140]: PermGen space -> [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/MojoExecutionException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn <goals> -rf :wso2carbon-core
>>
>>
>> any ideas?
>>
>>
>> On Fri, Jan 4, 2013 at 12:14 PM, Nirmal Fernando <[email protected]> wrote:
>>
>>>
>>>
>>>
>>> On Fri, Jan 4, 2013 at 11:51 AM, Malaka Silva <[email protected]> wrote:
>>>
>>>> Yes indeed Maven 3.0.4
>>>>  and
>>>> Java version: 1.6.0_21, vendor: Sun Microsystems Inc.
>>>>
>>>
>>> And on a side note, recommended java version is 1.6.0_24 or above.
>>>
>>>>
>>>>
>>>>
>>>> On Fri, Jan 4, 2013 at 11:46 AM, Nirmal Fernando <[email protected]>wrote:
>>>>
>>>>>
>>>>>
>>>>> On Fri, Jan 4, 2013 at 11:41 AM, Malaka Silva <[email protected]> wrote:
>>>>>
>>>>>> Dear All,
>>>>>>
>>>>>> I'm new to WSO2. I tried to build the following.
>>>>>>
>>>>>> https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0
>>>>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0
>>>>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0
>>>>>>
>>>>>> Build was successful for orbit. But it didn't work for kernal.
>>>>>>
>>>>>> I used the following to run the build
>>>>>>
>>>>>>  mvn  clean install -Dmaven.test.skip=true -Dproduct=esb -Xmx1024m
>>>>>> -XX:MaxPermSize=256m
>>>>>>
>>>>>> I ran it for the following folder
>>>>>>
>>>>>> ..../kernel/patch-releases/4.0.5
>>>>>>
>>>>>> Following is the error. Can someone help me on this?
>>>>>>
>>>>>>
>>>>> Are you using maven3?
>>>>>
>>>>>
>>>>>>
>>>>>> [INFO] WSO2 Carbon - Patch releases - features - Aggregator Module
>>>>>> SKIPPED
>>>>>> [INFO] WSO2 Carbon Core - Distribution ................... SKIPPED
>>>>>> [INFO] WSO2 Carbon - Integration ......................... SKIPPED
>>>>>> [INFO] WSO2 Carbon - Security Verification Service ....... SKIPPED
>>>>>> [INFO] WSO2 Carbon - Integration Core .................... SKIPPED
>>>>>> [INFO] WSO2 Carbon - Integration Testing Framework ....... SKIPPED
>>>>>> [INFO] WSO2 Carbon - Integration Tests ................... SKIPPED
>>>>>> [INFO] WSO2 Carbon - Patch releases - distribution - Aggregator
>>>>>> Module  SKIPPED
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] BUILD FAILURE
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Total time: 7.893s
>>>>>> [INFO] Finished at: Fri Jan 04 11:32:44 IST 2013
>>>>>> [INFO] Final Memory: 39M/169M
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [ERROR] No plugin found for prefix 'X' in the current project and in
>>>>>> the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available
>>>>>> from the repositories [local (/home/wso2/.m2/repository), 
>>>>>> apache-snapshots (
>>>>>> http://people.apache.org/repo/m2-snapshot-repository),
>>>>>> apache.snapshots (http://repository.apache.org/snapshots),
>>>>>> repository.dev.java.net-maven2 (http://download.java.net/maven/2/),
>>>>>> central (http://repo.maven.apache.org/maven2)] -> [Help 1]
>>>>>> org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No
>>>>>> plugin found for prefix 'X' in the current project and in the plugin 
>>>>>> groups
>>>>>> [org.apache.maven.plugins, org.codehaus.mojo] available from the
>>>>>> repositories [local (/home/wso2/.m2/repository), apache-snapshots (
>>>>>> http://people.apache.org/repo/m2-snapshot-repository),
>>>>>> apache.snapshots (http://repository.apache.org/snapshots),
>>>>>> repository.dev.java.net-maven2 (http://download.java.net/maven/2/),
>>>>>> central (http://repo.maven.apache.org/maven2)]
>>>>>>     at
>>>>>> org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:94)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:262)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:222)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98)
>>>>>>     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(NativeMethodAccessorImpl.java:39)
>>>>>>     at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>>     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)
>>>>>> [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/NoPluginFoundForPrefixException
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Thanks & regards,
>>>>> Nirmal
>>>>>
>>>>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>>>>> Mobile: +94715779733
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>> <http://nirmalfdo.blogspot.com/>
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>> <http://nirmalfdo.blogspot.com/>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - [email protected] <[email protected]>
> mobile - 071 56 91 321
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to