Hi Alin,

thanks for your reply, but "mvn clean install" is not the solution.


Regards
Tobi


-------- Original-Nachricht --------
> Datum: Thu, 23 Jul 2009 13:43:17 +0300
> Von: Alin Dreghiciu <[email protected]>
> An: [email protected]
> Betreff: Re: maven-bundle-plugin: Import-Package not generated in manifest.mf?

> Just a guess: try to build with "maven clean install", note the "clean".
> It
> can be that if the manifest is already there and includes already the
> import
> package, bnd will not rewrite it. As I look at your posted manifest does
> not
> look like all the info in he manifest is generated by bnd.
> On Wed, Jul 22, 2009 at 11:05 PM, Tobi <[email protected]> wrote:
> 
> > Hi all,
> >
> > I use the following configuration in my bundle POM which originally was
> > developed as Eclipse PDE bundle:
> >
> >      <plugin>
> >        <groupId>org.apache.felix</groupId>
> >        <artifactId>maven-bundle-plugin</artifactId>
> >          <executions>
> >            <execution>
> >              <id>bundle-manifest</id>
> >              <phase>process-classes</phase>
> >              <goals>
> >                <goal>manifest</goal>
> >              </goals>
> >            </execution>
> >          </executions>
> >        <configuration>
> >
> > 
> <manifestLocation>${project.build.directory}/${project.build.finalName}/META-INF</manifestLocation>
> >           <supportedProjectTypes>
> >            <supportedProjectType>jar</supportedProjectType>
> >            <supportedProjectType>war</supportedProjectType>
> >           </supportedProjectTypes>
> >          <instructions>
> >
> >  <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
> >            <Bundle-Version>${pom.version}</Bundle-Version>
> >
> >           
> <Bundle-Activator>${pom.artifactId}.Activator</Bundle-Activator>
> >            <Private-Package>de.*</Private-Package>
> >          </instructions>
> >        </configuration>
> >      </plugin>
> >
> >
> > The manifest.mf looks like that:
> >
> > Manifest-Version: 1.0
> > Bundle-ClassPath: Bundle-ClassPath: .,WEB-INF/classes
> > Tool: Bnd-0.0.311
> > Bundle-Name: uiprototyp [de.domain]
> > Created-By: 1.6.0_12 (Sun Microsystems Inc.)
> > Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> > Bundle-Vendor: vendor
> > Module-Type: dw-module
> > Bundle-Version: 0.1.0.SNAPSHOT
> > Bnd-LastModified: 1248291452312
> > Bundle-ManifestVersion: 2
> > Bundle-Activator: uiprototyp.Activator
> > Bundle-Description: my bundle
> > Import-Package: uiprototyp
> > Bundle-SymbolicName: uiprototyp
> > Bundle-DocURL: http://www.domain.de
> >
> >
> > I am missing a lot of "Import-Package:" informations in the manifest.mf.
> >
> > What could be the problem?
> >
> >
> > Regards
> > Tobi
> > --
> > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> 
> 
> -- 
> Alin Dreghiciu
> Software Developer - Looking for new projects!
> My profile: http://www.linkedin.com/in/alindreghiciu
> My blog: http://adreghiciu.blogspot.com
> http://www.ops4j.org - New Energy for OSS Communities - Open Participation
> Software.
> http://www.qi4j.org - New Energy for Java - Domain Driven Development.

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to