-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o getting the initial code moved over, i'll work on it here with anyo…
…ne who wants to help repackage it git-svn-id: https://svn.apache.org/repos/asf/maven/archetype/branches/maven-archetypeng@553946 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
0 parents
commit 08afde1
Showing
338 changed files
with
28,391 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
We use jchardet jchardet.sourceforge.net for file encoding recognition. | |||
jchardet is using Mozilla 1.1 license | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor id="core-integration-tests-archetype"> | |||
<fileSets> | |||
<fileSet filtered="true" packaged="true" encoding="UTF-8"> | |||
<directory>src/test/java</directory> | |||
<includes> | |||
<include>**/*.java</include> | |||
</includes> | |||
</fileSet> | |||
<fileSet filtered="true" encoding="UTF-8"> | |||
<directory>src/test/resources</directory> | |||
<includes> | |||
<include>**/*.java</include> | |||
<include>**/*.xml</include> | |||
</includes> | |||
</fileSet> | |||
</fileSets> | |||
</archetype-descriptor> |
39 changes: 39 additions & 0 deletions
39
maven-archetypeng-bundles/maven-archetypeng-archetype/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,39 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Copyright 2006 The Apache Software Foundation. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
<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> | |||
|
|||
<parent> | |||
<groupId>org.codehaus.mojo.archetypeng</groupId> | |||
<artifactId>maven-archetypeng-bundles</artifactId> | |||
<version>1.0-SNAPSHOT</version> | |||
</parent> | |||
|
|||
<groupId>org.codehaus.mojo.archetypes</groupId> | |||
<artifactId>maven-archetypeng-archetype</artifactId> | |||
|
|||
<name>Archetype Archetype</name> | |||
<packaging>maven-plugin</packaging> | |||
|
|||
<description> | |||
An archetype which contains a sample archetype. | |||
</description> | |||
</project> |
29 changes: 29 additions & 0 deletions
29
...ypeng-bundles/maven-archetypeng-archetype/src/main/resources/META-INF/maven/archetype.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Copyright 2006 The Apache Software Foundation. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
<archetype> | |||
<name>maven-archetypeng-archetype</name> | |||
<resources-groups> | |||
<resources-group> | |||
<templates> | |||
<template>archetype-resources/pom.xml</template> | |||
<template>archetype-resources/src/main/java/App.java</template> | |||
<template>archetype-resources/src/test/java/AppTest.java</template> | |||
<template>META-INF/maven/archetype.xml</template> | |||
</templates> | |||
</resources-group> | |||
</resources-groups> | |||
</archetype> |
16 changes: 16 additions & 0 deletions
16
...typeng-bundles/maven-archetypeng-archetype/src/main/resources/archetype-resources/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
<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>${groupId}</groupId> | |||
<artifactId>${artifactId}</artifactId> | |||
<version>${version}</version> | |||
|
|||
<name>Archetype - ${artifactId}</name> | |||
<packaging>jar</packaging> | |||
|
|||
<url>http://maven.apache.org</url> | |||
</project> |
33 changes: 33 additions & 0 deletions
33
...pe/src/main/resources/archetype-resources/src/main/resources/META-INF/maven/archetype.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Copyright 2006 The Apache Software Foundation. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
<archetype> | |||
<name>${artifactId}</name> | |||
<sources-groups> | |||
<sources-group> | |||
<templates> | |||
<template>App.java</template> | |||
</templates> | |||
</sources-group> | |||
</sources-groups> | |||
<test-sources-groups> | |||
<test-sources-group> | |||
<templates> | |||
<template>AppTest.java</template> | |||
</templates> | |||
</test-sources-group> | |||
</test-sources-groups> | |||
</archetype> |
22 changes: 22 additions & 0 deletions
22
...ype/src/main/resources/archetype-resources/src/main/resources/archetype-resources/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,22 @@ | |||
<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>\${groupId}</groupId> | |||
<artifactId>\${artifactId}</artifactId> | |||
<version>\${version}</version> | |||
|
|||
<name>\${artifactId}</name> | |||
|
|||
<dependencies> | |||
<dependency> | |||
<groupId>junit</groupId> | |||
<artifactId>junit</artifactId> | |||
<version>3.8.1</version> | |||
<scope>test</scope> | |||
</dependency> | |||
</dependencies> | |||
</project> |
12 changes: 12 additions & 0 deletions
12
...sources/archetype-resources/src/main/resources/archetype-resources/src/main/java/App.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
package \${packageName}; | |||
/** | |||
* Hello world! | |||
* | |||
*/ | |||
public class App | |||
{ | |||
public static void main( String[] args ) | |||
{ | |||
System.out.println( "Hello World!" ); | |||
} | |||
} |
38 changes: 38 additions & 0 deletions
38
...ces/archetype-resources/src/main/resources/archetype-resources/src/test/java/AppTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,38 @@ | |||
package \${packageName}; | |||
|
|||
import junit.framework.Test; | |||
import junit.framework.TestCase; | |||
import junit.framework.TestSuite; | |||
|
|||
/** | |||
* Unit test for simple App. | |||
*/ | |||
public class AppTest | |||
extends TestCase | |||
{ | |||
/** | |||
* Create the test case | |||
* | |||
* @param testName name of the test case | |||
*/ | |||
public AppTest( String testName ) | |||
{ | |||
super( testName ); | |||
} | |||
|
|||
/** | |||
* @return the suite of tests being tested | |||
*/ | |||
public static Test suite() | |||
{ | |||
return new TestSuite( AppTest.class ); | |||
} | |||
|
|||
/** | |||
* Rigourous Test :-) | |||
*/ | |||
public void testApp() | |||
{ | |||
assertTrue( true ); | |||
} | |||
} |
65 changes: 65 additions & 0 deletions
65
maven-archetypeng-bundles/maven-archetypeng-j2ee-simple/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,65 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Copyright 2006 The Apache Software Foundation. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
<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> | |||
|
|||
<parent> | |||
<groupId>org.codehaus.mojo.archetypeng</groupId> | |||
<artifactId>maven-archetypeng-bundles</artifactId> | |||
<version>1.0-SNAPSHOT</version> | |||
</parent> | |||
|
|||
<artifactId>maven-archetypeng-start</artifactId> | |||
|
|||
<name>Starting Archetype</name> | |||
<packaging>maven-plugin</packaging> | |||
</project> | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
|
|||
<!-- | |||
~ Copyright 2006 The Apache Software Foundation. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
<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"> | |||
<parent> | |||
<artifactId>maven-archetype-bundles</artifactId> | |||
<groupId>org.apache.maven.archetypes</groupId> | |||
<version>3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<description> | |||
An archetype which contains a simplifed sample J2EE application. | |||
</description> | |||
<artifactId>maven-archetype-j2ee-simple</artifactId> | |||
<name>Maven Simple J2EE Archetype</name> | |||
<version>1.1-SNAPSHOT</version> | |||
</project> |
51 changes: 51 additions & 0 deletions
51
...eng-bundles/maven-archetypeng-j2ee-simple/src/main/resources/META-INF/maven/archetype.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,51 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Copyright 2006 The Apache Software Foundation. | |||
~ | |||
~ Licensed under the Apache License, Version 2.0 (the "License"); | |||
~ you may not use this file except in compliance with the License. | |||
~ You may obtain a copy of the License at | |||
~ | |||
~ http://www.apache.org/licenses/LICENSE-2.0 | |||
~ | |||
~ Unless required by applicable law or agreed to in writing, software | |||
~ distributed under the License is distributed on an "AS IS" BASIS, | |||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
~ See the License for the specific language governing permissions and | |||
~ limitations under the License. | |||
--> | |||
<archetype> | |||
<name>start</name> | |||
<sources-groups> | |||
<sources-group> | |||
<language>java</language> | |||
<templates> | |||
<template>App.java</template> | |||
</templates> | |||
</sources-group> | |||
</sources-groups> | |||
<test-sources-groups> | |||
<test-sources-group> | |||
<language>java</language> | |||
<templates> | |||
<template>AppTest.java</template> | |||
</templates> | |||
</test-sources-group> | |||
</test-sources-groups> | |||
</archetype> | |||
<archetype> | |||
<id>j2ee</id> | |||
<resources> | |||
<resource>pom.xml</resource> | |||
<resource>ear/pom.xml</resource> | |||
<resource>ejbs/src/main/resources/META-INF/ejb-jar.xml</resource> | |||
<resource>ejbs/pom.xml</resource> | |||
<resource>primary-source/pom.xml</resource> | |||
<resource>projects/logging/pom.xml</resource> | |||
<resource>projects/pom.xml</resource> | |||
<resource>servlets/pom.xml</resource> | |||
<resource>servlets/servlet/pom.xml</resource> | |||
<resource>servlets/servlet/src/main/webapp/index.jsp</resource> | |||
<resource>servlets/servlet/src/main/webapp/WEB-INF/web.xml</resource> | |||
</resources> | |||
</archetype> |
47 changes: 47 additions & 0 deletions
47
...-bundles/maven-archetypeng-j2ee-simple/src/main/resources/archetype-resources/ear/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,47 @@ | |||
<project> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>root.project</groupId> | |||
<artifactId>ear</artifactId> | |||
<packaging>ear</packaging> | |||
<version>1.0</version> | |||
<name>ear assembly</name> | |||
<parent> | |||
<groupId>root</groupId> | |||
<artifactId>project</artifactId> | |||
<version>1.0</version> | |||
</parent> | |||
<dependencies> | |||
<dependency> | |||
<groupId>root.project</groupId> | |||
<artifactId>ejbs</artifactId> | |||
<type>ejb</type> | |||
</dependency> | |||
<dependency> | |||
<groupId>root.project.servlets</groupId> | |||
<artifactId>servlet</artifactId> | |||
<type>war</type> | |||
</dependency> | |||
<dependency> | |||
<groupId>root.project</groupId> | |||
<artifactId>primary-source</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>root.project.projects</groupId> | |||
<artifactId>logging</artifactId> | |||
</dependency> | |||
</dependencies> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<artifactId>maven-ear-plugin</artifactId> | |||
<configuration> | |||
<archive> | |||
<manifest> | |||
<addClasspath>true</addClasspath> | |||
</manifest> | |||
</archive> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</project> |
Oops, something went wrong.