archetype « Development « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Development » archetype 

1. Maven archetype to generate simple project including site    stackoverflow.com

Is there a Maven archetype that will generate the same scaffolding as maven-archetype-quickstart, but will in addition create the basic project site layout generated by maven-archetype-site? Or do I always have ...

2. What are the URLs of all the Maven Archetype catalogs that you know about?    stackoverflow.com

Maven Archetypes are the "templates" by which you can quickly generate a running example of a given framework or project type. I am trying to compile a list ...

3. creating new archetypes    stackoverflow.com

In the pom for the archetype I'm creating (archetype-resources/pom.xml), I'm referencing ${project.build.directory}, which is causing an error when creating/generating a project from the archetype.

org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 15,column ...

4. maven archetype j2ee-simple generates a failing project    stackoverflow.com

I created a j2ee-simple project using the maven template with following command-line

 mvn archetype:create -DgroupId=com.hardik -DartifactId=ActionBazaar -DarchetypeArtifactId=maven-archetype-j2ee-simple
When I try to run the install goal within the created project folder I ...

5. maven archetype:generate parameter goals    stackoverflow.com

I have the need to create for a custom archetype. But just to expand and filter files as the archetype plugin supports is not enough, I need to do some more ...

6. How do you suppress property replacement when creating a project from an archetype?    stackoverflow.com

I'm trying to create an archtype for a simple project, this project contains some ssl certs that i'd like to includes as resources in the archtype so when the project gets ...

7. Java & Maven generating -and using- my own archetype    stackoverflow.com

I have been busy in my project creating a webapp (in struts) that manages maven, using maven-2.2.1-uber.jar link text. The problem comes when the ...

8. Overwrite archetypes in Maven    stackoverflow.com

I'm having some trouble using Maven for my archetypes and I will need to overwrite some. I launch an instruction that does an archetype:generate in an archetype already existing directory. Is ...

9. Missing archetype.xml in new archetype created from project    stackoverflow.com

I am using Maven 2.2.1. and am new to Maven. I am trying to create an archetype based on an existing project. I have been using this blog post as ...

10. How to create empty folders with maven archetype?    stackoverflow.com

There is an existing issue for this approach, located on Codehaus JIRA #ARCHETYPE-57, but all instructions listed in this ticket failed for me. Also the blog post of marekdec ...

11. Howto create dynamic named folders with Maven2 Archetype?    stackoverflow.com

I try to build an archetype structure like this, a webapp with some custom folders for our web-framework. Especially some dynamic folders which also will contain some files brought by the ...

12. Edit source files with custom maven archetype    stackoverflow.com

I have created a customer maven archetype and have it setup with some custom requiredProperties:

<requiredProperties>
    <requiredProperty key="classPrefix" />
</requiredProperties>
I can use that property to name a file, like so:
__classPrefix__Config.java
My ...

13. Archetype for Maven Project    stackoverflow.com

I'd like to start a little project with maven. I want to use JSF2 and Hibernate. Can you recommend some archetype? or some other procedures to start this project. Cheers...

14. Passing extra properties to maven archetype:generate    stackoverflow.com

I've created a Maven archetype for a custom project setup, which is working wonderfully, but I was wondering if it's possible to pass extra parameters so that I can do some ...

15. Ask for maven archetype properties with defaults    stackoverflow.com

I'm putting together a maven archetype that has a bunch of custom properties that are used to filter the various archetype resources. I have these specified with defaults in the archetype-metadata.xml ...

16. How can I test a maven archetype that I've just created?    stackoverflow.com

I've created a few archetypes for a project that work fine for now, but I'd like to be able to verify that the code generated from the archetypes continues to work ...

17. Maven and Archetype    stackoverflow.com

Is it possible to create own own project structure ( Archetype) i also like to add some dynamic files to be created. What steps involved to create it?

18. Maven archetype:generate excessive number of choice    stackoverflow.com

According to maven site, and some tutorials on the web, mvn archetype:generate would give a choice of about 36, and selection 15 is the quick start. It was working ...

19. Any good advanced guides on how to create new maven archetypes?    stackoverflow.com

I'm looking for a guide on how to create new maven archetypes that involve using parameters to create directories and file names where the parameters are used as prefixes in the ...

20. How do I simultaneously create a Maven project and branch it?    stackoverflow.com

My company does a lot of projects that look very similar. Time for a Maven archetype, right? I think so. To speed up the process, I don't want the developer ...

21. Specify archetype for archetype:generate on command line    stackoverflow.com

I'm generating a maven archetype for a simple project. I use archetype:generate, and it gives me a list of types of archetypes to generate. I'm pretty sure I want

99: ...

22. How to list all the archetype?    stackoverflow.com

Is there a maven command to list all the architype maven supports?

23. How do I deprecate a custom Maven Archetype?    stackoverflow.com

Is it possible to deprecate custom maven archetypes installed on nexus ? I was thinking may be use something like this -

<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.myorg.myarch</groupId>
<artifactId>maven-archetype-custom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>Archetype - maven-archetype-custom</name>
**<deprecated>TRUE</deprecated>**
Re-install the archetype so ...

24. Dynamic file name in Maven archetype    stackoverflow.com

I've problem with Maven. I tried to create archetype, but I don't now how to put source file to directory ${groupId}/${artifactId}. If I try to create project from this archetype, file ...

25. Maven Archetype inheritage/composition - possible or not?    stackoverflow.com

All our projects follow 2 or 3 'configurations'.

  • Simple Service
  • Simple Service + Flex Front End
  • Simple Service + WS Exposition
To simplify the setup task, we want to provide archetype for these 3 configuration. But, ...

26. How maven know which archetype is used?    stackoverflow.com

I am wonder how maven know which archetype is used for specified pom.xml I did not found any difference between pom.xml of maven-archetype-quickstart and that of maven-archetype-webapp. Anyone can help me on ...

27. Maven archetype problem    stackoverflow.com

I am a newbie to maven. I have installed apache archiva in my machine to use as maven-proxy. My purpose is that I want to generate a sample project structure ...

28. how to customize archetype-resources?    stackoverflow.com

I customised my archetype-resources to produce or generate an mono module archetype as in that link: http://maven.apache.org/guides/mini/guide-creating-archetypes.html now, I want to customise my archetype-resources to generate a multi-module archetype from ...

29. Maven project created from Old (1.x) Archetype    stackoverflow.com

I'm trying to learn Maven following this Getting Started Guide. I've Apache Maven 3.0.1 on Linux. I've issued the following command to create a first project:

yes | mvn archetype:generate \
 ...

30. Are there anothers default maven archetype properties    stackoverflow.com

I'm creating a maven archetype that has a bunch of custom properties. ex:

<requiredProperties>
  <requiredProperty key="db-name">
    <defaultValue>Some db-name</defaultValue>
  </requiredProperty>
  <requiredProperty key="station-name">
    <defaultValue>localhost</defaultValue>
  </requiredProperty>
 ...

31. Maven archetype to modify an existing project?    stackoverflow.com

I'm trying to create an archetype that would add some data in an existing POM file. Actually, this archetype would specify the distributionManagement for a project which is not configured for that. I ...

32. Maven archetype for pure serverside war-packaged jee 6 application?    stackoverflow.com

I'm new to Maven, but are looking for a maven-based jee 6 project. So far, I played around with the jee 6 maven archetypes provided from weld and knappsack. They seem to ...

33. Maven archetype properties with default value artifactID    stackoverflow.com

I want to make an archetype that use a parameter to be created...nut I don't know if is right a parameter made in this way:

<requiredProperties>
    <requiredProperty key="appName">
  ...

34. maven archetype:generate does not find archetype in local catalog    stackoverflow.com

I have created and installed my own archetype and now I am trying to create a new project with it with the command line. When I run

mvn archetype:generate -DarchetypeCatalog=local
I can ...

35. Maven archetype    stackoverflow.com

Why this works(and then asks step by step arguments which I can define manually)

C:\Users\userName>mvn archetype:generate
And this doesn't with arguments already specified? (it is example from http://maven.apache.org/guides/getting-started/index.html)
C:\Users\userName>mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes ...

36. What archetype to choose for a simple java project    stackoverflow.com

mvn archetype:generate provides way too many options and I am looking to create a simple java utility with junit test cases. I would like to know what archetype I should be ...

37. How to embed archetype project version in Maven archetype?    stackoverflow.com

I'm creating a Maven archetype which generates a project skeleton that will include a dependency on the project from which the archetype originated. For example, the origin project looks like:

origin/archetype/... ...

38. maven basic project templates    stackoverflow.com

i generally needs that kind of project.But most maven archetypes generating extra files,jars ... .How can i create simple template of that kind of projects .

    ...

39. Generate a random uuid in a maven archetype    stackoverflow.com

I need to create a random UUID and write it to the generated project. Currently, I ask the user to fill in a random UUID each time a project is created, ...

40. Custom Maven Archetype or alternatives to project generation    stackoverflow.com

We would like to generate projects from a Maven Archetype but we are finding it a bit simplistic. We would like to do the following:

  1. Have a simple starting point. Not ask ...

41. Maven Archetypes & Project Structure    stackoverflow.com

Maven newmbie here. Been looking over the docs at the official Maven site and am trying to understand the difference between a Maven archetype and the actual directory structure ...

42. Newbie: maven archetype:generate    stackoverflow.com

I haven't used maven before, now I start to learn what maven is and how to use it. I am now following the maven.apache.org tutorial here to start my ...

43. Maven archetype:create-from-project how to use artifactId variable in XML files?    stackoverflow.com

I am using $ maven archetype:create-from-project to generate an archetype for my project com.foo.archproject. If, in archproject, theres a XML file src/main/webapp/WEB-INF/myxml.xml like this one:

<xml>
    <prop>com.foo.archproject</prop>
   ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.