archetypes

Error installing a multimodule archetype created with mvn archetype:create-from-project

ε祈祈猫儿з 提交于 2020-07-18 18:42:30
问题 I have a project with the following structure: project (pom) project-client (module, jar) project-ejb (module, jar) project-web (module, war) project-ear (module, ear) Inside the pom the modules reference the parent using: <relativePath>../project</relativePath> And the root pom references the modules the same way (using ../). I can create an archetype using archetype:create-from-project, and everything runs smoothly. But when I try to install the archetype (mvn install inside the target

Maven-archetype-webapp Directory Structure?

只谈情不闲聊 提交于 2020-02-15 08:11:11
问题 Is there a possibility or a workaroud to use maven-archetype-webapp archetype to generate a maven webapp with plain directory structure like /src /main /java /resources /webapp /test /java /resources 回答1: I assume that your issue is the missing java and test folders in a new project when using maven-archetype-webapp. There are no options to make that archetype to add those. Of course you could add them manually after the project was created. You may find another archetypes in one of these

OpenDaylight Oxygen Deploy app built from opendaylight-startup-archetype

落爺英雄遲暮 提交于 2020-01-10 04:28:06
问题 OpenDaylight Oxygen Maven 3.3.9 Ubuntu 16.04 karaf 4 ~/.m2/settings.xml - cp -n ~/.m2/settings.xml{,.orig} ; wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml Process used to create skeleton mvn archetype:generate -DgroupId=org.opendaylight.controller -DartifactId=testing -Dcopyright="None" -DclassPrefix="\${artifactId.substring(0,1).toUpperCase()}\${artifactId.substring(1)}" -DarchetypeGroupId=org.opendaylight.archetypes

My Archetypes-based content type can't be added

末鹿安然 提交于 2020-01-04 12:14:44
问题 I'm developing an add-on package which introduces a few Archetypes-based content types; these are defined in the default profile of that package. After (re-) installing my package in the Quick-Installer, I can see my types in the types tool; but I can't add them TTW, and they are not listed in the folder_constraintypes_form. I did select them in the "Allowed content types" multiselect list of the Folder portal type. Since I got a ValueError from FactoryTypeInformation._getFactoryMethod in an

How to use my custom archetype with Maven?

浪尽此生 提交于 2020-01-01 08:27:35
问题 I just create my custom archetype project, and I run perfectly the " mvn install " command. In my local repository, my archetype project was added correctly via m2/repository/com/mycomp/archetype-project-name . (but it was not created in the archetype folder : m2/repository/org/apache/maven/archetypes : maybe it's normal) But now I can't use my new custom archetype with the "mvn archetype:generation" command : with good parameters Maven tell me he doesn't find the archetype without parameters

How to use my custom archetype with Maven?

落爺英雄遲暮 提交于 2020-01-01 08:26:09
问题 I just create my custom archetype project, and I run perfectly the " mvn install " command. In my local repository, my archetype project was added correctly via m2/repository/com/mycomp/archetype-project-name . (but it was not created in the archetype folder : m2/repository/org/apache/maven/archetypes : maybe it's normal) But now I can't use my new custom archetype with the "mvn archetype:generation" command : with good parameters Maven tell me he doesn't find the archetype without parameters

How to remove an inherited field from a new content type

瘦欲@ 提交于 2019-12-25 01:49:35
问题 I'm working with ArgoUML/AGX/Plone 4.1 to generate a subclass using "atevent" as the stereotype. How do I remove the inherited "Event body text" field? 回答1: you can set the widget invisible for editing and for viewing. YourSchema['FieldName'].widget.visible = {'view': 'hidden', 'edit':'hidden' } 回答2: If the field is required in the original schema, you'll also need YourSchema['FieldName'].required = False 来源: https://stackoverflow.com/questions/7459045/how-to-remove-an-inherited-field-from-a

Migrating from (now obsolete) custom ATImage content type

半城伤御伤魂 提交于 2019-12-22 08:58:03
问题 We had a whole collection of Plone 3 sites with a custom Image type subclassed from ATImage. This allowed us to add an extra image scaling to the standard list ("'logo':(454, 58)", used by our theme package). While this still works in Plone 4, it isn't really the correct approach now that plone.app.imaging is part of the standard toolkit. That can define custom scales on the fly. It looks like I can enable plone.app.imaging on any type subclassed from ATImage by simply setting "sizes = None"

Maven Archetype Plugin - How to use a partial archetype containing no pom.xml?

陌路散爱 提交于 2019-12-22 07:12:17
问题 We would like to create a partial archetype to add a custom-pom.xml as well as other resources into an existing project. The custom pom will then be used in the generated project via mvn -f custom-pom.xml . Our archetype therefore contains a src/main/resources/archetype-resources/osgi-pom.xml , but does not contain a pom.xml in the same directory. We used archetype:generate parameterised appropriately to run this archetype on an existing project. This produces: [ERROR] Failed to execute goal

Maven archetypes for OpenJPA

元气小坏坏 提交于 2019-12-21 21:57:47
问题 Greetings. I'm just starting to explore Maven and I use m2eclipse as to use Maven in Eclipse. I found that there is a hibernate-based archetype with Group Id: com.rfc.maven.archetypes and Artifact Id: jpa-maven-archetype Does anybody knows if there are archetypes for OpenJPA-based projected with test frameworks included? Thanks a lot. 回答1: Does anybody knows if there are archetypes for OpenJPA-based projected with test frameworks included? Not to my knowledge. So my suggestion would be to use