This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 182894 - OSGi bundle project profiling not working
Summary: OSGi bundle project profiling not working
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 13:21 UTC by Antonin Nebuzelsky
Modified: 2010-06-22 14:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2010-03-26 13:21:30 UTC
[exec] INFO [org.netbeans.modules.maven.ActionProviderImpl]: No handling for action:profile. Ignoring.
Comment 1 Antonin Nebuzelsky 2010-03-29 13:41:10 UTC
Got it working by:

* adding NbMavenProject.TYPE_OSGI to the list of packagings supported for profiling in supportedPTypes field initialization in MavenProjectTypeProfiler class

* adding org.osgi.framework.bootdelegation=* to the code generation for run.properties in the project's pom.xml

* adding the following profile action definition to the project's nbactions.xml:

<action>
  <actionName>profile</actionName>
  <goals>
    <goal>package</goal>
    <goal>org.codehaus.mojo:exec-maven-plugin:1.1.1:exec</goal>
  </goals>
  <properties>
    <exec.args>${profiler.args} -Dfelix.system.properties=file:${project.build.directory}/run.properties -cp ${project.build.directory}/felix.jar org.apache.felix.main.Main</exec.args>
    <exec.executable>${profiler.java}</exec.executable>
    <profiler.action>profile</profiler.action>
  </properties>
  <activatedProfiles>
    <activatedProfile>run-on-felix</activatedProfile>
  </activatedProfiles>
</action>
Comment 2 Antonin Nebuzelsky 2010-03-29 13:41:40 UTC
Dafe, this will need to added to the OSGi bundle archetype.
Comment 3 David Simonek 2010-04-01 14:19:58 UTC
Changeset: f5ddf351d84c
Author:    Dafe Simonek <dsimonek@netbeans.org>
Date:      2010-04-01 16:20
Message:   #182894: Enable profiling of OSGi bundles
Issue #182894 - OSGi bundle project profiling not working
Comment 4 David Simonek 2010-04-01 14:33:16 UTC
Also archetype updated and deployed:
http://snapshots.repository.codehaus.org/org/codehaus/mojo/archetypes/osgi-archetype/1.0-SNAPSHOT/
Comment 5 Quality Engineering 2010-04-02 05:13:36 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f5ddf351d84c
User: Dafe Simonek <dsimonek@netbeans.org>
Log: #182894: Enable profiling of OSGi bundles
Issue #182894 - OSGi bundle project profiling not working
Comment 6 Jaroslav Pospisil 2010-06-22 14:07:51 UTC
v.