Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Check if you have maven2 installed, if not then please install it. http://maven.apache.org/download.html#Installation

Make sure that you're using maven-archetype-plugin 1.0-alpha4 or above you can look in (~/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin). To install it you can place a minimal pom.xml in the folder where you're calling the mvn archetype:create goal in:

<?xml version="1.0" encoding="UTF-8"?>
<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.xsdImage Added">

    <modelVersion>4.0.0</modelVersion>
    <groupId>mygroup</groupId>
    <artifactId>myartifact</artifactId>
    <version>myversion</version>
    <packaging>pom</packaging>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-archetype-plugin</artifactId>
                    <version>1.0-alpha-4</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

</project>

1) To create a JBI component as you might have guessed by now - run the mvn command: (needless to say you should create a new directory where you want all your stuff to be generated and you have to remove the trailing backshlashes and make it one line)

...