2008/7/2 Sahoo <[EMAIL PROTECTED]>:

> Resending, as I did not get any response.
>

FYI, I'm working at a customer site then flying back to Malaysia
so it's unlikely that I'll get round to looking at this until next week.

but if you're using the latest version (1.4.1) then both goals are
calling the same method "buildOSGiBundle" to initialize Bnd.

so if it's not picking up the include then it's either a configuration
problem or a bug, because there's no difference in the call path


> Thanks,
> Sahoo
>
> It appears to me that if I just invoke *manifest* goal of
> maven-bundle-plugin, it ignores *_include* instruction, where as if I use
> *bundle* goal, it is used by the plugin. There are various ways to test it.
> The easiest seems to be using a non-existent file name. Attached are two
> sets of pom files, pom.xml uses bundle goal, where as pom.xml.notworking
> uses manifest goal. While using the first one, bnd complains about missing
> osgi.bundle3 file, where as it does not report any such error while using
> the first one. That makes me think that the manifest Mojo is not sending the
> file name to bnd.
>
> Is <_include> not supposed to be used with manifest goal?
>
> Thanks,
> Sahoo
>
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>sahoo</groupId>
>  <artifactId>maven-bundle-plugin-test2</artifactId>
>  <packaging>jar</packaging>
>  <version>1.0-SNAPSHOT</version>
>  <url>http://maven.apache.org</url>
>  <build>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-jar-plugin</artifactId>
>        <configuration>
>          <archive>
>
>  
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
>          </archive>
>        </configuration>
>      </plugin>
>      <plugin>
>        <groupId>org.apache.felix</groupId>
>        <artifactId>maven-bundle-plugin</artifactId>
>        <extensions>true</extensions>
>        <configuration>
>          <instructions>
>            <_include>osgi.bundle3</_include>
>          </instructions>
>        </configuration>
>        <executions>
>          <execution>
>            <id>bundle-manifest</id>
>            <phase>process-classes</phase>
>            <goals>
>              <goal>manifest</goal>
>            </goals>
>          </execution>
>        </executions>
>      </plugin>
>    </plugins>
>  </build>
>  <dependencies>
>    <dependency>
>        <groupId>org.osgi</groupId>
>        <artifactId>osgi_R4_core</artifactId>
>        <version>1.0</version>
>    </dependency>
>    <dependency>
>      <groupId>junit</groupId>
>      <artifactId>junit</artifactId>
>      <version>3.8.1</version>
>      <scope>test</scope>
>    </dependency>
>  </dependencies>
> </project>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-- 
Cheers, Stuart

Reply via email to