Revision 27126
Added by Sandro La Bruzzo over 10 years ago
build/dnet-archetype/trunk/src/main/resources/META-INF/maven/archetype-metadata.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<archetype-descriptor xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="dnet-archetype" partial="false" > |
|
4 |
|
|
5 |
<fileSets> |
|
6 |
<fileSet filtered="true" encoding="UTF-8" packaged="true"> |
|
7 |
<directory>src/main/resources</directory> |
|
8 |
<includes> |
|
9 |
<include>**/*.xml </include> |
|
10 |
</includes> |
|
11 |
</fileSet> |
|
12 |
<fileSet filtered="true" encoding="UTF-8" packaged="true"> |
|
13 |
<directory>src/main/java</directory> |
|
14 |
<includes> |
|
15 |
<include>**/*</include> |
|
16 |
</includes> |
|
17 |
</fileSet> |
|
18 |
<fileSet filtered="true" encoding="UTF-8" packaged="true"> |
|
19 |
<directory>src/test/java</directory> |
|
20 |
<includes> |
|
21 |
<include>**/*</include> |
|
22 |
</includes> |
|
23 |
</fileSet> |
|
24 |
<fileSet filtered="true" encoding="UTF-8" packaged="true"> |
|
25 |
<directory>src/test/resources</directory> |
|
26 |
<includes> |
|
27 |
<include>**/*.xml</include> |
|
28 |
</includes> |
|
29 |
</fileSet> |
|
30 |
</fileSets> |
|
31 |
|
|
32 |
</archetype-descriptor> |
|
33 |
|
build/dnet-archetype/trunk/src/main/resources/archetype-resources/src/main/java/Hello.java | ||
---|---|---|
1 |
package ${package}; |
|
2 |
|
|
3 |
|
|
4 |
public class Hello { |
|
5 |
public String sayHello(String name){ |
|
6 |
return "hello "+name; |
|
7 |
} |
|
8 |
} |
build/dnet-archetype/trunk/src/main/resources/archetype-resources/src/main/resources/applicationContext-__artifactId__.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<beans xmlns="http://www.springframework.org/schema/beans" |
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" |
|
4 |
xmlns:util="http://www.springframework.org/schema/util" |
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|
6 |
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> |
|
7 |
|
|
8 |
</beans> |
build/dnet-archetype/trunk/src/main/resources/archetype-resources/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
4 |
<parent> |
|
5 |
<groupId>eu.dnetlib</groupId> |
|
6 |
<artifactId>dnet-parent</artifactId> |
|
7 |
<version>1.0.0-SNAPSHOT</version> |
|
8 |
<relativePath></relativePath> |
|
9 |
</parent> |
|
10 |
<modelVersion>4.0.0</modelVersion> |
|
11 |
<groupId>${groupId}</groupId> |
|
12 |
<artifactId>${artifactId}</artifactId> |
|
13 |
<packaging>jar</packaging> |
|
14 |
<version>${version}</version> |
|
15 |
<dependencies> |
|
16 |
</dependencies> |
|
17 |
</project> |
build/dnet-archetype/trunk/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<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/xsd/maven-4.0.0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
|
|
5 |
<groupId>eu.dnetlib</groupId> |
|
6 |
<artifactId>dnet-archetype</artifactId> |
|
7 |
<version>1.0.0-SNAPSHOT</version> |
|
8 |
<packaging>maven-archetype</packaging> |
|
9 |
|
|
10 |
<name>dnet-archetype</name> |
|
11 |
|
|
12 |
<build> |
|
13 |
<extensions> |
|
14 |
<extension> |
|
15 |
<groupId>org.apache.maven.archetype</groupId> |
|
16 |
<artifactId>archetype-packaging</artifactId> |
|
17 |
<version>2.2</version> |
|
18 |
</extension> |
|
19 |
</extensions> |
|
20 |
|
|
21 |
<pluginManagement> |
|
22 |
<plugins> |
|
23 |
<plugin> |
|
24 |
<artifactId>maven-archetype-plugin</artifactId> |
|
25 |
<version>2.2</version> |
|
26 |
</plugin> |
|
27 |
</plugins> |
|
28 |
</pluginManagement> |
|
29 |
</build> |
|
30 |
|
|
31 |
<distributionManagement> |
|
32 |
<repository> |
|
33 |
<id>dnet4-bootstrap-snapshot</id> |
|
34 |
<name>D-Net 4 Bootstrap Snapshot</name> |
|
35 |
<url>http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-bootstrap-snapshot</url> |
|
36 |
</repository> |
|
37 |
</distributionManagement> |
|
38 |
</project> |
Also available in: Unified diff
added archetype for a simple dnet-module