Can't create maven module from archetype

Hi,
I'm using 8.01.
I just wanted to create a module with the archetype scala-archetype-simple.I used Idea for that (create new module->Maven module)
This was shown in the box where all the archetypes are listed.

I selected it, entered the groupid and the artifactId and clicked on Finish.

Idea created a default pom file.Just a pom.xml file, no source directory, no test directory. Just one file was generated.
I called "mvn archetype:generate" on the command line and got a totally different project structure generated.

Idea seems to be broken with the maven archetypes. Should I submit a Jira issue for this?


The only data generated by Idea:

<?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/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>scla-commons</artifactId>
        <groupId>de.foobar</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>de.foobar</groupId>
    <artifactId>test</artifactId>
    <version>1.0-SNAPSHOT</version>
</project>

1 comment
Comment actions Permalink

I'm using IntelliJ9 and Artifactory as a proxy to the central maven repository, JBoss repository, etc...  I found that with Artifactory as a proxy (defined in maven/conf/settings.xml), IntelliJ had problems creating a project from an archetype.  Modifying settings.xml to go directly to the repository instead of using the proxy fixed it for me.

0

Please sign in to leave a comment.