1 package org.apache.maven.archetype.old;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.archetype.exception.InvalidPackaging;
23 import org.apache.maven.artifact.repository.ArtifactRepository;
24
25 import java.io.File;
26
27 import org.apache.maven.archetype.ArchetypeGenerationRequest;
28 import org.apache.maven.archetype.exception.UnknownArchetype;
29
30
31
32
33
34
35
36 public interface OldArchetype
37 {
38 String ROLE = OldArchetype.class.getName();
39
40 String ARCHETYPE_DESCRIPTOR = "META-INF/maven/archetype.xml";
41
42 String ARCHETYPE_OLD_DESCRIPTOR = "META-INF/archetype.xml";
43
44 String ARCHETYPE_RESOURCES = "archetype-resources";
45
46
47 String ARCHETYPE_POM = "pom.xml";
48
49
50
51
52 void createArchetype( ArchetypeGenerationRequest request, ArtifactRepository archetypeRepository )
53 throws UnknownArchetype, ArchetypeNotFoundException, ArchetypeDescriptorException,
54 ArchetypeTemplateProcessingException, InvalidPackaging;
55
56
57
58
59 void createArchetype( ArchetypeGenerationRequest request, File archetypeFile )
60 throws ArchetypeDescriptorException, ArchetypeTemplateProcessingException, InvalidPackaging;
61 }