Re: [Dev] Error in writing a Carbon component

2014-09-17 Thread Firzhan Naqash
Hi Lahiru,

I think you haven't mentioned the repository and plugin-repository
proplerly in your pom.xml file.

Try to add nexus-repo in your pom.xml file

repositories
repository
idwso2-nexus/id
nameWSO2 internal Repository/name
urlhttp://maven.wso2.org/nexus/content/groups/wso2-public//url
releases
enabledtrue/enabled
updatePolicydaily/updatePolicy
checksumPolicyfail/checksumPolicy
/releases
/repository

/repositories

And try to add plugin-repository in your pom file.

pluginRepositories
pluginRepository
idwso2-maven2-repository-1/id
urlhttp://dist.wso2.org/maven2/url
/pluginRepository
pluginRepository
idwso2-maven2-repository-2/id
urlhttp://dist.wso2.org/snapshots/maven2/url
/pluginRepository
pluginRepository
idrepository.dev.java.net-maven2/id
nameJava.net Repository for Maven/name
urlhttp://download.java.net/maven/2//url
layoutdefault/layout
/pluginRepository
/pluginRepositories


Do a clean mvn build. This may solve your problem


Regards,
Firzhan

On Wed, Sep 17, 2014 at 12:44 PM, Lahiru Cooray lahi...@wso2.com wrote:

 Hi,

 I'm following these tutorials to write a Carbon component (and a Feature).
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2]
 http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/

 I have successfully completed the tutorial [1].
 But when I follow all the steps in tutorial [2] , I get the below error.
 please help..


 *Error
 stack*

  SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.

 SLF4J: Defaulting to no-operation (NOP) logger implementation

 SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
 details.

 [INFO] Scanning for projects...

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 19, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 133, column 21

 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 114, column
 21

 [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 25, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [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] Reactor Build Order:

 [INFO]

 [INFO] WSO2 Carbon - Student Manager

 [INFO] WSO2 Carbon - Student Manager Components

 [INFO] WSO2 Carbon - Student Manager Server Component

 [INFO] WSO2 Carbon - Student Manager Stub

 [INFO] WSO2 Carbon - Student Manager UI Component

 [INFO] WSO2 Carbon - Student Manager Features

 [INFO] WSO2 Carbon - Student Manager UI Feature

 [INFO] WSO2 Carbon - Student Manager Aggregate Feature

 [INFO] WSO2 Carbon - Student Manager Feature Repository

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager 4.2.0

 [INFO]
 

 [INFO]

 [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
 student-manager ---

 [INFO] Installing
 /Users/lahiruC/Documents/FastTrackerProgram/7-Carbon/StudentMgtEx/student-manager/pom.xml
 to
 /Users/lahiruC/.m2/repository/org/wso2/carbon/student-manager/4.2.0/student-manager-4.2.0.pom

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager Components 4.2.0

 [INFO]
 

 [INFO]

 [INFO] --- maven-install-plugin:2.3.1:install 

Re: [Dev] Error in writing a Carbon component

2014-09-17 Thread Lahiru Cooray
thanks a lot Firzhan.. Will try this..

On Wed, Sep 17, 2014 at 12:47 PM, Firzhan Naqash firz...@wso2.com wrote:


 Hi Lahiru,

 I think you haven't mentioned the repository and plugin-repository
 proplerly in your pom.xml file.

 Try to add nexus-repo in your pom.xml file

 repositories
 repository
 idwso2-nexus/id
 nameWSO2 internal Repository/name
 urlhttp://maven.wso2.org/nexus/content/groups/wso2-public//url
 releases
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
 checksumPolicyfail/checksumPolicy
 /releases
 /repository

 /repositories

 And try to add plugin-repository in your pom file.

 pluginRepositories
 pluginRepository
 idwso2-maven2-repository-1/id
 urlhttp://dist.wso2.org/maven2/url
 /pluginRepository
 pluginRepository
 idwso2-maven2-repository-2/id
 urlhttp://dist.wso2.org/snapshots/maven2/url
 /pluginRepository
 pluginRepository
 idrepository.dev.java.net-maven2/id
 nameJava.net Repository for Maven/name
 urlhttp://download.java.net/maven/2//url
 layoutdefault/layout
 /pluginRepository
 /pluginRepositories


 Do a clean mvn build. This may solve your problem


 Regards,
 Firzhan

 On Wed, Sep 17, 2014 at 12:44 PM, Lahiru Cooray lahi...@wso2.com wrote:

 Hi,

 I'm following these tutorials to write a Carbon component (and a Feature).
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2]
 http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/

 I have successfully completed the tutorial [1].
 But when I follow all the steps in tutorial [2] , I get the below error.
 please help..


 *Error
 stack*

  SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.

 SLF4J: Defaulting to no-operation (NOP) logger implementation

 SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
 further details.

 [INFO] Scanning for projects...

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 19, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 133, column 21

 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 114, column
 21

 [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 25, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [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] Reactor Build Order:

 [INFO]

 [INFO] WSO2 Carbon - Student Manager

 [INFO] WSO2 Carbon - Student Manager Components

 [INFO] WSO2 Carbon - Student Manager Server Component

 [INFO] WSO2 Carbon - Student Manager Stub

 [INFO] WSO2 Carbon - Student Manager UI Component

 [INFO] WSO2 Carbon - Student Manager Features

 [INFO] WSO2 Carbon - Student Manager UI Feature

 [INFO] WSO2 Carbon - Student Manager Aggregate Feature

 [INFO] WSO2 Carbon - Student Manager Feature Repository

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager 4.2.0

 [INFO]
 

 [INFO]

 [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
 student-manager ---

 [INFO] Installing
 /Users/lahiruC/Documents/FastTrackerProgram/7-Carbon/StudentMgtEx/student-manager/pom.xml
 to
 /Users/lahiruC/.m2/repository/org/wso2/carbon/student-manager/4.2.0/student-manager-4.2.0.pom

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager Components 4.2.0