incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Incubator Wiki] Update of "openjpa/Building" by JacekLaskowski
Date Sat, 19 Aug 2006 21:27:44 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator Wiki" for change notification.

The following page has been changed by JacekLaskowski:
http://wiki.apache.org/incubator/openjpa/Building

The comment on the change is:
Add some hopefully useful stuff

------------------------------------------------------------------------------
   1. Install the build tool, Apache Maven 2.0.4, from http://maven.apache.org/. If it is
installed correctly, typing {{{ mvn -v }}} from the console will result in the text {{{ Maven
version: 2.0.4 }}}
   1. Install the SCM tool, Subversion, from http://subversion.tigris.org/. If it installed
correctly, typing the following command should output help information: {{{ svn help }}}
   1. Create a new directory you want to do your work in, then change to that directory from
the console.
-  1. Check out the sources by running: {{{ svn co https://svn.apache.org/repos/asf/incubator/openjpa/trunk/
}}}
+  1. Check out the sources by running: {{{ svn co https://svn.apache.org/repos/asf/incubator/openjpa/trunk
openjpa }}}. It will check out the sources to openjpa directory.
-  1. Change to the trunk/ directory
-  1. Build OpenJPA by running: {{{ mvn compile }}} The first time you run, many dependencies
will be automatically resolved and downloaded. If any of these fail, just re-run the command.
-  1. Run the OpenJPA unit tests with: {{{ mvn test }}}
+  1. Change to the openjpa directory, which has already been created in the previous step.
+  1. Build OpenJPA by running: {{{ mvn package }}} or better {{{ mvn install }}}. The first
time you run the build, many dependencies are automatically resolved and downloaded. If any
of these fail, just re-run the command. You may also add the following to your {{{ ~/m2/.setting.xml
}}} file (@see http://maven.apache.org/guides/mini/guide-mirror-settings.html)
+ 
+  {{{
+ <settings>
+     <mirrors>
+         <mirror>
+             <id>repo.mergere.com</id>
+             <url>http://repo.mergere.com/maven2</url>
+             <mirrorOf>central</mirrorOf>
+         </mirror>
+     </mirrors>
+ </settings>
+ }}}
+ 
-  1. Build the OpenJPA jars with: {{{ mvn package }}} If any tests fail, and you want to
ignore the failures, instead run: {{{ mvn package -Dtest=false }}}
+  If any tests fail, and you want to ignore the failures, instead run: {{{ mvn package -Dtest=false
}}}
  
  
  An example session as as follows:
  
  {{{
  $ cd /tmp/
- 
- $ mkdir openjpatest
- 
- $ cd openjpatest
  
  $ java -version
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message