Hi,
  The problem seems with the "<pluginManager>" element. you don't need to
put that element unless the pom is a parent pom which is inherited by other
children poms. "maven-bundle-plugin" needs to come outside of the
"<plubinManager>" tag. Just removing the "<pluginManager>" would solve the
issue. Try it.

Thanks,

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile    :  +94 777636406
Twitter    :  *https://twitter.com/roshku <https://twitter.com/roshku>*
LinkedIn :  https://www.linkedin.com/in/roshandeniyage


On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna <budd...@wso2.com> wrote:

> Hi All,
>
> I wrote pom.xml file to build the stub to create my carbon component. When
> i build it, it builds the bundle without giving any error. but it indicates
> an error in *<execution>* tag and it says "Plugin execution not covered
> by lifecycle configuration". to fix that i had put all the
> *<plugins>..</plugins>* part inside
> *<pluginManagement>..</pluginManagement>* tag. after i had done it, it
> gives *project build error: Unknown packaging:* bundle in *<packaging>*
> tag. how do i fix that?
>
> find my pom.xml here.
>
> <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>
>     <parent>
>         <groupId>org.wso2.carbon</groupId>
>         <artifactId>add-number-components</artifactId>
>         <version>4.2.0</version>
>     </parent>
>     <artifactId>org.wso2.carbon.add.num.stub</artifactId>
>     <packaging>bundle</packaging>
>     <name>WSO2 Carbon - Add Number Stub</name>
>
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.axis2.wso2</groupId>
>             <artifactId>axis2</artifactId>
>             <version>1.6.1.wso2v10</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.ws.commons.axiom.wso2</groupId>
>             <artifactId>axiom</artifactId>
>             <version>1.2.11.wso2v4</version>
>         </dependency>
>         <dependency>
>             <groupId>wsdl4j.wso2</groupId>
>             <artifactId>wsdl4j</artifactId>
>             <version>1.6.2.wso2v4</version>
>         </dependency>
>     </dependencies>
>
>     <build>
>         <pluginManager>
>             <plugins>
>                 <plugin>
>                     <groupId>org.apache.felix</groupId>
>                     <artifactId>maven-bundle-plugin</artifactId>
>                     <extensions>true</extensions>
>                     <configuration>
>                         <instructions>
>
> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
>
> <Bundle-Name>${project.artifactId}</Bundle-Name>
>                             <Private-Package>
>                             </Private-Package>
>                             <Export-Package>
>                                 org.wso2.carbon.add.num.*
>                             </Export-Package>
>                             <Import-Package>
>                                 !org.wso2.carbon.add.num.*
>                             </Import-Package>
>
> <DynamicImport-Package>*</DynamicImport-Package>
>                         </instructions>
>                     </configuration>
>                 </plugin>
>
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-antrun-plugin</artifactId>
>                     <version>1.1</version>
>                     <executions>
>                         <execution>
>                             <id>source-code-generation</id>
>                             <phase>process-resources</phase>
>                             <goals>
>                                 <goal>run</goal>
>                             </goals>
>                             <configuration>
>                                 <tasks>
>                                     <path id="wsdl2java.classpath">
>                                         <pathelement
>
> location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar"
> />
>                                         <pathelement
>
> location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"
> />
>                                         <pathelement
>
> location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"
> />
>                                     </path>
>                                     <java
> classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
>                                         <classpath
> refid="wsdl2java.classpath" />
>                                         <arg
>                                             line="-uri
> src/main/resources/OrderProcessingService.wsdl -u -uw
>                                      -o target/generated-code -p
> org.wso2.carbon.add.num.stub" />
>                                     </java>
>                                 </tasks>
>                             </configuration>
>                         </execution>
>                     </executions>
>                 </plugin>
>
>                 <plugin>
>                     <groupId>org.codehaus.mojo</groupId>
>                     <artifactId>build-helper-maven-plugin</artifactId>
>                     <executions>
>                         <execution>
>                             <id>add-source</id>
>                             <phase>generate-sources</phase>
>                             <goals>
>                                 <goal>add-source</goal>
>                             </goals>
>                             <configuration>
>                                 <sources>
>
> <source>target/generated-code/src</source>
>                                 </sources>
>                             </configuration>
>                         </execution>
>                     </executions>
>                 </plugin>
>             </plugins>
>         </pluginManager>
>     </build>
>
> </project>
>
>
> --
>
> *BuddhiC*
>
>
>
> *InternWSO2, Inc. *
> *Mob: +94 755 446 685 <%2B94%20755%20446%20685>*
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to