zoukankan      html  css  js  c++  java
  • Guzz运行环境

    运行环境:

    JDK:1.5+
    JDK:1.4+(在远程服务异步调用中使用了JDK1.5的concurrent包,如果使用JDK1.4,需要自己重新编译代码,编译后远程服务支持不可用。另外annotation不能使用。)
    运行在Web Container下时,容器需支持Servlet2.4规范。
    必须依赖的包:dom4J,cglib,commons-log相关包。
    在guzz工程项目中提供有下载。

    Maven方式:

    maven服务器端pom:

      1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      3   <modelVersion>4.0.0</modelVersion>
      4         <groupId>org.guzz</groupId>  
      5         <artifactId>guzz</artifactId>  
      6         <version>1.3.0</version>  
      7         <packaging>jar</packaging>
      8         <description>A full stack data-layer solution framework with many unique features.</description>
      9         <url>http://code.google.com/p/guzz/</url>
     10         <licenses>
     11             <license>
     12                 <name>The Apache Software License, Version 2.0</name>
     13                 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
     14                 <distribution>repo</distribution>
     15                 </license>
     16         </licenses>
     17         <scm>
     18             <connection>scm:svn:http://guzz.googlecode.com/svn/trunk/</connection>
     19             <developerConnection>scm:svn:https://guzz.googlecode.com/svn/trunk/</developerConnection>
     20             <url>http://guzz.googlecode.com/svn/trunk/</url>
     21         </scm>
     22         
     23         <properties>
     24             <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     25             <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     26             <lib.spring.version>3.0.5.RELEASE</lib.spring.version>
     27         </properties>
     28 
     29         <repositories>
     30                 <repository>
     31                         <id>official</id>
     32                         <name>Maven Official Repository</name>
     33                         <url>http://repo2.maven.org/maven2/</url>
     34                         <snapshots>
     35                                 <enabled>false</enabled>
     36                         </snapshots>
     37                 </repository>
     38                 
     39                 <repository>
     40                         <id>jboss</id>
     41                         <name>Jboss Repository</name>
     42                         <url>https://repository.jboss.org/nexus/content/repositories/public/</url>
     43                         <snapshots>
     44                                 <enabled>false</enabled>
     45                         </snapshots>
     46                 </repository>
     47                 
     48                 <repository>
     49                         <id>java.net</id>
     50                         <name>Java.net Repository</name>
     51                         <url>http://download.java.net/maven/2/</url>
     52                         <snapshots>
     53                                 <enabled>false</enabled>
     54                         </snapshots>
     55                 </repository>
     56         </repositories>
     57 
     58         <dependencies>
     59             <dependency>
     60                 <groupId>cglib</groupId>  
     61                 <artifactId>cglib-nodep</artifactId>  
     62                 <version>2.2.2</version>  
     63             </dependency>
     64             <dependency>  
     65                 <groupId>dom4j</groupId>  
     66                 <artifactId>dom4j</artifactId>  
     67                 <version>1.6.1</version>  
     68             </dependency>
     69             <dependency>  
     70                 <groupId>jaxen</groupId>  
     71                 <artifactId>jaxen</artifactId>  
     72                 <version>1.1.1</version>  
     73             </dependency>
     74             <dependency>  
     75                 <groupId>saxpath</groupId>  
     76                 <artifactId>saxpath</artifactId>  
     77                 <version>1.0-FCS</version>  
     78             </dependency>
     79             <dependency>
     80                 <groupId>commons-logging</groupId>
     81                 <artifactId>commons-logging</artifactId>
     82                 <version>1.1.1</version>
     83             </dependency>
     84             <dependency>
     85                 <groupId>org.eclipse.persistence</groupId>
     86                 <artifactId>javax.persistence</artifactId>
     87                 <version>2.0.0</version>
     88             </dependency>
     89             
     90             <dependency>
     91                 <groupId>junit</groupId>
     92                 <artifactId>junit</artifactId>
     93                 <version>3.8.1</version>
     94                 <scope>test</scope>
     95             </dependency>
     96             
     97             <dependency>  
     98                 <groupId>c3p0</groupId>  
     99                 <artifactId>c3p0</artifactId>  
    100                 <version>0.9.1.2</version>
    101                 <scope>provided</scope>
    102             </dependency>
    103             <dependency>
    104                     <groupId>commons-dbcp</groupId>
    105                     <artifactId>commons-dbcp</artifactId>
    106                     <version>1.3</version><!-- 1.4 is compiled with JDK6 -->
    107                 <scope>provided</scope>
    108             </dependency>
    109             <dependency>
    110                 <groupId>javax.servlet</groupId>
    111                 <artifactId>servlet-api</artifactId>
    112                 <version>2.5</version>
    113                 <scope>provided</scope>
    114             </dependency>
    115             <dependency>
    116                 <groupId>javax.servlet</groupId>
    117                 <artifactId>jstl</artifactId>
    118                 <version>1.2</version>
    119                 <scope>provided</scope>
    120             </dependency>
    121             <dependency>
    122                 <groupId>javax.servlet.jsp</groupId>
    123                 <artifactId>jsp-api</artifactId>
    124                 <version>2.1</version>
    125                 <scope>provided</scope>
    126             </dependency>
    127             <dependency>
    128                 <groupId>org.springframework</groupId>
    129                 <artifactId>spring-core</artifactId>
    130                    <version>${lib.spring.version}</version>
    131                 <scope>provided</scope>
    132             </dependency>
    133             <dependency>
    134                 <groupId>org.springframework</groupId>
    135                 <artifactId>spring-beans</artifactId>
    136                    <version>${lib.spring.version}</version>
    137                 <scope>provided</scope>
    138             </dependency>
    139             <dependency>
    140                 <groupId>org.springframework</groupId>
    141                 <artifactId>spring-context</artifactId>
    142                    <version>${lib.spring.version}</version>
    143                 <scope>provided</scope>
    144             </dependency>           
    145             <dependency>
    146                    <groupId>org.springframework</groupId>
    147                    <artifactId>spring-tx</artifactId>
    148                    <version>${lib.spring.version}</version>
    149                 <scope>provided</scope>
    150                 </dependency>
    151                 <dependency>
    152                    <groupId>org.springframework</groupId>
    153                    <artifactId>spring-jdbc</artifactId>
    154                    <version>${lib.spring.version}</version>
    155                 <scope>provided</scope>
    156                 </dependency>
    157             <dependency>
    158                     <groupId>hessian</groupId>
    159                     <artifactId>hessian</artifactId>
    160                     <version>3.0.1</version>
    161                 <scope>provided</scope>
    162                 </dependency>
    163             <dependency>
    164                 <groupId>mysql</groupId>
    165                 <artifactId>mysql-connector-java</artifactId>
    166                 <version>5.1.16</version>
    167                 <scope>provided</scope>
    168             </dependency>
    169             <dependency>
    170                 <groupId>org.springframework</groupId>
    171                 <artifactId>spring-web</artifactId>
    172                 <version>3.0.5.RELEASE</version>
    173                 <scope>provided</scope>
    174             </dependency>
    175             <dependency>
    176                 <groupId>org.phprpc</groupId>
    177                 <artifactId>phprpc-client</artifactId>
    178                 <version>1.0</version>
    179                 <scope>provided</scope>
    180             </dependency>
    181             <dependency>
    182                 <groupId>com.oracle</groupId>
    183                 <artifactId>ojdbc14</artifactId>
    184                 <version>10.2.0.1.0</version>
    185                 <scope>provided</scope>
    186             </dependency>
    187             <dependency>
    188                 <groupId>com.h2database</groupId>
    189                 <artifactId>h2</artifactId>
    190                 <version>1.3.156</version>
    191                 <scope>provided</scope>
    192             </dependency>
    193             <dependency>
    194                 <groupId>javax.transaction</groupId>
    195                 <artifactId>jta</artifactId>
    196                 <version>1.1</version>
    197                 <type>pom</type>
    198                 <scope>provided</scope>
    199             </dependency>
    200             <dependency>
    201                 <groupId>javax.transaction</groupId>
    202                 <artifactId>transaction-api</artifactId>
    203                 <version>1.1</version>
    204                 <type>pom</type>
    205                 <scope>provided</scope>
    206             </dependency>
    207         </dependencies>
    208   
    209         <!-- Plugins-->
    210         <build>         
    211                 <finalName>guzz</finalName>
    212                 <directory>target</directory>
    213                 <sourceDirectory>src/main/java</sourceDirectory>
    214                 <outputDirectory>target/classes</outputDirectory>
    215                 <testSourceDirectory>src/test/java</testSourceDirectory>
    216                 <testOutputDirectory>target/test-classes</testOutputDirectory>
    217                 <defaultGoal>install</defaultGoal>
    218                 
    219                 <testResources>
    220                         <testResource>
    221                                 <directory>src/test/resources</directory>
    222                                 <filtering>false</filtering>
    223                         </testResource>
    224                 </testResources>
    225         
    226                 <pluginManagement>
    227                         <plugins>
    228                                 <!-- compiler -->
    229                                 <plugin>
    230                                         <groupId>org.apache.maven.plugins</groupId>
    231                                         <artifactId>maven-compiler-plugin</artifactId>
    232                                         <version>2.3.2</version>
    233                                         <configuration>
    234                                                 <source>1.5</source>
    235                                                 <target>1.5</target>
    236                     </configuration>
    237                                 </plugin>
    238 
    239                                 <!-- test -->
    240                                 <plugin>
    241                                         <groupId>org.apache.maven.plugins</groupId>
    242                                         <artifactId>maven-surefire-plugin</artifactId>
    243                                         <version>2.9</version>
    244                                         <configuration>
    245                                                 <forkMode>always</forkMode> 
    246                                                 <testClassesDirectory>target/test-classes</testClassesDirectory>
    247                                         </configuration>
    248                                 </plugin>
    249 
    250                                 <!-- resource -->
    251                                 <plugin>
    252                                         <groupId>org.apache.maven.plugins</groupId>
    253                                         <artifactId>maven-resources-plugin</artifactId>
    254                                         <version>2.5</version>
    255                                         <configuration>
    256                                                 <encoding>${project.build.sourceEncoding}</encoding>
    257                                         </configuration>
    258                                 </plugin>
    259 
    260                                 <!-- eclipse -->
    261                                 <plugin>
    262                                         <groupId>org.apache.maven.plugins</groupId>
    263                                         <artifactId>maven-eclipse-plugin</artifactId>
    264                                         <version>2.8</version>
    265                                         <configuration>
    266                                                 <sourceExcludes>
    267                                                         <sourceExclude>**/.svn/</sourceExclude>
    268                                                 </sourceExcludes>
    269                                                 <downloadSources>true</downloadSources>
    270                                         </configuration>
    271                                 </plugin>
    272                                 
    273                         </plugins>
    274                 </pluginManagement>
    275         </build>
    276 
    277 </project>

    maven客户端:

    1 <dependency>  
    2         <groupId>org.guzz</groupId>  
    3         <artifactId>guzz</artifactId>  
    4         <version>1.3.0</version>  
    5 </dependency>

    maven的配置感谢 高山流水 同学提供。

    由于我没有用过maven,不清楚Apache Maven的中心库的配置和管理策略,还没有向中心服务器上传。如果您比较熟悉,欢迎指教,也欢迎帮助上传,多谢。

    项目创建建议:

    建议下载guzz提供的空工程,导入到Eclipse/MyEclipse中,在此基础上进行开发。
  • 相关阅读:
    2、Windows 系统下安装 IntelliJ IDEA
    1、IntelliJ IDEA 使用说明
    C# static的用法详解
    wpf 加载窗体界面时出现异常System.IO.FileNotFoundException
    ObservableCollection绑定到TextBox
    Lambda表达式(转载)
    C#中out和ref之间的区别 转载
    WPF序列化与反序列化
    软件版本号规范与命名原则 转载
    WPF DataGrid滚动条滑动的时候背景色错乱或显示不全
  • 原文地址:https://www.cnblogs.com/SuperBing/p/4962829.html
Copyright © 2011-2022 走看看