Posté le par Olivier | Lien permanent | Commentaires | Posté dans Uncategorized


Pour installer un fichier de sources dans Maven, c'est assez simple. Par exemple, si vous voulez installer les sources de Spring à la main :

mvn install:install-file -DgroupId=org.springframework -DartifactId=spring -Dversion=2.0.2 -Dpackaging=jar -Dfile=s
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [install:install-file]
[INFO] Installing /home/bazoud/download/spring-src.zip to /home/bazoud/java/maven/repository/org/springframework/spring/2.0.2/spring-2.0.2-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Feb 05 22:27:42 CET 2007
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

A adapter pour vos jars.


Posté le par Olivier | Lien permanent | Commentaires | Posté dans Uncategorized

Taggé avec:


Articles similaires

How to create Oracle function (trunc, decode, ...) in H2 ?
Mapper un arbre III
Multiples docbases avec tomcat
Maven in colour / Maven en couleur
Comptons les pommes !!

Commentaires

blog comments powered by Disqus