代码拉取完成,页面将自动刷新
@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%
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。