Issue Details (XML | Word | Printable)

Key: MAVEN-1507
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Brett Porter
Reporter: dion gillard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1

Fails on IBM 1.3 JDK

Created: 16/Nov/04 10:44 PM   Updated: 08/Mar/06 10:44 PM
Component/s: core
Affects Version/s: 1.0.1
Fix Version/s: 1.0.2

Time Tracking:
Not Specified

Environment: WinXP SP 2, IBM JDK:
Issue Links:
dependent
 


 Description  « Hide
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))



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Brett Porter added a comment - 16/Nov/04 10:58 PM
are you sure you don't have a rogue maven.jar in the classpath, or in your local repository?

That's a bit odd.


dion gillard added a comment - 16/Nov/04 11:38 PM
It works fine on:
Sun 1.3.1 JDK,
IBM 1.4.1 JDK,

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


Harald Ommang added a comment - 17/Nov/04 04:03 AM
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


Brett Porter added a comment - 17/Nov/04 02:47 PM
I'll see what we can do as others have reported it.

David J. M. Karlsen added a comment - 23/Nov/04 05:31 AM
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.


Brett Porter added a comment - 04/Dec/04 01:28 AM
I hope I have worked around it.

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