IDE的Scala Web开发环境(2)

<licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url></url>
      <distribution>repo</distribution>
    </license>
  </licenses>

<developers>
    <developer>
      <id>bruce</id>
      <name>bruce sha</name>
      <url></url>
      <email>bu.ru@qq.com</email>
    </developer>
  </developers>

<scm>
   <connection></connection>
   <developerConnection></developerConnection>
   <url></url>
  </scm>

<properties>
    <scala.version>2.10.3</scala.version>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
    <encoding>UTF-8</encoding>
  </properties>

<!-- 个性化开发 -->
  <profiles>
    <profile>
      <id>dev</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <build.param>this is dev</build.param>
      </properties>
    </profile>
    <profile>
      <id>release</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <properties>
        <build.param>this is relase</build.param>
      </properties>
    </profile>
  </profiles>

<dependencies>

<!-- google -->
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>15.0</version>
    </dependency>
    <dependency>
      <groupId>com.google.inject</groupId>
      <artifactId>guice</artifactId>
      <version>3.0</version>
    </dependency>

<!-- servlet -->
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <!-- <version>2.5</version> -->
      <version>3.0.1</version>
      <scope>provided</scope>
    </dependency>

<!-- <dependency> -->
    <!-- <groupId>javax.servlet</groupId> -->
    <!-- <artifactId>jsp-api</artifactId> -->
    <!-- <version>2.0</version> -->
    <!-- <scope>provided</scope> -->
    <!-- </dependency> -->

<!-- scala -->
    <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-library</artifactId>
      <version>${scala.version}</version>
    </dependency>

<!-- test -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>

<!-- 其他包不再一一描述 -->   
    <!-- log -->
    <!-- json -->
    <!-- mongodb -->
    <!-- quartz -->

</dependencies>

<build>
    <finalName>feeling</finalName>

<!-- 必须要,资源文件中占位符被profile替换的关键配置 -->
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>*.*</include>
        </includes>
        <filtering>true</filtering>
      </resource>
    </resources>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/3cee69877ec1186cbe14589fd5d9c1c2.html