1

I'm fiddling with maven to use with IzPack, but for some reason I keep getting the error that the izpack plugin pom is not a 4.0.0 pom.

In the repo1.maven repository, I see this tag in the pom: <modelVersion>4.0.0</modelVersion>

So, if my pom is 4.0.0 and the plugin pom is 4.0.0, why I do I get the message that the plugin is not 4.0.0?

Helfdane
  • 113
  • 1
  • 2
  • 5

1 Answers1

0

You should be able to specify the exact version of the IzPack plugin you are using in your project pom.xml.
This is quite different from the from ModelVersion element, which "indicates what version of the object model this POM is using.
The version of the model itself changes very infrequently but it is mandatory in order to ensure stability of use if and when the Maven developers deem it necessary to change the model".

See for instance this IzPack with Maven setup:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>test</groupId>
  <artifactId>test18</artifactId>
  <name>Test IzPack and maven</name>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>pom</packaging>

  <properties>
    <staging.dir>${project.build.directory}\staging</staging.dir>
    <izpack.standalone.compiler.version>4.3.2</izpack.standalone.compiler.version>
  </properties>
  [...]
     <dependencies>
      <dependency>
        <groupId>org.codehaus.izpack</groupId>
        <artifactId>izpack-standalone-compiler</artifactId>
        <version>${izpack.standalone.compiler.version}</version>
      </dependency>
    </dependencies>
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250