You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2013/02/04 13:36:14 UTC

[jira] [Closed] (FELIX-2825) The maven-ipojo-plugin does not replace component classes in WAR files

     [ https://issues.apache.org/jira/browse/FELIX-2825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier closed FELIX-2825.
------------------------------------

    
> The maven-ipojo-plugin does not replace component classes in WAR files
> ----------------------------------------------------------------------
>
>                 Key: FELIX-2825
>                 URL: https://issues.apache.org/jira/browse/FELIX-2825
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.8.0
>         Environment: Jetty, Windows
>            Reporter: Dyblast
>            Assignee: Clement Escoffier
>             Fix For: ipojo-manipulator-1.8.2
>
>
> HI,
> I have notice a problem with the maven-ipojo-plugin on war package.
> The resulting classes are incorrect.
> Indeed when i create a war i have this error when i deploy it:
>  createInstance -> Cannot invoke the constructor (method not found) :
> Now if i create a bundle instead, i take the classes from it and i put it in the former war, the war works
> my plugins part of maven:
> -------------------------------------------------
>         <plugins>
>             <plugin>
>                 <artifactId>maven-war-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>
>                 <version>1.4.3</version>
>                 <extensions>true</extensions>
>                 <executions>
>                     <execution>
>                         <id>bundle-manifest</id>
>                         <phase>process-classes</phase>
>                         <goals>
>                             <goal>manifest</goal>
>                         </goals>
>                         <configuration>
>                             <instructions>
>                                 <Bundle-ClassPath>
>                                     .,
>                                     WEB-INF/classes
>                                 </Bundle-ClassPath>
>                                 <Embed-Directory>WEB-INF/lib</Embed-Directory>
>                                 <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
>                                 <Embed-Transitive>true</Embed-Transitive>
>                                 <Web-ContextPath>webapp</Web-ContextPath>
>                                 <Webapp-Context>webapp</Webapp-Context>
>                             </instructions>
>                         </configuration>
>                     </execution>
>                 </executions>
>                 <configuration>
>                     <supportedProjectTypes>
>                         <supportedProjectType>jar</supportedProjectType>
>                         <supportedProjectType>bundle</supportedProjectType>
>                         <supportedProjectType>war</supportedProjectType>
>                     </supportedProjectTypes>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-ipojo-plugin</artifactId>
>                 <version>1.8.0</version>
>                 <executions>
>                     <execution>
>                         <goals>
>                             <goal>ipojo-bundle</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
> -------------------------------------------------------------

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira