Alternativní mavení projekt, pokud na to máte nervy a chcete si hrát :-)
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue, 22 Dec 2009 20:58:12 +0100
changeset 5e10dd26d095e
parent 4 e6056f3f1fa6
child 6 e6581bb3c4a3
Alternativní mavení projekt, pokud na to máte nervy a chcete si hrát :-)
Zdrojáky jsou společné pro oba formáty (Netbeans|Maven) a jsou napojené symbolickým odkazem.
Poprvé je potřeba se obrnit trpělivostí, než se všechno postahuje a zkonfiguruje,
pak už to jakž takž jde.
java/nekurak.net-mvn/pom.xml
java/nekurak.net-mvn/profiles.xml
java/nekurak.net-mvn/src/main/java
java/nekurak.net-mvn/src/main/webapp
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-mvn/pom.xml	Tue Dec 22 20:58:12 2009 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     1.5 +  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     1.6 +  <modelVersion>4.0.0</modelVersion>
     1.7 +  <groupId>cz.frantovo</groupId>
     1.8 +  <artifactId>nekurak.net-mvn</artifactId>
     1.9 +  <packaging>war</packaging>
    1.10 +  <version>1.0-SNAPSHOT</version>
    1.11 +  <name>nekurak.net-mvn JEE5 Webapp</name>
    1.12 +  <url>http://maven.apache.org</url>
    1.13 +  <dependencies>
    1.14 +
    1.15 +    <dependency>
    1.16 +      <groupId>javax.servlet</groupId>
    1.17 +      <artifactId>servlet-api</artifactId>
    1.18 +      <version>2.5</version>
    1.19 +      <scope>provided</scope>
    1.20 +    </dependency>
    1.21 +
    1.22 +    <dependency>
    1.23 +      <groupId>javax.servlet.jsp</groupId>
    1.24 +      <artifactId>jsp-api</artifactId>
    1.25 +      <version>2.1</version>
    1.26 +      <scope>provided</scope>
    1.27 +    </dependency>
    1.28 +
    1.29 +    <dependency>
    1.30 +      <groupId>junit</groupId>
    1.31 +      <artifactId>junit</artifactId>
    1.32 +      <version>3.8.1</version>
    1.33 +      <scope>test</scope>
    1.34 +    </dependency>
    1.35 +    
    1.36 +  </dependencies>
    1.37 +  <build>
    1.38 +    <plugins>
    1.39 +      <plugin>
    1.40 +        <groupId>org.apache.maven.plugins</groupId>
    1.41 +        <artifactId>maven-compiler-plugin</artifactId>
    1.42 +        <version>2.0.2</version>
    1.43 +        <configuration>
    1.44 +          <source>1.5</source>
    1.45 +          <target>1.5</target>
    1.46 +        </configuration>
    1.47 +      </plugin>
    1.48 +    </plugins>
    1.49 +    <finalName>nekurak.net-mvn</finalName>
    1.50 +  </build>
    1.51 +    <properties>
    1.52 +        <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>
    1.53 +    </properties>
    1.54 +</project>
    1.55 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/nekurak.net-mvn/profiles.xml	Tue Dec 22 20:58:12 2009 +0100
     2.3 @@ -0,0 +1,18 @@
     2.4 +<?xml version="1.0" encoding="UTF-8"?>
     2.5 +<profilesXml xmlns="http://maven.apache.org/PROFILES/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     2.6 +  xsi:schemaLocation="http://maven.apache.org/PROFILES/1.0.0 http://maven.apache.org/xsd/profiles-1.0.0.xsd">
     2.7 +    <profiles>
     2.8 +        <profile>
     2.9 +            <id>netbeans-private</id>
    2.10 +            <activation>
    2.11 +                <property>
    2.12 +                    <name>netbeans.execution</name>
    2.13 +                    <value>true</value>
    2.14 +                </property>
    2.15 +            </activation>
    2.16 +            <properties>
    2.17 +                <netbeans.deployment.server.id>[/home/fiki/bin/glassfish/glassfish3/glassfish]deployer:gfv3ee6:localhost:4848</netbeans.deployment.server.id>
    2.18 +            </properties>
    2.19 +        </profile>
    2.20 +    </profiles>
    2.21 +</profilesXml>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/nekurak.net-mvn/src/main/java	Tue Dec 22 20:58:12 2009 +0100
     3.3 @@ -0,0 +1,1 @@
     3.4 +../../../nekurak.net-web/src/java
     3.5 \ No newline at end of file
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/nekurak.net-mvn/src/main/webapp	Tue Dec 22 20:58:12 2009 +0100
     4.3 @@ -0,0 +1,1 @@
     4.4 +../../../nekurak.net-web/web
     4.5 \ No newline at end of file