-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add the list of Jar needed for the parsing as cmd arg #4
Comments
I think there is a misunderstanding here. If you trigger the release setup (like described in the main README), you get a release folder that is self contained (it includes all jars and a shell script) and can be copied anywhere you want. Or did I misunderstood your point? |
Indeed. I were not clear. I am not talking about the usage of the release setup but of the parsing of the project itself. So, we have to tell the parser the complete classpath of the libraries needed by the project. |
In the README there is a section about maven repositories. It is not really feasible to point to the .m2 repository because there you might have multiple versions of the same jar and because there can be many jars that are not related but that would require memory and would slow the importer down. That is why you would need to extract only the dependencies that you want. To this end, you can use maven to download those dependencies and place them in a folder under your project.
Indeed, I know that VerveineJ allowed us to specify a separate classpath, but over the last 10+ years of importing Java, I always ended up having the libs next to the sources. That is why before adding an option, I would want to see a concrete case where it is needed. And I think a Maven project does not fit here. Does this address your issue, or do I still miss something? |
@VincentBlondeau: would it be possible to take a look at the previous comment to see if it enough? |
Sorry I was on another topic. Thanks for the reminder. I know that importing the whole .m2 folder can be huge (mine makes 14Go/35000 files...). Few months ago, I ask a new feature for verveineJ: we can set a file in the arg line that contains in each line the path to the .jar in the .m2 (or in any other location). |
Interesting! Do you have the command to generate the list of dependencies? |
You have to run this maven cmd: And after, agglomarate all in a file, remplacing ':' by '\n' if you have several maven projects, and remove duplicated .jar |
I used the maven cmd line "mvn dependency:copy-dependencies ..." on a project of my company. As it is a multi-modules maven project, some .jar are duplicated in each submodule. |
Because on maven projects, the jars are not in the source code dir and there is a huge amount of data that you don't want to copy...
The text was updated successfully, but these errors were encountered: