It's usually the last one:

Caused by: java.lang.ClassFormatError: Illegal field name "has
inconsistent hierarchy" in class org/apache/maven/plugin/jar/JarMojo

Seems like something went wrong when you built it the first time. This may seems strange, but add:

<build>
  <plugins>
    <plugin>
      <artifactId>maven-jar-plugin</artifactId>
      <version>2.0</version>
    </plugin>
  </plugins>
</build>

to the POM and it should work.

- Brett

On 26/07/2006 10:30 AM, Barrie Treloar wrote:
On 7/26/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
Hi,

I'm writing a patch to maven-jar-plugin. The code compiles fine, and
runs the tests ok. However it fails shortly after, with a message I
can't understand.

I suspect the failure is in the "package" phase, when running the "jar"
goal to create a jar. Rather ironic :-)

The version I'm building is 2.1-snapshot. I'm using maven-2.0.4 to do
the build.

Did it work fine before you started making changes?

Go through the stack trace with a fine tooth comb looking for the "Caused by"s.

This one sticks out:

Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-jar-plugin:2.0:jar',
it could not be created

I suspect you have a typo in the stuff you added causing plexus to
fail to lookup components.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to