Hi Supun,
Add following repos to your pom file. This should solve the issue.
<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>
<repository>
<id>wso2.releases</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/releases/
</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</repository>
<repositories>
Thanks,
Rajith
On Wed, Oct 1, 2014 at 11:34 AM, Supun Muthutantrige <[email protected]>
wrote:
> Hii,
>
> I went through the following article to write a Carbon Component
>
> [01].
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>
> I have completed most of the steps in [01], but when trying to *mvn clean
> install* the *pom.xml* under *org.wso2.carbon.student.mgt.ui*, following
> error occurs.
>
>
> --------------------- *Begin Error Stack* ------------------------------
> ---
>
>
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective
> model for org.wso2.carbon:org.wso2.carbon.student.mgt.ui:bundle:4.2.0
> [WARNING] 'build.plugins.plugin.version' for
> org.apache.felix:maven-bundle-plugin is missing. @ line 24, column 12
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> [WARNING]
> [INFO]
> [INFO] Using the builder
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
> with a thread count of 1
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building WSO2 Carbon - Student Manager UI Component 4.2.0
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.409 s
> [INFO] Finished at: 2014-10-01T10:04:28+05:30
> [INFO] Final Memory: 14M/206M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project org.wso2.carbon.student.mgt.ui:
> Could not resolve dependencies for project
> org.wso2.carbon:org.wso2.carbon.student.mgt.ui:bundle:4.2.0: Failed to
> collect dependencies at
> org.wso2.carbon:org.wso2.carbon.student.mgt.stub:jar:4.2.0: Failed to read
> artifact descriptor for
> org.wso2.carbon:org.wso2.carbon.student.mgt.stub:jar:4.2.0: Failure to find
> org.wso2.carbon:student-manager-components:pom:4.2.0 in
> http://repo.maven.apache.org/maven2 was cached in the local repository,
> resolution will not be reattempted until the update interval of central has
> elapsed or updates are forced -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
>
> --------------------- *End Error Stack* ---------------------------------
>
>
>
> The relevant pom.xml as follows
>
>
>
> ---------------- *Start org.wso2.carbon.student.mgt.ui / pom.xml*
> ------------------
>
>
> <?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.ui</artifactId>
> <packaging>bundle</packaging>
> <name>WSO2 Carbon - Student Manager UI Component</name>
>
> <dependencies>
> <dependency>
> <groupId>org.wso2.carbon</groupId>
> <artifactId>org.wso2.carbon.student.mgt.stub</artifactId>
> <version>4.2.0</version>
> </dependency>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <extensions>true</extensions>
> <configuration>
> <instructions>
>
> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
> <Bundle-Name>${project.artifactId}</Bundle-Name>
> <Export-Package>
> org.wso2.carbon.student.mgt.*
> </Export-Package>
> <Import-Package>
> *;resolution:=optional
> </Import-Package>
> <Carbon-Component>UIBundle</Carbon-Component>
> </instructions>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
> ----------------- *End org.wso2.carbon.student.mgt.ui / pom.xml*
> ------------------
>
>
> Please Help.
>
>
> Regards
>
>
>
> *Supun Rasitha Muthutantrige*
>
>
>
>
> *supunrWSO2 Inc: http://wso2.com <http://wso2.com>
> lean.enterprise.middleware*
> *Mobile: 0758374608*
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
*Rajith Siriwardana*
Software Engineer | Cloud Team
WSO2 Inc. ; http://wso2.com
*lean. enterprise. middleware*
---------------------------------------------------
*http://people.apache.org/~siriwardana
<http://people.apache.org/~siriwardana>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev