Sumit Singh
Sumit Singh

Reputation: 15896

how to convert plugin (Created from existing jar) to maven

I had created eclipse plugin from existing jar and I'm exporting all the packages as in below image.

  1. All the packages
  2. Exported packages.

enter image description here

Now I'm converting This plugin to Maven by using configurator

enter image description here

Now my plugin look like following and there no package is showing for export.

  1. Now packages showing as folders
  2. there is not package showing to export.

So every where I'm getting error because there is no class under this plugin in.

enter image description here

Question
How to convert plugin which are created by jar.?

Upvotes: 1

Views: 262

Answers (1)

Nick Wilson
Nick Wilson

Reputation: 4989

Some things to check:

  1. Have you got the Maven Tycho Configurator installed? (Window->Preferences->Maven->Discovery->Open Catalog)
  2. Have you overridden the default maven source folders in your pom file to match the Eclipse folder structure?

    <build>
      <sourceDirectory>src</sourceDirectory>
      <testSourceDirectory>test</testSourceDirectory>
    

Below is a link to an example pom file for a working maven build of Eclipse plugins. (Disclaimer: this is one of the projects I work on)

Example parent pom file.

Upvotes: 1

Related Questions