Yes, it is working now. But the P2 plugin has to be fixed to show the
correct error messages instead of NPE.

On Thu, Jul 5, 2012 at 6:09 PM, Dileepa Jayakody <[email protected]> wrote:

> Hi Azeez,
>
> Please take a svn up from features/repository and try building again. I
> could successfully build the p2-repo.
>
> Thanks,
> Dileepa
>
>
> On Thu, Jul 5, 2012 at 6:00 PM, Dileepa Jayakody <[email protected]> wrote:
>
>> The resolving error is because the groupID is missing in the
>> featureArtifact definition for ndatasource feature.
>>
>> When defining a featureArtifactDef in the carbon-p2-plugin it should be
>> given as below;
>>  <featureArtifactDef>
>>          {group.id}:{artifact.id}:{version}
>> </featureArtifactDef>
>>
>> so for ndatasource feature it should be as below;
>> <featureArtifactDef>
>>
>> org.wso2.carbon:org.wso2.carbon.ndatasource.feature:${carbon.version}
>> </featureArtifactDef>
>>
>> I will commit this.
>>
>>
>> On Thu, Jul 5, 2012 at 5:42 PM, Afkham Azeez <[email protected]> wrote:
>>
>>> But why is this an NPE from this plugin. It should show a proper error
>>> message.
>>>
>>> java.lang.NullPointerException
>>> at
>>> org.wso2.maven.p2.FeatureArtifact.resolveVersion(FeatureArtifact.java:91)
>>>
>>> Need to investigate this at the p2-plugin.
>>
>>>  On Thu, Jul 5, 2012 at 5:24 PM, Dileepa Jayakody <[email protected]>wrote:
>>>
>>>> Hi Azeez,
>>>>
>>>> I suspect this happens because of failing to resolve *
>>>> org.wso2.carbon.ndatasource.feature* featureArtifact in the repo-gen
>>>> phase.
>>>> I tried building ndatasource feature, but failed due to below;  Has
>>>> someone built ndatasource feature successfully?
>>>>
>>>> [INFO] WSO2 Carbon - New Datasource Feature Aggregator Module  SUCCESS
>>>> [1.031s]
>>>> [INFO] WSO2 Carbon - New Datasource Management UI Feature  FAILURE
>>>> [0.331s]
>>>> [INFO] WSO2 Carbon - New Datasource Management Feature ... SKIPPED
>>>>  [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 2.613s
>>>> [INFO] Finished at: Thu Jul 05 17:17:24 IST 2012
>>>> [INFO] Final Memory: 6M/490M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] Failed to execute goal on project
>>>> org.wso2.carbon.ndatasource.ui.feature: Could not resolve dependencies for
>>>> project
>>>> org.wso2.carbon:org.wso2.carbon.ndatasource.ui.feature:pom:4.0.0-SNAPSHOT:
>>>> Failure to find
>>>> org.wso2.carbon:org.wso2.carbon.ndatasource.ui:jar:4.0.0-SNAPSHOT in
>>>> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
>>>> the local repository, resolution will not be reattempted until the update
>>>> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
>>>>
>>>> Thanks,
>>>> Dileepa
>>>> On Thu, Jul 5, 2012 at 4:34 PM, Afkham Azeez <[email protected]> wrote:
>>>>
>>>>> [INFO] Scanning for projects...
>>>>> [INFO]
>>>>>
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Building WSO2 Carbon - Feature Repository 4.0.0-SNAPSHOT
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO]
>>>>> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>>>>> wso2carbon-feature-repository ---
>>>>> [INFO]
>>>>> [INFO] --- incremental-build-plugin:1.3:incremental-build (default) @
>>>>> wso2carbon-feature-repository ---
>>>>> [INFO] Verifying module descriptor ...
>>>>> [INFO] Pom descriptor modification detected.
>>>>> [INFO] Deleting
>>>>> /Users/azeez/projects/wso2/org/carbon/platform/trunk/features/repository/target
>>>>> [INFO]
>>>>> [INFO] --- carbon-p2-plugin:1.5-SNAPSHOT:p2-repo-gen
>>>>> (2-p2-repo-generation) @ wso2carbon-feature-repository ---
>>>>> [ERROR]
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.wso2.maven.p2.FeatureArtifact.resolveVersion(FeatureArtifact.java:91)
>>>>> at
>>>>> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:317)
>>>>>  at
>>>>> org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
>>>>> at
>>>>> org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
>>>>>  at
>>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>>>>  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)
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Total time: 1:13.402s
>>>>> [INFO] Finished at: Thu Jul 05 16:31:44 IST 2012
>>>>> [INFO] Final Memory: 6M/81M
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [ERROR] Failed to execute goal
>>>>> org.wso2.maven:carbon-p2-plugin:1.5-SNAPSHOT:p2-repo-gen
>>>>> (2-p2-repo-generation) on project wso2carbon-feature-repository: null:
>>>>> MojoExecutionException: NullPointerException -> [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
>>>>>
>>>>>
>>>>> --
>>>>> *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
>>>>> 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*
>>>>> *
>>>>> *
>>>>> *Lean . Enterprise . Middleware*
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Dileepa Jayakody,
>>>> Software Engineer, WSO2 Inc.
>>>>
>>>> Lean . Enterprise . Middleware
>>>>
>>>> Mobile : +94777-857616
>>>>
>>>>
>>>
>>>
>>> --
>>> *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
>>> 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*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>
>>
>> --
>> Dileepa Jayakody,
>> Software Engineer, WSO2 Inc.
>> Lean . Enterprise . Middleware
>>
>> Mobile : +94777-857616
>>
>>
>
>
> --
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
>
> Mobile : +94777-857616
>
>


-- 
*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
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*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to