So you must have a problem with the maven-install-plugin plugin (maybe corrupted after an incomplete download). This video explains the technique of creating Java application as a JAR and create reusable and distributed JAR as a Maven dependency. It might be a 3rd party jar, it might be one that you have written. Just FYI, sources artifacts are generally created by the maven-source-plugin. Strategic - use a repository management tool, publish to maven central Sometimes you want to work with a jar file that isn’t hosted in maven central. If a project creates a jar of the project sources and deploys it to a maven repository, then you’ll find it.
Installing /home/pascal/Downloads/gxp-0.2.4-beta.jar to /home/pascal/.m2/repository/com/google/gxp/0.2.4-BETA/gxp-0.2.4-BETA.jar TL DR Hack - add as a library in IntelliJ project. I just copied and pasted it and successfully installed the same freshly downloaded jar in my local mvn install:install-file -Dfile=gxp-0.2.4-beta.jar -DgroupId=com.google -DartifactId=gxp -Dversion=0.2.4-BETA -Dpackaging=jar For more information, run Maven with the -e switch The most common way to install a Maven artifact is as a dependency of another artifact. Install Maven artifacts from your feed by using the Maven client.
Use this plugin: mvn install:install-file -DfileInvalid task '.2.4-beta.jar': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersi 1.Install manually the JAR into a local Maven repository. Searching repository for plugin with prefix: 'install'. PS C:\Documents and Settings\bmccann\Desktop> mvn install:install-file -Dfile=gxp-0.2.4-beta.jar -DgroupId=com.google -DartifactId=gxp -Dversion=0.2.4-BETA -Dpackaging=jar Anyone know where I might have gone wrong? However, I'm having quite a bit of trouble. From what I've read I should be able to install the jar in my local repository and then make use of it. jar is not available in a Maven repository already. I'm new to Maven and having quite a bit of trouble since the. I'd like to use Google's GXP library in my maven project.