Install an external jar into local Maven repository » Lang Code. Sometimes, you project will have dependency on a jar which is not in official maven repository, and maybe it is propriety jar file which will never be part of maven repository. In this case, you have to put it to your local repository your self to solve the dependency. There is a install plug in to do this job, which is something like: mvn install:install-file -DgroupId=<your_group_name> \ -DartifactId=<your_artifact_name> \ -Dversion=<snapshot> \ -Dfile=<path_to_your_jar_file> \ -Dpackaging=jar \ -DgeneratePom=true For example, you want to install the danga’s memcached client plugin, you can do: mvn install:install-file -DgroupId=com.danga \ -DartifactId=memcached \ -Dversion=2.0.1 \ -Dfile=java_memcached-release_2.0.1.jar \ -Dpackaging=jar \ -DgeneratePom=true This will add the memcache jar into your local Maven2 repository under groupId com.danga and artifactId memcached, you can then edit your pom.xml adding this dependency.
Be Sociable, Share! Quickstart flex development with this maven ... Have you considered starting some flex development, but haven´t found out where to start? Or are you already flex'ing but could use some easy way to quickstart new flex projects in java? I have created a maven archetype called maven-archetype-flex and distributed it to ibiblio for all to use.It will quickly get you up and running. Here is how you do it: 1. Download flex sdkDownload the flex sdk from adobe, if you haven't got it already. 1b. ${flex.home}/frameworks/flex-config.xml <local-fonts-snapshot>localFonts.ser<local-fonts-snapshot> Otherwise the compiler will complain as Matt mentions in his comment. 2.
Mvn archetype:create-DarchetypeArtifactId=maven-archetype-flex-DarchetypeVersion=1.0-DarchetypeGroupId=dk.jacobve.maven.archetypes-DgroupId=my.group-DartifactId=my-flex-DpackageName= Note: it is important that you remember the -DpackageName= as the Main.mxml flex file in the archetype is to be kept in the root of your source dir and not in some subpackage. 3. 4. Mvn install Viola! [lift] Re: Fwd: [scala-tools] [ANN] maven-scala-plugin 2.3.1. Etorreborre wrote: Hi David, I tried to use mvn scala:console but I got an error: java.lang.NoClassDefFoundError: jline/Completor Yet I see the library in my local repository (I tried to remove the scala-plugin and download it again) Strange try to force the the plugin to use it jline try <plugin><groupId>scala</groupId><artifactId>maven-scala-plugin</artifactId> ...
On Jan 20, 2:43 am, David Bernard <davi... David Pollak wrote: On 1/19/08, *David Bernard* <davi... Add to the todo-list. That'd be a cool option for mvn test as well (if that's possible) For mvn test is not possible. David Pollak wrote: > I'd like the option, please. > On Jan 19, 2008 9:00 AM, David Bernard <davi... Maven for scala. I'll try to provide a mini-guide about maven for scala's project. For more info, go to maven home or plugin's home.
Introduction to maven Maven is a builder like make or ant, written in java. It's a commande line tool, IDE (Eclipse, Netbeans, IDEA) have plugins to handle and integrate project powered by maven. A command line tool "mvn" is the name of the command line tool to call maven 2.x. The project descriptor : the file [prj]/pom.xml It's the file when every project information are stored (name, version, dependencies, license, mailing-list,...) the build lifecycle : The build lifecycle is defined by a sequence of phases, the main are :compile - compile the source code of the projecttest - test the compiled source code using a suitable unit testing framework.
Directory layout see below for a scala project repository Maven use repositories (local and remote) to store and to retrieve artifacts and their descriptor (pom). By default, maven search artifact in the central repository. ... !! ... ...