CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2023-03-18
by Danijel Sudar

Original Post

Original - Posted on 2011-02-10
by user373455



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I used this command to do it, you can find more at the link below
mvn install:install-file \ -Dfile=<path-to-file> \ -DgroupId=<group-id> \ -DartifactId=<artifact-id> \ -Dversion=<version> \ -Dpackaging=<packaging> \ -DgeneratePom=true
[How to add local jar files to a Maven project?][1]

[1]: https://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-to-a-maven-project
Install the JAR into your local Maven repository (typically `.m2` in your home folder) as follows:
mvn install:install-file \ -Dfile=<path-to-file> \ -DgroupId=<group-id> \ -DartifactId=<artifact-id> \ -Dversion=<version> \ -Dpackaging=<packaging> \ -DgeneratePom=true
Where each refers to:
`<path-to-file>`: the path to the file to load e.g → `c:\kaptcha-2.3.jar`
`<group-id>`: the group that the file should be registered under e.g → `com.google.code`
`<artifact-id>`: the artifact name for the file e.g → `kaptcha`
`<version>`: the version of the file e.g → `2.3`
`<packaging>`: the packaging of the file e.g. → `jar`
**Reference**
* Maven FAQ: [I have a jar that I want to put into my local repository. How can I copy it in?][1] * Maven Install Plugin Usage: [The `install:install-file` goal][2]
[1]: http://maven.apache.org/general.html#importing-jars [2]: https://maven.apache.org/plugins/maven-install-plugin/usage.html#The_install:install-file_goal

        
Present in both answers; Present only in the new answer; Present only in the old answer;