Maven 1

Fails on IBM 1.3 JDK

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.0.2
  • Component/s: core
  • Labels:
    None
  • Environment:
    WinXP SP 2, IBM JDK:
  • Number of attachments :
    0

Description

Not sure what can be done about this, but felt it better to report it than let it slide.

C:\source\wsad\workspace\Deployment>set JAVA_HOME=c:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v
5\java

C:\source\wsad\workspace\Deployment>maven clean
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0.1

java.lang.NoSuchFieldError: org.apache.maven.repository.AbstractArtifact: field OVERRIDE_NONE not found
at org.apache.maven.repository.AbstractArtifact.<init>(AbstractArtifact.java:53)
at org.apache.maven.repository.GenericArtifact.<init>(GenericArtifact.java:40)
at org.apache.maven.repository.DefaultArtifactFactory.createArtifact(DefaultArtifactFactory.java:53)
at org.apache.maven.ArtifactListBuilder.build(ArtifactListBuilder.java:59)
at org.apache.maven.project.Project.buildArtifactList(Project.java:1407)
at org.apache.maven.project.Project.initialize(Project.java:1341)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:148)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at java.lang.reflect.Method.invoke(Native Method)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)

You have encountered an unknown error running Maven. Please help us to correct
this problem by following these simple steps:

Total time: 3 seconds
Finished at: Wed Nov 17 14:06:21 EST 2004

C:\source\wsad\workspace\Deployment>"%JAVA_HOME%\bin\java" -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT enabled: jitc))

Issue Links

Activity

Hide
Brett Porter added a comment -

are you sure you don't have a rogue maven.jar in the classpath, or in your local repository?

That's a bit odd.

Show
Brett Porter added a comment - are you sure you don't have a rogue maven.jar in the classpath, or in your local repository? That's a bit odd.
Hide
dion gillard added a comment -

It works fine on:
Sun 1.3.1 JDK,
IBM 1.4.1 JDK,

so I'm reasonably sure it's not the repo.

Show
dion gillard added a comment - It works fine on: Sun 1.3.1 JDK, IBM 1.4.1 JDK, so I'm reasonably sure it's not the repo.
Hide
Harald Ommang added a comment -

I get the same error on this:
java.exe full version "J2RE 1.3.1 IBM Windows 32 build cn131-20030711a"

works on this:
java full version "1.3.1_13-b03"

Harald

Show
Harald Ommang added a comment - I get the same error on this: java.exe full version "J2RE 1.3.1 IBM Windows 32 build cn131-20030711a" works on this: java full version "1.3.1_13-b03" Harald
Hide
Brett Porter added a comment -

I'll see what we can do as others have reported it.

Show
Brett Porter added a comment - I'll see what we can do as others have reported it.
Hide
David J. M. Karlsen added a comment -

I can report the same problem:

C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\java\bin>java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT enabled: jitc))

does not work (same error message).

C:\j2sdk1.4.2_06\bin>java -version
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

maven.jar is not found in either of the JDK's, neither in external CLASSPATH or the likes.

Show
David J. M. Karlsen added a comment - I can report the same problem: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\java\bin>java -version java version "1.3.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1) Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT enabled: jitc)) does not work (same error message). C:\j2sdk1.4.2_06\bin>java -version java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode) maven.jar is not found in either of the JDK's, neither in external CLASSPATH or the likes.
Hide
Brett Porter added a comment -

I hope I have worked around it.

dIon - can you verify by building from MAVEN-1_0-BRANCH? Thanks...

Show
Brett Porter added a comment - I hope I have worked around it. dIon - can you verify by building from MAVEN-1_0-BRANCH? Thanks...

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: