Hi Jordan,

You come to a point where scope needs some tests class defined in lifecycle.standard.

Maven does not generate the test-jar for you. We decided recently to not activate that generation for all modules:
http://markmail.org/message/zp6vfz4u4bazbtgz

To fix it, you need to add in lifecycle.standard

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.4</version>
          <executions>
            <execution>
              <id>jar</id>
              <phase>package</phase>
              <goals>
                <goal>jar</goal>
              </goals>
            </execution>
            <execution>
              <id>test-jar</id>
              <phase>package</phase>
              <goals>
                <goal>test-jar</goal>
              </goals>
            </execution>
          </executions>

and add a declaration in (don't forget the type test-jar)

      <dependency>
        <groupId>org.apache.onami</groupId>
        <artifactId>org.apache.onami.lifecycle.standard</artifactId>
        <version>0.2.0-incubating-SNAPSHOT</version>
        <type>test-jar</type>
        <scope>test</scope>
      </dependency>

The confusing thing is that the error is only shown when you run maven from the command line, but it compiles/test fine in your ide (at least eclipse).

Thx, Eric


On 09/03/2013 19:12, Jordan Zimmerman wrote:
Yeah - I'm seeing that too now. I don't understand why. Scope's pom has 
lifecycle.standard as a dep.


     <dependency>
       <groupId>org.apache.onami</groupId>
       <artifactId>org.apache.onami.lifecycle.standard</artifactId>
       <version>0.2.0-incubating-SNAPSHOT</version>
       <scope>test</scope>
     </dependency>

-JZ

On Mar 9, 2013, at 10:59 AM, Christian Grobmeier <grobme...@gmail.com> wrote:

On Sat, Mar 9, 2013 at 7:45 PM, Jordan Zimmerman
<jor...@jordanzimmerman.com> wrote:
Everything compiles for me. I'm not sure why it's not picking up the changes to 
Scopes. Does the Jenkins build to a clean compile?

I can do mvn compile, but mvn test does not do the trick. So I think
its an compilation error in testcases, as the stacktrace below
confirms:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile
(default-testCompile) on project org.apache.onami.scopes: Compilation
failure: Compilation failure:
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestConcurrentLazySingleton.java:[30,42]
package org.apache.onami.lifecycle.standard does not exist
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/AnnotatedConcurrentLazySingletonObject.java:[22,42]
package org.apache.onami.lifecycle.standard does not exist
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/AnnotatedLazySingletonObject.java:[22,42]
package org.apache.onami.lifecycle.standard does not exist
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/LazySingletonObject.java:[22,42]
package org.apache.onami.lifecycle.standard does not exist
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestLazySingleton.java:[25,42]
package org.apache.onami.lifecycle.standard does not exist
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/AnnotatedConcurrentLazySingletonObject.java:[38,5]
cannot find symbol
[ERROR] symbol  : class AfterInjection
[ERROR] location: class
org.apache.onami.scopes.AnnotatedConcurrentLazySingletonObject
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/AnnotatedLazySingletonObject.java:[38,5]
cannot find symbol
[ERROR] symbol  : class AfterInjection
[ERROR] location: class org.apache.onami.scopes.AnnotatedLazySingletonObject
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/LazySingletonObject.java:[37,5]
cannot find symbol
[ERROR] symbol  : class AfterInjection
[ERROR] location: class org.apache.onami.scopes.LazySingletonObject
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestConcurrentLazySingleton.java:[106,54]
cannot find symbol
[ERROR] symbol  : class AfterInjectionModule
[ERROR] location: class org.apache.onami.scopes.TestConcurrentLazySingleton
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestConcurrentLazySingleton.java:[127,54]
cannot find symbol
[ERROR] symbol  : class AfterInjectionModule
[ERROR] location: class org.apache.onami.scopes.TestConcurrentLazySingleton
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestLazySingleton.java:[75,54]
cannot find symbol
[ERROR] symbol  : class AfterInjectionModule
[ERROR] location: class org.apache.onami.scopes.TestLazySingleton
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestLazySingleton.java:[94,54]
cannot find symbol
[ERROR] symbol  : class AfterInjectionModule
[ERROR] location: class org.apache.onami.scopes.TestLazySingleton
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestLazySingleton.java:[124,54]
cannot find symbol
[ERROR] symbol  : class AfterInjectionModule
[ERROR] location: class org.apache.onami.scopes.TestLazySingleton
[ERROR] 
/Users/cy/Documents/Development/onami-trunk/scopes/src/test/java/org/apache/onami/scopes/TestLazySingleton.java:[150,54]
cannot find symbol
[ERROR] symbol  : class AfterInjectionModule
[ERROR] location: class org.apache.onami.scopes.TestLazySingleton
[ERROR] -> [Help 1]

Reply via email to