Re: Surefire build issue
On 4/2/07, Jacek Laskowski <[EMAIL PROTECTED]> wrote: On 4/2/07, Jacek Laskowski <[EMAIL PROTECTED]> wrote: > It's the first build with M2 2.0.6 so keep fingers crossed ;-) Alas, I'm unlucky today! Not that bad, though. Executing 'mvn -Dmaven.test.skip=true clean install' works like a charm. Awaiting Jarek or Dims' wakeup ;-) $ mvn -Dmaven.test.skip=true clean install ... [INFO] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 28 minutes 40 seconds [INFO] Finished at: Mon Apr 02 09:17:15 CEST 2007 [INFO] Final Memory: 207M/370M [INFO] Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl
Re: Surefire build issue
Me too. I thought maybe it was due to maven not being able to find
axis2-jaxws pom and making something up that has no dependencies, but
I didn't investigate further than noticing it couldn't fine the
timestamp for that it was looking for.
thanks
david jencks
On Apr 1, 2007, at 11:39 PM, Jason Dillon wrote:
Ya, I see that too :-(
--jason
On Apr 1, 2007, at 11:32 PM, Jacek Laskowski wrote:
On 4/2/07, Jacek Laskowski <[EMAIL PROTECTED]> wrote:
It's the first build with M2 2.0.6 so keep fingers crossed ;-)
Alas, I'm unlucky today!
$ svn up
At revision 524731.
$ mvn clean install
...
[INFO]
-
---
[INFO] Building Geronimo :: AXIS2
[INFO]task-segment: [clean, install]
[INFO]
-
---
[INFO] [clean:clean]
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2
\target
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2
\target\classes
[INFO] Deleting directory
c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
[INFO] [enforcer:enforce {execution: default}]
[INFO] Detected JDK Version: 1.5.0-11 is allowed in the range
[1.5,1.6).
[INFO] Detected Maven Version: 2.0.6 is allowed in the range
[2.0.5,).
[INFO] [build-helper:add-test-source {execution: add-test-source}]
[INFO] Test Source directory:
c:\oss\geronimo\modules\geronimo-axis2\target\schema\src added.
[INFO] [tools:copy-legal-files {execution: install-legal-files}]
[INFO] Created dir:
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] Copying 2 files to
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2-
jaxws-20070330.190024-85.pom
34K downloaded
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/axis2/axis2-kernel/SNAPSHOT/axis2-
kernel-20070401.014134-137.pom
7K downloaded
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2-
java2wsdl-20070401.014134-148.pom
3K downloaded
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache.snapshots
Downloading: http://tomcat.apache.org/dev/dist/m2-repository//
jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading: http://people.apache.org/repo/m2-incubating-
repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading: http://repository.codehaus.org/jaxen/jaxen/1.1-
beta-10/jaxen-1.1-beta-10.pom
Downloading: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/
jaxen-1.1-beta-10.pom
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/ws/co
Re: Surefire build issue
Ya, I see that too :-(
--jason
On Apr 1, 2007, at 11:32 PM, Jacek Laskowski wrote:
On 4/2/07, Jacek Laskowski <[EMAIL PROTECTED]> wrote:
It's the first build with M2 2.0.6 so keep fingers crossed ;-)
Alas, I'm unlucky today!
$ svn up
At revision 524731.
$ mvn clean install
...
[INFO]
--
--
[INFO] Building Geronimo :: AXIS2
[INFO]task-segment: [clean, install]
[INFO]
--
--
[INFO] [clean:clean]
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2
\target
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2
\target\classes
[INFO] Deleting directory
c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
[INFO] [enforcer:enforce {execution: default}]
[INFO] Detected JDK Version: 1.5.0-11 is allowed in the range
[1.5,1.6).
[INFO] Detected Maven Version: 2.0.6 is allowed in the range [2.0.5,).
[INFO] [build-helper:add-test-source {execution: add-test-source}]
[INFO] Test Source directory:
c:\oss\geronimo\modules\geronimo-axis2\target\schema\src added.
[INFO] [tools:copy-legal-files {execution: install-legal-files}]
[INFO] Created dir:
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] Copying 2 files to
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2-
jaxws-20070330.190024-85.pom
34K downloaded
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/axis2/axis2-kernel/SNAPSHOT/axis2-
kernel-20070401.014134-137.pom
7K downloaded
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2-
java2wsdl-20070401.014134-148.pom
3K downloaded
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache.snapshots
Downloading: http://tomcat.apache.org/dev/dist/m2-repository//jaxen/
jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading: http://people.apache.org/repo/m2-incubating-
repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading: http://repository.codehaus.org/jaxen/jaxen/1.1-beta-10/
jaxen-1.1-beta-10.pom
Downloading: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/
jaxen-1.1-beta-10.pom
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/
org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/
XmlSchema-20070330.195406-36.pom
15K downloaded
Downloading: http://tomcat.apache.org/dev/dist/m2-repository//org/
apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading: http://people.apache.org/repo/m2-incubating-
repository//org/apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading: htt
Re: Surefire build issue
On 4/2/07, Jacek Laskowski <[EMAIL PROTECTED]> wrote:
It's the first build with M2 2.0.6 so keep fingers crossed ;-)
Alas, I'm unlucky today!
$ svn up
At revision 524731.
$ mvn clean install
...
[INFO]
[INFO] Building Geronimo :: AXIS2
[INFO]task-segment: [clean, install]
[INFO]
[INFO] [clean:clean]
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2\target
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2\target\classes
[INFO] Deleting directory
c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
[INFO] [enforcer:enforce {execution: default}]
[INFO] Detected JDK Version: 1.5.0-11 is allowed in the range [1.5,1.6).
[INFO] Detected Maven Version: 2.0.6 is allowed in the range [2.0.5,).
[INFO] [build-helper:add-test-source {execution: add-test-source}]
[INFO] Test Source directory:
c:\oss\geronimo\modules\geronimo-axis2\target\schema\src added.
[INFO] [tools:copy-legal-files {execution: install-legal-files}]
[INFO] Created dir:
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] Copying 2 files to
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache.snapshots
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2-jaxws-20070330.190024-85.pom
34K downloaded
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache.snapshots
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-kernel/SNAPSHOT/axis2-kernel-20070401.014134-137.pom
7K downloaded
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache.snapshots
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2-java2wsdl-20070401.014134-148.pom
3K downloaded
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache.snapshots
Downloading:
http://tomcat.apache.org/dev/dist/m2-repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading:
http://repository.codehaus.org/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading:
http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache.snapshots
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/XmlSchema-20070330.195406-36.pom
15K downloaded
Downloading:
http://tomcat.apache.org/dev/dist/m2-repository//org/apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository//org/apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading:
http://repository.codehaus.org/org/apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading:
http://repo1.maven.org/maven2/org/apache
Re: Surefire build issue
On 4/1/07, Niklas Gustavsson <[EMAIL PROTECTED]> wrote: Jason Dillon wrote: > Are you setting JAVA_HOME in windows or in Cygwin? Cygwin. I'm using Cygwin and M2 2.0.5 (now upgraded to 2.0.6) and java version "1.5.0_11". I haven't seen issues with this environment, but just to be sure I'm rebuilding it now... It's the first build with M2 2.0.6 so keep fingers crossed ;-) Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl
Re: Surefire build issue
Jason Dillon wrote: Are you setting JAVA_HOME in windows or in Cygwin? Cygwin. Looks to me like you are having some related environmental configuration issues. Short of telling you to double check your configuration, nuke your local repo and the obligatory "go by a mac" statement... not much I can do. :-) For now I use a hacked up version of the root pom.xml which then let's me build. Thanks for the help! /niklas
Re: Surefire build issue
Are you setting JAVA_HOME in windows or in Cygwin? Looks to me like you are having some related environmental configuration issues. Short of telling you to double check your configuration, nuke your local repo and the obligatory "go by a mac" statement... not much I can do. Maybe someone else who actually uses that platform might have some more insight into what is going on in Cygwin. --jason On Apr 1, 2007, at 7:57 AM, Niklas Gustavsson wrote: Jason Dillon wrote: What operating system are you using? This is on Cygwin. /niklas
Re: Surefire build issue
Jason Dillon wrote: What operating system are you using? This is on Cygwin. /niklas
Re: Surefire build issue
What operating system are you using? --jason On Mar 31, 2007, at 2:14 AM, Niklas Gustavsson wrote: Jason Dillon wrote: The server/trunk (and server/branches/1.2) codelines inhert configuration from genesis/config/project-config 1.1 ( http:// svn.apache.org/repos/asf/geronimo/genesis/tags/genesis-1.1/config/ project-config/pom.xml ) which currently sets the surefire plugin version to 2.2. I'm unaware of any problems with the build due to surefire problems. What issues are you having? Oh, I should have said that I'm trying to build server/trunk. The problem I'm seeing is the one below. The exact class where it happens might vary based on how far the previous build got, if running mvn clean test it will always halt on the same class. org.apache.maven.surefire.booter.SurefireExecutionException: org/ apache/geronimo /activation/handlers/TextHtmlTest (Unsupported major.minor version 49.0); nested exception is java.lang.UnsupportedClassVersionError: org/apache/ geronimo/activa tion/handlers/TextHtmlTest (Unsupported major.minor version 49.0) java.lang.UnsupportedClassVersionError: org/apache/geronimo/ activation/handlers/ TextHtmlTest (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:12 3) at java.net.URLClassLoader.defineClass(URLClassLoader.java: 251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(Isolat edClassLoader.java:100) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest Sets(AbstractDirectoryTestSuite.java:84) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire .java:147) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main (SurefireBooter.j ava:747) This is on: $ "$JAVA_HOME/bin/java" -version java version "1.5.0_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing) As I wrote previously, changing the surefire plugin version to 2.0 does seem to fix this. I didn't notice the inheritance you mentioned before, but now I tried setting the plugin version to 2.2 explicitly in server/trunk/pom.xml and that results in the same problem. I'm not familiar enough with the surefire classloading to analyze this issue in any great detail :-/ /niklas
Re: Surefire build issue
Jason Dillon wrote: The server/trunk (and server/branches/1.2) codelines inhert configuration from genesis/config/project-config 1.1 ( http://svn.apache.org/repos/asf/geronimo/genesis/tags/genesis-1.1/config/project-config/pom.xml ) which currently sets the surefire plugin version to 2.2. I'm unaware of any problems with the build due to surefire problems. What issues are you having? Oh, I should have said that I'm trying to build server/trunk. The problem I'm seeing is the one below. The exact class where it happens might vary based on how far the previous build got, if running mvn clean test it will always halt on the same class. org.apache.maven.surefire.booter.SurefireExecutionException: org/apache/geronimo /activation/handlers/TextHtmlTest (Unsupported major.minor version 49.0); nested exception is java.lang.UnsupportedClassVersionError: org/apache/geronimo/activa tion/handlers/TextHtmlTest (Unsupported major.minor version 49.0) java.lang.UnsupportedClassVersionError: org/apache/geronimo/activation/handlers/ TextHtmlTest (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 3) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(Isolat edClassLoader.java:100) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest Sets(AbstractDirectoryTestSuite.java:84) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire .java:147) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:747) This is on: $ "$JAVA_HOME/bin/java" -version java version "1.5.0_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing) As I wrote previously, changing the surefire plugin version to 2.0 does seem to fix this. I didn't notice the inheritance you mentioned before, but now I tried setting the plugin version to 2.2 explicitly in server/trunk/pom.xml and that results in the same problem. I'm not familiar enough with the surefire classloading to analyze this issue in any great detail :-/ /niklas
Re: Surefire build issue
The server/trunk (and server/branches/1.2) codelines inhert configuration from genesis/config/project-config 1.1 ( http:// svn.apache.org/repos/asf/geronimo/genesis/tags/genesis-1.1/config/ project-config/pom.xml ) which currently sets the surefire plugin version to 2.2. I'm unaware of any problems with the build due to surefire problems. What issues are you having? --jason On Mar 30, 2007, at 3:11 PM, Niklas Gustavsson wrote: Hi I'm just starting to play around with building Maven and ran in to some issues. The first was that Surefire complains about Java class file version issues. I've seen this before on other builds (probably because I have a screwed up surefire version as the default) and has been able to fix it by including the surefire plugin version in the pom: maven-surefire-plugin 2.0 Doing this is probably a good idea anyways as it should stabilize builds. Should I report a JIRA issue on this or would this email be okay? /niklas
