构建身份服务器 - 为什么 mvn eclipse:eclipse 之后的项目这么少? [英] building identity server - why so few project after mvn eclipse:eclipse?

查看:21
本文介绍了构建身份服务器 - 为什么 mvn eclipse:eclipse 之后的项目这么少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照 你试过.您可能在那里找不到太多的 Java 源代码.构建产品的实际组件的 Java 源代码,可以在组件 这里.

Carbon 平台由许多特性组成(OSGI 组件集).例如,XACML(我们称其为权利")是 WSO2 Carbon 平台的一项功能,它随 WSO2 Identity Server 一起提供.像这样,Identity Server 附带了一些功能,例如 SSO、OAuth、WS-Trust 等等.所以;比如说,如果你只对 XACML 特性感兴趣,你可以查看 XACML 特性的源代码.XACML 特性是一组四个 OSGI 组件,如下所示...

  • org.wso2.carbon.identity.entitlement -> 这是核心组件.
  • org.wso2.carbon.identity.entitlement.ui --> 这包含登录到服务器后可以看到的管理控制台 UI.
  • org.wso2.carbon.identity.entitlement.common --> 包含核心和UI的一些常用功能
  • org.wso2.carbon.identity.entitlement.stub --> 这包含自动生成的存根类.这有助于 UI 组件调用后端服务.

你可以在chuck 06的components/identity/"下搜索,就能找到这些组件的来源.

这样,您就可以找到您感兴趣的功能的来源.我们无法从一处找到 WSO2 Identity Sever 的产品来源.然而,大部分源代码都在/platform/components/identity 下.

我想这会帮助你了解一些.

I have followed the instructions here for building IS 4.6.0, in summary:

  1. SVN Checkout from: https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk06
  2. Commented out APIMGT in $CARBON_SRC/product-releases/chunk-06/products/pom.xml
  3. Commented out SS in $CARBON_SRC/product-releases/chunk-06/products/pom.xml
  4. Run mvn clean install on $CARBON_SRC/product-releases/chunk-06/products/pom.xml
  5. Run mvn eclipse:eclipse on $CARBON_SRC/product-releases/chunk-06/products/pom.xml

NOTE: I scripted these steps rather than manually run them. The bash script is here.

However, when I try to import the projects into eclipse, I only have the following projects as shown in the picture below.

Question: Does the number of projects imported look right? I was expecting to see a lot more imported projects.


解决方案

You want to import the all the source of the WSO2 Identity Server in to eclipse? I guess it is not much easy. Because WSO2 Identity Server is only an one product in Carbon platform. There are many components that help to build this product.. If you just see the source inside the svn that you tried. You may not find much java source code there. Java source of the actual components that builds the product, can found at under the component here.

Carbon platform consists of many features (set of OSGI component). As an example, XACML (we said it as "entitlement" ) is an one feature of WSO2 Carbon platform and it is shipped with WSO2 Identity Server. Like that there are several feature such as SSO, OAuth, WS-Trust and many more... that are shipped with Identity Server. Therefore; Say, if you are only interesting in XACML feature, you can look in to the XACML feature's source code. XACML feature is a set of four OSGI components as follows...

  • org.wso2.carbon.identity.entitlement -> This is the core component.
  • org.wso2.carbon.identity.entitlement.ui --> This contains the management console UI that can be seen once you login to the server.
  • org.wso2.carbon.identity.entitlement.common --> This contains some common functions of both core and UI
  • org.wso2.carbon.identity.entitlement.stub --> This contains auto generated stub class. This helps UI component to call the backend services.

You can search under that "components/identity/" in chuck 06, you would be able to find the source of these components.

Like that, you can find the source of the feature that you are interested. We can not find the WSO2 Identity Sever's product source from one place. However most of the source are under /platform/components/identity.

I guess this would help you to get some understand.

这篇关于构建身份服务器 - 为什么 mvn eclipse:eclipse 之后的项目这么少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆