maven-archetype

Use __groupId__ in archetype

杀马特。学长 韩版系。学妹 提交于 2019-12-25 08:11:04
问题 I'm trying to create a multi module archetype like the following: __groupId__.plugin __groupId__.feature I want to set the names of the modules by groupId. So I use __groupId__ In order to set the module names. The problem is that these template doesn't get recognized. When I use __rootArtifactId__ my code works. Am I using the wrong template name? I have the following structure: archetype |--src |--main |--resources |--sonatype-resources | |--__groupId__.plugin | |--__groupId__.feature | |-

Maven 3: Stripes Archetype - cannot create project?

試著忘記壹切 提交于 2019-12-24 23:23:07
问题 I'm following this guide: http://www.stripesframework.org/pages/viewpage.action?pageId=1572995&decorator=printable I run the following command, which reports BUILD SUCCESS: mvn install:install-file -Dfile=stripes-archetype-quickstart-1.0.jar -DgroupId=net.sourceforge -DartifactId=stripes-archetype-quickstart -Dversion=1.0 -Dpackaging=jar I had previously downloaded the file "stripes-archetype-quickstart-1.0.jar" from here : http://sourceforge.net/projects/mvnstripes/files/stripes-quickstart-1

Maven archetype: Modify artifactId

ⅰ亾dé卋堺 提交于 2019-12-23 13:58:33
问题 While working on project, my requirement is to create a module. The command will be like: mvn archetype:generate \ -DarchetypeCatalog=local \ -DartifactId=test-module And the target should have following file structure test-module |--pom.xml `--src `--main |--install | `--install.sh `--scripts `--test_module.sh My whole goal is to create another variable derived from artifactId (say artifactIdWithUnderscore) replacing all hyphens - by underscope _ . So that I can use the updated variable to

How to set default Maven's Java in Eclipse?

纵饮孤独 提交于 2019-12-22 04:08:02
问题 If I create new Maven project in Eclipse and base it on quickstart archetype, it appears with J2SE-1.5 in Java Build Path window and 1.5 in Java Compiler / JDK Compliance window. So, I usually have to change this to other Java manually. Where are these default setting come from? How to change to 1.6 or 1.7? 回答1: The m2eclipse plugin uses the settings from the POM. So you need to add this to your POM: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin<

maven can't find archetype in my repository

你说的曾经没有我的故事 提交于 2019-12-21 18:14:31
问题 I'm trying to create my own maven archetype. For now, I'm going through this tutorial [here][1] without success. I'm able to build the archetype project okay, but when I try to generate a project from that archetype I get the error below. Maven can't seem to find the archetype I created . Can any one spot my problem? Is there some other recomended tutorial for createing a maven archetype? Thanks. Maven version 3.0.3 Build Error: AR3Y35-LAPTOP:EclipseWS Albert$ mvn archetype:generate -DgroupId

Creating Maven ArcheType . Setting file name

半腔热情 提交于 2019-12-21 03:55:08
问题 I want to create an Archetype in which user can provide artifactId. Then I want to take this artifactId and create two files. Here is an example. artifactId= box FILE 1: copy-box.txt FILE 2 : Box.java Creating copy-box.txt is quite easy. But how to create Box.java with B capital. 回答1: I looked through the code that creates the replacement in the filenames of the archetype resources. (can be found here). It appears to me that the values of the arguments are taken from the context, which means

Maven archetype plugin doesn't let .resources in archetype-resources through

偶尔善良 提交于 2019-12-21 03:13:38
问题 Does anybody know how can I make resources like .gitignore be part of the resulting project ? create archetype with archetype-resources/.gitignore mvn install mvn archatype:generate resulting project doesn't contain .gitignore PS. I'm sure it isn't there. 回答1: This solution for upcoming maven-resources-plugin v3.0.0 (not yet released at the time of posting this; current is still 2.7) from https://issues.apache.org/jira/browse/MRESOURCES-190 seems better than holding back version upgrades:

Unable to get complete maven archetype list

那年仲夏 提交于 2019-12-20 01:14:36
问题 I'm trying generate a Maven project using archetype:generate but I only get a small list of archetypes: 1: internal -> org.apache.maven.archetypes:maven-archetype-archetype (An archetype which contains a sample archetype.) 2: internal -> org.apache.maven.archetypes:maven-archetype-j2ee-simple (An archetype which contains a simplifed sample J2EE application.) 3: internal -> org.apache.maven.archetypes:maven-archetype-plugin (An archetype which contains a sample Maven plugin.) 4: internal ->

How to expand variable into nested directory in maven-archetype

随声附和 提交于 2019-12-19 09:46:55
问题 Suppose I have set groupId to com.example , and artifactId to fancy.project , and now I want to create a archetype, such that when created, expands into the following structure: |--src |--main |--com |--example |-fancy |-project |-App.java That is, I wonder how to expand a variable into a nested directory. I understand that the dual-underscore-wrapped variables will be substituted in file/directory names, but I can only get the following with __groupId__ . |--src |--main |--com.example |

How do I find the correct Maven archetype project for developing with Scala in Eclipse?

白昼怎懂夜的黑 提交于 2019-12-18 10:20:20
问题 I'm having problems trying to just create a Maven project using Scala (v2.11.6) within Eclipse (Luna). The instructions here says to install both plugins below. Maven Integration in Eclipse m2eclipse-scala connector Both plugins can be installed by using the m2eclipse-scala update site. So here's what I did in my first attempt. Download Eclipse Luna (for JavaEE developers) Install "both" plugins above by using the m2eclipse-scala update site. When Eclipse loads up, I attempt to create a Maven