Comments (8)
The errors in the two cases are almost identical:
only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:2)
only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1)
In each case, I believe that the deploy plugin is uploading a pom file but with jar file content.
from spring-boot.
Well, here we face a multiple issues, and none of the are Maven or Deploy plugin related...
The MDEPLOY-318 reproducer does not work, in a sense, that m-deploy-p 3.1.1 nor 3.1.2 does not reproduce the issue mentioned here. It seems it is more the CI yaml script of user that causes this issue: https://gitlab.com/tub/test-maven-deploy/-/blob/f52e59829afd61a1294a4373ba7d752ecb97ebd5/.gitlab-ci.yml
Notice how user explicitly invoked jar:jar
goal in after-script
, this tells Maven "do create a JAR for me", and is basically circumventing lifecycle, that would go goal -> packaging -> lifecycle -> plugin invocation indirection. The POM has packaging=pom, but user forces Maven to make a JAR for it, which it obeys...
Maven should be used by invoking lifecycles, not (kinda like Ant) invoking plugins directly, see https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
from spring-boot.
thank you
for the record; it does seem to publish correctly if i omit the jar:jar
mojo for the tester project on https://gitlab.com/tub/test-maven-deploy i need to test it on the full project (multi-module containing the parent pom and other jar modules)
we've explicitly split it up like this to prevent triggering full project rebuilds in the after_script
part
from spring-boot.
i think it is an issue the maven-deploy-plugin:3.1.2 upgrade, i will try to raise an issue there but i dont have an account yet.
I think so too. This should be reported to the maintainers of the deploy plugin if someone has not already done so. Duplicates #40919.
from spring-boot.
tnx, my account is pending approval at apache, will report. #40919 talks about a jar being published to a wrong (artifactory) endpoint, this is pom being corrupted upon publishing but it could very well both have the same cause. reported here mainly if people encounter the same error :)
from spring-boot.
ah yes; will report it when my account gets approved :)
from spring-boot.
https://issues.apache.org/jira/browse/MDEPLOY-318
from spring-boot.
thank you for your helpfull insights @cstamas 👍
from spring-boot.
Related Issues (20)
- Upgrade to Spring Integration 6.2.7
- Upgrade to Spring Kafka 3.1.7
- Upgrade to Micrometer 1.13.2
- Upgrade to Micrometer Tracing 1.3.2
- Upgrade to Spring Data Bom 2024.0.2
- Upgrade to Spring Framework 6.1.11
- Upgrade to Spring Integration 6.3.2
- Upgrade to Spring Kafka 3.2.2
- Upgrade to Micrometer 1.14.0-M1
- Upgrade to Micrometer Tracing 1.4.0
- Upgrade to Spring AMQP 3.2.0-M1
- Upgrade to Spring Data Bom 2024.0.2
- Upgrade to Spring Framework 6.2.0-M5 HOT 1
- Upgrade to Spring Integration 6.4.0-M1
- Upgrade to Spring Kafka 3.3.0-M1
- Upgrade to Spring Security 6.4.0-M1
- Upgrade to Spring Session 3.4.0-M1
- Upgrade to OpenTelemetry 1.39.0
- Upgrade to Prometheus Client 1.3.1
- Align managed version of GraphQL with the version of Spring GraphQL's dependency on it
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 spring-boot.