Hi,
I could fix the above problem by adding the generated package as a private
package as follows.

<Private-Package>
    
org.wso2.carbon.appfactory.issuetracking.internal.*,com.atlassian.jira.rpc.soap.client
</Private-Package>

Thanks.

Regards,

Dilhasha


*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*[email protected] <[email protected]>*mobile : +94 77 8449321

On Mon, Mar 30, 2015 at 9:43 PM, Fathima Dilhasha <[email protected]> wrote:

> Following is the complete pom.xml file for the related Carbon Component.
>
> <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/maven-v4_0_0.xsd";>
>
>     <parent>
>         <groupId>org.wso2.carbon</groupId>
>         <artifactId>appfactory</artifactId>
>         <version>2.1.0-SNAPSHOT</version>
>    <relativePath>../pom.xml</relativePath>
>     </parent>
>
>     <modelVersion>4.0.0</modelVersion>
>     <artifactId>org.wso2.carbon.appfactory.issuetracking</artifactId>
>     <version>2.1.0</version>
>     <packaging>bundle</packaging>
>     <name>WSO2 Appfactory - Issue Tracking</name>
>     <description>Appfactory common BE component for WSO2 Appfactory Issue 
> Tracking</description>
>     <url>http://www.wso2.com</url>
>
>
>     <repositories>
>         <repository>
>             <id>atlassian</id>
>             <name>Atlassian Repository</name>
>             <url>https://maven.atlassian.com/content/groups/public</url>
>         </repository>
>     </repositories>
>
>
>     <pluginRepositories>
>         <pluginRepository>
>             <id>atlassian</id>
>             <name>Atlassian Repository</name>
>             <url>https://maven.atlassian.com/content/groups/public</url>
>         </pluginRepository>
>     </pluginRepositories>
>
>     <profiles>
>         <profile>
>             <id>buildclient</id>
>             <build>
>                 <defaultGoal>assembly:assembly</defaultGoal>
>             </build>
>         </profile>
>         <profile>
>             <id>fetch-wsdl</id>
>             <build>
>                 <defaultGoal>generate-sources</defaultGoal>
>                 <plugins>
>                     <plugin>
>                         <artifactId>maven-antrun-plugin</artifactId>
>                         <executions>
>                             <execution>
>                                 <phase>generate-sources</phase>
>                                 <goals>
>                                     <goal>run</goal>
>                                 </goals>
>                                 <configuration>
>                                     <tasks>
>                                         <get 
> src="${jira.soapclient.jiraurl}/rpc/soap/jirasoapservice-v2?wsdl"
>                                              
> dest="${basedir}/src/main/wsdl/jirasoapservice-v2.wsdl"/>
>                                     </tasks>
>                                 </configuration>
>                             </execution>
>                         </executions>
>                         <dependencies>
>                             <dependency>
>                                 <groupId>axis</groupId>
>                                 <artifactId>axis-ant</artifactId>
>                                 <version>1.3</version>
>                             </dependency>
>                         </dependencies>
>                     </plugin>
>                 </plugins>
>             </build>
>             <properties>
>                 
> <jira.soapclient.jiraurl>http://wso2:2990/jira</jira.soapclient.jiraurl>
>             </properties>
>         </profile>
>     </profiles>
>
>     <dependencies>
>         <dependency>
>             <groupId>org.apache.axis2.wso2</groupId>
>             <artifactId>axis2</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.wso2.carbon</groupId>
>             <artifactId>org.wso2.carbon.core</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.wso2.carbon</groupId>
>             <artifactId>org.wso2.carbon.core.services</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.wso2.carbon</groupId>
>             <artifactId>org.wso2.carbon.appfactory.common</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>com.taskadapter</groupId>
>             <artifactId>redmine-java-api</artifactId>
>         </dependency>
>            <dependency>
>             <groupId>org.apache.httpcomponents</groupId>
>             <artifactId>httpclient</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.httpcomponents</groupId>
>             <artifactId>httpcore</artifactId>
>         </dependency>
>        <dependency>
>            <groupId>org.wso2.carbon</groupId>
>            <artifactId>org.wso2.carbon.appfactory.core</artifactId>
>        </dependency>
>         <dependency>
>             <groupId>org.wso2.carbon</groupId>
>             
> <artifactId>org.wso2.carbon.appfactory.application.mgt</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-transports-http</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>commons-httpclient</groupId>
>             <artifactId>commons-httpclient</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.slf4j</groupId>
>             <artifactId>slf4j-api</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>axis</groupId>
>             <artifactId>axis</artifactId>
>             <version>1.3</version>
>         </dependency>
>         <dependency>
>             <groupId>axis</groupId>
>             <artifactId>axis-jaxrpc</artifactId>
>             <version>1.3</version>
>         </dependency>
>         <dependency>
>             <groupId>axis</groupId>
>             <artifactId>axis-saaj</artifactId>
>             <version>1.3</version>
>         </dependency>
>         <dependency>
>             <groupId>axis</groupId>
>             <artifactId>axis-wsdl4j</artifactId>
>             <version>1.5.1</version>
>             <scope>compile</scope>
>         </dependency>
>     </dependencies>
>
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-scr-plugin</artifactId>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <instructions>
>                         <Bundle-SymbolicName>
>                             ${project.artifactId}
>                         </Bundle-SymbolicName>
>                         <Export-Package>
>                             org.wso2.carbon.appfactory.issuetracking.*
>                         </Export-Package>
>                         <Private-Package>
>                             
> org.wso2.carbon.appfactory.issuetracking.internal.*
>                         </Private-Package>
>                         <Import-Package>
>                             !javax.xml.namespace,
>                             javax.xml.namespace; version=0.0.0,
>                             org.apache.axiom.*; 
> version="${axiom.osgi.version.range}",
>                             *;resolution:=optional
>                         </Import-Package>
>                         <DynamicImport-Package>*</DynamicImport-Package>
>                         
> <Embed-Dependency>redmine-java-api,httpclient,httpcore</Embed-Dependency>
>                         <Embed-Transitive>true</Embed-Transitive>
>                     </instructions>
>                 </configuration>
>             </plugin>
>
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>axistools-maven-plugin</artifactId>
>                 <version>1.3</version>
>                 <dependencies>
>                     <dependency>
>                         <groupId>axis</groupId>
>                         <artifactId>axis</artifactId>
>                         <version>1.3</version>
>                     </dependency>
>                 </dependencies>
>                 <configuration>
>                     <wsdlFiles>
>                         <wsdlFile>jirasoapservice-v2.wsdl</wsdlFile>
>                     </wsdlFiles>
>                     
> <packageSpace>com.atlassian.jira.rpc.soap.client</packageSpace>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <id>wsdl2java-generation</id>
>                         <phase>generate-sources</phase>
>                         <goals>
>                             <goal>wsdl2java</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>             <plugin>
>                 <artifactId>maven-assembly-plugin</artifactId>
>                 <configuration>
>                     <descriptorRefs>
>                         <descriptorRef>jar-with-dependencies</descriptorRef>
>                     </descriptorRefs>
>                     <archive>
>                         <manifest>
>                             <addClasspath>true</addClasspath>
>                             
> <mainClass>org.wso2.carbon.appfactory.issuetracking.SOAPClient</mainClass>
>                         </manifest>
>                     </archive>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-shade-plugin</artifactId>
>                 <version>2.2</version>
>                 <executions>
>                     <execution>
>                         <phase>package</phase>
>                         <goals>
>                             <goal>shade</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>                 <configuration>
>                     <minimizeJar>true</minimizeJar>
>                     <artifactSet>
>                         <includes>
>                             <include>axis:axis-jaxrpc</include>
>                             <include>axis:axis</include>
>                             <include>axis:axis-saaj</include>
>                             <include>axis:axis-wsdl4j</include>
>                         </includes>
>                     </artifactSet>
>                 </configuration>
>             </plugin>
>         </plugins>
>     </build>
>
> </project>
>
>
> *M.N.F. Dilhasha*
> Software Engineering Intern | *WSO2 Lanka*
>
> email   :
> *[email protected] <[email protected]>*mobile : +94 77 8449321
>
> On Mon, Mar 30, 2015 at 9:40 PM, Fathima Dilhasha <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am using the following plugin in the pom.xml file for a carbon
>> component in order to create a SOAP client for Jira.
>>
>> <plugin>
>>     <groupId>org.codehaus.mojo</groupId>
>>     <artifactId>axistools-maven-plugin</artifactId>
>>     <version>1.3</version>
>>     <dependencies>
>>         <dependency>
>>             <groupId>axis</groupId>
>>             <artifactId>axis</artifactId>
>>             <version>1.3</version>
>>         </dependency>
>>     </dependencies>
>>     <configuration>
>>         <wsdlFiles>
>>             <wsdlFile>jirasoapservice-v2.wsdl</wsdlFile>
>>         </wsdlFiles>
>>         <packageSpace>com.atlassian.jira.rpc.soap.client</packageSpace>
>>     </configuration>
>>     <executions>
>>         <execution>
>>             <id>wsdl2java-generation</id>
>>             <phase>generate-sources</phase>
>>             <goals>
>>                 <goal>wsdl2java</goal>
>>             </goals>
>>         </execution>
>>     </executions>
>> </plugin>
>>
>> But when I build the component the class files generated by this plugin
>> are missing in the built jar file.
>>
>> Is there any configurations I can do to bundle these class files in to
>> the Carbon component, may be in the Manifest file?
>>
>> Any advice is highly appreciated.
>>
>> Thanks.
>>
>> Regards,
>> Dilhasha
>>
>>
>> *M.N.F. Dilhasha*
>> Software Engineering Intern | *WSO2 Lanka*
>>
>> email   :
>> *[email protected] <[email protected]>*mobile : +94 77 8449321
>>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to