Hi Supun, This seems like a syntax error. The error has occurred when trying to get the osgi version via regex parsing as per the stack trace.
Regards, KasunG On Mon, Dec 2, 2013 at 9:49 AM, Supun Malinga <[email protected]> wrote: > Hi, > > when building AS 5.2.1 p2-profile-gen/pom [1] i'm getting the following > error [2]. > > Seems its a misconfiguration on p2-plugin, worker profile, but I cannot > figure out what's missing. I did compare with other released products too, > but couldn't find anything out of place. WOuld be glad if someone can have > a look.. > > [1] > https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/as/5.2.1/modules/p2-profile-gen/pom.xml > > [2] > [INFO] > [INFO] --- carbon-p2-plugin:1.5.3:p2-profile-gen > (p2-profile-generation-for-worker-profile) @ wso2appserver-profile-gen --- > [INFO] Running Equinox P2 Director Application > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2:32.637s > [INFO] Finished at: Mon Dec 02 09:43:34 IST 2013 > [INFO] Final Memory: 13M/490M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen > (p2-profile-generation-for-worker-profile) on project > wso2appserver-profile-gen: null: MojoExecutionException: > NullPointerException -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen > (p2-profile-generation-for-worker-profile) on project > wso2appserver-profile-gen: null > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) > 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) > Caused by: org.apache.maven.plugin.MojoExecutionException > at org.wso2.maven.p2.ProfileGenMojo.execute(ProfileGenMojo.java:180) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: java.lang.NullPointerException > at java.util.regex.Matcher.getTextLength(Matcher.java:1140) > at java.util.regex.Matcher.reset(Matcher.java:291) > at java.util.regex.Matcher.<init>(Matcher.java:211) > at java.util.regex.Pattern.matcher(Pattern.java:888) > at > org.wso2.maven.p2.generate.feature.Bundle.getOSGIVersion(Bundle.java:184) > at org.wso2.maven.p2.Feature.getVersion(Feature.java:53) > at > org.wso2.maven.p2.ProfileGenMojo.getIUsToInstall(ProfileGenMojo.java:197) > at org.wso2.maven.p2.ProfileGenMojo.execute(ProfileGenMojo.java:170) > ... 21 more > > thanks, > -- > Supun Malinga, > > Senior Software Engineer, > WSO2 Inc. > http://wso2.com > email: [email protected] <[email protected]> > mobile: +94 (0)71 56 91 321 > -- *Kasun Gajasinghe* Software Engineer; WSO2 Inc.; http://wso2.com , *email: * *kasung AT spamfree wso2.com <http://wso2.com> ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe *blog: **http://kasunbg.org* <http://kasunbg.org> *twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
