Skip to content

Commit

Permalink
o getting the initial code moved over, i'll work on it here with anyo…
Browse files Browse the repository at this point in the history
…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
jvanzyl committed Jul 6, 2007
0 parents commit 08afde1
Show file tree
Hide file tree
Showing 338 changed files with 28,391 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NOTICE.txt
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

17 changes: 17 additions & 0 deletions archetype.xml
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 maven-archetypeng-bundles/maven-archetypeng-archetype/pom.xml
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>
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>
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>
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>
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>
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!" );
}
}
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 maven-archetypeng-bundles/maven-archetypeng-j2ee-simple/pom.xml
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>
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>
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>
Loading

0 comments on commit 08afde1

Please sign in to comment.