Skip to content

Commit

Permalink
Update: maven archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericvauchelles committed Oct 3, 2012
1 parent 581e007 commit 02b863f
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 8 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 0 additions & 8 deletions GoogleDriveCommandLine.sublime-project

This file was deleted.

8 changes: 8 additions & 0 deletions google-command-line.sublime-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders":
[
{
"path": "/Users/fredpointzero/Projects/google-command-line"
}
]
}
81 changes: 81 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<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">
<modelVersion>4.0.0</modelVersion>

<groupId>org.fredericvauchelles</groupId>
<artifactId>google-command-line</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>app-client</packaging>

<name>google-command-line</name>

<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-acr-plugin</artifactId>
<version>1.0</version>
<extensions>true</extensions>
<configuration>
<archive>
<manifest>
<mainClass>org.fredericvauchelles.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>6.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
12 changes: 12 additions & 0 deletions src/main/java/org/fredericvauchelles/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.fredericvauchelles;

/**
* Enterprise Application Client main class.
*
*/
public class Main {

public static void main( String[] args ) {
System.out.println( "Hello World Enterprise Application Client!" );
}
}
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

4 changes: 4 additions & 0 deletions src/main/resources/META-INF/application-client.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<application-client version="6" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_6.xsd">
<display-name>A Java EE 6 Application Client</display-name>
</application-client>

0 comments on commit 02b863f

Please sign in to comment.