Hi Buddhi,

Is this issue resolved? Have you tried removing *<pluginManagement>* open
and close tags and specially adding the *version* of the maven bundle
plugin? As Vimalanathan suggested this does not effect the end result, only
eclipse has an issue understanding this.

The structure as below.

<build>
      <plugins>
            <plugin>

Then try adding the version for the maven bundle plugin.

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>1.4.0</version>
                <extensions>true</extensions>


Thanks,


On Tue, Oct 7, 2014 at 12:15 AM, Saneth Dharmakeerthi <[email protected]>
wrote:

> HI Buddhi,
>
>
> Remove the *<pluginManagement**>* tag from your POM and add following
>  segment in-between  </plugins> and </build>
>
>
>  *</plugins> *
>
> <pluginManagement>
>
> <plugins>
>
> <!--This plugin's configuration is used to store Eclipse m2e settings
>
> only. It has no influence on the Maven build itself. -->
>
> <plugin>
>
> <groupId>org.eclipse.m2e</groupId>
>
> <artifactId>lifecycle-mapping</artifactId>
>
> <version>1.0.0</version>
>
> <configuration>
>
> <lifecycleMappingMetadata>
>
> <pluginExecutions>
>
> <pluginExecution>
>
> <pluginExecutionFilter>
>
> <groupId>
>
> org.codehaus.mojo
>
> </groupId>
>
> <artifactId>
>
> build-helper-maven-plugin
>
> </artifactId>
>
> <versionRange>
>
> [1.9.1,)
>
> </versionRange>
>
> <goals>
>
> <goal>add-source</goal>
>
> </goals>
>
> </pluginExecutionFilter>
>
> <action>
>
> <ignore></ignore>
>
> </action>
>
> </pluginExecution>
>
>
>  <pluginExecution>
>
> <pluginExecutionFilter>
>
> <groupId> org.apache.maven.plugins </groupId>
>
> <artifactId>maven-antrun-plugin </artifactId>
>
> <versionRange> [1.1,) </versionRange>
>
> <goals>
>
> <goal>run</goal>
>
> </goals>
>
> </pluginExecutionFilter>
>
> <action>
>
> <ignore />
>
> </action>
>
> </pluginExecution>
>
>
>
>  </pluginExecutions>
>
> </lifecycleMappingMetadata>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </pluginManagement>
>
> *</build>*
>
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Fri, Oct 3, 2014 at 1:18 PM, Vimalanathan Rajeevan <[email protected]>
> wrote:
>
>> Hi Buddhi,
>>
>> You have to remove *<pluginManagement>..</pluginManagement>* tag
>> to successfully build it using maven. After removing that, even though the
>> line is marked as error in Eclipse, It does not matter. This may be because
>> of some bug with Eclipse. You can even successfully build the bundle and
>> deploy in carbon server.
>>
>> On Fri, Oct 3, 2014 at 12:31 PM, Buddhi Senarathna <[email protected]>
>> wrote:
>>
>>> Hi all,
>>> Thanks for your support. I did remove <pluginManager> tag and tested
>>> with <pluginManagement>. but result was the same. then i tried as
>>> Roshan said. now it is working fine. but again eclipse indicates *Plugin
>>> execution not covered by lifecycle configuration* error in *<execution>*
>>> tag. i have no issue with building the jar file. maven build it somehow.
>>> the problem is eclipse indicates this error.
>>> i'm using eclipse Luna Release (4.4.0) .
>>>
>>> On Fri, Oct 3, 2014 at 12:22 PM, Roshan Deniyage <[email protected]>
>>> wrote:
>>>
>>>> yes. the element is <pluginManagement> not  <pluginManager> (typo).
>>>> but same rule applies.
>>>>
>>>> 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 12:17 PM, Shashika Karunatilaka <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi Buddhi,
>>>>> Try to use <pluginManagement> instead of <pluginManager> tag
>>>>>
>>>>> On Fri, Oct 3, 2014 at 12:11 PM, Roshan Deniyage <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> 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 <[email protected]>
>>>>>> 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
>>>>>>> [email protected]
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Shashika Prabath Karunatilaka,
>>>>> Software Engineer,
>>>>> WSO2, Inc: http://wso2.com/
>>>>> mobile : +94 77 7487792
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *BuddhiC*
>>>
>>>
>>>
>>> *InternWSO2, Inc. *
>>> *Mob: +94 755 446 685 <%2B94%20755%20446%20685>*
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> V.Rajeevan
>> Software Engineer,
>> WSO2 Inc. :http://wso2.com
>>
>> Mobile : +94 773090875
>> Email : [email protected]
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to