Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing or more than one assembly archive file *.zip in /tmp/src/target #260

Open
kkdavidwong opened this issue Jan 11, 2021 · 3 comments
Open

Comments

@kkdavidwong
Copy link

Hello

I am trying to build using the s2i builder fuse-karaf-openshift but I get the below error. I see that there was similar issue#157 dated May 2018 marked as closed but no solution is described. Can someone help?

I run the following command:
s2i build ~/workspace/fuse-camel-cbr registry.redhat.io/fuse7/fuse-karaf-openshift s2i-cbr2 --loglevel=5

I0111 18:03:04.337063 195642 sti.go:711] [INFO] Writing OBR metadata
I0111 18:03:04.339963 195642 sti.go:711] [INFO] ------------------------------------------------------------------------
I0111 18:03:04.340001 195642 sti.go:711] [INFO] BUILD SUCCESS
I0111 18:03:04.340015 195642 sti.go:711] [INFO] ------------------------------------------------------------------------
I0111 18:03:04.340330 195642 sti.go:711] [INFO] Total time: 03:19 min
I0111 18:03:04.340366 195642 sti.go:711] [INFO] Finished at: 2021-01-11T23:03:04Z
I0111 18:03:04.548154 195642 sti.go:711] [INFO] Final Memory: 30M/106M
I0111 18:03:04.548364 195642 sti.go:711] [INFO] ------------------------------------------------------------------------
I0111 18:03:04.594352 195642 sti.go:711] Copying built artifacts from /tmp/src/target into /deployments...
I0111 18:03:04.691604 195642 sti.go:711] Directory /tmp/src/target contains bundles
I0111 18:03:04.691677 195642 sti.go:711] camel-blueprint-cbr-1.0.0-SNAPSHOT.jar
I0111 18:03:04.691707 195642 sti.go:711] classes
I0111 18:03:04.691732 195642 sti.go:711] generated-test-sources
I0111 18:03:04.691768 195642 sti.go:711] maven-status
I0111 18:03:04.691794 195642 sti.go:711] surefire-reports
I0111 18:03:04.691814 195642 sti.go:711] test-bundles
I0111 18:03:04.691834 195642 sti.go:711] test-classes
I0111 18:03:04.691900 195642 sti.go:711] Missing, or more than one, assembly or archive file *.zip in /tmp/src/target
I0111 18:03:04.804617 195642 docker.go:1044] Waiting for container "7e365380b58ac5f7621c2ece90361ab636bbc7ea66803b91d639b14e54b98e0c" to stop ...
I0111 18:03:07.251446 195642 docker.go:980] Removing container "7e365380b58ac5f7621c2ece90361ab636bbc7ea66803b91d639b14e54b98e0c" ...
I0111 18:03:07.542361 195642 docker.go:990] Removed container "7e365380b58ac5f7621c2ece90361ab636bbc7ea66803b91d639b14e54b98e0c"
I0111 18:03:07.542587 195642 cleanup.go:33] Removing temporary directory /tmp/s2i039059575
I0111 18:03:07.542599 195642 fs.go:313] Removing directory '/tmp/s2i039059575'
I0111 18:03:07.546440 195642 build.go:170] Build failed
E0111 18:03:07.546470 195642 errors.go:296] An error occurred: non-zero (13) exit code from registry.redhat.io/fuse7/fuse-karaf-openshift

@rhuss
Copy link
Contributor

rhuss commented Jan 14, 2021

@dhirajsb any idea ?

@dhirajsb
Copy link
Contributor

@rhuss looks like the s2i build didn't build a karaf assembly for some reason. Basically the karaf maven plugin's assembly goal should have been invoked and an assembly zip archive should have been created. Maybe an issue with the project's pom.xml??

The resolution not mentioned in the older ticket is to print the contents of the /tmp/src/target directory, which shows that no assembly was created.

@kkdavidwong, can you verify that the output from the following line:

Running 'mvn ${maven_env_args} ${MAVEN_ARGS} ${MAVEN_ARGS_APPEND}'"

has the default maven opts:

install -DskipTests -e -Dfabric8.skip=true -B

Also, try running maven with those options locally to see whether the assembly archive is being created in the target directory. If it isn't try and investigate the cause for that.
The way it works is that the pom packaging should be <packaging>karaf-assembly</packaging>, which automatically adds karaf:assembly goal to the build to create the assembly.

@kkdavidwong
Copy link
Author

kkdavidwong commented Jan 18, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants