Probleme beim Ausführen der Maven Commands unter Mac

Hallo Leute,

wenn ich unter mac ausführen möchte, gibt mir jede menge Fehlermeldungen. Man hat mir gesagt, dass ich home variable richtig setzen soll indem ich das eingebe

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/
. wenn ich das eingebe
/usr/libexec/java_home -v
gibt mir an dass ich jdk1.7.0_40 habe
/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home

ich habe folgende link auch und bin so vorgegangen
1 . touch .bash_profile
2. vim .bash_profile
3. habe ich code von link hinzugefügt
4. dann rufe ich das auch ls -l .bash_profile und bekomme ich

-rw-r–r-- 1 admin staff 170 19 Mai 15:26 .bash_profile

Programm kann ich immer noch nicht ausführen.
Wie soll ich vorgehen?

danke euch Anni

Du hast dich admin genannt? Du musst nur java_home eingeben, bzw., ned mal das, wenn richtig konfiguriert.

wenn ich unter mac ausführen möchte, gibt mir jede menge Fehlermeldungen.

Dann teile uns die doch bitte mit :wink:

Gib einfach mal auf der Konsole ein

javac

rührt sich da was? Du musst auch die MAVEN/bin in den Pfad aufnehmen damit das rund läuft…

Ich habe mich nicht andmin genannt. Ich habe diesen Mac von anderen bekommen und das war einfach so mit diese Name konfiguriert
Was es um code angeht. Habe ich nicht nichts Programmiert. Habe nur aus der Uni einen Codeskilette bekommen und das muss ich erweitern. Ich möchte es vorher ausführen bevor ich was anfange. Anderen können das ausführen. Nur bei mir geht es nicht. wenn ich mit Terminal so eingebe

mvn -Pserver

bekomme ich folgendes was im Anhang steht

ich habe mit

mvn clean Compil
auch versucht aber hilft mir leider nicht
wenn ich
javac
aufrufe , ist diese Ergebnis auch im Anhang

Danke euch . Alleine komme ich nicht voran

Ok, Java ist im Pfad, Maven ist im Pfad, alles läuft

Es gibt ein Problem mit deinem Projekt selbst! Und ich würde vermuten, dass da irgendwo verschiedene und/oder inkompatible Versionen von slf4j rumschwirren.

Zeig mal die dependencies aus der pom.xml

Danke, irrsinnig nett
[XML]
4.0.0
at.ac.univie.swa
assignment-4
jar
1.0-SNAPSHOT
SWA Assignment 4

<properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<cxf.version>2.7.10</cxf.version>
	<slf4j.version>1.7.5</slf4j.version>
	<jetty.version>9.1.3.v20140225</jetty.version>
	<!-- <jetty.version>8.1.14.v20131031</jetty.version> -->
	<jersey.version>2.6</jersey.version>
</properties>

<dependencies>
	<dependency>
		<groupId>org.apache.cxf</groupId>
		<artifactId>cxf-rt-frontend-jaxrs</artifactId>
		<version>${cxf.version}</version>
	</dependency>
	<dependency>
		<groupId>org.apache.cxf</groupId>
		<artifactId>cxf-rt-frontend-jaxws</artifactId>
		<version>${cxf.version}</version>
	</dependency>
	<dependency>
		<groupId>org.apache.cxf</groupId>
		<artifactId>cxf-rt-transports-http</artifactId>
		<version>${cxf.version}</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>${slf4j.version}</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-log4j12</artifactId>
		<version>${slf4j.version}</version>
	</dependency>
	<dependency>
		<groupId>org.eclipse.jetty</groupId>
		<artifactId>jetty-server</artifactId>
		<version>${jetty.version}</version>
	</dependency>
	<dependency>
		<groupId>org.eclipse.jetty.orbit</groupId>
		<artifactId>javax.servlet.jsp</artifactId>
		<version>2.2.0.v201112011158</version>
	</dependency>
	<dependency>
		<groupId>org.eclipse.jetty</groupId>
		<artifactId>jetty-util</artifactId>
		<version>${jetty.version}</version>
	</dependency>

	<dependency>
		<groupId>org.eclipse.jetty</groupId>
		<artifactId>jetty-jmx</artifactId>
		<version>${jetty.version}</version>
	</dependency>
	<!-- <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> 
		<version>3.1.0</version> </dependency> -->
	<dependency>
		<groupId>org.eclipse.jetty</groupId>
		<artifactId>jetty-webapp</artifactId>
		<version>${jetty.version}</version>
	</dependency>
	<dependency>
		<groupId>org.eclipse.jetty</groupId>
		<artifactId>jetty-jsp</artifactId>
		<version>${jetty.version}</version>
		<type>pom</type>
		<exclusions>
			<exclusion>
				<artifactId>org.eclipse.jdt.core</artifactId>
				<groupId>org.eclipse.jetty.orbit</groupId>
			</exclusion>
		</exclusions>
	</dependency>
	<!-- Jersey (JAX-RS) -->
	<!-- <dependency>
		<groupId>org.glassfish.jersey.core</groupId>
		<artifactId>jersey-server</artifactId>
		<version>${jersey.version}</version>
	</dependency>
	<dependency>
		<groupId>org.glassfish.jersey.containers</groupId>
		<artifactId>jersey-container-servlet</artifactId>
		<version>${jersey.version}</version>

	</dependency> -->
</dependencies>

<build>
	<finalName>assignment-4</finalName>
	<plugins>
		<plugin>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>2.3.2</version>
			<configuration>
				<source>1.7</source>
				<target>1.7</target>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-eclipse-plugin</artifactId>
			<version>2.9</version>
			<configuration>
				<buildOutputDirectory>bin</buildOutputDirectory>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>exec-maven-plugin</artifactId>
			<version>1.2.1</version>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-enforcer-plugin</artifactId>
			<version>1.1.1</version>
			<executions>
				<execution>
					<id>enforce-java</id>
					<goals>
						<goal>enforce</goal>
					</goals>
					<configuration>
						<rules>
							<requireMavenVersion>
								<version>[3.0.0,)</version>
							</requireMavenVersion>
							<requireJavaVersion>
								<version>[1.7,)</version>
								<message>[ERROR] OLD JDK [${java.version}] in use.
									Jetty
									${jetty.version} requires JDK 1.7 or newer</message>
							</requireJavaVersion>
						</rules>
					</configuration>
				</execution>
			</executions>
		</plugin>
	</plugins>
	<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> 
		<version>2.3.2</version> <configuration> <source>1.7</source> <target>1.7</target> 
		</configuration> </plugin> -->

</build>

<profiles>
	<profile>
		<id>server</id>
		<build>
			<defaultGoal>test</defaultGoal>
			<plugins>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.2.1</version>
					<executions>
						<execution>
							<phase>test</phase>
							<goals>
								<goal>java</goal>
							</goals>
							<configuration>
								<mainClass>swa.ass4.server.CXFBackendServer</mainClass>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>
	<profile>
		<id>webapp</id>
		<build>
			<defaultGoal>test</defaultGoal>
			<plugins>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.2.1</version>
					<executions>
						<execution>
							<phase>test</phase>
							<goals>
								<goal>java</goal>
							</goals>
							<configuration>
								<mainClass>swa.ass4.webapp.WebApp</mainClass>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>
	<profile>
		<id>client</id>
		<build>
			<defaultGoal>test</defaultGoal>
			<plugins>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.2.1</version>
					<executions>
						<execution>
							<phase>test</phase>
							<goals>
								<goal>java</goal>
							</goals>
							<configuration>
								<mainClass>swa.ass4.client.Client</mainClass>
							</configuration>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>
</profiles>
[/XML]

In andere Laptop funktioniert reibungslos. Habe ich beim ersten Post link richtig durchgemacht? sind die schritte richtig?

[XML]
<slf4j.version>1.7.5</slf4j.version>
<jetty.version>9.1.3.v20140225</jetty.version>

[/XML]

kommentier mal die 9.1.3er Zeile aus und versuch es mit der 8.1.14

Würde vermuten, dass es da irgendwo komplikationen gibt…

Hat leider nicht geholfen

[XML][INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.848s
[INFO] Finished at: Tue May 20 09:36:58 CEST 2014
[INFO] Final Memory: 15M/114M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project assignment-4: Compilation failure: Compilation failure:
[ERROR] /Users/admin/Downloads/resources-assignment-4-2/src/main/java/swa/ass4/webapp/Main.java:[31,31] error: cannot find symbol
[ERROR] package org.eclipse.jetty.server
[ERROR] /Users/admin/Downloads/resources-assignment-4-2/src/main/java/swa/ass4/webapp/Main.java:[33,31] error: cannot find symbol
[ERROR] package org.eclipse.jetty.server
[ERROR] /Users/admin/Downloads/resources-assignment-4-2/src/main/java/swa/ass4/webapp/Main.java:[74,8] error: cannot find symbol
[ERROR] class Main
[ERROR] /Users/admin/Downloads/resources-assignment-4-2/src/main/java/swa/ass4/webapp/Main.java:[74,40] error: cannot find symbol
[ERROR] class Main
[ERROR] /Users/admin/Downloads/resources-assignment-4-2/src/main/java/swa/ass4/webapp/Main.java:[155,13] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
admins-macbook:resources-assignment-4-2 admin$
[/XML]

mach mal

mvn dependency:list

und

mvn dependency:list -X

Denkst du nicht, dass nach MAc spezifisches Treiber fehlt?

nach depebcency : List
[XML]admins-macbook:resources-assignment-4-2 admin$ mvn dependency:list
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SWA Assignment 4 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-dependency-plugin:2.1:list (default-cli) @ assignment-4 —
[INFO]
[INFO] The following files have been resolved:
[INFO] asm:asm:jar:3.3.1:compile
[INFO] com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
[INFO] javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
[INFO] log4j:log4j:jar:1.2.17:compile
[INFO] org.apache.cxf:cxf-api:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-core:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-transports-http:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-ws-addr:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-ws-policy:jar:2.7.10:compile
[INFO] org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[INFO] org.apache.neethi:neethi:jar:3.0.3:compile
[INFO] org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
[INFO] org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[INFO] org.eclipse.jetty:jetty-continuation:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-jmx:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-jsp:pom:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-security:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-server:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-servlet:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-webapp:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-xml:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty.orbit:com.sun.el:jar:2.2.0.v201108011116:compile
[INFO] org.eclipse.jetty.orbit:javax.el:jar:2.2.0.v201108011116:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet.jsp:jar:2.2.0.v201112011158:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet.jsp.jstl:jar:1.2.0.v201105211821:compile
[INFO] org.eclipse.jetty.orbit:org.apache.jasper.glassfish:jar:2.2.2.v201112011158:compile
[INFO] org.eclipse.jetty.orbit:org.apache.taglibs.standard.glassfish:jar:1.2.0.v201112081803:compile
[INFO] org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] xml-resolver:xml-resolver:jar:1.2:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.889s
[INFO] Finished at: Tue May 20 10:03:25 CEST 2014
[INFO] Final Memory: 12M/181M
[INFO] ------------------------------------------------------------------------
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$
admins-macbook:resources-assignment-4-2 admin$ mvn dependency:list
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SWA Assignment 4 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-dependency-plugin:2.1:list (default-cli) @ assignment-4 —
[INFO]
[INFO] The following files have been resolved:
[INFO] asm:asm:jar:3.3.1:compile
[INFO] com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
[INFO] javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
[INFO] log4j:log4j:jar:1.2.17:compile
[INFO] org.apache.cxf:cxf-api:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-core:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-transports-http:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-ws-addr:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-ws-policy:jar:2.7.10:compile
[INFO] org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[INFO] org.apache.neethi:neethi:jar:3.0.3:compile
[INFO] org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
[INFO] org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[INFO] org.eclipse.jetty:jetty-continuation:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-jmx:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-jsp:pom:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-security:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-server:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-servlet:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-webapp:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-xml:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty.orbit:com.sun.el:jar:2.2.0.v201108011116:compile
[INFO] org.eclipse.jetty.orbit:javax.el:jar:2.2.0.v201108011116:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet.jsp:jar:2.2.0.v201112011158:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet.jsp.jstl:jar:1.2.0.v201105211821:compile
[INFO] org.eclipse.jetty.orbit:org.apache.jasper.glassfish:jar:2.2.2.v201112011158:compile
[INFO] org.eclipse.jetty.orbit:org.apache.taglibs.standard.glassfish:jar:1.2.0.v201112081803:compile
[INFO] org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] xml-resolver:xml-resolver:jar:1.2:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.917s
[INFO] Finished at: Tue May 20 10:04:25 CEST 2014
[INFO] Final Memory: 12M/181M
[INFO] ------------------------------------------------------------------------
admins-macbook:resources-assignment-4-2 admin$
[/XML]

Nach dependency:list -X
[XML]admins-macbook:resources-assignment-4-2 admin$ mvn dependency:list -X
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.7.0_40, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: “mac os x”, version: “10.7.5”, arch: “x86_64”, family: “mac”
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/admin/.m2/settings.xml
[DEBUG] Using local repository at /Users/admin/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/admin/.m2/repository
[INFO] Scanning for projects…
[DEBUG] Extension realms for project at.ac.univie.swa:assignment-4:jar:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix dependency from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix dependency to org.apache.maven.plugins:maven-dependency-plugin from POM at.ac.univie.swa:assignment-4:jar:1.0-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: at.ac.univie.swa:assignment-4:jar:1.0-SNAPSHOT
[DEBUG] Tasks: [dependency:list]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SWA Assignment 4 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Resolving plugin prefix dependency from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Resolved plugin prefix dependency to org.apache.maven.plugins:maven-dependency-plugin from POM at.ac.univie.swa:assignment-4:jar:1.0-SNAPSHOT
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: at.ac.univie.swa:assignment-4:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [test]
[DEBUG] Repositories (dependencies): [central (http://repo1.maven.org/maven2, releases)]
[DEBUG] Repositories (plugins) : [central (http://repo1.maven.org/maven2, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-dependency-plugin:2.1:list (default-cli)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>

${classifier}
${excludeArtifactIds}
${excludeClassifiers}
${excludeGroupIds}
${excludeScope}
${excludeTransitive}
${excludeTypes}
${includeArtifactIds}
${includeClassifiers}
${includeGroupIds}
${includeScope}
${includeTypes}
${localRepository}
${markersDirectory}
${outputAbsoluteArtifactFilename}
${outputFile}
${mdep.outputScope}
${overWriteIfNewer}
${overWriteReleases}
${overWriteSnapshots}
${project}
${reactorProjects}
${project.remoteArtifactRepositories}
${silent}
${type}

[DEBUG] =======================================================================
[DEBUG] at.ac.univie.swa:assignment-4:jar:1.0-SNAPSHOT
[DEBUG] org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.10:compile
[DEBUG] org.apache.cxf:cxf-api:jar:2.7.10:compile
[DEBUG] org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[DEBUG] org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
[DEBUG] org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[DEBUG] org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[DEBUG] wsdl4j:wsdl4j:jar:1.6.3:compile
[DEBUG] org.apache.cxf:cxf-rt-core:jar:2.7.10:compile
[DEBUG] com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
[DEBUG] javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
[DEBUG] org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.10:compile
[DEBUG] org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.10:compile
[DEBUG] xml-resolver:xml-resolver:jar:1.2:compile
[DEBUG] asm:asm:jar:3.3.1:compile
[DEBUG] org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.10:compile
[DEBUG] org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.10:compile
[DEBUG] org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.10:compile
[DEBUG] org.apache.cxf:cxf-rt-ws-addr:jar:2.7.10:compile
[DEBUG] org.apache.cxf:cxf-rt-ws-policy:jar:2.7.10:compile
[DEBUG] org.apache.neethi:neethi:jar:3.0.3:compile
[DEBUG] org.apache.cxf:cxf-rt-transports-http:jar:2.7.10:compile
[DEBUG] org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG] org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[DEBUG] log4j:log4j:jar:1.2.17:compile
[DEBUG] org.eclipse.jetty:jetty-server:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:compile
[DEBUG] org.eclipse.jetty:jetty-continuation:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty.orbit:javax.servlet.jsp:jar:2.2.0.v201112011158:compile
[DEBUG] org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-jmx:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-webapp:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-xml:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-servlet:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-security:jar:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty:jetty-jsp:pom:8.1.14.v20131031:compile
[DEBUG] org.eclipse.jetty.orbit:org.apache.jasper.glassfish:jar:2.2.2.v201112011158:compile
[DEBUG] org.eclipse.jetty.orbit:javax.servlet.jsp.jstl:jar:1.2.0.v201105211821:compile
[DEBUG] org.eclipse.jetty.orbit:org.apache.taglibs.standard.glassfish:jar:1.2.0.v201112081803:compile
[DEBUG] org.eclipse.jetty.orbit:javax.el:jar:2.2.0.v201108011116:compile
[DEBUG] org.eclipse.jetty.orbit:com.sun.el:jar:2.2.0.v201108011116:compile
[INFO]
[INFO] — maven-dependency-plugin:2.1:list (default-cli) @ assignment-4 —
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG] Imported: org.sonatype.aether.transfer < plexus.core
[DEBUG] Imported: org.apache.maven.exception < plexus.core
[DEBUG] Imported: org.sonatype.aether.metadata < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG] Imported: org.sonatype.aether.collection < plexus.core
[DEBUG] Imported: org.sonatype.aether.version < plexus.core
[DEBUG] Imported: org.apache.maven.monitor < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG] Imported: org.apache.maven.repository < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG] Imported: org.apache.maven.profiles < plexus.core
[DEBUG] Imported: org.sonatype.aether.repository < plexus.core
[DEBUG] Imported: org.apache.maven.classrealm < plexus.core
[DEBUG] Imported: org.apache.maven.execution < plexus.core
[DEBUG] Imported: org.sonatype.aether.artifact < plexus.core
[DEBUG] Imported: org.sonatype.aether.spi < plexus.core
[DEBUG] Imported: org.apache.maven.reporting < plexus.core
[DEBUG] Imported: org.apache.maven.usability < plexus.core
[DEBUG] Imported: org.codehaus.plexus.container < plexus.core
[DEBUG] Imported: org.codehaus.plexus.component < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.graph < plexus.core
[DEBUG] Imported: org.sonatype.aether.* < plexus.core
[DEBUG] Imported: org.apache.maven.settings < plexus.core
[DEBUG] Imported: org.codehaus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.impl < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG] Imported: org.apache.maven.toolchain < plexus.core
[DEBUG] Imported: org.sonatype.aether.deployment < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG] Imported: org.apache.maven.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.cli < plexus.core
[DEBUG] Imported: org.sonatype.aether.installation < plexus.core
[DEBUG] Imported: org.codehaus.plexus.context < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG] Imported: org.apache.maven.project < plexus.core
[DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.artifact < plexus.core
[DEBUG] Imported: org.apache.maven.model < plexus.core
[DEBUG] Imported: org.apache.maven.* < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG] Imported: org.sonatype.aether.resolution < plexus.core
[DEBUG] Imported: org.apache.maven.plugin < plexus.core
[DEBUG] Imported: org.codehaus.plexus.* < plexus.core
[DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] org.apache.maven.plugins:maven-dependency-plugin:jar:2.1:
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.9:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-9:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.6:compile
[DEBUG] org.apache.maven.shared:file-management:jar:1.1:compile
[DEBUG] org.apache.maven.shared:maven-shared-io:jar:1.0:compile
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] org.apache.maven.shared:maven-dependency-analyzer:jar:1.1:compile
[DEBUG] asm:asm:jar:3.0:compile
[DEBUG] org.apache.maven.shared:maven-dependency-tree:jar:1.2:compile
[DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:1.0:compile
[DEBUG] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.1:compile
[DEBUG] org.codehaus.plexus:plexus-io:jar:1.0-alpha-1:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4:compile
[DEBUG] commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG] commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG] commons-digester:commons-digester:jar:1.6:compile
[DEBUG] commons-collections:commons-collections:jar:2.1:compile
[DEBUG] commons-logging:commons-logging:jar:1.0.4:compile
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG] org.apache.maven.doxia:doxia-core:jar:1.0-alpha-7:compile
[DEBUG] oro:oro:jar:2.0.7:compile
[DEBUG] org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-7:compile
[DEBUG] org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6:compile
[DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.2:compile
[DEBUG] plexus:plexus-utils:jar:1.0.2:compile
[DEBUG] commons-logging:commons-logging-api:jar:1.0.4:compile
[DEBUG] velocity:velocity:jar:1.4:compile
[DEBUG] velocity:velocity-dep:jar:1.4:runtime
[DEBUG] org.apache.maven.doxia:doxia-decoration-model:jar:1.0-alpha-7:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.1
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.1
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.1
[DEBUG] Included: org.apache.maven.plugins:maven-dependency-plugin:jar:2.1
[DEBUG] Included: commons-cli:commons-cli:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-9
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.4.6
[DEBUG] Included: org.apache.maven.shared:file-management:jar:1.1
[DEBUG] Included: org.apache.maven.shared:maven-shared-io:jar:1.0
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.apache.maven.shared:maven-dependency-analyzer:jar:1.1
[DEBUG] Included: asm:asm:jar:3.0
[DEBUG] Included: org.apache.maven.shared:maven-dependency-tree:jar:1.2
[DEBUG] Included: org.apache.maven.shared:maven-common-artifact-filters:jar:1.0
[DEBUG] Included: org.apache.maven.shared:maven-plugin-testing-harness:jar:1.1
[DEBUG] Included: org.codehaus.plexus:plexus-io:jar:1.0-alpha-1
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4
[DEBUG] Included: commons-validator:commons-validator:jar:1.2.0
[DEBUG] Included: commons-beanutils:commons-beanutils:jar:1.7.0
[DEBUG] Included: commons-digester:commons-digester:jar:1.6
[DEBUG] Included: commons-collections:commons-collections:jar:2.1
[DEBUG] Included: commons-logging:commons-logging:jar:1.0.4
[DEBUG] Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG] Included: org.apache.maven.doxia:doxia-core:jar:1.0-alpha-7
[DEBUG] Included: oro:oro:jar:2.0.7
[DEBUG] Included: org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-7
[DEBUG] Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6
[DEBUG] Included: org.codehaus.plexus:plexus-velocity:jar:1.1.2
[DEBUG] Included: plexus:plexus-utils:jar:1.0.2
[DEBUG] Included: commons-logging:commons-logging-api:jar:1.0.4
[DEBUG] Included: velocity:velocity:jar:1.4
[DEBUG] Included: velocity:velocity-dep:jar:1.4
[DEBUG] Included: org.apache.maven.doxia:doxia-decoration-model:jar:1.0-alpha-7
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.9
[DEBUG] Excluded: classworlds:classworlds:jar:1.1
[DEBUG] Excluded: org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-dependency-plugin:2.1:list from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-dependency-plugin:2.1, parent: sun.misc.Launcher$AppClassLoader@bdbb12b]
[DEBUG] Configuring mojo ‘org.apache.maven.plugins:maven-dependency-plugin:2.1:list’ with basic configurator -->
[DEBUG] (f) excludeTransitive = false
[DEBUG] (s) local = id: local
url: file:///Users/admin/.m2/repository/
layout: none

[DEBUG] (s) markersDirectory = /Users/admin/Downloads/resources-assignment-4-2/target/dependency-maven-plugin-markers
[DEBUG] (f) outputAbsoluteArtifactFilename = false
[DEBUG] (f) outputScope = true
[DEBUG] (f) overWriteIfNewer = true
[DEBUG] (f) overWriteReleases = false
[DEBUG] (f) overWriteSnapshots = false
[DEBUG] (f) project = MavenProject: at.ac.univie.swa:assignment-4:1.0-SNAPSHOT @ /Users/admin/Downloads/resources-assignment-4-2/pom.xml
[DEBUG] (f) reactorProjects = [MavenProject: at.ac.univie.swa:assignment-4:1.0-SNAPSHOT @ /Users/admin/Downloads/resources-assignment-4-2/pom.xml]
[DEBUG] (s) remoteRepos = [ id: central
url: http://repo1.maven.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (f) silent = false
[DEBUG] (f) type = java-source
[DEBUG] – end configuration –
[INFO]
[INFO] The following files have been resolved:
[INFO] asm:asm:jar:3.3.1:compile
[INFO] com.sun.xml.bind:jaxb-impl:jar:2.2.6:compile
[INFO] javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
[INFO] log4j:log4j:jar:1.2.17:compile
[INFO] org.apache.cxf:cxf-api:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-core:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-transports-http:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-ws-addr:jar:2.7.10:compile
[INFO] org.apache.cxf:cxf-rt-ws-policy:jar:2.7.10:compile
[INFO] org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[INFO] org.apache.neethi:neethi:jar:3.0.3:compile
[INFO] org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
[INFO] org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
[INFO] org.eclipse.jetty:jetty-continuation:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-jmx:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-jsp:pom:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-security:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-server:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-servlet:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-webapp:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty:jetty-xml:jar:8.1.14.v20131031:compile
[INFO] org.eclipse.jetty.orbit:com.sun.el:jar:2.2.0.v201108011116:compile
[INFO] org.eclipse.jetty.orbit:javax.el:jar:2.2.0.v201108011116:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet.jsp:jar:2.2.0.v201112011158:compile
[INFO] org.eclipse.jetty.orbit:javax.servlet.jsp.jstl:jar:1.2.0.v201105211821:compile
[INFO] org.eclipse.jetty.orbit:org.apache.jasper.glassfish:jar:2.2.2.v201112011158:compile
[INFO] org.eclipse.jetty.orbit:org.apache.taglibs.standard.glassfish:jar:1.2.0.v201112081803:compile
[INFO] org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] wsdl4j:wsdl4j:jar:1.6.3:compile
[INFO] xml-resolver:xml-resolver:jar:1.2:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.339s
[INFO] Finished at: Tue May 20 10:08:49 CEST 2014
[INFO] Final Memory: 12M/181M
[INFO] ------------------------------------------------------------------------
[/XML]

Was steht denn in Main in Zeile 31: new Server() oder sowas?

Scheint eher irgendwo ein Versions-konflikt zu sein, sehe ich aber auf Anhieb nicht.

Da ist Main Klasse . Es ist komisch , dass auf andere Rechnern reibungslos funktioniert


import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.apache.jasper.servlet.JspServlet;
import org.eclipse.jetty.server.ConnectionFactory;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.servlet.DefaultServlet;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;

/**
 * Example of using JSP's with embedded jetty and not requiring
 * all of the overhead of a WebAppContext
 */
public class Main
{
    // Resource path pointing to where the WEBROOT is
    private static final String WEBROOT_INDEX = "/webapp/";

    public static void main(String[] args) throws Exception
    {
        int port = 8080;
        Main main = new Main(port);
        main.start();
        main.waitForInterrupt();
    }

    private static final Logger LOG = Logger.getLogger(Main.class.getName());

    private int port;
    private Server server;
    private URI serverURI;

    public Main(int port)
    {
        this.port = port;
    }

    public URI getServerURI()
    {
        return serverURI;
    }

    public void start() throws Exception
    {
        server = new Server();
        ServerConnector connector = new ServerConnector(server);
        connector.setPort(port);
        server.addConnector(connector);

        URL indexUri = this.getClass().getResource(WEBROOT_INDEX);
        if (indexUri == null)
        {
            throw new FileNotFoundException("Unable to find resource " + WEBROOT_INDEX);
        }

        // Points to wherever /webroot/ (the resource) is
        URI baseUri = indexUri.toURI();

        // Establish Scratch directory for the servlet context (used by JSP compilation)
        File tempDir = new File(System.getProperty("java.io.tmpdir"));
        File scratchDir = new File(tempDir.toString(),"embedded-jetty-jsp");

        if (!scratchDir.exists())
        {
            if (!scratchDir.mkdirs())
            {
                throw new IOException("Unable to create scratch directory: " + scratchDir);
            }
        }

        // Set JSP to use Standard JavaC always
        System.setProperty("org.apache.jasper.compiler.disablejsr199","false");

        // Setup the basic application "context" for this application at "/"
        // This is also known as the handler tree (in jetty speak)
        ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
        context.setContextPath("/");
        context.setAttribute("javax.servlet.context.tempdir",scratchDir);
        context.setResourceBase(baseUri.toASCIIString());
        server.setHandler(context);
        
        // Add Application Servlets

        // Set Classloader of Context to be sane (needed for JSTL)
        // JSP requires a non-System classloader, this simply wraps the
        // embedded System classloader in a way that makes it suitable
        // for JSP to use
        ClassLoader jspClassLoader = new URLClassLoader(new URL[0], this.getClass().getClassLoader());
        context.setClassLoader(jspClassLoader);

        // Add JSP Servlet (must be named "jsp")
        ServletHolder holderJsp = new ServletHolder("jsp",JspServlet.class);
        holderJsp.setInitOrder(0);
        holderJsp.setInitParameter("logVerbosityLevel","DEBUG");
        holderJsp.setInitParameter("fork","false");
        holderJsp.setInitParameter("xpoweredBy","false");
        holderJsp.setInitParameter("compilerTargetVM","1.7");
        holderJsp.setInitParameter("compilerSourceVM","1.7");
        holderJsp.setInitParameter("keepgenerated","true");
        context.addServlet(holderJsp,"*.jsp");
        context.addServlet(holderJsp,"*.jspf");
        context.addServlet(holderJsp,"*.jspx");

        // Add Example of mapping jsp to path spec
        ServletHolder holderAltMapping = new ServletHolder("foo.jsp", JspServlet.class);
        holderAltMapping.setForcedPath("/test/foo/foo.jsp");
        context.addServlet(holderAltMapping,"/test/foo/");

        // Add Default Servlet (must be named "default")
        ServletHolder holderDefault = new ServletHolder("default",DefaultServlet.class);
        LOG.info("Base URI: " + baseUri);
        holderDefault.setInitParameter("resourceBase",baseUri.toASCIIString());
        holderDefault.setInitParameter("dirAllowed","true");
        context.addServlet(holderDefault,"/");

        // Start Server
        server.start();

        // Show server state
        if (LOG.isLoggable(Level.FINE))
        {
            LOG.fine(server.dump());
        }

        // Establish the Server URI
        String scheme = "http";
        for (ConnectionFactory connectFactory : connector.getConnectionFactories())
        {
            if (connectFactory.getProtocol().equals("SSL-http"))
            {
                scheme = "https";
            }
        }
        String host = connector.getHost();
        if (host == null)
        {
            host = "localhost";
        }
        int port = connector.getLocalPort();
        serverURI = new URI(String.format("%s://%s:%d/",scheme,host,port));
        LOG.info("Server URI: " + serverURI);
    }

    public void stop() throws Exception
    {
        server.stop();
    }

    /**
     * Cause server to keep running until it receives a Interrupt.
     * <p>
     * Interrupt Signal, or SIGINT (Unix Signal), is typically seen as a result of a kill -TERM {pid} or Ctrl+C
     */
    public void waitForInterrupt() throws InterruptedException
    {
        server.join();
    }
}

Hallo Leute,
ich möchte diese Link auch versuchen. Ich brauche eure Hilfe, damit ich der Vorgang zu ende bringe
Ich bin so vorgegangen
1.maven runtergeladen und in den Ordner /usr/local/ reingeschmissen
2. in Terminal reingetappt : vi ~/.bash_profile
3.da habe ich mit versionsnummer angepasst``` #set JAVA_HOME
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home
export JAVA_HOME

M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1
export M2_HOME

PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin
export PATH```

4 das habe ich nicht verstanden. Wie soll ich speichern? in welchen Verzeichnis und mit welche Namen soll ich speichern?

save the file and type source ~/.bash_profile. This steps executes the commands in the .bash_profile file and you are good to go now.

ich hätte noch weitere Frage. Als ich versucht habe maven mit dem Befehl mv zu verschieben, ging nicht, obwohl ich mich mit su name angemeldet habe

Auf eure Hilfe wurde ich mich wirklich sehr freuen
Lg Anni

Ich habe jetzt nicht alles gelesen (weil gerade keine Zeit).

Ich habe in meinem Home-Verzeichnis die Datei .profile mit folgendem Inhalt angelegt:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
export M2_HOME=/usr/local/maven
export PATH=${M2_HOME}/bin:${PATH}

Mehr brauche ich nicht für Maven. (Nicht vergessen, nach der Änderung eine neue Konsole zu öffnen)

Danke für deine Antwort.
Also damit ich richtig mache soll ich zuerst in Terminal

vi ~/.bash_profile
eingeben, dann von dir geschriebene Zeilen mit versionsnummer übereinstimmend reinkopieren und kann ich dann einfach Terminal Fenster zumachen oder soll ich irgendwo speichern?

Hi,

1.) Terminal öffnen
2.) nano .profile
3.) Meine Exporte (angepasst) hineinkopieren
4.) Ctrl+O
5.) Ctrl+X
6.) Terminal schließen
7.) Terminal öffnen
8.) mvn -version

Danke für deine ausführlich Antwort.
Ich habe immer noch diese Fehler

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.941s
[INFO] Finished at: Thu May 22 11:51:07 CEST 2014
[INFO] Final Memory: 15M/183M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default) on project assignment-4: An exception occured while executing the Java class. null: InvocationTargetException: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException```

Was macht denn mvn -version -X?

Hallo Alle,

ich weiß dass es euch langsam nervt, aber habe immer noch keine Lösung
mvn -version -X liefert :

Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.7.0_40, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.7.5", arch: "x86_64", family: "mac"

mvn -Pserver unter anderen Folgende Warnung :

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
	at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:619)
	at org.eclipse.jetty.util.log.JettyAwareLogger.info(JettyAwareLogger.java:314)
	at org.eclipse.jetty.util.log.Slf4jLog.info(Slf4jLog.java:74)
	at org.eclipse.jetty.util.log.Log.initialized(Log.java:184)
	at org.eclipse.jetty.util.log.Log.getLogger(Log.java:287)
	at org.eclipse.jetty.util.log.Log.getLogger(Log.java:277)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.<clinit>(AbstractLifeCycle.java:35)
	at swa.ass4.server.CXFBackendServer.main(CXFBackendServer.java:32)
	... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.021s
[INFO] Finished at: Sat May 24 01:27:20 CEST 2014
[INFO] Final Memory: 13M/181M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default) on project assignment-4: An exception occured while executing the Java class. null: InvocationTargetException: org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException```

kann das daran liegen , dass jdk PATH falsch gesetzt ist? ist das nicht richtig ? JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home

im Anhang stelle ich screenshot von .profile. was sollte ich dort ändern?

Danke euch für die Bemühungen
Anni