Good day,

I'm trying to study how to use maven-archetype-plugin's
create-from-projectgoal. As of now, these are the things that i know
about it:

* it creates an archetype given an existing maven project
* you need a ${basedir}/src/main/archetype/archetype.properties and that
needs to state the value for "package".
* it generates the following output


target
|-- archetype-project
|   `-- src
|       |-- main
|       |   `-- java
|       |       `-- <java main files>
|       `-- test
|           `-- java
|               `-- <java test files>
 |-- filtered-project
|   `-- src
|       |-- main
|       |   `-- java
|       |       `-- <java main files in package format>
|       `-- test
|           `-- java
|               `-- <java test files in package format>
|-- archetype.jar
|-- archetype.xml
`-- pom.xml


and the archetype.jar contains the following


archetype.jar
|-- archetype-resources
|   |-- src
|   |   |-- main
|   |   |   `-- java
|   |   |       `-- <java main files>
|   |   `-- test
|   |       `-- java
|   |   |       `-- <java test files>
|   `-- pom.xml
|-- META-INF
|   |-- maven
|   |   `-- archetype.xml
|   |-- archetype.xml
|   |-- MANIFEST.MF
`-- src
    |-- main
    |   `-- java
    |       `-- <java main files>
    `-- test
        `-- java
            `-- <java test files>


However, what will happen now after that? Do I install it (mvn install)?
I've tried it as well and the archetype I created via
create-from-projectcannot be detected.


Thus, this boils down to my very simple question, am I using the goal
properly? If not, how should I have used it? ^_^


(btw, I can create an archetype using Apache Maven's Guide to Creating
Archetype<http://maven.apache.org/guides/mini/guide-creating-archetypes.html>.
I'm just interested with how the create-from-project works.)

Thanks a bunch ^_^

- Franz

Reply via email to