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?
Vielen Dank.
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:
<?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.
Zuletzt bearbeitet: