Not generating OSGI-INF folder


hi,

 

i new osgi.i have been having trouble osgi-inf folder in generated jar file. need have folder structure below

 

  • meta-inf
  • osgi-inf
  • com.mine.cq

 

  using eclipse , m2e plugin. when run project getting build success. , getting below folder structure in generated jar file. jar not have osgi-inf folder.

 

  • meta-inf
  • com.mine.cq

 

here pom.xml

 

<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/xsd/maven-4.0.0.xsd">

          <modelversion>4.0.0</modelversion>

 

 

          <groupid>com.mine.cq</groupid>

          <artifactid>minecore</artifactid>

          <version>0.0.1-snapshot</version>

          <packaging>jar</packaging>

 

 

          <name>minecore</name>

          <url>http://maven.apache.org</url>

 

 

          <properties>

                    <file.encoding>utf-8</file.encoding>

          </properties>

          <build>

        <defaultgoal>install</defaultgoal>

        <plugins>

            <plugin>

                <groupid>org.apache.maven.plugins</groupid>

                <artifactid>maven-enforcer-plugin</artifactid>

                <version>1.0-alpha-3</version>

                <executions>

                    <execution>

                        <id>enforce-java</id>

                        <goals>

                            <goal>enforce</goal>

                        </goals>

                        <configuration>

                            <rules>

                                <requiremavenversion>

                                    <message>maven 2.0.7 or higher</message>

                                    <version>2.0.7</version>

                                </requiremavenversion>

                                <requirejavaversion>

                                    <message>java 5 or higher</message>

                                    <version>1.5.0</version>

                                </requirejavaversion>

                            </rules>

                        </configuration>

                    </execution>

                </executions>

            </plugin>

            <plugin>

                <groupid>org.apache.felix</groupid>

                <artifactid>maven-bundle-plugin</artifactid>

                <version>1.4.3</version>

                <extensions>true</extensions>

                <configuration>

                    <instructions>

                        <export-package>

                                                                      com.mine.cq.minecore.*

                        </export-package>

                        <import-package>

                            *;resolution:=optional,

                            javax.servlet;version=2.4,

                            javax.servlet.http;version=2.4

                        </import-package>

                                                            <private-package>

                                                            </private-package>

                        <embed-dependency>  

                        </embed-dependency>

                    </instructions>

                </configuration>

            </plugin>

 

 

            <plugin>

                <groupid>org.apache.felix</groupid>

                <artifactid>maven-scr-plugin</artifactid>

                <version>1.9.0</version>

                <executions>

                    <execution>

                        <id>generate-scr-scrdescriptor</id>

                        <goals>

                            <goal>scr</goal>

                        </goals>

                    </execution>

                </executions>

            </plugin>

            <plugin>

                <groupid>org.apache.maven.plugins</groupid>

                <artifactid>maven-scm-plugin</artifactid>

                <version>1.0</version>

                <configuration>

                    <goals>install</goals>

                </configuration>

            </plugin>

        </plugins>

        <extensions>

            <extension>

                <groupid>org.apache.maven.wagon</groupid>

                <artifactid>wagon-webdav</artifactid>

                <version>1.0-beta-2</version>

            </extension>

            <extension>

                <groupid>org.apache.maven.wagon</groupid>

                <artifactid>wagon-ssh</artifactid>

                <version>1.0-beta-2</version>

            </extension>

        </extensions>

    </build>

<dependencies>

                    <dependency>

                              <groupid>junit</groupid>

                              <artifactid>junit</artifactid>

                              <version>3.8.1</version>

                              <scope>test</scope>

                    </dependency>

          </dependencies>

</project>

 

 

why osgi-inf folder not in .jar file? need set property information in osgo-inf folder since have register component osgi service. please guide me done.

 

thanks,

anderson

can try running debug mode , check log scr



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?