Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :1
Description
The install should conatin a goal to install directory of jar files into the repository.
It is quite painful to install each jar file one by one(say if we have 100 jar files).It would be great if we provide the directory in which jar files are kept to a single command to install all of the files.
I have worked on it and created a new plug-in which which installs in repository the whole directory at once.The code basically modifies the existing installFile mojo source to support the installation of full directory.
How can I get it reviewed?So,that I can go ahead and commit the code.
Thanks
Gaurav
-
Hide
- directory-plugin.zip
- 15/Apr/11 8:47 AM
- 60 kB
- Gaurav Mutreja
-
- directory-plugin/pom.xml 2 kB
- directory-plugin/.../AbstractInstallMojo.java 5 kB
- directory-plugin/.../InstallDirectoryMojo.java 11 kB
- directory-plugin/.../InstallDirectoryMojoTest.java 4 kB
- directory-plugin/src/.../plugin-config.xml 0.6 kB
- directory-plugin/.../maven-install-directory-test-0.jar 2 kB
- directory-plugin/.../maven-install-directory-test-1.jar 2 kB
- directory-plugin/.../maven-install-directory-test-2.jar 2 kB
- directory-plugin/.../maven-install-directory-test-3.jar 2 kB
- directory-plugin/target/.../maven/plugin.xml 10 kB
- directory-plugin/.../AbstractInstallMojo.class 4 kB
- directory-plugin/.../InstallDirectoryMojo.class 9 kB
- directory-plugin/.../maven-install-directory-test-0-1.0-SNAPSHOT.jar 2 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/.../maven-install-directory-test-1-1.0-SNAPSHOT.jar 2 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/.../maven-install-directory-test-2-1.0-SNAPSHOT.jar 2 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/.../maven-install-directory-test-3-1.0-SNAPSHOT.jar 2 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/.../maven-metadata-localRepository.xml 0.3 kB
- directory-plugin/target/.../pom.properties 0.1 kB
- directory-plugin/.../maven-installDirectory-plugin-2.2-SNAPSHOT.jar 10 kB
- directory-plugin/.../org.apache.maven.plugin.install.InstallDirectoryMojoTest.txt 0.3 kB
- directory-plugin/.../TEST-org.apache.maven.plugin.install.InstallDirectoryMojoTest.xml 13 kB
- directory-plugin/.../InstallDirectoryMojoTest.class 3 kB
- directory-plugin/.../plugin-config.xml 0.6 kB
Activity
...But please be sure your patch includes tests, and conforms to the source formatting guidelines at:
Hi John,
Thanks a lot for the reply.
Let me complete the tests and then I will submit the patch,
Thanks
Gaurav
Hi John,
I had created a separate plug-in installDirectory(which I guess may also acts a new goal in install plugin) which I am attaching over here
The only change in installing all files inside a directory involves changes in execute method of InstallFileMojo.java and these changes are done in execute method of InstallDirectoryMojo.java
The directory can be installed with
mvn installDirectory:install-Dir -DgroupId=<group-id> -D
version=<version> -Dpackaging=<packaging-type> -Dfile=<directory-path>.
Please do let me know the changes which are required after you review it.
Thanks
Gaurav
Hi John,
Did you get any chance to look at the files I uploaded.
please let me know about changes required.
Thanks
Gaurav
You can attach a patch to the plugin here, and we'll review it. If everything looks ok, we'll commit the code and it'll get picked up in the next release.