tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
0
ZUGRIFFE
941
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    d0x d0x ist offline Rookie
    Registriert seit
    Mar 2008
    Beiträge
    7
    Hallo,
    ich habe in meiner pom.xml eine Dependency (gekennzeichnet mit <!-- ip2loc -->) eingetragen die ich als "Java EE Module Dependency" setzen will (Rechtsklick aufs Projekt -> Properties -> Jave EE Modul dependencies, da ein hacken rein).

    Habt ihr eine Idee wie ich das mit Maven konfigurieren kann?

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    
    <?xml version="1.0" encoding="UTF-8"?>
    <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>com.christian</groupId>
        <artifactId>my-webapp</artifactId>
        <name>my-webapp</name>
        <packaging>war</packaging>
        <version>1.0.0</version>
     
        <build>
            <finalName>my-webapp</finalName>
     
            <pluginManagement>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>cobertura-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </pluginManagement>
     
            <plugins>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                </plugin>
     
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-eclipse-plugin</artifactId>
                    <version>2.5.1</version>
                    <configuration>
                        <workspace>${basedir}/../</workspace>
                        <buildOutputDirectory>targetEclipse</buildOutputDirectory>
                        <useProjectReferences>true</useProjectReferences>
                        <downloadSources>false</downloadSources>
                        <downloadJavadocs>false</downloadJavadocs>
                        <wtpversion>1.0</wtpversion>
                    </configuration>
                </plugin>
            </plugins>
        </build>
     
        <dependencies>
            <dependency>
                <groupId>org.icefaces</groupId>
                <artifactId>icefaces-comps</artifactId>
                <version>1.8.2</version>
                <scope>compile</scope>
                <exclusions>
                    <exclusion>
                        <groupId>javax.el</groupId>
                        <artifactId>el-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.icefaces</groupId>
                <artifactId>icefaces-facelets</artifactId>
                <version>1.8.2</version>
                <scope>compile</scope>
                <exclusions>
                    <exclusion>
                        <groupId>javax.el</groupId>
                        <artifactId>el-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.icefaces</groupId>
                <artifactId>icefaces</artifactId>
                <version>1.8.2</version>
                <scope>compile</scope>
                <exclusions>
                    <exclusion>
                        <groupId>javax.el</groupId>
                        <artifactId>el-api</artifactId>
                    </exclusion>
                    <exclusion>
                        <artifactId>commons-logging-api</artifactId>
                        <groupId>commons-logging</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
     
            <!-- ip2loc API -->
            <dependency>
                <groupId>com.christian</groupId>
                <artifactId>ip2loc</artifactId>
                <version>1.0</version>
            </dependency>
     
        </dependencies>
        <scm>
            <connection>scm:svn:${svn.location}/${name}</connection>
        </scm>
     
    </project>

    Vielen Dank.
    Geändert von d0x (07.04.10 um 02:52 Uhr) Grund: Bin ein Schritt weiter gekommen.
     

Ähnliche Themen

  1. Maven Eclipse Plugin
    Von Thomas Darimont im Forum Java
    Antworten: 2
    Letzter Beitrag: 02.02.12, 00:59
  2. maven-eclipse-plugin + AspectJ
    Von sebastianb im Forum Java
    Antworten: 2
    Letzter Beitrag: 29.10.10, 08:22
  3. Eclipse: Tomcat + Maven
    Von Chefkoch333 im Forum Enterprise Java (JEE, J2EE, Spring & Co.)
    Antworten: 2
    Letzter Beitrag: 15.07.08, 11:46
  4. Eclipse: Maven 2 Plugin installieren
    Von kirina im Forum Java
    Antworten: 8
    Letzter Beitrag: 13.03.08, 08:39
  5. [Maven] War File ins Tomcat/webapps Verzeichnis kopieren
    Von wSam im Forum Enterprise Java (JEE, J2EE, Spring & Co.)
    Antworten: 3
    Letzter Beitrag: 02.03.07, 11:32