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
