[jboss-dev-forums] [Design of JBoss Build System] - Re: jboss common maven build

scott.stark@jboss.org do-not-reply at jboss.com
Thu Mar 29 12:48:48 EDT 2007


"dimitris at jboss.org" wrote : That's my latest change (log4j.jar 1.2.8 -> 1.2.14) but how to upload the log4j. jar on the maven repository?
  | 
  | I tried this and it will just store it on the local filesystem.
  | 
  | X:\cvs\jboss-public\common\build>mvn install:install-file -DgroupId=apache-log4j
  |  -DartifactId=log4j -Dversion=1.2.14 -Dpackaging=jar -Dfile=log4j.jar
  | 
  | 
  | 

To effectively use the repos as a local store and the path to push content into the repository, you need to setup your local repository to point to the cvs checkout of the repository.jboss.com/maven2 cvs module. This is done in your local ~/.m2/settings.xml or the mvn install conf/settings.xml. My settings.xml looks like:


  | [starksm at succubus Bios]$ cat ~/.m2/settings.xml
  | <settings>
  |   <!-- This could point to the cvs checkout of the
  |   repository.jboss.com/maven2 contents, or a separate local
  |   maven repo
  |   -->
  |   <localRepository>/usr/Repository/repository.jboss.com/maven2</localRepository>
  |   <profiles>
  |     <profile>
  |       <id>local-properties</id>
  |       <properties>
  |         <!-- This must point to the cvs or svn checkout of the jboss repository -->
  |         <jboss.repository.root>/usr/Repository/repository.jboss.com</jboss.repository.root>
  |         <!-- This must point to the cvs checkout of the
  |         repository.jboss.com/maven2 contents
  |         -->
  |         <maven.cvs.root>/usr/Repository/repository.jboss.com/maven2</maven.cvs.root>
  |       </properties>
  |     </profile>
  |   </profiles>
  | 
  |   <activeProfiles>
  |     <activeProfile>local-properties</activeProfile>
  |   </activeProfiles>
  | </settings>
  | 

where the /usr/Repository/repository.jboss.com path is where I have checked out the repository.jboss.com contents.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032863#4032863

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032863



More information about the jboss-dev-forums mailing list