New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with Jenkins Multijob plugin 1.7 #114

Closed
java-artisan opened this Issue Dec 18, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@java-artisan

java-artisan commented Dec 18, 2012

I've got a specific error condition when building a Scala application in Jenkins, using release 1.7 of the Multijob plugin. It is happening consistently. Running the job isolated does not trigger the error. Nor does it happen when running the equivalent Maven command on the command line.

It happens only when running the Scala Maven compiler plugin 3.1.0 when the build job is started by the Jenkins Multijob 1.7 plugin. The 1.6 version works fine.

The stack looks identical to the one mentioned here. https://issues.scala-lang.org/browse/SI-5135 I'm using Scala 2.9.2 however.

So not sure what the problem really is, which of both is inducing the error. Let alone how to fix it. :-)

@davidB

This comment has been minimized.

Show comment
Hide comment
@davidB

davidB Jan 7, 2013

Owner

Hi,

Can you provide a copy of the error (the link use an older version of the plugin and scala) : stacktrace + message ?
Can you provide a copy of the pom.xml ?

Owner

davidB commented Jan 7, 2013

Hi,

Can you provide a copy of the error (the link use an older version of the plugin and scala) : stacktrace + message ?
Can you provide a copy of the pom.xml ?

@java-artisan

This comment has been minimized.

Show comment
Hide comment
@java-artisan

java-artisan Jan 7, 2013

Sure !

I've had feedback that this bug was marked fixed by mistake at TypeSafe. It'll be fixed in Scala 2.10 though. As such the error is most probably caused by the mentioned bug. I haven't tried it yet with Scala 2.10.

Hope this helps...

(I'm sorry for the copy/paste mess, but I couldn't find the file attachment.)

The pom file

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.bar</groupId>
    <artifactId>foo</artifactId>
    <version>11.0.19-SNAPSHOT</version>
  </parent>

  <groupId>com.bar.foo</groupId>
  <artifactId>web</artifactId>
  <packaging>war</packaging>
  <name>Web Clients</name>

  <properties>
    <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
    <jwt.version>3.2.0</jwt.version>
    <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
    <scalastyle.config>${project.basedir}/../scalastyle_config.xml</scalastyle.config>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.bar.foo</groupId>
      <artifactId>parser</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>com.bar.foo</groupId>
      <artifactId>persistence</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>${spring.version}</version>
    </dependency>

    <!-- security -->
    <dependency>
      <groupId>org.springframework.security</groupId>
      <artifactId>spring-security-web</artifactId>
      <version>${spring.security.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.security</groupId>
      <artifactId>spring-security-ldap</artifactId>
      <version>${spring.security.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.ldap</groupId>
      <artifactId>spring-ldap-core</artifactId>
      <version>1.3.1.RELEASE</version>
    </dependency>

    <!-- Force the usage of higher version libraries       -->
    <!-- Spring security relies on lower version of Spring -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-tx</artifactId>
      <version>${spring.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-expression</artifactId>
      <version>${spring.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
      <version>${spring.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-aop</artifactId>
      <version>${spring.version}</version>
    </dependency>


    <dependency>
      <groupId>eu.webtoolkit</groupId>
      <artifactId>jwt</artifactId>
      <version>${jwt.version}</version>
      <exclusions>
        <exclusion>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-simple</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <version>3.0.1</version>
      <scope>provided</scope>
    </dependency>
    <!-- determine client environment based on the user agent-->
    <dependency>
      <groupId>cz.mallat.uaparser</groupId>
      <artifactId>uasparser</artifactId>
      <version>0.3</version>
    </dependency>

  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>net.alchim31.maven</groupId>
          <artifactId>scala-maven-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.5.1</version>
          <executions>
            <execution>
              <phase>compile</phase>
              <goals>
                <goal>compile</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.redkangaroo.maven.plugins</groupId>
        <artifactId>properties-files-mojos</artifactId>
        <version>1.2.1</version>
        <executions>
          <execution>
            <id>default</id>
            <phase>generate-resources</phase>
            <configuration>
              <inputFile>../settings.xls</inputFile>
              <targetEncoding>UTF-8</targetEncoding>
              <targetEnvironment>Default</targetEnvironment>
              <defaultValueColumnIndex>1</defaultValueColumnIndex>
              <outputDirectory>target/classes/configuration/default</outputDirectory>
              <propertiesFileName>settings.properties</propertiesFileName>
            </configuration>
            <goals>
              <goal>generate-app-config</goal>
            </goals>
          </execution>
          <execution>
            <id>demo_unstable</id>
            <phase>generate-resources</phase>
            <configuration>
              <inputFile>../settings.xls</inputFile>
              <targetEncoding>UTF-8</targetEncoding>
              <targetEnvironment>demo_unstable</targetEnvironment>
              <defaultValueColumnIndex>1</defaultValueColumnIndex>
              <outputDirectory>target/classes/configuration/demo_unstable</outputDirectory>
              <propertiesFileName>settings.properties</propertiesFileName>
            </configuration>
            <goals>
              <goal>generate-app-config</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
      </plugin>
      <!-- For compiling -->
      <plugin>
        <groupId>net.alchim31.maven</groupId>
        <artifactId>scala-maven-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <id>scala-compile-first</id>
            <phase>process-resources</phase>
            <goals>
              <goal>add-source</goal>
              <goal>compile</goal>
            </goals>
          </execution>
          <execution>
            <id>scala-test-compile</id>
            <phase>process-test-resources</phase>
            <goals>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <scalaVersion>${scala.version}</scalaVersion>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.1.1</version>
        <configuration>
          <failOnMissingWebXml>false</failOnMissingWebXml>
          <warName>${project.artifactId}-${project.version}</warName>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <outputDirectory>${endorsed.dir}</outputDirectory>
              <silent>true</silent>
              <artifactItems>
                <artifactItem>
                  <groupId>javax</groupId>
                  <artifactId>javaee-endorsed-api</artifactId>
                  <version>6.0</version>
                  <type>jar</type>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- Used to put the build details into settings.properties -->
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <configuration>
              <target>
                <tstamp>
                  <format property="now" pattern="dd/MM/yyyy HH:mm" />
                </tstamp>
                <replace file="target/classes/configuration/default/settings.properties" token="#maven.version#" value="${project.version}" />
                <replace file="target/classes/configuration/default/settings.properties" token="#build.date#" value="${now}" />
                <replace file="target/classes/configuration/default/settings.properties" token="#build.number#" value="${build.number}" />
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <!-- Checking Scala code -->
      <plugin>
        <groupId>org.scalastyle</groupId>
        <artifactId>scalastyle-maven-plugin</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <configuration>
          <verbose>false</verbose>
          <failOnViolation>true</failOnViolation>
          <includeTestSourceDirectory>true</includeTestSourceDirectory>
          <failOnWarning>false</failOnWarning>
          <sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
          <testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>
          <configLocation>${scalastyle.config}</configLocation>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>

The error message in Jenkins

<===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven:  -B -f /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml package -DskipTests=true
[INFO] Scanning for projects...
[WARNING] 
Projects to build: [MavenProject: com.bar.foo:web:11.0.17-SNAPSHOT @ /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml]
[WARNING] Some problems were encountered while building the effective model for com.bar.foo:web:war:11.0.17-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-failsafe-plugin is missing. @ line 172, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 176, column 15
[WARNING] The expression ${build.directory} is deprecated. Please use ${project.build.directory} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
projectStarted com.bar.foo:web:11.0.17-SNAPSHOT
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Web Clients 11.0.17-SNAPSHOT
[INFO] ------------------------------------------------------------------------
mojoStarted org.apache.maven.plugins:maven-dependency-plugin:2.1(default)
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ web ---
mojoSucceeded org.apache.maven.plugins:maven-dependency-plugin:2.1(default)
mojoStarted org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(default)
[INFO] 
[INFO] --- properties-files-mojos:1.2.1:generate-app-config (default) @ web ---
[INFO] Properties written in file: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/target/classes/configuration/default/settings.properties
mojoSucceeded org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(default)
mojoStarted org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(demo_unstable)
[INFO] 
[INFO] --- properties-files-mojos:1.2.1:generate-app-config (demo_unstable) @ web ---
[INFO] Properties written in file: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/target/classes/configuration/demo_unstable/settings.properties
mojoSucceeded org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(demo_unstable)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.5(default-resources)
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ web ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.5(default-resources)
mojoStarted net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
[INFO] 
[INFO] --- scala-maven-plugin:3.1.0:add-source (scala-compile-first) @ web ---
[INFO] Add Source directory: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/main/scala
[INFO] Add Test Source directory: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/test/scala
mojoSucceeded net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
mojoStarted net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
[INFO] 
[INFO] --- scala-maven-plugin:3.1.0:compile (scala-compile-first) @ web ---
[WARNING]  Expected all dependencies to require Scala version: 2.9.2
[WARNING]  com.bar.foo:model:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  com.bar.foo:parser:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  org.javacraft:ripples:0.0.5 requires scala version: 2.9.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/main/java👎 info: compiling
[INFO] /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/main/scala👎 info: compiling
[INFO] Compiling 134 source files to /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/target/classes at 1355831742028
[ERROR] error: java.lang.NullPointerException
[INFO] at scala.tools.nsc.io.AbstractFile.toByteArray(AbstractFile.scala:155)
[INFO] at scala.tools.nsc.symtab.classfile.AbstractFileReader.(AbstractFileReader.scala:26)
[INFO] at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:86)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:308)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:111)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:130)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.exists(Symbols.scala:571)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3740)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4178)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4203)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4379)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeDefSig(Namers.scala:1102)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1215)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedExistentialTypeTree(Typers.scala:2930)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4207)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedHigherKindedType(Typers.scala:4383)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3858)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3857)
[INFO] at scala.tools.nsc.symtab.Types$class.map2Conserve(Types.scala:4985)
[INFO] at scala.tools.nsc.symtab.SymbolTable.map2Conserve(SymbolTable.scala:13)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedAppliedTypeTree$1(Typers.scala:3856)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4199)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4393)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4420)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedNew$1(Typers.scala:3200)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4033)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4352)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4358)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4146)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4106)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4346)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:4423)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1207)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.annotations(Symbols.scala:73)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.addGetterSetter(Typers.scala:1342)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[INFO] at scala.collection.immutable.List.foreach(List.scala:76)
[INFO] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:239)
[INFO] at scala.collection.immutable.List.flatMap(List.scala:76)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1278)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3912)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3908)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4333)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:94)
[INFO] at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:329)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.collection.Iterator$class.foreach(Iterator.scala:772)
[INFO] at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:318)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:86)
[INFO] at scala.tools.nsc.Global$Run.compileSources(Global.scala:953)
[INFO] at scala.tools.nsc.Global$Run.compile(Global.scala:1041)
[INFO] at scala.tools.nsc.Main$.process(Main.scala:106)
[INFO] at scala.tools.nsc.Main$.main(Main.scala:123)
[INFO] at scala.tools.nsc.Main.main(Main.scala)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[INFO] 
[INFO] java.lang.reflect.InvocationTargetException
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[INFO] Caused by: java.lang.NullPointerException
[INFO] at scala.tools.nsc.io.AbstractFile.toByteArray(AbstractFile.scala:155)
[INFO] at scala.tools.nsc.symtab.classfile.AbstractFileReader.(AbstractFileReader.scala:26)
[INFO] at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:86)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:308)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:111)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:130)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.exists(Symbols.scala:571)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3740)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4178)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4203)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4379)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeDefSig(Namers.scala:1102)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1215)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedExistentialTypeTree(Typers.scala:2930)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4207)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedHigherKindedType(Typers.scala:4383)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3858)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3857)
[INFO] at scala.tools.nsc.symtab.Types$class.map2Conserve(Types.scala:4985)
[INFO] at scala.tools.nsc.symtab.SymbolTable.map2Conserve(SymbolTable.scala:13)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedAppliedTypeTree$1(Typers.scala:3856)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4199)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4393)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4420)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedNew$1(Typers.scala:3200)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4033)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4352)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4358)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4146)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4106)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4346)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:4423)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1207)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.annotations(Symbols.scala:73)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.addGetterSetter(Typers.scala:1342)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[INFO] at scala.collection.immutable.List.foreach(List.scala:76)
[INFO] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:239)
[INFO] at scala.collection.immutable.List.flatMap(List.scala:76)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1278)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3912)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3908)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4333)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:94)
[INFO] at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:329)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.collection.Iterator$class.foreach(Iterator.scala:772)
[INFO] at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:318)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:86)
[INFO] at scala.tools.nsc.Global$Run.compileSources(Global.scala:953)
[INFO] at scala.tools.nsc.Global$Run.compile(Global.scala:1041)
[INFO] at scala.tools.nsc.Main$.process(Main.scala:106)
[INFO] at scala.tools.nsc.Main$.main(Main.scala:123)
[INFO] at scala.tools.nsc.Main.main(Main.scala)
[INFO] ... 6 more
mojoFailed net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
projectFailed com.bar.foo:web:11.0.17-SNAPSHOT
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.851s
[INFO] Finished at: Tue Dec 18 12:55:48 CET 2012
[INFO] Final Memory: 21M/246M
[INFO] ------------------------------------------------------------------------
Projects to build: [MavenProject: com.bar.foo:web:11.0.17-SNAPSHOT @ /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml]
[JENKINS] Archiving /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml to /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/modules/com.bar.foo$web/builds/2012-12-18_12-55-24/archive/com.bar.foo/web/11.0.17-SNAPSHOT/web-11.0.17-SNAPSHOT.pom
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (scala-compile-first) on project web: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
cause : wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
Stack trace : 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (scala-compile-first) on project web: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.MojoExecutionException: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
at scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:408)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 27 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:346)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at scala_maven_executions.JavaMainCallerByFork.run(JavaMainCallerByFork.java:99)
at scala_maven.ScalaCompilerSupport.compile(ScalaCompilerSupport.java:149)
at scala_maven.ScalaCompilerSupport.doExecute(ScalaCompilerSupport.java:99)
at scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:400)
... 29 more

java-artisan commented Jan 7, 2013

Sure !

I've had feedback that this bug was marked fixed by mistake at TypeSafe. It'll be fixed in Scala 2.10 though. As such the error is most probably caused by the mentioned bug. I haven't tried it yet with Scala 2.10.

Hope this helps...

(I'm sorry for the copy/paste mess, but I couldn't find the file attachment.)

The pom file

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.bar</groupId>
    <artifactId>foo</artifactId>
    <version>11.0.19-SNAPSHOT</version>
  </parent>

  <groupId>com.bar.foo</groupId>
  <artifactId>web</artifactId>
  <packaging>war</packaging>
  <name>Web Clients</name>

  <properties>
    <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
    <jwt.version>3.2.0</jwt.version>
    <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
    <scalastyle.config>${project.basedir}/../scalastyle_config.xml</scalastyle.config>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.bar.foo</groupId>
      <artifactId>parser</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>com.bar.foo</groupId>
      <artifactId>persistence</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>${spring.version}</version>
    </dependency>

    <!-- security -->
    <dependency>
      <groupId>org.springframework.security</groupId>
      <artifactId>spring-security-web</artifactId>
      <version>${spring.security.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.security</groupId>
      <artifactId>spring-security-ldap</artifactId>
      <version>${spring.security.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.ldap</groupId>
      <artifactId>spring-ldap-core</artifactId>
      <version>1.3.1.RELEASE</version>
    </dependency>

    <!-- Force the usage of higher version libraries       -->
    <!-- Spring security relies on lower version of Spring -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-tx</artifactId>
      <version>${spring.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-expression</artifactId>
      <version>${spring.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
      <version>${spring.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-aop</artifactId>
      <version>${spring.version}</version>
    </dependency>


    <dependency>
      <groupId>eu.webtoolkit</groupId>
      <artifactId>jwt</artifactId>
      <version>${jwt.version}</version>
      <exclusions>
        <exclusion>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-simple</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <version>3.0.1</version>
      <scope>provided</scope>
    </dependency>
    <!-- determine client environment based on the user agent-->
    <dependency>
      <groupId>cz.mallat.uaparser</groupId>
      <artifactId>uasparser</artifactId>
      <version>0.3</version>
    </dependency>

  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>net.alchim31.maven</groupId>
          <artifactId>scala-maven-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.5.1</version>
          <executions>
            <execution>
              <phase>compile</phase>
              <goals>
                <goal>compile</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.redkangaroo.maven.plugins</groupId>
        <artifactId>properties-files-mojos</artifactId>
        <version>1.2.1</version>
        <executions>
          <execution>
            <id>default</id>
            <phase>generate-resources</phase>
            <configuration>
              <inputFile>../settings.xls</inputFile>
              <targetEncoding>UTF-8</targetEncoding>
              <targetEnvironment>Default</targetEnvironment>
              <defaultValueColumnIndex>1</defaultValueColumnIndex>
              <outputDirectory>target/classes/configuration/default</outputDirectory>
              <propertiesFileName>settings.properties</propertiesFileName>
            </configuration>
            <goals>
              <goal>generate-app-config</goal>
            </goals>
          </execution>
          <execution>
            <id>demo_unstable</id>
            <phase>generate-resources</phase>
            <configuration>
              <inputFile>../settings.xls</inputFile>
              <targetEncoding>UTF-8</targetEncoding>
              <targetEnvironment>demo_unstable</targetEnvironment>
              <defaultValueColumnIndex>1</defaultValueColumnIndex>
              <outputDirectory>target/classes/configuration/demo_unstable</outputDirectory>
              <propertiesFileName>settings.properties</propertiesFileName>
            </configuration>
            <goals>
              <goal>generate-app-config</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
      </plugin>
      <!-- For compiling -->
      <plugin>
        <groupId>net.alchim31.maven</groupId>
        <artifactId>scala-maven-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <id>scala-compile-first</id>
            <phase>process-resources</phase>
            <goals>
              <goal>add-source</goal>
              <goal>compile</goal>
            </goals>
          </execution>
          <execution>
            <id>scala-test-compile</id>
            <phase>process-test-resources</phase>
            <goals>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <scalaVersion>${scala.version}</scalaVersion>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.1.1</version>
        <configuration>
          <failOnMissingWebXml>false</failOnMissingWebXml>
          <warName>${project.artifactId}-${project.version}</warName>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <outputDirectory>${endorsed.dir}</outputDirectory>
              <silent>true</silent>
              <artifactItems>
                <artifactItem>
                  <groupId>javax</groupId>
                  <artifactId>javaee-endorsed-api</artifactId>
                  <version>6.0</version>
                  <type>jar</type>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- Used to put the build details into settings.properties -->
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <configuration>
              <target>
                <tstamp>
                  <format property="now" pattern="dd/MM/yyyy HH:mm" />
                </tstamp>
                <replace file="target/classes/configuration/default/settings.properties" token="#maven.version#" value="${project.version}" />
                <replace file="target/classes/configuration/default/settings.properties" token="#build.date#" value="${now}" />
                <replace file="target/classes/configuration/default/settings.properties" token="#build.number#" value="${build.number}" />
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <!-- Checking Scala code -->
      <plugin>
        <groupId>org.scalastyle</groupId>
        <artifactId>scalastyle-maven-plugin</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <configuration>
          <verbose>false</verbose>
          <failOnViolation>true</failOnViolation>
          <includeTestSourceDirectory>true</includeTestSourceDirectory>
          <failOnWarning>false</failOnWarning>
          <sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
          <testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>
          <configLocation>${scalastyle.config}</configLocation>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>

The error message in Jenkins

<===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven:  -B -f /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml package -DskipTests=true
[INFO] Scanning for projects...
[WARNING] 
Projects to build: [MavenProject: com.bar.foo:web:11.0.17-SNAPSHOT @ /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml]
[WARNING] Some problems were encountered while building the effective model for com.bar.foo:web:war:11.0.17-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-failsafe-plugin is missing. @ line 172, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 176, column 15
[WARNING] The expression ${build.directory} is deprecated. Please use ${project.build.directory} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
projectStarted com.bar.foo:web:11.0.17-SNAPSHOT
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Web Clients 11.0.17-SNAPSHOT
[INFO] ------------------------------------------------------------------------
mojoStarted org.apache.maven.plugins:maven-dependency-plugin:2.1(default)
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:copy (default) @ web ---
mojoSucceeded org.apache.maven.plugins:maven-dependency-plugin:2.1(default)
mojoStarted org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(default)
[INFO] 
[INFO] --- properties-files-mojos:1.2.1:generate-app-config (default) @ web ---
[INFO] Properties written in file: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/target/classes/configuration/default/settings.properties
mojoSucceeded org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(default)
mojoStarted org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(demo_unstable)
[INFO] 
[INFO] --- properties-files-mojos:1.2.1:generate-app-config (demo_unstable) @ web ---
[INFO] Properties written in file: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/target/classes/configuration/demo_unstable/settings.properties
mojoSucceeded org.redkangaroo.maven.plugins:properties-files-mojos:1.2.1(demo_unstable)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.5(default-resources)
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ web ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 10 resources
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.5(default-resources)
mojoStarted net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
[INFO] 
[INFO] --- scala-maven-plugin:3.1.0:add-source (scala-compile-first) @ web ---
[INFO] Add Source directory: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/main/scala
[INFO] Add Test Source directory: /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/test/scala
mojoSucceeded net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
mojoStarted net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
[INFO] 
[INFO] --- scala-maven-plugin:3.1.0:compile (scala-compile-first) @ web ---
[WARNING]  Expected all dependencies to require Scala version: 2.9.2
[WARNING]  com.bar.foo:model:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  com.bar.foo:parser:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  org.javacraft:ripples:0.0.5 requires scala version: 2.9.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/main/java👎 info: compiling
[INFO] /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/src/main/scala👎 info: compiling
[INFO] Compiling 134 source files to /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/target/classes at 1355831742028
[ERROR] error: java.lang.NullPointerException
[INFO] at scala.tools.nsc.io.AbstractFile.toByteArray(AbstractFile.scala:155)
[INFO] at scala.tools.nsc.symtab.classfile.AbstractFileReader.(AbstractFileReader.scala:26)
[INFO] at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:86)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:308)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:111)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:130)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.exists(Symbols.scala:571)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3740)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4178)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4203)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4379)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeDefSig(Namers.scala:1102)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1215)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedExistentialTypeTree(Typers.scala:2930)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4207)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedHigherKindedType(Typers.scala:4383)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3858)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3857)
[INFO] at scala.tools.nsc.symtab.Types$class.map2Conserve(Types.scala:4985)
[INFO] at scala.tools.nsc.symtab.SymbolTable.map2Conserve(SymbolTable.scala:13)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedAppliedTypeTree$1(Typers.scala:3856)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4199)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4393)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4420)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedNew$1(Typers.scala:3200)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4033)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4352)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4358)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4146)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4106)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4346)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:4423)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1207)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.annotations(Symbols.scala:73)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.addGetterSetter(Typers.scala:1342)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[INFO] at scala.collection.immutable.List.foreach(List.scala:76)
[INFO] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:239)
[INFO] at scala.collection.immutable.List.flatMap(List.scala:76)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1278)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3912)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3908)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4333)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:94)
[INFO] at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:329)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.collection.Iterator$class.foreach(Iterator.scala:772)
[INFO] at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:318)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:86)
[INFO] at scala.tools.nsc.Global$Run.compileSources(Global.scala:953)
[INFO] at scala.tools.nsc.Global$Run.compile(Global.scala:1041)
[INFO] at scala.tools.nsc.Main$.process(Main.scala:106)
[INFO] at scala.tools.nsc.Main$.main(Main.scala:123)
[INFO] at scala.tools.nsc.Main.main(Main.scala)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[INFO] 
[INFO] java.lang.reflect.InvocationTargetException
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO] at java.lang.reflect.Method.invoke(Method.java:601)
[INFO] at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
[INFO] at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
[INFO] Caused by: java.lang.NullPointerException
[INFO] at scala.tools.nsc.io.AbstractFile.toByteArray(AbstractFile.scala:155)
[INFO] at scala.tools.nsc.symtab.classfile.AbstractFileReader.(AbstractFileReader.scala:26)
[INFO] at scala.tools.nsc.symtab.classfile.ClassfileParser.parse(ClassfileParser.scala:86)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$ClassfileLoader.doComplete(SymbolLoaders.scala:308)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:111)
[INFO] at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.load(SymbolLoaders.scala:130)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.exists(Symbols.scala:571)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$1(Typers.scala:3740)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4178)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4203)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4379)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeDefSig(Namers.scala:1102)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1215)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3899)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedExistentialTypeTree(Typers.scala:2930)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4207)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:4376)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedHigherKindedType(Typers.scala:4383)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3858)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:3857)
[INFO] at scala.tools.nsc.symtab.Types$class.map2Conserve(Types.scala:4985)
[INFO] at scala.tools.nsc.symtab.SymbolTable.map2Conserve(SymbolTable.scala:13)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedAppliedTypeTree$1(Typers.scala:3856)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4199)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4393)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTypeConstructor(Typers.scala:4420)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedNew$1(Typers.scala:3200)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4033)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4352)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:4358)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4146)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedApply$1$1.apply(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.silent(Typers.scala:624)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:3355)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4106)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4346)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:4423)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1207)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:551)
[INFO] at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$typeCompleter$1.apply(Namers.scala:549)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1385)
[INFO] at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1381)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:730)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:842)
[INFO] at scala.tools.nsc.symtab.Symbols$Symbol.annotations(Symbols.scala:73)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.addGetterSetter(Typers.scala:1342)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$13.apply(Typers.scala:1510)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[INFO] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[INFO] at scala.collection.immutable.List.foreach(List.scala:76)
[INFO] at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:239)
[INFO] at scala.collection.immutable.List.flatMap(List.scala:76)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1510)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1278)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3912)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:2100)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$24.apply(Typers.scala:2184)
[INFO] at scala.collection.immutable.List.loop$1(List.scala:148)
[INFO] at scala.collection.immutable.List.mapConserve(List.scala:164)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2184)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:3908)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4273)
[INFO] at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:4333)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:94)
[INFO] at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:329)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3$$anonfun$run$1.apply(Analyzer.scala:86)
[INFO] at scala.collection.Iterator$class.foreach(Iterator.scala:772)
[INFO] at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:318)
[INFO] at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.run(Analyzer.scala:86)
[INFO] at scala.tools.nsc.Global$Run.compileSources(Global.scala:953)
[INFO] at scala.tools.nsc.Global$Run.compile(Global.scala:1041)
[INFO] at scala.tools.nsc.Main$.process(Main.scala:106)
[INFO] at scala.tools.nsc.Main$.main(Main.scala:123)
[INFO] at scala.tools.nsc.Main.main(Main.scala)
[INFO] ... 6 more
mojoFailed net.alchim31.maven:scala-maven-plugin:3.1.0(scala-compile-first)
projectFailed com.bar.foo:web:11.0.17-SNAPSHOT
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.851s
[INFO] Finished at: Tue Dec 18 12:55:48 CET 2012
[INFO] Final Memory: 21M/246M
[INFO] ------------------------------------------------------------------------
Projects to build: [MavenProject: com.bar.foo:web:11.0.17-SNAPSHOT @ /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml]
[JENKINS] Archiving /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/workspace/web/pom.xml to /home/jenkins/.jenkins/jobs/Deploy_Unstable_Application_Server/modules/com.bar.foo$web/builds/2012-12-18_12-55-24/archive/com.bar.foo/web/11.0.17-SNAPSHOT/web-11.0.17-SNAPSHOT.pom
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (scala-compile-first) on project web: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
cause : wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
Stack trace : 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (scala-compile-first) on project web: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.MojoExecutionException: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
at scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:408)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 27 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 240(Exit value: 240)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:346)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:149)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:136)
at scala_maven_executions.JavaMainCallerByFork.run(JavaMainCallerByFork.java:99)
at scala_maven.ScalaCompilerSupport.compile(ScalaCompilerSupport.java:149)
at scala_maven.ScalaCompilerSupport.doExecute(ScalaCompilerSupport.java:99)
at scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:400)
... 29 more

@jozic

This comment has been minimized.

Show comment
Hide comment
@jozic

jozic Jan 7, 2013

I had the same issue with maven plugin version 2.15 and scala 2.9.1, so I've filed that SI-5135 ticket. I guess that was some kind of race condition, b/c it failed sporadically for me. Now it's fixed in 2.10
I'm not sure maven plugin can do much about it.

jozic commented Jan 7, 2013

I had the same issue with maven plugin version 2.15 and scala 2.9.1, so I've filed that SI-5135 ticket. I guess that was some kind of race condition, b/c it failed sporadically for me. Now it's fixed in 2.10
I'm not sure maven plugin can do much about it.

@davidB

This comment has been minimized.

Show comment
Hide comment
@davidB

davidB Jan 7, 2013

Owner

Any way, thanks for the info.

2 points :

  • have note the warning :
[WARNING]  Expected all dependencies to require Scala version: 2.9.2
[WARNING]  com.bar.foo:model:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  com.bar.foo:parser:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  org.javacraft:ripples:0.0.5 requires scala version: 2.9.1
[WARNING] Multiple versions of scala libraries detected!
  • If you use scala code (need of the scala-plugin) you should list scala-librairy as a explicit dependency (maven good practice), and you don't need to set in configuration. Try to run
mvn dependency:analyze
Owner

davidB commented Jan 7, 2013

Any way, thanks for the info.

2 points :

  • have note the warning :
[WARNING]  Expected all dependencies to require Scala version: 2.9.2
[WARNING]  com.bar.foo:model:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  com.bar.foo:parser:11.0.17-SNAPSHOT requires scala version: 2.9.2
[WARNING]  org.javacraft:ripples:0.0.5 requires scala version: 2.9.1
[WARNING] Multiple versions of scala libraries detected!
  • If you use scala code (need of the scala-plugin) you should list scala-librairy as a explicit dependency (maven good practice), and you don't need to set in configuration. Try to run
mvn dependency:analyze

@davidB davidB closed this Jan 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment