| 1 |
/********** |
| 2 |
** Tranlsation of the Lift Web 1.1-SNAPSHOT POM to Scala PMaven |
| 3 |
**********/ |
| 4 |
|
| 5 |
// |
| 6 |
// Copyright 2006-2009 WorldWide Conferencing, LLC |
| 7 |
// |
| 8 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 |
// you may not use this file except in compliance with the License. |
| 10 |
// You may obtain a copy of the License at |
| 11 |
// |
| 12 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 13 |
// |
| 14 |
// Unless required by applicable law or agreed to in writing, software |
| 15 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 16 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 |
// See the License for the specific language governing permissions and |
| 18 |
// limitations under the License. |
| 19 |
// |
| 20 |
|
| 21 |
project { p => |
| 22 |
|
| 23 |
p.modelVersion = "4.0.0" |
| 24 |
|
| 25 |
/********** |
| 26 |
Shared parent. Define the settings common to all projects at Lift. |
| 27 |
|
| 28 |
This includes a standard release profile that all projects can use. |
| 29 |
If the profile is not appropriate for your project, define your own release profile |
| 30 |
and change the release plugin configuration parameter <arguments> </arguments> to |
| 31 |
activate your profile instead of the "release" profile. |
| 32 |
|
| 33 |
Dependencies and plugins are also pre-configured with standard settings, |
| 34 |
these may be overridden by individual projects as well. |
| 35 |
**********/ |
| 36 |
|
| 37 |
/********** |
| 38 |
~ The Basics |
| 39 |
**********/ |
| 40 |
p.groupId = "net.liftweb" |
| 41 |
p.artifactId = "lift" |
| 42 |
p.version = "1.1-SNAPSHOT" |
| 43 |
p.packaging = "pom" |
| 44 |
|
| 45 |
p.properties += ( |
| 46 |
/* Common plugin settings */ |
| 47 |
"project.build.sourceEncoding" -> "UTF-8", |
| 48 |
"maven.compiler.source" -> "1.5", |
| 49 |
"maven.compiler.target" -> "${maven.compiler.source}", |
| 50 |
|
| 51 |
/* Necessary until we move to maven-compiler-plugin-2.1 (MCOMPILER-70) */ |
| 52 |
"maven.compiler.encoding" -> "${project.build.sourceEncoding}", |
| 53 |
"project.reporting.outputEncoding" -> "${project.build.sourceEncoding}", |
| 54 |
|
| 55 |
/* TODO: for lift-build_date. |
| 56 |
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Available_Variables */ |
| 57 |
/* <maven.build.timestamp.format/> */ |
| 58 |
|
| 59 |
/* "scala.version" -> "[2.7.5,2.7.6),(2.7.6,2.7.7]", */ |
| 60 |
"scala.version" -> "2.7.7", |
| 61 |
"slf4j.version" -> "[1.5.6,)", |
| 62 |
|
| 63 |
"vscaladoc.links.liftweb.baseurl" -> "http://scala-tools.org/mvnsites-snapshots/liftweb" |
| 64 |
) |
| 65 |
|
| 66 |
/********** |
| 67 |
~ More Project Information |
| 68 |
**********/ |
| 69 |
p.name = "Lift Web Framework" |
| 70 |
p.description = """ |
| 71 |
Lift is an expressive and elegant framework for writing web applications. |
| 72 |
Lift stresses the importance of security, maintainability, scalability |
| 73 |
and performance while allowing for high levels of developer productivity. |
| 74 |
Lift is a Scala web framework. |
| 75 |
""" |
| 76 |
p.url = "http://dev.liftweb.net" |
| 77 |
p.inceptionYear = "2006" |
| 78 |
|
| 79 |
p.license { lic => |
| 80 |
lic.name = "Apache License, Version 2.0" |
| 81 |
lic.url = "http://www.apache.org/licenses/LICENSE-2.0.txt" |
| 82 |
lic.distribution = "repo" |
| 83 |
lic.comments = "Lift open source software is licensed under an Apache 2.0 license." |
| 84 |
} |
| 85 |
|
| 86 |
p.organization { org => |
| 87 |
org.name = "WorldWide Conferencing, LLC" |
| 88 |
org.url = "http://www.liftweb.net" |
| 89 |
} |
| 90 |
|
| 91 |
p.developer("dpp") { dev => |
| 92 |
dev.name = "David Pollak"; dev.timezone = "-8"; |
| 93 |
dev.email= "dpp [at] liftweb.net"; dev.roles += ("BDFL","Feeder of the Bears"); |
| 94 |
} |
| 95 |
|
| 96 |
p.developer("Burak.Emir") { dev => |
| 97 |
dev.name = "Burak Emir"; |
| 98 |
} |
| 99 |
|
| 100 |
p.developer("philipp.schmidt") { dev => |
| 101 |
dev.name = "philipp.schmidt"; |
| 102 |
} |
| 103 |
|
| 104 |
p.developer("cwilkes") { dev => |
| 105 |
dev.name = "cwilkes"; |
| 106 |
} |
| 107 |
|
| 108 |
p.developer("julien.wetterwald") { dev => |
| 109 |
dev.name = "julien.wetterwald"; |
| 110 |
} |
| 111 |
|
| 112 |
p.developer("leppoc") { dev => |
| 113 |
dev.name = "leppoc"; |
| 114 |
} |
| 115 |
|
| 116 |
p.developer("stepan.koltsov") { dev => |
| 117 |
dev.name = "stephan.koltsov"; |
| 118 |
} |
| 119 |
|
| 120 |
p.developer("jorge.ortiz") { dev => |
| 121 |
dev.name = "Jorge Ortiz"; dev.timezone = "-8"; |
| 122 |
dev.email = "jorge [at] liftweb.net"; |
| 123 |
} |
| 124 |
|
| 125 |
p.developer("stevej") { dev => |
| 126 |
dev.name = "Steve Jenson"; |
| 127 |
} |
| 128 |
|
| 129 |
p.developer("alex.boisvert") { dev => |
| 130 |
dev.name = "Alex Boisvert"; |
| 131 |
} |
| 132 |
|
| 133 |
p.developer("OctoberDan") |
| 134 |
|
| 135 |
p.developer("viktor.klang") { dev => |
| 136 |
dev.name = "Viktor Klang a.k.a. Sevikkla"; |
| 137 |
dev.timezone = "+1" |
| 138 |
dev.roles += ("Enhancement specialist", "Funny guy") |
| 139 |
} |
| 140 |
|
| 141 |
p.developer("david.bernard.31") { dev => |
| 142 |
dev.name = "David Bernard"; dev.email = "dwayne [at] liftweb.net"; |
| 143 |
dev.timezone = "+1" |
| 144 |
dev.roles += ("maven support") |
| 145 |
} |
| 146 |
|
| 147 |
p.developer("mstarzyk") { dev => |
| 148 |
dev.name = "Maciek Starzyk"; |
| 149 |
} |
| 150 |
|
| 151 |
p.developer("etorreborre") { dev => |
| 152 |
dev.name = "Eric Torreborre"; dev.timezone = "+9"; |
| 153 |
} |
| 154 |
|
| 155 |
p.developer("marius.danciu") { dev => |
| 156 |
dev.name = "Marius Danciu"; dev.timezone = "+2"; |
| 157 |
} |
| 158 |
|
| 159 |
p.developer("tyler.weir") { dev => |
| 160 |
dev.name = "Tyler Weir"; dev.timezone = "-5"; |
| 161 |
} |
| 162 |
|
| 163 |
p.developer("timperrett") { dev => |
| 164 |
dev.name = "Tim Perrett"; dev.email = "hello [at] timperrett.com"; |
| 165 |
dev.timezone = "0"; dev.roles += ("Installation and Deployment", "Advanced Localization"); |
| 166 |
} |
| 167 |
|
| 168 |
p.developer("dchenbecker") { dev => |
| 169 |
dev.name = "Derek Chen-Becker"; dev.email = "java [at] chen-becker.org"; |
| 170 |
dev.timezone = "-7"; |
| 171 |
} |
| 172 |
|
| 173 |
p.developer("jboner") { dev => |
| 174 |
dev.name = "Jonas Bonér"; dev.email = "jonas [at] jonasboner [dot] com"; |
| 175 |
dev.timezone = "+1"; |
| 176 |
} |
| 177 |
|
| 178 |
p.developer("heiko.seeberger") { dev => |
| 179 |
dev.name = "Heiko Seeberger"; dev.email = "heiko [dot] seeberger [at] googlemail [dot] com"; |
| 180 |
dev.timezone = "+1"; dev.roles += ("OSGi expert and Scala enthusiast"); |
| 181 |
} |
| 182 |
|
| 183 |
p.developer("indrjitr") { dev => |
| 184 |
dev.name = "Indrajit Raychaudhuri"; dev.email = "irc [at] indrajit [dot] com"; |
| 185 |
dev.timezone = "+5.5"; |
| 186 |
} |
| 187 |
|
| 188 |
/********** |
| 189 |
~ Environment Settings |
| 190 |
**********/ |
| 191 |
p.issueManagement { im => |
| 192 |
im.system = "github"; im.url = "http://github.com/dpp/liftweb/issues/"; |
| 193 |
} |
| 194 |
|
| 195 |
p.ciManagement { cim => |
| 196 |
cim.system = "hudson"; cim.url = "http://hudson.scala-tools.org/job/Lift/"; |
| 197 |
/* TODO: Configure |
| 198 |
cim.notifiers += (???) */ |
| 199 |
} |
| 200 |
|
| 201 |
p.mailingList { ml => |
| 202 |
ml.name = "User and Developer Discussion List" |
| 203 |
ml.archive = "http://groups.google.com/group/liftweb" |
| 204 |
ml.post = "[email protected]" |
| 205 |
ml.subscribe = "[email protected]" |
| 206 |
ml.unsubscribe = "[email protected]" |
| 207 |
} |
| 208 |
|
| 209 |
p.mailingList { ml => |
| 210 |
ml.name = "Committer Discussion List" |
| 211 |
ml.archive = "http://groups.google.com/group/lift-committers" |
| 212 |
/* ml.post = "[email protected]" */ |
| 213 |
/* ml.subscribe = "[email protected]" */ |
| 214 |
/* ml.unsubscribe = "[email protected]" */ |
| 215 |
} |
| 216 |
|
| 217 |
p.mailingList { ml => |
| 218 |
ml.name = "Announcement List" |
| 219 |
ml.archive = "http://groups.google.com/group/lift-announce" |
| 220 |
/* ml.post = "[email protected]" */ |
| 221 |
ml.subscribe = "[email protected]" |
| 222 |
ml.unsubscribe = "[email protected]" |
| 223 |
} |
| 224 |
|
| 225 |
p.scm { scm => |
| 226 |
scm.connection= "scm:git:git://github.com/dpp/liftweb.git" |
| 227 |
scm.developerConnection="scm:git:[email protected]:dpp/liftweb.git" |
| 228 |
scm.url="http://github.com/dpp/liftweb/tree/master" |
| 229 |
} |
| 230 |
|
| 231 |
p.repository { repo => |
| 232 |
repo.id = "scala-tools.release" |
| 233 |
repo.name = "Scala-Tools Release Repository" |
| 234 |
repo.url = "http://scala-tools.org/repo-releases" |
| 235 |
} |
| 236 |
|
| 237 |
p.repository { repo => |
| 238 |
repo.id = "scala-tools.snapshot" |
| 239 |
repo.name = "Scala-Tools Snapshot Repository" |
| 240 |
repo.url = "http://scala-tools.org/repo-snapshots" |
| 241 |
} |
| 242 |
|
| 243 |
p.pluginRepository { repo => |
| 244 |
repo.id = "scala-tools.release" |
| 245 |
repo.name = "Scala-Tools Release Repository" |
| 246 |
repo.url = "http://scala-tools.org/repo-releases" |
| 247 |
} |
| 248 |
|
| 249 |
p.pluginRepository { repo => |
| 250 |
repo.id = "scala-tools.snapshot" |
| 251 |
repo.name = "Scala-Tools Snapshot Repository" |
| 252 |
repo.url = "http://scala-tools.org/repo-snapshots" |
| 253 |
} |
| 254 |
|
| 255 |
p.distributionManagement { dm => |
| 256 |
dm.snapshotRepository { repo => |
| 257 |
repo.id = "nexus.scala-tools.org" |
| 258 |
repo.name = "Scala-Tools Snapshot Distribution Repository" |
| 259 |
repo.url = "http://nexus.scala-tools.org/content/repositories/snapshots" |
| 260 |
repo.uniqueVersion = false |
| 261 |
} |
| 262 |
} |
| 263 |
|
| 264 |
/* Site omitted, each project/profile must provide their own */ |
| 265 |
|
| 266 |
/********** |
| 267 |
~ Dependency Settings |
| 268 |
**********/ |
| 269 |
p.dependencyManagement { dm => |
| 270 |
/********** |
| 271 |
~ Compile scope: available in all classpath, transitive |
| 272 |
**********/ |
| 273 |
dm.dependency("org.scala-lang:scala-library:${scala.version}") |
| 274 |
dm.dependency("org.scala-libs:scalajpa:1.1") |
| 275 |
dm.dependency("javax.mail:mail:[1.4,1.4.3)") |
| 276 |
dm.dependency("commons-codec:commons-codec:1.3") |
| 277 |
/* version [1.3,1.4] */ |
| 278 |
dm.dependency("commons-collections:commons-collections:3.2.1") |
| 279 |
dm.dependency("commons-fileupload:commons-fileupload:1.2.1") |
| 280 |
dm.dependency("commons-httpclient:commons-httpclient:3.1") |
| 281 |
dm.dependency("log4j:log4j:1.2.14") |
| 282 |
/* version [1.2.14,1.2.15] */ |
| 283 |
dm.dependency("org.slf4j:slf4j-api:${slf4j.version}") |
| 284 |
/* option true */ |
| 285 |
|
| 286 |
/********** |
| 287 |
~ Provided scope: provided by container, available only in compile and test classpath, non-transitive |
| 288 |
**********/ |
| 289 |
dm.dependency("javax.servlet:servlet-api:2.5") { _.scope = "provided" } |
| 290 |
dm.dependency("javax.persistence:persistence-api:1.0") { _.scope = "provided"; } |
| 291 |
dm.dependency("org.apache.felix:org.osgi.compendium:1.2.0") { _.scope = "provided"; } |
| 292 |
dm.dependency("org.scalamodules:scalamodules-core:1.1-SNAPSHOT") { _.scope= "provided"; } |
| 293 |
dm.dependency("org.ops4j.pax.web:pax-web-bundle:0.6.0") { _.scope = "provided"; } |
| 294 |
dm.dependency("org.ops4j.pax.swissbox:pax-swissbox-extender:0.2.0") { _.scope = "provided"; } |
| 295 |
|
| 296 |
/********** |
| 297 |
~ Runtime scope: provided in runtime, available only in runtime and test classpath, not compile classpath |
| 298 |
**********/ |
| 299 |
/* <dependency/> */ |
| 300 |
|
| 301 |
/********** |
| 302 |
~ Test scope: available only in test classpath |
| 303 |
**********/ |
| 304 |
dm.dependency("org.scala-tools.testing:specs:1.6.1") { _.scope = "test"; } |
| 305 |
/* version [1.4.4,1.6.0] */ |
| 306 |
dm.dependency("org.scala-tools.testing:scalacheck:1.6") { _.scope = "test"; } |
| 307 |
dm.dependency("junit:junit:4.5") { _.scope = "test"; } |
| 308 |
/* TODO: push to 4.7 */ |
| 309 |
dm.dependency("org.slf4j:slf4j-simple:${slf4j.version}") { _.scope = "test"; } |
| 310 |
dm.dependency("org.mortbay.jetty:jetty:[6.1.6,7.0)") { _.scope = "test"; } |
| 311 |
dm.dependency("net.sourceforge.jwebunit:jwebunit-htmlunit-plugin:2.2") |
| 312 |
{ dep => |
| 313 |
dep.scope = "test"; |
| 314 |
dep.exclusion("javax.servlet:servlet-api") |
| 315 |
} |
| 316 |
} |
| 317 |
|
| 318 |
/********** |
| 319 |
~ Modules Setting |
| 320 |
**********/ |
| 321 |
p.modules += ( |
| 322 |
"lift-base", "lift-persistence", "lift-modules", "lift-archtypes", "lift-examples", "lift-core" ) |
| 323 |
|
| 324 |
/********** |
| 325 |
~ Build Settings |
| 326 |
**********/ |
| 327 |
p.build { b => |
| 328 |
b.extension { ex => ex coords "org.apache.maven.wagon:wagon-webdav:1.0-beta-2"; } |
| 329 |
|
| 330 |
b.pluginManagement { pm => |
| 331 |
pm.plugin("org.apache.maven.plugins:maven-enforcer-plugin:1.0-beta-1") |
| 332 |
{ pi => |
| 333 |
pi.configuration = |
| 334 |
<configuration> |
| 335 |
<rules> |
| 336 |
<requireMavenVersion> |
| 337 |
<version>[2.1.0,3.0)</version> |
| 338 |
</requireMavenVersion> |
| 339 |
</rules> |
| 340 |
</configuration> |
| 341 |
pi execution { ex => |
| 342 |
ex.id = "default-enforce" |
| 343 |
ex.goals += ("enforce") |
| 344 |
} |
| 345 |
} |
| 346 |
|
| 347 |
pm.plugin("org.scala-tools:maven-scala-plugin:2.12.2") |
| 348 |
{ pi => |
| 349 |
pi.configuration = |
| 350 |
<configuration> |
| 351 |
<jvmArgs> |
| 352 |
<jvmArg>-Xmx1024m</jvmArg> |
| 353 |
</jvmArgs> |
| 354 |
<args> |
| 355 |
<arg>-Xno-varargs-conversion</arg> |
| 356 |
</args> |
| 357 |
</configuration> |
| 358 |
pi.execution { ex => |
| 359 |
ex.id = "scala-compile" |
| 360 |
ex.phase = "process-resources" |
| 361 |
ex.goals += ("compile") |
| 362 |
} |
| 363 |
pi execution { ex => |
| 364 |
ex.id = "scala-testCompile" |
| 365 |
ex.phase = "process-test-resources" |
| 366 |
ex.goals += ("testCompile") |
| 367 |
} |
| 368 |
} |
| 369 |
|
| 370 |
pm.plugin("org.apache.maven.plugins:maven-jar-plugin:2.2") |
| 371 |
{ pi => |
| 372 |
pi.configuration = |
| 373 |
<configuration> |
| 374 |
<archive> |
| 375 |
<manifest> |
| 376 |
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> |
| 377 |
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 378 |
</manifest> |
| 379 |
<manifestEntries> |
| 380 |
<!-- TODO: Deprecate and use Default Implementation Entries (Implementation-Version) --> |
| 381 |
<lift_version>{"${pom.version}"}</lift_version> |
| 382 |
<lift_build_date>{"${maven.build.timestamp}"}</lift_build_date> |
| 383 |
</manifestEntries> |
| 384 |
</archive> |
| 385 |
</configuration> |
| 386 |
} |
| 387 |
|
| 388 |
pm.plugin("org.apache.maven.plugins:maven-source-plugin:2.1.1") |
| 389 |
{ pi => |
| 390 |
pi.execution { ex => |
| 391 |
ex.goals += ("jar-no-fork") |
| 392 |
} |
| 393 |
} |
| 394 |
|
| 395 |
pm.plugin("org.apache.maven.plugins:maven-resources-plugin:2.4.1") |
| 396 |
{ pi => |
| 397 |
pi execution { ex => |
| 398 |
ex.id = "default-copy-resources" |
| 399 |
ex.phase = "pre-site" |
| 400 |
ex.goals += ("copy-resources") |
| 401 |
ex.configuration = |
| 402 |
<configuration> |
| 403 |
<overwrite>true</overwrite> |
| 404 |
<outputDirectory>{"${project.build.directory}"}</outputDirectory> |
| 405 |
<resources> |
| 406 |
<resource> |
| 407 |
<directory>{"${project.basedir}/src"}</directory> |
| 408 |
<includes> |
| 409 |
<include>packageLinkDefs.properties</include> |
| 410 |
</includes> |
| 411 |
<filtering>true</filtering> |
| 412 |
</resource> |
| 413 |
</resources> |
| 414 |
</configuration> |
| 415 |
} |
| 416 |
} |
| 417 |
|
| 418 |
pm.plugin("org.apache.maven.plugins:maven-site-plugin:2.0.1") |
| 419 |
|
| 420 |
pm.plugin("org.apache.maven.plugins:maven-changes-plugin:2.1") |
| 421 |
{ pi => |
| 422 |
pi.execution { ex => |
| 423 |
ex.id = "default-changes-validate" |
| 424 |
ex.goals += ("changes-validate") |
| 425 |
ex.configuration = |
| 426 |
<configuration> |
| 427 |
<failOnError>true</failOnError> |
| 428 |
</configuration> |
| 429 |
} |
| 430 |
} |
| 431 |
|
| 432 |
pm.plugin("org.apache.felix:maven-bundle-plugin:2.0.1") |
| 433 |
{ pi => |
| 434 |
pi.extensions = "true" |
| 435 |
pi.configuration = |
| 436 |
<configuration> |
| 437 |
<instructions> |
| 438 |
<Bundle-RequiredExecutionEnvironment>J2SE-1.5,JavaSE-1.6</Bundle-RequiredExecutionEnvironment> |
| 439 |
<_versionpolicy>[$(@),$(version;=+;$(@)))</_versionpolicy> |
| 440 |
<DynamicImport-Package>*</DynamicImport-Package> |
| 441 |
</instructions> |
| 442 |
</configuration> |
| 443 |
pi.execution { ex => |
| 444 |
ex.id = "default-bundle" |
| 445 |
ex.phase = "package" |
| 446 |
ex.goals += ("bundle") |
| 447 |
} |
| 448 |
} |
| 449 |
|
| 450 |
pm.plugin("net.sf.alchim:yuicompressor-maven-plugin:0.7.1") |
| 451 |
{ pi => |
| 452 |
pi execution { ex => |
| 453 |
ex.goals += ("compress") |
| 454 |
} |
| 455 |
} |
| 456 |
|
| 457 |
pm.plugin("org.apache.rat:apache-rat-plugin:0.6") |
| 458 |
{ pi => |
| 459 |
pi.configuration = |
| 460 |
<configuration> |
| 461 |
<excludes> |
| 462 |
<exclude>*.log</exclude> |
| 463 |
<exclude>packageLinkDefs.properties</exclude> |
| 464 |
</excludes> |
| 465 |
</configuration> |
| 466 |
pi execution { ex => |
| 467 |
ex.phase = "verify" |
| 468 |
ex.goals += ("check") |
| 469 |
} |
| 470 |
} |
| 471 |
|
| 472 |
pm.plugin("org.apache.maven.plugins:maven-idea-plugin:2.2") |
| 473 |
{ pi => |
| 474 |
pi.configuration = |
| 475 |
<configuration> |
| 476 |
<downloadSources>true</downloadSources> |
| 477 |
</configuration> |
| 478 |
} |
| 479 |
|
| 480 |
pm.plugin("org.apache.maven.plugins:maven-eclipse-plugin:2.7") |
| 481 |
{ pi => |
| 482 |
pi.configuration = |
| 483 |
<configuration> |
| 484 |
<downloadSources>true</downloadSources> |
| 485 |
<additionalProjectnatures> |
| 486 |
<projectnature>ch.epfl.lamp.sdt.core.scalanature</projectnature> |
| 487 |
</additionalProjectnatures> |
| 488 |
<additionalBuildcommands> |
| 489 |
<buildcommand>ch.epfl.lamp.sdt.core.scalabuilder</buildcommand> |
| 490 |
</additionalBuildcommands> |
| 491 |
<classpathContainers> |
| 492 |
<classpathContainer>ch.epfl.lamp.sdt.launching.SCALA_CONTAINER</classpathContainer> |
| 493 |
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer> |
| 494 |
</classpathContainers> |
| 495 |
</configuration> |
| 496 |
} |
| 497 |
} |
| 498 |
|
| 499 |
b.plugin("org.apache.maven.plugins:maven-enforcer-plugin") |
| 500 |
b.plugin("org.scala-tools:maven-scala-plugin") |
| 501 |
b.plugin("org.apache.maven.plugins:maven-source-plugin") |
| 502 |
b.plugin("org.apache.maven.plugins:maven-resources-plugin") |
| 503 |
b.plugin("org.apache.maven.plugins:maven-changes-plugin") |
| 504 |
} |
| 505 |
|
| 506 |
/********** |
| 507 |
~ Reporting Settings |
| 508 |
**********/ |
| 509 |
p.reporting { r => |
| 510 |
r.excludeDefaults = "true" |
| 511 |
r.plugin("org.apache.maven.plugins:maven-project-info-reports-plugin:2.1.2") |
| 512 |
{ pi => |
| 513 |
pi.reportSet { rs => |
| 514 |
rs.reports += ( |
| 515 |
"cim", "dependencies", "dependency-convergence", |
| 516 |
"index", "issue-tracking", "license", "mailing-list", |
| 517 |
"plugins", "project-team", "scm", "summary" |
| 518 |
/* "dependency-management" */ |
| 519 |
/* "plugin-management" */ |
| 520 |
) |
| 521 |
} |
| 522 |
} |
| 523 |
|
| 524 |
r.plugin("org.scala-tools:maven-scala-plugin:2.12.2") |
| 525 |
{ pi => |
| 526 |
pi.configuration = |
| 527 |
<configuration> |
| 528 |
<charset>{"${project.build.sourceEncoding}"}</charset> |
| 529 |
<!--<bottom>Copyright © {inceptionYear}-{currentYear} {organizationName}. All Rights Reserved.</bottom>--> |
| 530 |
<vscaladocVersion>1.2-SNAPSHOT</vscaladocVersion> |
| 531 |
<jvmArgs> |
| 532 |
<jvmArg>-Xmx1024m</jvmArg> |
| 533 |
<jvmArg>-DpackageLinkDefs=file://{"${project.build.directory}"}/packageLinkDefs.properties</jvmArg> |
| 534 |
</jvmArgs> |
| 535 |
<!--FIXME: see that sxr plugin works --> |
| 536 |
<!-- |
| 537 |
<compilerPlugins> |
| 538 |
<compilerPlugin> |
| 539 |
<groupId>org.scala-tools.sxr</groupId> |
| 540 |
<artifactId>sxr_{"${scala.version}"}</artifactId> |
| 541 |
<version>0.2.3</version> |
| 542 |
</compilerPlugin> |
| 543 |
</compilerPlugins> |
| 544 |
--> |
| 545 |
</configuration> |
| 546 |
} |
| 547 |
|
| 548 |
r.plugin("org.apache.maven.plugins:maven-javadoc-plugin:2.6.1") |
| 549 |
{ pi => |
| 550 |
pi.configuration = |
| 551 |
<configuration> |
| 552 |
<detectLinks>true</detectLinks> |
| 553 |
<linksource>true</linksource> |
| 554 |
</configuration> |
| 555 |
pi.reportSet { rs => |
| 556 |
rs.reports += ( |
| 557 |
"javadoc", "test-javadoc" |
| 558 |
/* "aggregate" */ |
| 559 |
) |
| 560 |
} |
| 561 |
} |
| 562 |
|
| 563 |
r.plugin("org.apache.maven.plugins:maven-jxr-plugin:2.1") |
| 564 |
{ pi => |
| 565 |
pi.configuration = |
| 566 |
<configuration> |
| 567 |
<inputEncoding>{"${project.build.sourceEncoding}"}</inputEncoding> |
| 568 |
<outputEncoding>{"${project.build.sourceEncoding}"}</outputEncoding> |
| 569 |
</configuration> |
| 570 |
} |
| 571 |
|
| 572 |
r.plugin("org.apache.maven.plugins:maven-changes-plugin:2.1") |
| 573 |
{ pi => |
| 574 |
pi.inherited = false |
| 575 |
pi.configuration = |
| 576 |
<configuration> |
| 577 |
<issueLinkTemplatePerSystem> |
| 578 |
<github>%URL%/%ISSUE%/find</github> |
| 579 |
</issueLinkTemplatePerSystem> |
| 580 |
</configuration> |
| 581 |
pi.reportSet { rs => |
| 582 |
rs.reports += ("changes-report") |
| 583 |
} |
| 584 |
} |
| 585 |
|
| 586 |
r.plugin("org.apache.maven.plugins:maven-surefire-report-plugin:2.4.3") |
| 587 |
{ pi => |
| 588 |
pi.reportSet { rs => rs.reports += ("report-only") } |
| 589 |
} |
| 590 |
} |
| 591 |
|
| 592 |
/********** |
| 593 |
~ Profile Settings |
| 594 |
**********/ |
| 595 |
|
| 596 |
p.profile("detail") |
| 597 |
{ prof => |
| 598 |
prof.build { b => |
| 599 |
b.pluginManagement |
| 600 |
{ pm => |
| 601 |
pm.plugin("org.scala-tools:maven-scala-plugin") |
| 602 |
{ pi => |
| 603 |
pi.configuration = |
| 604 |
<configuration> |
| 605 |
<args> |
| 606 |
<arg>-unchecked</arg> |
| 607 |
<arg>-deprecation</arg> |
| 608 |
<arg>-Xno-varargs-conversion</arg> |
| 609 |
</args> |
| 610 |
</configuration> |
| 611 |
} |
| 612 |
} |
| 613 |
} |
| 614 |
} |
| 615 |
|
| 616 |
p.profile("release") |
| 617 |
{ prof => |
| 618 |
prof.properties += ("vscaladoc.links.liftweb.baseurl" -> "http://scala-tools.org/mvnsites/liftweb") |
| 619 |
prof.build { b => |
| 620 |
b.plugin("org.apache.rat:apache-rat-plugin") |
| 621 |
} |
| 622 |
prof.distributionManagement { dm => |
| 623 |
dm.repository("nexus.scala-tools.org") { repo => |
| 624 |
repo.name = "Scala-Tools Release Distribution Repository" |
| 625 |
repo.url = "http://nexus.scala-tools.org/content/repositories/releases" |
| 626 |
} |
| 627 |
dm.site("scala-tools.dist.site") { site => |
| 628 |
/* dav protocol isn't optimized for site-deploy (very long for api) */ |
| 629 |
/* site.url = "dav:http://dav.scala-tools.org/mvnsites/liftweb" */ |
| 630 |
} |
| 631 |
} |
| 632 |
} |
| 633 |
|
| 634 |
p.profile("hudson") |
| 635 |
{ prof => |
| 636 |
/* |
| 637 |
prof.repository("nexus-scala-tools.org") { repo => |
| 638 |
repo.url = "http://nexus.scala-tools.org/content/repositories/releases" |
| 639 |
} |
| 640 |
*/ |
| 641 |
prof.distributionManagement { dm => |
| 642 |
dm.snapshotRepository("nexus.scala-tools.org") { repo => |
| 643 |
repo.url = "http://nexus.scala-tools.org/content/repositories/snapshots" |
| 644 |
repo.uniqueVersion = false |
| 645 |
} |
| 646 |
dm.site("nexus.scala-tools.org") { site => |
| 647 |
site.url = "file:///home/scala-tools.org/www/mvnsites-snapshots/liftweb" |
| 648 |
} |
| 649 |
} |
| 650 |
} |
| 651 |
} |