4 Star 14 Fork 7

Gitee 极速下载 / nexus-public

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/sonatype/nexus-public
克隆/下载
rebuild.bat 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
@REM
@REM Sonatype Nexus (TM) Open Source Version
@REM Copyright (c) 2008-present Sonatype, Inc.
@REM All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
@REM
@REM This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
@REM which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
@REM
@REM Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
@REM of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
@REM Eclipse Foundation. All other trademarks are the property of their respective owners.
@REM
@REM keep track of what folder we're currently in so we can return there later
set here=%cd%
@REM Backup nexus.properties
copy private\assemblies\distributions\nexus-pro\target\sonatype-work\nexus3\etc\nexus.properties .
copy private\assemblies\distributions\nexus-pro\target\sonatype-work\nexus3\etc\fabric\nexus-store.properties .
@REM Detect docker
if not defined DOCKER_HOST (set docker="-Dno-docker=true")
@REM allow user to specify custom thread count on the command line
@REM The maven build defaults to using `npm ci`, force it to use `npm install` which is faster on dev machines
if "%~1"=="-T" goto :customThreads
call mvnw clean install -Dclm.skip=true -DskipTests -Dnpm.build=build -T 1C %docker%
goto :continue
:customThreads
call mvnw clean install -Dclm.skip=true -DskipTests -Dnpm.build=build -T %~2 %docker%
:continue
@REM Exit if maven did not build successfully
IF %ERRORLEVEL% NEQ 0 (
EXIT /B %ERRORLEVEL%
)
call mvnw dependency:properties process-test-resources -Dit -pl :functional-testsuite,:nexuspro-modern-testsuite,:nexuspro-fabric-testsuite,:nexuspro-sql-fabric-testsuite
@REM Enable Debug mode
set KARAF_DEBUG=true
@REM Set NEXUS_RESOURCE_DIRS for UI development
for /f "usebackq tokens=*" %%a in (`powershell "(Get-ChildItem -Recurse | Where-Object { $_.FullName -match '((src\\main\\resources\\static)|(src\\test\\ft-resources))$' } | ForEach-Object { $_.parent.FullName }) -join ','"`) do set NEXUS_RESOURCE_DIRS=%%a
@REM Restore nexus.properties
mkdir private\assemblies\distributions\nexus-pro\target\sonatype-work\nexus3\etc\
move nexus.properties private\assemblies\distributions\nexus-pro\target\sonatype-work\nexus3\etc\nexus.properties
mkdir private\assemblies\distributions\nexus-pro\target\sonatype-work\nexus3\etc\fabric
move nexus-store.properties private\assemblies\distributions\nexus-pro\target\sonatype-work\nexus3\etc\fabric\nexus-store.properties
cd private\assemblies\distributions\nexus-pro\target
@REM Prefer 7-zip if present for perf
if exist "C:\Program Files\7-Zip\7z.exe" (
"C:\Program Files\7-Zip\7z.exe" x "nexus-professional-*-SNAPSHOT-bundle.zip" -aoa
) else (
REM Requires PowerShell 5.1 - https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell?view=powershell-5.1#upgrading-existing-windows-powershell
powershell "Expand-Archive nexus-professional-*-SNAPSHOT-bundle.zip ."
)
cd nexus*\bin
set JAVA_DEBUG_PORT=5005
nexus /run
cd %here%
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/nexus-public.git
git@gitee.com:mirrors/nexus-public.git
mirrors
nexus-public
nexus-public
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891