kylin icon indicating copy to clipboard operation
kylin copied to clipboard

add Document

Open monster0007 opened this issue 3 years ago • 3 comments

Proposed changes

windows加速构建Kylin源码 安装本地nexus。 在构建Kylin源码过程中,会出现下载jar缓慢,或者是找不到jar等问题。 通过安装本地nexus来解决以上问题。

Windows Accelerated Build Kylin source install local Nexus Windows accelerated Build Kylin source install local Nexus.
When building Kylin's source code, there are problems such as slow jar downloads or jar discovery.
Fix this by installing a local Nexus.

Github Branch

document

Types of changes

What types of changes does your code introduce to Kylin?

No change, add a new document kylin_build_src_setup_local_nexus.cn.md

windows加速构建Kylin源码 安装本地nexus。 在构建Kylin源码过程中,会出现下载jar缓慢,或者是找不到jar等问题。 通过安装本地nexus来解决以上问题。

Windows Accelerated Build Kylin source install local Nexus Windows accelerated Build Kylin source install local Nexus.
When building Kylin's source code, there are problems such as slow jar downloads or jar discovery.
Fix this by installing a local Nexus.

Put an x in the boxes that apply

  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • [ ] I have create an issue on Kylin's jira, and have described the bug/feature there in detail
  • [ ] Commit messages in my PR start with the related jira ID, like "KYLIN-0000 Make Kylin project open-source"
  • [ ] Compiling and unit tests pass locally with my changes
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [x] I have added necessary documentation (if appropriate)
  • [ ] Any dependent changes have been merged

Further comments

monster0007 avatar Sep 16 '21 10:09 monster0007

Hello, @monster0007 .

From my sides, I will choose to configure some mirror repository url in ~/.m2/settings.xml to make download much more quicker, and it works fine to me. Thanks.

<repositories>
        <repository>
          <id>aliyun</id>
          <name>local private nexus</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>nexus</id>
          <name>local private nexus</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>

hit-lacus avatar Sep 18 '21 05:09 hit-lacus

Hello @hit-lacus Sometimes I want to build source code but can't connect to the Internet, so I have to build it this way.
Best Regards monster0007

monster0007 avatar Sep 18 '21 06:09 monster0007

  1. I think, Nexus is for an enterprise or a big project to use, not for independent developer.
  2. "build source code but can't connect to the Internet", in this situation, I think you can execute mvn install when you are online, required jars will be installed/cached locally(~/.m2/repository).

hit-lacus avatar Sep 18 '21 06:09 hit-lacus