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

Document the pom.xml warning #33

Open
fulldecent opened this issue Jul 13, 2019 · 4 comments
Open

Document the pom.xml warning #33

fulldecent opened this issue Jul 13, 2019 · 4 comments

Comments

@fulldecent
Copy link
Contributor

pom.xml currently includes this:

    <!-- Don't change the following dependency. This is required to compile & run test cases. The avm.jar for the project will be installed into the local maven repository during mvn initialize phase. -->

And the maven initialization phase currently produces warnings:

[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

Please update this comment to better document why this dependency should not be changed and why we should trust this comment in the file (which is copy-pasted for generations) instead of what Maven says.

@satran004
Copy link
Member

Thanks. I will try to add a proper comment.
The maven warnings are harmless. As avm jars are not in maven central repo, we have to use the system scope and copy the avm jars from maven plugin to lib folder during initialization. I think, the build stability warning comes for system scope dependencies. But it doesn't have any impact in runtime or packaging of final jar as long as initialize is executed, otherwise build will fail. I will explore if this warning can be avoided.

@fulldecent
Copy link
Contributor Author

The build system warnings are harmless

^^ Famous last words!

I have been studying best practices in Aion and am documenting them here https://github.com/fulldecent/aion-aip010

specifically relevant here is https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starter-maven which builds without warnings.

@satran004
Copy link
Member

I will try to upgrade the archetype to junit5 in next archetype release. Currently its using junit4. But I still believe the warning is due to the usage of system scope in dependency.

@fulldecent
Copy link
Contributor Author

fulldecent commented Aug 4, 2019

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

2 participants