sonatype-nexus-community / nexus-repository-composer

Composer support for the Nexus Repository Manager (work in progress!)
Eclipse Public License 1.0
214 stars 81 forks source link

No .kar file in Central Repository #70

Closed JakoD closed 4 years ago

JakoD commented 4 years ago
adrianovieira commented 4 years ago

I suppose this a typo mistake.

I actually believe it may is a .jar file.

joedragons commented 4 years ago

@JakoD Do you still not see it? I see 2 files in your link provided.

JakoD commented 4 years ago

Yes, I still see no .kar file there. Also I'm quite sure it should be .kar, since https://help.sonatype.com/repomanager3/bundle-development/installing-bundles speaks of Apache Karaf files (.kar), too.

I meanwhile have found a workaround using multiple stages in the Dockerfile to build the bundle .kar file first and copy it into the next stage. But I don't think thats a general solution.

TheGuit commented 4 years ago

Other projet have this kar file, ex: https://repo1.maven.org/maven2/org/sonatype/nexus/plugins/nexus-repository-cpan/0.0.1/

And with this no need to build it with multiple stage Docker.

My knowledge of Maven & Java world are a bit short to update this. But yes it would be great if kar file was available on maven.org IMO.

joedragons commented 4 years ago

Ah I see what you mean now. I was looking at something else. Thanks for the clarifies.

hboutemy commented 4 years ago

looks like it was supposed to be done for release 0.0.4 in 48a76801845554fae87cbbc2b1dfd28a74dc234b but the result is not as expected https://repo1.maven.org/maven2/org/sonatype/nexus/plugins/nexus-repository-composer/0.0.4/

ym2048 commented 4 years ago

@JakoD I generate the kar file through commands list as follow: git clone https://github.com/sonatype-nexus-community/nexus-repository-composer.git cd nexus-repository-composer && git checkout composer-parent-0.0.4

mkdir -p /docker/nexus3_data chmod a+rw -R /docker/nexus3_data

docker run -d -p 8081:8081 --name nexus-repository-composer -v /docker/nexus3_data:/nexus-data nexus-repository-composer

then login the nexus container. The kar file is in container directory /opt/sonatype/nexus/deploy/

move the file to the volume directory /nexus-data and you can get the kar file in /docker/nexus3_data

jbguerraz commented 4 years ago

@JakoD Isn't it there already ?

image

JakoD commented 4 years ago

It wasn't (and still isn't) there for 0.0.4 It seems it was fixed with 7e09e59 (May 5th), thanks for fixing and thanks for pointing out that it is fixed now.

Since it's fixed I'm closing this issue.