sateesh created FELIX-4911:
------------------------------
Summary: Ipojo war file not generating the manipulated class
Key: FELIX-4911
URL: https://issues.apache.org/jira/browse/FELIX-4911
Project: Felix
Issue Type: Bug
Components: iPOJO
Environment: windows 7,java 1.7,eclipse luna.Ipojo 1.12.1
Reporter: sateesh
Priority: Blocker
I am trying to create a war packaging 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 packaging.The generated war file does not contain the
manipulated class files of the components.
I have pasted the pom file below and the maven ouput of it.The maven output
shows it as success but the class files are not manipulated.
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>in10s</groupId>
<artifactId>WorkflowUI</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
<name>WorkflowUI</name>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.ipojo</artifactId>
<version>1.12.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>in10s</groupId>
<artifactId>WorkflowCore</artifactId>
<version>1.0.0</version>
<type>bundle</type>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<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>WorkflowUI</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Import-Package>com.in10s.workflow.api</Import-Package>
<Web-ContextPath>/WorkflowUI</Web-ContextPath>
<Webapp-Context>/WorkflowUI</Webapp-Context>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<version>2.5.3</version>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
</instructions>
</configuration>
</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>
<configuration>
<metadata>src/main/java/ipojo/metadata.xml</metadata>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Maven OutPut:
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WorkflowUI 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ WorkflowUI ---
[INFO] Deleting D:\eclipse_workspace_new\WorkflowUI\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
WorkflowUI ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ WorkflowUI
---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e.
build is platform dependent!
[INFO] Compiling 2 source files to
D:\eclipse_workspace_new\WorkflowUI\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @
WorkflowUI ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
WorkflowUI ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ WorkflowUI ---
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ WorkflowUI ---
[INFO] Packaging webapp
[INFO] Assembling webapp [WorkflowUI] in
[D:\eclipse_workspace_new\WorkflowUI\target\WorkflowUI-1.0.0]
[info] Copying manifest...
[INFO] Processing war project
[INFO] Copying webapp resources
[D:\eclipse_workspace_new\WorkflowUI\src\main\webapp]
[INFO] Webapp assembled in [5503 msecs]
[INFO] Building war:
D:\eclipse_workspace_new\WorkflowUI\target\WorkflowUI-1.0.0.war
[INFO]
[INFO] --- maven-ipojo-plugin:1.12.1:ipojo-bundle (default) @ WorkflowUI ---
[INFO] Start bundle manipulation
[INFO] Metadata file :
D:\eclipse_workspace_new\WorkflowUI\src\main\java\ipojo\metadata.xml
[INFO] Input Bundle File :
D:\eclipse_workspace_new\WorkflowUI\target\WorkflowUI-1.0.0.war
[INFO] Apache Felix iPOJO Manipulator - 1.12.1
[INFO] Bundle manipulation - SUCCESS
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ WorkflowUI ---
[INFO] Installing
D:\eclipse_workspace_new\WorkflowUI\target\WorkflowUI-1.0.0.war to
C:\Users\sateesh\.m2\repository\in10s\WorkflowUI\1.0.0\WorkflowUI-1.0.0.war
[INFO] Installing D:\eclipse_workspace_new\WorkflowUI\pom.xml to
C:\Users\sateesh\.m2\repository\in10s\WorkflowUI\1.0.0\WorkflowUI-1.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.836 s
[INFO] Finished at: 2015-06-01T19:43:59+05:30
[INFO] Final Memory: 13M/43M
[INFO] ------------------------------------------------------------------------
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)