-
-
Notifications
You must be signed in to change notification settings - Fork 305
bnd-maven plugin: delete existing MANIFEST.MF from previous build #6222
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
bnd-maven plugin: delete existing MANIFEST.MF from previous build #6222
Conversation
|
Is it actually guaranteed that |
This is a very good question I was concerned about. Do you think the scenarios here mention the use case you outlined? |
maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java
Outdated
Show resolved
Hide resolved
maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java
Outdated
Show resolved
Hide resolved
maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java
Outdated
Show resolved
Hide resolved
|
You also need to remove the merge commit. Only normal commits in a PR. |
8030bbc to
9d125eb
Compare
maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java
Outdated
Show resolved
Hide resolved
maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java
Outdated
Show resolved
Hide resolved
maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java
Outdated
Show resolved
Hide resolved
maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java
Outdated
Show resolved
Hide resolved
|
This all looks good to me. The final thing needed is to squash all this into a single commit. Thanks for the work on this PR! |
Signed-off-by: Christoph <[email protected]> delete existing MANIFEST.MF from previous build This fixes a problem where a 'mvn process-classes' picked up target/classes/META-INF/MANIFEST.MF from a previous build and produced a new MANIFEST.MF based on the results of the previous build... which should not happen. Now this gives consistent results for the following case: mvn clean process-classes followed by a mvn process-classes Signed-off-by: Christoph Rueger <[email protected]> add option 'deleteExistingManifest' Signed-off-by: Christoph Rueger <[email protected]> Update maven-plugins/bnd-maven-plugin/README.md Signed-off-by: Christoph <[email protected]> use getManifestPath() Signed-off-by: Christoph Rueger <[email protected]> move deleteExistingManifest outside if Since now it is independent of classesDir and depends on manifestPath instead Signed-off-by: Christoph Rueger <[email protected]> Update maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java Signed-off-by: Christoph <[email protected]> Update maven-plugins/bnd-maven-plugin/README.md Signed-off-by: Christoph <[email protected]> Update maven-plugins/bnd-maven-plugin/README.md Signed-off-by: Christoph <[email protected]> Update maven-plugins/bnd-maven-plugin/README.md Signed-off-by: Christoph <[email protected]> Update maven-plugins/bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin/AbstractBndMavenPlugin.java Signed-off-by: Christoph <[email protected]> Co-Authored-By: BJ Hargrave <[email protected]>
6235764 to
6940c01
Compare
No, I think they all cover how to configure maven-jar-plugin / maven-war-plugin to use the |
|
LGTM |
Based on comment #6221 (comment)
This fixes a problem where a 'mvn process-classes' picked up
target/classes/META-INF/MANIFEST.MFfrom a previous build and produced a new MANIFEST.MF based on the results of the previous build... which should not happen.We now delete the existing
target/classes/META-INF/MANIFEST.MFif it exists.Now this gives consistent results for the following case:
or
mvn clean process-classesfollowed by a
mvn process-classes@pkriens I wonder how this PR affects the statement in
bnd/maven-plugins/bnd-maven-plugin/README.md
Line 111 in c1bb165