I have tried now the whole process once again , created project through : -mvn archetype:generate -DarchetypeCatalog=https://nexus.magnolia-cms.com/content/groups/public/ and have choosed 5th option: -https://nexus.magnolia-cms.com/content/groups/public/ -> info.magnolia.maven.archetypes:magnolia-project-archetype (An archetype to create a Magnolia project (a parent pom and a webapp)) - tried the latest (snapshot) version of the archetype i.e. 1.2.1-SNAPSHOT -used Magnolia version 5.3.1 - used maven version 3.2.3 after importing the project in Spring Tool Suit 3.6.0.RELEASE i got error in parent pom : [b]Project build error: Invalid packaging for parent POM [unknown-group-id]:[unknown-artifact-id]:[unknown-version], must be "pom" but is "jar"[/b]
parent pom : <?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.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.acme</groupId> <artifactId>acme-project</artifactId> <name>My ACME Project (parent pom)</name> <version>1.2.1-SNAPSHOT</version> <packaging>pom</packaging> <properties> <magnoliaVersion>5.3.1</magnoliaVersion> <javaVersion>1.6</javaVersion> </properties> <!-- Fill the following in, so you can use the release plugin --> <scm> <connection/> <developerConnection/> <url/> </scm> <dependencyManagement> <dependencies> <!-- Due to a bug in Maven 2, we have to import info.magnolia:magnolia-project here. It would normally not be needed, since info.magnolia:magnolia-bundle-parent already imports it. (see below) The dependency to info.magnolia:magnolia-project needs to be BEFORE the dependency to info.magnolia:magnolia-bundle-parent, otherwise it doesn't work either. Also note that this is assuming magnolia-project and magnolia-ui-project have the same version number as magnolia-bundle-parent, which not always be true in the future. If you are using Maven 3, you should not need the 2 dependencies below, and all should be well. --> <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-project</artifactId> <version>${magnoliaVersion}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>info.magnolia.ui</groupId> <artifactId>magnolia-ui-project</artifactId> <version>${magnoliaVersion}</version> <type>pom</type> <scope>import</scope> </dependency> <!-- Importing dependencyManagement of CE bundle. This means you don't have to specify versions of modules you depend on (unless you want a different version than that of the bundle). --> <dependency> <groupId>info.magnolia.bundle</groupId> <artifactId>magnolia-bundle-parent</artifactId> <version>${magnoliaVersion}</version> <type>pom</type> <scope>import</scope> </dependency> <!-- If you want to use the Enterprise Edition, use info.magnolia.eebundle:magnolia-enterprise-bundle-parent. If you are using Maven 2, for the same reasons as above, you will have to keep the dependency to the CE bundle as well. If you are using Maven 3, just keep this one dependency below and remove the above 3. <dependency> <groupId>info.magnolia.eebundle</groupId> <artifactId>magnolia-enterprise-bundle-parent</artifactId> <version>${magnoliaVersion}</version> <type>pom</type> <scope>import</scope> </dependency> --> <!-- TEST --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>${javaVersion}</source> <target>${javaVersion}</target> </configuration> </plugin> </plugins> <!-- default resources configuration which will filter your module descriptors --> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*</include> </includes> </resource> <resource> <filtering>true</filtering> <directory>src/main/resources</directory> <includes> <include>META-INF/magnolia/*</include> </includes> </resource> </resources> </build> <repositories> <repository> <id>magnolia.public</id> <url>https://nexus.magnolia-cms.com/content/groups/public</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <!-- IF YOU NEED MODULES FROM THE ENTERPRISE VERSION, UNCOMMENT THE FOLLOWING REPOSITORY --> <!-- <repository> <id>magnolia.enterprise.releases</id> <url>https://nexus.magnolia-cms.com/content/repositories/magnolia.enterprise.releases</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> --> <repository> <id>vaadin-addons</id> <url>https://maven.vaadin.com/vaadin-addons</url> </repository> </repositories> <modules> <module>acme-project-webapp</module> </modules> </project> i worked on ubntu 14.04 LTS how to resolve this?? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=0c1c3508-7325-4c29-bcd2-9d7b9bdedd07 ---------------------------------------------------------------- For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------