Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Adding bundle nature
Adding bundle nature [message #689286] Mon, 27 June 2011 10:48
Ivana Missing name is currently offline Ivana Missing nameFriend
Messages: 14
Registered: December 2010
Junior Member
Hi everyone,

I need some information.

I want to add osgi bundle nature to my plugin project, but I don't want to use
right click -> spring tools -> add osgi bundle nature, I don't want to have that possibility only in eclipse environment.

I tried to do that using "mvn eclipse:eclipse" and adding the following lines of code in project pom.xml:

------------------------------------------------
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>

<configuration>

<classpathContainers>
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6</classpathContainer>
<classpathContainer>org.eclipse.pde.core.requiredPlugins</classpathContainer>
</classpathContainers>

<buildcommands>
<buildcommand>org.eclipse.wst.common.project.facet.core.builder</buildcommand>
<buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
<buildcommand>org.eclipse.pde.ManifestBuilder</buildcommand>
<buildcommand>org.eclipse.pde.SchemaBuilder</buildcommand>
<buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
</buildcommands>

<projectnatures>
<projectnature>com.springsource.server.ide.facet.core.bundlenature</projectnature>
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
<projectnature>org.eclipse.pde.PluginNature</projectnature>
<projectnature>org.eclipse.jdt.core.javanature</projectnature>
<projectnature>org.eclipse.wst.common.project.facet.core.nature</projectnature>
</projectnatures>

</configuration>
</plugin>

----------------------------------------

but that wasn't enough.

---How I could create the following files in .settings using by configuration for eclipse plugin:
org.eclipse.wst.common.project.facet.core.xml
org.eclipse.jdt.core.prefs

and

---how to disable adding on a build path

<classpathentry kind="var" path="M2_REPO/org/eclipse/osgi/org.eclipse.osgi_/3.6.0/org.eclipse.osgi_-3.6.0-gs4tr.jar"/>

and similar staffs from dependencies.

Thank you for your time,

Ivana




  • Attachment: pom.xml
    (Size: 3.69KB, Downloaded 129 times)
Previous Topic:jmx access for virgo-tomcat-server-3.0.0.M05 is denied
Next Topic:Plan Concepts
Goto Forum:
  


Current Time: Mon Dec 22 01:23:28 GMT 2014

Powered by FUDForum. Page generated in 0.01803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software