Hi Farasath,
I reckon following dependencies ,repositories and plugin managements are
missing in pom.xml related to org.wso2.carbon.student.mgt.stub
Try adding following dependency to pom.xml
<dependency>
<groupId>org.apache.axis2.wso2</groupId>
<artifactId>axis2-client</artifactId>
<version>1.6.1.wso2v10</version>
</dependency>
<repositories>
<repository>
<id>wso2-nexus</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/
</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</repository>
</repositories>
<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>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Here I attached the pom.xml with all the changes I mentioned. Use this pom
and try again.
On Fri, Dec 19, 2014 at 12:23 AM, Chamin Nalinda <[email protected]> wrote:
>
> Hi Farasath,
>
> I reckon following dependencies ,repositories and plugin managements are
> missing in pom.xml related to org.wso2.carbon.student.mgt.stub
>
> Try adding following dependency to pom.xml
>
> <dependency>
> <groupId>org.apache.axis2.wso2</groupId>
> <artifactId>axis2-client</artifactId>
> <version>1.6.1.wso2v10</version>
> </dependency>
>
> <repositories>
> <repository>
> <id>wso2-nexus</id>
> <name>WSO2 internal Repository</name>
> <url>http://maven.wso2.org/nexus/content/groups/wso2-public/
> </url>
> <releases>
> <enabled>true</enabled>
> <updatePolicy>daily</updatePolicy>
> <checksumPolicy>ignore</checksumPolicy>
> </releases>
> </repository>
> </repositories>
>
> <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>
> </pluginExecutions>
> </lifecycleMappingMetadata>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
>
> Here I attached the pom.xml with all the changes I mentioned. Use this
> pom and try again.
>
>
>
> On Thu, Dec 18, 2014 at 6:52 PM, Farasath Ahamed <[email protected]>
> wrote:
>
>> Here is the unanswered stackoverflow question :
>> http://stackoverflow.com/questions/27302835/error-building-carbon-component?s=1|5.3551
>>
>> On Thu, Dec 18, 2014 at 6:50 PM, Farasath Ahamed <[email protected]>
>> wrote:
>>>
>>>
>>> I am following tutorial[1] on building a carbon component. Everything
>>> went smooth untill i came to the part of generating the service stuff. When
>>> trying to generate the java classes using the wsdl of the service i get a
>>> warning and eventually the build fails(Screen shot attached).
>>>
>>> The warning says:
>>>
>>>
>>> * [java] Retrieving document at
>>> 'src/main/resources/StudentManager.wsdl'. [java] Dec 18, 2014 6:46:33 PM
>>> org.apache.axis2.schema.SchemaCompiler compile [java] WARNING: No
>>> schemaLocation for import of http://data.mgt.student.carbon.wso2.org/xsd
>>> <http://data.mgt.student.carbon.wso2.org/xsd>; compilation may fail*
>>>
>>> i searched online for a solution and came across this unanswered
>>> stackoverflow question which has the same problem as mine.
>>>
>>> Can some please help me out?
>>>
>>> [1]
>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>> --
>>> *Farasath Ahamed*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>>
>>> Mobile: +94 777 603 866
>>> E-Mail: farasath <http://goog_1999535192>[email protected]
>>>
>>
>>
>> --
>> *Farasath Ahamed*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>>
>> Mobile: +94 777 603 866
>> E-Mail: farasath <http://goog_1999535192>[email protected]
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> *Chamin Nalinda*
>
> Intern - Engineering
> WSO2 Inc. http://www.wso2.com
> lean.enterprise.middleware
>
> Mobile: (+94) 77 241 66 04
> Linkedin: https://www.linkedin.com/in/chaminnalinda
> Web: http://www.ckreativity.com
> Blog: http://techspiro.blogspot.com/
>
>
--
*Chamin Nalinda*
Intern - Engineering
WSO2 Inc. http://www.wso2.com
lean.enterprise.middleware
Mobile: (+94) 77 241 66 04
Linkedin: https://www.linkedin.com/in/chaminnalinda
Web: http://www.ckreativity.com
Blog: http://techspiro.blogspot.com/
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>student-manager-components</artifactId>
<groupId>org.wso2.carbon</groupId>
<version>4.2.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.student.mgt.stub</artifactId>
<packaging>bundle</packaging>
<name>WSO2 Carbon - Student Manager Stub</name>
<dependencies>
<dependency>
<groupId>org.apache.axis2.wso2</groupId>
<artifactId>axis2</artifactId>
<version>1.6.1.wso2v10</version>
</dependency>
<dependency>
<groupId>org.apache.axis2.wso2</groupId>
<artifactId>axis2-client</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>
<repositories>
<repository>
<id>wso2-nexus</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</repository>
</repositories>
<build>
<plugins>
<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/StudentManager.wsdl -u -uw
-o target/generated-code -p org.wso2.carbon.student.mgt.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>
<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.student.mgt.*
</Export-Package>
<Import-Package>
!org.wso2.carbon.student.mgt.*
</Import-Package>
<DynamicImport-Package>*</DynamicImport-Package>
</instructions>
</configuration>
</plugin>
</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>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev