I am looking for best best practices. this is such a fundamental issue I cannot see why I don't find more postings on this.
we have a number of apps where I work all with dojo (all same version) BUT they all have a custom profiles, and those files have been traditionally checked into the app, and have found out that someone has been hand modifying the generated files. We of course don't want the developers modify generated code. at least modify the the authoritative source.
I have found a solution to rebuild dojo every time the web app builds. Since those dojo artifacts don't change much. it takes way to long for no benefit.
on the command line. I can build the custom profiled dojo, zip it up, and tell mvn to install a zip of the dojo into com.mycompany.web.dojo:app:dojoversion then have my app depend on that dojo version. works but not elegant. At some point I did get
maven to call the dojo build.bat script.
Ideally the pom would build out all the versions of dojo, and then install them into the repository. mvn install:install-file or mvn deploy:deploy-file. Then in the target web app declare the dependancie and unpack the dojo stuff in the maven repository.
Leaning maven
My questions are:
1) what are the best practices for storing generated 3rd party non-java files and storing them in a maven repository? assemblies/war/jar/zip files??
2) since my pom seems to want to generate a jar or war one way or the other. Assuming I jar up all the dojo stuff. what plugin would I use to extract? Why didn't they include zip as a package type?
I have to be missing somehting.... any lessons learned???