Comments (3)
Please note that its still broken.
When using the latest Nexus version ( 3.20.1 ) I'm getting the following error at startup:
2019-12-24 11:11:18,382+0000 ERROR [FelixDispatchQueue] *SYSTEM org.sonatype.nexus.plugins.nexus-repository-composer - FrameworkEvent ERROR - org.sonatype.nexus.plugins.nexus-repository-composer org.osgi.framework.BundleException: Unable to resolve org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0): missing requirement [org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0)] osgi.wiring.package; (&(osgi.wiring.package=jline.internal)(version>=2.14.0)) Unresolved requirements: [[org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0)] osgi.wiring.package; (&(osgi.wiring.package=jline.internal)(version>=2.14.0))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149) at org.apache.felix.framework.Felix.startBundle(Felix.java:2119) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:748) 2019-12-24 11:11:18,382+0000 ERROR [FelixStartLevel] *SYSTEM Felix - Bundle org.sonatype.nexus.plugins.nexus-repository-composer [239] Error starting reference:file:system/org/sonatype/nexus/plugins/nexus-repository-composer/0.0.2/nexus-repository-composer-0.0.2.jar (org.osgi.framework.BundleException: Unable to resolve org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0): missing requirement [org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0)] osgi.wiring.package; (&(osgi.wiring.package=jline.internal)(version>=2.14.0)) Unresolved requirements: [[org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0)] osgi.wiring.package; (&(osgi.wiring.package=jline.internal)(version>=2.14.0))]) org.osgi.framework.BundleException: Unable to resolve org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0): missing requirement [org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0)] osgi.wiring.package; (&(osgi.wiring.package=jline.internal)(version>=2.14.0)) Unresolved requirements: [[org.sonatype.nexus.plugins.nexus-repository-composer [239](R 239.0)] osgi.wiring.package; (&(osgi.wiring.package=jline.internal)(version>=2.14.0))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149) at org.apache.felix.framework.Felix.startBundle(Felix.java:2119) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:748)
from nexus-repository-composer.
Hi,
I built without issue the docker image for version 3.19.1 with the following Dockerfile:
ARG NEXUS_VERSION=3.19.1
FROM maven:3-jdk-8-alpine AS build
ARG NEXUS_VERSION=3.19.1
ARG NEXUS_BUILD=01
COPY . /nexus-repository-composer/
RUN cd /nexus-repository-composer/; sed -i "s/3.19.1-01/${NEXUS_VERSION}-${NEXUS_BUILD}/g" pom.xml; \
mvn clean package;
FROM sonatype/nexus3:$NEXUS_VERSION
ARG NEXUS_VERSION=3.19.1
ARG NEXUS_BUILD=01
ARG COMPOSER_VERSION=0.0.2
ARG TARGET_DIR=/opt/sonatype/nexus/system/org/sonatype/nexus/plugins/nexus-repository-composer/${COMPOSER_VERSION}/
USER root
RUN mkdir -p ${TARGET_DIR}; \
sed -i 's@nexus-repository-maven</feature>@nexus-repository-maven</feature>\n <feature prerequisite="false" dependency="false" version="0.0.2">nexus-repository-composer</feature>@g' /opt/sonatype/nexus/system/org/sonatype/nexus/assemblies/nexus-core-feature/${NEXUS_VERSION}-${NEXUS_BUILD}/nexus-core-feature-${NEXUS_VERSION}-${NEXUS_BUILD}-features.xml; \
sed -i 's@<feature name="nexus-repository-maven"@<feature name="nexus-repository-composer" description="org.sonatype.nexus.plugins:nexus-repository-composer" version="0.0.2">\n <details>org.sonatype.nexus.plugins:nexus-repository-composer</details>\n <bundle>mvn:org.sonatype.nexus.plugins/nexus-repository-composer/0.0.2</bundle>\n </feature>\n <feature name="nexus-repository-maven"@g' /opt/sonatype/nexus/system/org/sonatype/nexus/assemblies/nexus-core-feature/${NEXUS_VERSION}-${NEXUS_BUILD}/nexus-core-feature-${NEXUS_VERSION}-${NEXUS_BUILD}-features.xml;
COPY --from=build /nexus-repository-composer/nexus-repository-composer/target/nexus-repository-composer-${COMPOSER_VERSION}.jar ${TARGET_DIR}
USER nexus
I did not encounter any issue with jline
.
I'll try 3.20 and keep you posted.
from nexus-repository-composer.
as this seems to be fixed with the PR or there discussed commits, I am closing it.
from nexus-repository-composer.
Related Issues (20)
- Does nexus supports arm64
- Packages do not appear in any search HOT 6
- Nexus and composer integration - failing authentication step
- composer install --prefer-source not working HOT 1
- composer redirect issue
- Composer repository no longer updates composer2 JSON files for new versions in case if redeploys are not allowed HOT 1
- Cleanup policy for composer repositories does not find any packages to remove HOT 1
- Index rebuild won't finish successfully HOT 6
- Plugin not installing on Nexus 3.51 HOT 3
- Nexus fails starting with java.lang.IllegalStateException: Missing recipe: composer-proxy after upgrading to v3.53 (Docker based) HOT 7
- An error occurred loading data. Request failed with status code 500
- package meta data - version_normalized
- Repository Cleanup , S3 storage
- External repo returns 400: Invalid Request resulting in caching 0 byte artifacts HOT 2
- Exception (com.google.inject.CreationException) while activating nexus-repository-composer for Nexus v3.62.0-01 HOT 1
- Cleanup Policy Preview is not working HOT 1
- Clarification in Composer proxy Repository
- Problem in adding the extension to nexus version 3.27 HOT 2
- Composer in proxy mode does not working
- Dynamic image for nexus3 image with composer plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexus-repository-composer.