Creating Vaadin 6 maven project - maven

I am trying to create vaadin 6 maven project using the following cmd :
mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=6.8.11 -Darchetype.properties=generate.properties -DgroupId=com.example.cem -DartifactId=test
But it fails with :
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project cem: The defined artifact is not an archetype
when I try to change archetypeVersion to 7.6.4 a vaadin project created correctly .
what is the wrong with vaadin 6 here?

First thing that pops into my mind is that we probably never have defined maven archetype for Vaadin 6. Maven support was introduced in later Vaadin 7 versions (ref https://vaadin.com/blog/vaadin-7-3-7-and-new-maven-archetypes).
But probably you can do it by creating Vaadin 7 project first and then change dependencies to Vaadin 6.

Related

Packaging issue with Maven project in STS

I have set up one spring boot project at STS IDE .
Getting issue with maven read with JDK 1.8 java version
I have restart the IDE
Error - Project build error: Invalid packaging for parent POM
org.springframework.boot:spring-boot-starter:1.5.9.RELEASE, must be
"pom" but is "jar".

eclipse do not show the setting.xml for maven - i have downloaded luna full package

I am trying to set up maven in new eclipse - i have downloaded eclipse luna full package from eclipse site. but the settings xml for maven needs to be defined .
For the very first time - there are two ways to do this
1- Using Eclipse - embedded settings of maven
2- Using External Maven -
You can follow steps at - Maven in Eclipse: step by step installation
Then you need to create a simple maven project and clean-install it . It wil download all the basic required jars and all the basic plugins required for clean-compile-install operations.
Then you can start creating maven projects using maven archetypes

Plugin execution not covered by lifecycle configuration:org.codehaus.mojo:xml-maven-plugin: 1.0:transform

I am using eclipse juno, maven 3.2.2, m2e 1.4.4. I have maven multi module project and I changed it's structure to eclipse style structure by executing mvn eclipse:eclipse command.
When I'm importing this project into eclipse it is showing following error in pom.xml:
1. Plugin execution not covered by lifecycle configuration:org.codehaus.mojo:xml-maven-plugin: 1.0:transform
but xml-maven-plugin: 1.0 is available under my local repository directory. And I have attached the scrrenshot where it is showing the error when i right click my project in eclipse -->properties--->maven--->lifecycle mappinig.
Thanks in advance.

Maven archetype for Eclipse RCP

Is there maven archetype (template) for Eclipse RCP / plugin ?
That is, I want something like mvn eclipse-rcp create (run from comand line) to get Eclipse RCP project.
See also http://maven.apache.org/archetype/maven-archetype-plugin/
Related How to create new Eclipse RCP project using Maven?
I would suggest using Maven Tycho to build the RCP application. It is a matured project which is utilized by the Eclipse Foundation as part of its own build infrastructure.
You can take a look at the following sample for cross platform Eclipse RCP Application building using Maven/Tycho-
https://github.com/eclipse/tycho-demo/tree/master/itp04-rcp
UPDATE -
There is a maven archetype for Eclipse Tycho plugin/feature build but it does not support RCP specifically.
You can take a look at it here -
https://github.com/open-archetypes/tycho-eclipse-plugin-archetype
It will build your project structure as follows -
__artifactId__ : parent pom project
|
|---__artifactId__.core : eclipse-plugin
|
|---__artifactId__.feature: eclipse-feature
|
|---__artifactId__.test : eclipse-test-plugin (Fragment project)
|
|---__artifactId__.site : eclipse-repository
This leaves out building the RCP app. For that you will have to add a pom.xml file where your .product file lies. Tycho will pick up settings from this .product file.
At the very lease your pom.xml must have the following -
https://github.com/eclipse/tycho-demo/blob/master/itp04-rcp/eclipse-repository/pom.xml

MyEclipse 8.5 creating 'maven-archetype-quickstart' has encountered a prob?

I use the built-in maven of MyEclipse 8.5 to create maven projects.
It shows the following error:
Image is here:pic
Sorry, because I'm new I can't post pictures here yet.
I did it twice on two computers (both are MyEclipse 8.5), but the error was the same.
I use a Eclipse to do the same job and it is successful.
But when using MyEclipse 8.5 to do the job if check "create a simple project (skip archetype selection)" during the process, the project can be created and no error happens, but there is no the folder "Maven Dependencies" in the project created in Package Explorer.
Is this a bug of this version of MyEclipse? Because Eclipse Indigo works fine on this.
If you create a simple project, the folder Maven Dependencies is missing simply because there are no Maven Dependencies in a simple project. Just add a dependency, and the folder Maven Dependencies should be created with your dependency in it.

Resources