archetypes

Maven archetype to generate simple project including site

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 to run each in sequence? ...

How do you programmatically reorder children of an ATFolder subclass?

I have Plone product that uses a custom folder type for containing a set of custom content objects. The folder type was created by subclassing BaseFolder and it has a schema with a couple of text fields. Currently, when custom objects are added to the custom folder, the objects are sorted alphabetically by their id. How can I override...

How do I set up m2eclipse to see the archetypes in repo1.maven.org?

As in the title. I can't find any archetype catalogues for repo1.maven.org For example, I want to use spring-ws-archetype. How do I set things up so I can see it in my options setting up a new Maven Project? ...

Is there a ICEfaces Maven archetype for NetBeans or Eclipse?

The NetBeans IDE still seems to offer Maven Archetypes only for Apache MyFaces or the "deprecated" WoodStock JSF framework. For future development or migration of existing Woodstock projects, Sun is officially endorsing ICEfaces as the replacement technology for Woodstock. I have not yet found a Maven Archetype which would set up a ne...

Artifactory: Auto-generate archetype catalog?

Is there a way to have Artifactory automatically generate the archetype-catalog.xml file for a repository? At the moment, I maintain it by hand and publish it via HTTP PUT. While this is doable for our small internal repository, it would be nice to do this automatically, and I was rather surprised it doesn't seem to happen out of the box...

Where is a good place to find maven archetypes?

I'm aware of the archetype list in codehaus. Are there any other good places to find Maven archetypes out there? ...

How can I update the schema of a single archetype object on demand in plone?

I have hundreds of thousands of objects based on plone archetypes (plone 2.5.X) that need their archetypes schema updated to the latest. The archetype schema migration tool is great for a small/medium number objects but is bringing my server to its knees trying to migrate them all, to the point where I always end up killign the script. ...

maven archetype:generate parameter goals

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 customization after the files got expanded. Now I've seen that the plugin supports a parameter called 'goals' and the docu says this about it: 'Additional goals that can be specified...

Is there a way to just copy resources when using a Maven archetype (no Velocity)?

We are using a Maven archetype to create an initial setup for projects using our framework, which relies heavily on Freemarker. As a consequence we need to copy a few Freemarker templates when the archetype is used to generate a new project. The problem we ran into is that Maven seems to run Velocity on all of the files listed as resour...

Maven Archetype Question

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 created those certs will be part of the project. My problem is that maven is trying to do a property replacement on those certs when creating a project with the archet...

How do I conditionally include or exclude a file from an archetype when project is generated?

I'm creating Maven 2 archetypes for our project (Weld). I would like to be able to control which files are placed into the generated project based on the value of a property that is defined during archetype:generate. For instance, I foresee the following prompt: Define value for groupId: : com.example Define value for artifactId: : mypr...

How can I tell if a field has changed value in an AT object in plone?

I have an AT content type in Plone. It has a number of fields, including a file field. When the user edits an object of this type, how can I tell if a new file was uploaded? For that matter, how can I tell if any of the fields have been changed? I am currently using subscribers to hook into the IObjectEditedEvent to do some after the ...

Disable Plone Archetypes index/convert doc/pdf files

Hi Stackoverflowers, if i rebuild my catalog in plone i get many of this infos: 2010-02-18T11:26:09 INFO Archetypes Error while trying to convert file contents to 'text/plain' in .getIndexable() of : Unable to find binary "wvHtml" in /sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre...

Which m2eclipse archetype to use for JBoss/Hibernate based projects ?

Hello, I am new to Java world but I am pretty good at using Flex, actionscript 3, Ant and even Maven to some extent. Now I would like to learn some java and use Hibernate and JBoss (webapp). I already have Maven working and have found the m2eclipse plugin on the web, it seem pretty nice for maven integration. Now I would like to know ...

Java & Maven generating -and using- my own archetype

Hello again! 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 boss says it has to use some archetypes the company has created (so no predefined archetypes for you naughty boy!). So ok, I use the -DarchetypeRepository option (with ServletWrap...

Is there a maven 2 archetype for spring 3 MVC applications?

I'm experimenting with the spring 3 MVC framework. Since i use maven 2 to manage my project, i'm searching for a archetype to create a spring 3 MVC application. ...

Missing archetype.xml in new archetype created from project.

Hi, 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 a guide: http://blog.inflinx.com/category/m2eclipse/ Step 7 says "The next step is to verify that the generated archetype.xml (located under srcmainresourcesMETA-INFmaven (sic)) has all...

Maven archetype for simple Servlet application

Is there a Maven 2 archetype for a simple Servlet (2.5) web application? ...

How to create empty folders with maven archetype?

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 How to get maven archetype to generate empty directories fails for me. The trick within the archetype.xml with the trailing / doesnt works for me: <resources> <...

Howto create dynamic named folders with Maven2 Archetype?

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 archetype. └───src └───main └───webapp └───WEB-INF ├───cfg │ ├───log4j │ └...