HI,
Thanks for the reply,attached is the output of maven.
Regarding bnd IPOJO plugin i am not getting information on how to use it.
Thanks & Regards
SAteesh.A
________________________________________
From: clement escoffier <[email protected]>
Sent: Wednesday, March 25, 2015 11:54 AM
To: [email protected]
Subject: Re: Ipojo War issue
Hi,
Do you have the maven output ?
Did you try the bnd iPOJO plugin ?
Regards,
Clement
2015-03-24 7:58 GMT+01:00 Sateesh <[email protected]>:
> Hi Ipojo Team,
>
>
> I am trying to create a war file which contains a component of ipojo to
> be created ,but unfortunately iam not able to succeed in it,but the same
> thing is working fine on bundle creation.
>
>
> I have pasted the pom file below and also attached the MANIFEST.MF
> file,you can see in MANIFEST.MF file it does not show the required import
> package and the class files with in war are also not manipulated by
> ipojo. Request you to please help me in getting this resolved.
>
>
> <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.aaaa</groupId>
> <artifactId>OSGIWebproject</artifactId>
> <version>1.0</version>
> <packaging>war</packaging>
>
> <name>OSGIWebproject</name>
>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
>
> <dependencies>
>
> <dependency>
> <groupId>org.apache.felix</groupId>
> <artifactId>org.osgi.core</artifactId>
> <version>1.4.0</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.tomcat</groupId>
> <artifactId>tomcat-servlet-api</artifactId>
> <version>7.0.59</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>javax.servlet.jsp</groupId>
> <artifactId>jsp-api</artifactId>
> <version>2.2</version>
> <scope>provided</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.felix</groupId>
> <artifactId>org.apache.felix.ipojo.annotations</artifactId>
> <version>1.11.0</version>
>
> </dependency>
> <dependency>
> <groupId>com.in10s</groupId>
> <artifactId>Workflow</artifactId>
> <version>1.0</version>
> <scope>provided</scope>
> </dependency>
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>2.5.3</version>
> <extensions>true</extensions>
> <executions>
> <execution>
> <id>bundle-manifest</id>
> <phase>package</phase>
> <goals>
> <goal>manifest</goal>
> </goals>
>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-ipojo-plugin</artifactId>
> <version>1.12.1</version>
> <executions>
> <execution>
> <goals>
> <goal>ipojo-bundle</goal>
> </goals>
> <phase>package</phase>
>
> </execution>
> </executions>
> <configuration>
> <metadata>src/main/java/ipojo/meta.xml</metadata>
>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.6</version>
> <configuration>
> <archive>
>
> <manifestFile>./src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
> </archive>
>
> <instructions>
>
> <Bundle-SymbolicName>OSGIWebproject</Bundle-SymbolicName>
>
> <Bundle-Version>${project.version}</Bundle-Version>
>
> <Import-Package>com.in10s.workflow.api</Import-Package>
>
> <Web-ContextPath>/OSGIWebproject</Web-ContextPath>
>
> <Webapp-Context>/OSGIWebproject</Webapp-Context>
> </instructions>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
>
> </project>
>
>
>
>
>
> Thanks & Regrads
>
> SAteesh.A
> The information contained in this e-mail and any accompanying documents
> may contain information that is confidential or otherwise protected from
> disclosure. If you are not the intended recipient of this message, or if
> this message has been addressed to you in error, please immediately alert
> the sender by reply e-mail and then delete this message, including any
> attachments. Any dissemination, distribution or other use of the contents
> of this message by anyone other than the intended recipient is strictly
> prohibited.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
The information contained in this e-mail and any accompanying documents may
contain information that is confidential or otherwise protected from
disclosure. If you are not the intended recipient of this message, or if this
message has been addressed to you in error, please immediately alert the sender
by reply e-mail and then delete this message, including any attachments. Any
dissemination, distribution or other use of the contents of this message by
anyone other than the intended recipient is strictly prohibited.
cd C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject;
"JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_11" "\"C:\\Program Files\\NetBeans
7.2\\java\\maven\\bin\\mvn.bat\"" clean install
Scanning for projects...
------------------------------------------------------------------------
Building OSGIWebproject 1.0
------------------------------------------------------------------------
[clean:clean]
Deleting C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\target
[resources:resources]
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 0 resource
[compiler:compile]
Compiling 2 source files to
C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\target\classes
[bundle:manifest]
Ignoring project type war - supportedProjectTypes = [jar, bundle]
[resources:testResources]
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory
C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\src\test\resources
[compiler:testCompile]
No sources to compile
[surefire:test]
No tests to run.
Surefire report directory:
C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[war:war]
Packaging webapp
Assembling webapp [OSGIWebproject] in
[C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\target\OSGIWebproject-1.0]
[info] Copying manifest...
Processing war project
Copying webapp resources
[C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\src\main\webapp]
Webapp assembled in [90 msecs]
Building war:
C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\target\OSGIWebproject-1.0.war
[ipojo:ipojo-bundle]
Start bundle manipulation
Metadata file :
C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\src\main\java\ipojo\meta.xml
Input Bundle File :
C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\target\OSGIWebproject-1.0.war
Apache Felix iPOJO Manipulator - 1.12.1
Bundle manipulation - SUCCESS
[install:install]
Installing
C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\target\OSGIWebproject-1.0.war
to
C:\Users\sateesh\.m2\repository\com\aaaa\OSGIWebproject\1.0\OSGIWebproject-1.0.war
Installing C:\Users\sateesh\Documents\NetBeansProjects\OSGIWebproject\pom.xml
to
C:\Users\sateesh\.m2\repository\com\aaaa\OSGIWebproject\1.0\OSGIWebproject-1.0.pom
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 4.729s
Finished at: Wed Mar 25 17:08:17 IST 2015
Final Memory: 21M/222M
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]