|
From: <fel...@us...> - 2006-12-27 01:16:20
|
Revision: 529
http://svn.sourceforge.net/dbunit/?rev=529&view=rev
Author: felipeal
Date: 2006-12-26 17:16:17 -0800 (Tue, 26 Dec 2006)
Log Message:
-----------
1482990: updating instructions
Modified Paths:
--------------
trunk/src/site/apt/building.apt
Modified: trunk/src/site/apt/building.apt
===================================================================
--- trunk/src/site/apt/building.apt 2006-12-27 00:42:27 UTC (rev 528)
+++ trunk/src/site/apt/building.apt 2006-12-27 01:16:17 UTC (rev 529)
@@ -7,58 +7,92 @@
Overview
- Building DbUnit is quite simple; all you need is JDK 1.4+, Subversion and Maven 2. Once you have them all, you can build DbUnit by just typing mvn! Anyway, the items below describe every step
+ Building DbUnit is quite simple; all you need is JDK 1.4+, Subversion and Maven 2. Once you have them all, you can build DbUnit by just typing <<mvn>>! Anyway, the items below describe every step.
-Preparation
+Generating the JAR
- * 1.Install Java SE SDK version 1.4 (link)or newer (although DbUnit is Java 1.3 compatible, Maven 2 requires 1.4)
- * 2.Install Maven 2 (link)
- * 3.Download DbUnit code, either current (link) or released (link) source
- * 4.On the root directory, simply type <code>mvn</code> in the command line (if you need to clean up the binaries, run <code>mvn clean install</code> instead). The jar file will be generated in the target directory.
+ [[1]] Install {{{http://java.sun.com/javase/}Java SE SDK}} version 1.4 or newer (although DbUnit is Java 1.3 compatible, Maven 2 requires 1.4)
+ [[2]] Install {{{http://maven.apache.org}Maven 2}}
+ [[3]] Download DbUnit code, either current or released source (see <<Quick Links>> on left menu)
+
+ [[4]] On the root directory, simply type <<<mvn>>> in the command line (if you need to clean up the binaries, run <<<mvn clean install>>> instead). The jar file will be generated in the target directory.
+
+
Creating the site
- Run <code>mvn site:site</code> in the command line; the site will be available on <code>target/site/index.html</code>. Note that you might get an OutOfMemoryExceptionError; if that happens, you must increase the heap size through the MAVEN_OPTS variable (for instance, on Unix systems you could run <code>MAVEN_OPTS=-mx512M mvn site:site</code>).
+ Run <<<mvn site:site>>> in the command line; the site will be available on <<<target/site/index.html>>>. Note that you might get an <OutOfMemoryExceptionError>; if that happens, you must increase the heap size through the <MAVEN_OPTS> variable (for instance, on Unix systems, you could run <<<MAVEN_OPTS=-mx512M mvn site:site>>>).
Using an IDE
- As DbUnit uses Maven, it's not necessary to store IDE-specific information in the source repository. Instead, these meta-data can be dynamically generate by Maven. For instance, to create an Eclipse project, it's just a matter of typing <code>mvn eclipse:eclipe</code>. See more details on (link)Maven Eclipse Plugin, Mevenide for NetBeans, Maven IDEA plugin
+ As DbUnit uses Maven, it is not necessary to store IDE-specific information in the source repository. Instead, these meta-data can be dynamically generate by Maven. For instance, to create an Eclipse project, it is just a matter of typing <<<mvn eclipse:eclipe>>>. See more details on {{{http://maven.apache.org/plugins/maven-eclipse-plugin/}Maven Eclipse Plugin}}, {{http://mevenide.codehaus.org/m2-site/index.html}Mevenide for NetBeans}}, and {{{http://maven.apache.org/plugins/maven-idea-plugin/}Maven IDEA plugin}} respectively.
Contributing patches
- If you are building DbUnit in order to contribute a patch, it's necessary to compile it using Java SE 1.3, which takes 3 adittional steps:
+ If you are building DbUnit in order to contribute a patch, it is necessary to compile it using Java SE 1.3, which takes 3 adittional steps:
-1.Create an environment variable called JAVA_1_3_HOME pointing to the root of the Java 1.3 installation
-2.Download JDBC xxx (link)
-3.Run the command <code>mvn install:install-file -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar -Dfile=_path_to_the_jdbc_2_0_stdext_jar_</code>
-4.Run Maven using the <code>official</code> profile, i.e., <code>mvn -Pofficial clean install</code>. You should also generate the IDE meta-data using this profiling (for instance, <code>mvn -Pofficial eclipse:eclipse), and configure your IDE to use Java 1.3 for that project
-5.Once you finish your modifications, run <code>svn diff > name_of_the_patch_file</code> (or use your IDE) to generate a patch file and submit it on the web site (link). Don't forget to include test cases!
+ [[1]] Create an environment variable called JAVA_1_3_HOME pointing to the root of the Java 1.3 installation
+ [[2]] Download JDBC {{{http://java.sun.com/products/jdbc/download.html}JDBC 2.0 Optional Package Binary}}
+
+ [[3]] Run the command <<<mvn install:install-file -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar -Dfile=_path_to_the_jdbc_2_0_stdext_jar_>>>
+
+ [[4]] Run Maven using the <<official>> profile, i.e., <<<mvn -Pofficial clean install>>>. You should also generate the IDE meta-data using this profiling (for instance, <<<mvn -Pofficial eclipse:eclipse>>>), and configure your IDE to use Java 1.3 for that project
+
+ [[5]] Once you finish your modifications, run <<<svn diff > name_of_the_patch_file>>> (or use your IDE) to generate a patch file and submit it on {{{http://sourceforge.net/tracker/?group_id=47439&atid=449493} DbUnit SourceForge site}}. Do not forget to include test cases!
+
+======
+
Maintenance tasks
The tasks described below describes how to maintain DbUnit
Updating the repository and site
- Once new code is incorporated in the SVN code, it is necessary to update the Maven 2 repository with new snapshots and also update the site. These 2 tasks can be done with a simple command:
+ Once new code is incorporated in the SVN code, it is necessary to update the Maven 2 repository with new snapshots, and also update the site. These 2 tasks can be done with a simple command:
-mvn -Pofficial clean site:site source:jar javadoc:jar deploy site:deploy
+---
+mvn -Pofficial clean site:site source:jar javadoc:jar deploy site:deploy>>>
+---
Cutting a release
- Cutting a release requires 4 steps: create a SVN tag, generate the artifacts, update the site and upload the artifacts into SourceForge.
+ Cutting a release requires 5 steps: creating a SVN tag, generating the artifacts, updating the site, uploading the artifacts into SourceForge and sending the announcement emails.
- Fortunatelly, the first 3 steps can be achieve using Maven Release Plugin, as follow:
+ Fortunatelly, the first 3 steps can be achieve using {{{http://maven.apache.org/plugins/maven-release-plugin/}Maven Release Plugin}}, as follow:
- The final step must be done manually, logging in SourceForge and uploading the following files:
+---
+mvn -Pofficial release:prepare
+---
-XXX
+and then:
-It is also nice to send a message to the mailing lists; ideally that should be done automatically, as the maven-announcement-plugin did for Maven 1.
+---
+mvn release:perform
+---
+
+ The fourth step must be done manually, logging in SourceForge and uploading the following files:
+
+ * <dbunit-RELEASE.jar>
+
+ * <dbunit-RELEASE-sources.jar>
+
+ * <dbunit-RELEASE-javadoc.jar>
+
+ []
+
+ The final step can also be done by maven, using the {{{http://maven.apache.org/plugins/maven-changes-plugin/}Maven Changes Plugin}}:
+
+---
+mvn changes:announcement-mail
+---
+
+ Note that it is nice to change the release's introduction message first - look for the plugin's <<<introduction>>> parameter in the <<<pom.xml>>>; please change such an element before tagging the release.
+
Fixing a bug/request
- Everytinme a bug is fixed (or request is implemented), it is necesary to update the src/site/changes.xml file.
+ Everytinme a bug is fixed (or request is implemented), it is necessary to update the <<<src/changes/changes.xml>>> file.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <fel...@us...> - 2006-12-27 01:27:49
|
Revision: 531
http://svn.sourceforge.net/dbunit/?rev=531&view=rev
Author: felipeal
Date: 2006-12-26 17:27:46 -0800 (Tue, 26 Dec 2006)
Log Message:
-----------
1482990: updating instructions
Modified Paths:
--------------
trunk/src/site/apt/building.apt
Modified: trunk/src/site/apt/building.apt
===================================================================
--- trunk/src/site/apt/building.apt 2006-12-27 01:19:17 UTC (rev 530)
+++ trunk/src/site/apt/building.apt 2006-12-27 01:27:46 UTC (rev 531)
@@ -54,14 +54,14 @@
Once new code is incorporated in the SVN code, it is necessary to update the Maven 2 repository with new snapshots, and also update the site. These 2 tasks can be done with a simple command:
---
-mvn -Pofficial clean site:site source:jar javadoc:jar deploy site:deploy>>>
+mvn -Pofficial clean source:jar javadoc:jar deploy site:deploy>>>
---
Cutting a release
- Cutting a release requires 5 steps: creating a SVN tag, generating the artifacts, updating the site, uploading the artifacts into SourceForge and sending the announcement emails.
+ Cutting a release requires the following steps: creating a SVN tag, generating the artifacts, updating the site, uploading the artifacts into SourceForge, uploading the artifacts on {{{http://ibiblio.net/maven2}ibiblio}}, and sending the announcement emails.
- Fortunatelly, the first 3 steps can be achieve using {{{http://maven.apache.org/plugins/maven-release-plugin/}Maven Release Plugin}}, as follow:
+ Fortunatelly, most of the steps can be automated by Maven. The first 3 steps can be achieve using {{{http://maven.apache.org/plugins/maven-release-plugin/}Maven Release Plugin}}, as follow:
---
mvn -Pofficial release:prepare
@@ -73,8 +73,6 @@
mvn -Pofficial release:perform
---
-
-
The fourth step must be done manually, logging in SourceForge and uploading the following files:
* <dbunit-RELEASE.jar>
@@ -85,6 +83,15 @@
[]
+ For the ibiblio artifacts, the bundle can be created running:
+
+---
+ mvn -Pofficial source:jar javadoc:jar repository:bundle-create
+---
+
+Once the file is generated (at <<<target/dbunit-RELEASE-bundle.jar>>>), upload it on Maven's {{{http://jira.codehaus.org/secure/CreateIssue.jspa?pid=10367&issuetype=3}Jira} (see {{{http://maven.apache.org/guides/mini/guide-ibiblio-upload.html}Guide to uploading artifacts to The Central Repository}} for detailed instructions).
+
+
The final step can also be done by maven, using the {{{http://maven.apache.org/plugins/maven-changes-plugin/}Maven Changes Plugin}}:
---
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <fel...@us...> - 2006-12-27 11:18:06
|
Revision: 535
http://svn.sourceforge.net/dbunit/?rev=535&view=rev
Author: felipeal
Date: 2006-12-27 03:18:04 -0800 (Wed, 27 Dec 2006)
Log Message:
-----------
1482990: updating instructions
Modified Paths:
--------------
trunk/src/site/apt/building.apt
Modified: trunk/src/site/apt/building.apt
===================================================================
--- trunk/src/site/apt/building.apt 2006-12-27 03:39:43 UTC (rev 534)
+++ trunk/src/site/apt/building.apt 2006-12-27 11:18:04 UTC (rev 535)
@@ -47,7 +47,7 @@
Maintenance tasks
- The tasks described below describes how to maintain DbUnit
+ The tasks described below describes how to maintain DbUnit. Some of these tasks will use <ssh> to upload files to SourceForge, so it is necessary to setup your environment to allow it (typically using <ssh-agent> - see more details on {{{http://sourceforge.net/docman/display_doc.php?docid=761&group_id=1} SourceForge}}).
Updating the repository and site
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <fel...@us...> - 2007-02-11 20:46:50
|
Revision: 552
http://svn.sourceforge.net/dbunit/?rev=552&view=rev
Author: felipeal
Date: 2007-02-11 12:46:49 -0800 (Sun, 11 Feb 2007)
Log Message:
-----------
removed extra >>>>
Modified Paths:
--------------
trunk/src/site/apt/building.apt
Modified: trunk/src/site/apt/building.apt
===================================================================
--- trunk/src/site/apt/building.apt 2007-02-11 20:46:41 UTC (rev 551)
+++ trunk/src/site/apt/building.apt 2007-02-11 20:46:49 UTC (rev 552)
@@ -54,7 +54,7 @@
Once new code is incorporated in the SVN code, it is necessary to update the Maven 2 repository with new snapshots, and also update the site. These 2 tasks can be done with a simple command:
---
-mvn -Pofficial clean source:jar javadoc:jar deploy site:deploy>>>
+mvn -Pofficial clean source:jar javadoc:jar deploy site:deploy
---
Cutting a release
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|