Comments (6)
- The pom in the example, as given, does not include exists-maven-plugin.
- What behavior do you expect with
a. altReleaseDeploymentRepository specified as property?
b. altReleaseDeploymentRepository specified as direct configuration of release plugin?
from exists-maven-plugin.
- I am so sorry I messed up with the pom file --> now it is "fixed" so if you pull the changes and run
mvn clean deploy
it should work (as long as you have started the nexus docker container as described above) --> again sorry for the branch that did not contain the plugin... - altReleaseDeploymentRepository is specified in the
settings-nexus-in-docker.xml
and should NOT be modified.
it should also NOT be set as a property and should not be set as configuration of release plugin (I do not use the release plugin)
--> I expect that when I executemvn clean deploy
the first time then everything is deployed to nexus successfully. I expect that when I executemvn clean deploy
the second time (without making any changes) then theexists-maven-plugin
manages to NOT perform the deploy and consider that the deploy was successfull because it would "upload" the same thing that was previously uploaded.
I expect that after that, if I make any change (even just add a comment in the pom file) and executemvn clean deploy
then there would be a failure.
from exists-maven-plugin.
Thanks for your response. (I have edited my question, because prior formulation made no sense.)
Repositories specifies the "pull" location and Distribution Mangement specifies the "push" location of artifacts. Profiles can be used to activate alternative locations.
I suspect that altReleaseDeploymentRepository
is a leftover from early (Maven 1) days. I'm disinclined to support altReleaseDeploymentRepository because:
- exists-maven-plugin cannot read the configuration of the maven-deploy-plugin.
- functionality provided by altReleaseDeploymentRepository can easily be provided by activating different profiles
I am inclined to provide a better error message if <distributionManagement> is not provided.
from exists-maven-plugin.
Thanks a lot for your plugin and sorry again for the bad description.
Your plugin cannot read configuration fo the maven deploy plugin indeed BUT it can read properties right ?
and altReleaseDeploymentRepository
is nothing else but a property. (that property can indeed be modified by profiles...)
This is exatly what I am doing here
I am creating a profile and I modify the property inside it...
(I am not sure why you are talking to me about repositories and the fact that it is about pulling: that is also exactly what I wrote here
If in the pom file if there is this section then no problem....
<distributionManagement>
<repository>
<id>my-internal-repository</id>
<url>http://something</url>
</repository>
<snapshotRepository>
<id>my-internal-repository</id>
<url>http://somethingElse</url>
</snapshotRepository>
</distributionManagement>
but this is exactly what I want to avoid:
I want my build to be fully reproducible and if in 2 years we have to switch from one nexus to the other, I do not want my builds to be different. (ie I do not accept to have a distributionManagement
section in my pom file).
I hope you understand my issue and thanks again for your plugin anyway.
from exists-maven-plugin.
It's unreasonable to expect not to update your pom after two years. Vulnerabilities will have been detected and dependencies will need updating.
You can use properties in your distributionManagement element. See org.honton.chas.exists.it:parent for an example.
from exists-maven-plugin.
0.13.0 will issue error message if distributionManagement is not set when using the remote goal
from exists-maven-plugin.
Related Issues (20)
- Duplicated results in a multi-project HOT 1
- Make exists goal thread-safe HOT 1
- Authentication not passed properly into wagon when using encryption in settings.xml
- Remote checks fails because of missing security file
- Question : profile activation HOT 1
- SNAPSHOT check exists HOT 2
- The artifact exists, but the plugin says otherwise HOT 2
- Provide option to skip remote check if deploy lifecycle is not executed HOT 1
- Cannot get it to fail as expected HOT 13
- Checking an artifact with pom packaging fails HOT 3
- How to handle .bundle? HOT 2
- Version 0.7.0 doesn't work when using Amazon S3 HOT 8
- Did you intend to abandon Java 8 support? HOT 1
- Check if artifact exists in remote repository not working for test-jar HOT 11
- Version 0.9.0 - cmpChecksum doesn't work when using Amazon S3 HOT 4
- Not detecting artifacts with packaging maven-plugin HOT 2
- Looking for the wrong artifact when using <packaging>content-package</packaging> HOT 2
- Wrong path in RemoteExistsMojo log printout
- failure when pom packaging
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 exists-maven-plugin.