Am Donnerstag, den 02.09.2010, 11:17 +0200 schrieb Antonio Petrelli:
> It seems that in your pom you specify explicitly the need of Maven
> 2.0.9. What do you see when you run mvn -version?
It was as you mentioned. I updated maven2 by hand to 2.2.1, but now i
got next errors during the packaging task.
=== 8< ===
[dri...@localhost xxxxxxxxxxxxxxx]$ mvn -e package
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building xxxxxxxxxxxxxxx Webapp
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[WARNING] POM for 'antlr:antlr:pom:2.7.6:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for
'commons-collections:commons-collections:pom:3.1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'dom4j:dom4j:pom:1.6.1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'commons-logging:commons-logging:pom:1.1.1:compile' is
invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'ognl:ognl:pom:2.7.3:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for
'commons-fileupload:commons-fileupload:pom:1.2.1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'commons-io:commons-io:pom:1.3.2:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'mysql:mysql-connector-java:pom:5.1.13:compile' is
invalid.

Its dependencies (if any) will NOT be available to the current build.
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 1 source file
to /home/drindt/Programmierung/xxxxxxxxxxxxxxx/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

error: error
reading /home/drindt/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar;
error in opening zip file
error: error
reading 
/home/drindt/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar;
 error in opening zip file
error: error
reading /home/drindt/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar;
error in opening zip file
error: error
reading 
/home/drindt/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar;
 error in opening zip file
error: error
reading /home/drindt/.m2/repository/ognl/ognl/2.7.3/ognl-2.7.3.jar;
error in opening zip file
error: error
reading 
/home/drindt/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar;
 error in opening zip file
error: error
reading 
/home/drindt/.m2/repository/commons-io/commons-io/1.3.2/commons-io-1.3.2.jar; 
error in opening zip file
error: error
reading 
/home/drindt/.m2/repository/mysql/mysql-connector-java/5.1.13/mysql-connector-java-5.1.13.jar;
 error in opening zip file

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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:616)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure
        at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Sep 02 11:33:52 CEST 2010
[INFO] Final Memory: 9M/16M
[INFO]
------------------------------------------------------------------------
=== >8 ===

My pom.xml:
=== 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.xxxxxxxxxxxxxxx.app</groupId>
        <artifactId>xxxxxxxxxxxxxxx</artifactId>
        <packaging>war</packaging>
        <version>0.0.1-SNAPSHOT</version>
        <name>xxxxxxxxxxxxxxx Webapp</name>
        <url>http://www.xxxxxxxxxxxxxxx.com</url>
        <issueManagement>
                <system>Trac</system>
                <url>https://www2.xxxxxxxxxxxxxxx/report</url>
        </issueManagement>
        <scm>
                <url>https://www2.xxxxxxxxxxxxxxx</url>
        </scm>
        <build>
                <finalName>xxxxxxxxxxxxxxx</finalName>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <!-- <version>2.0.2</version> -->
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
        <dependencies>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-core</artifactId>
                        <version>3.5.4-Final</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-annotations</artifactId>
                        <version>3.5.4-Final</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.struts</groupId>
                        <artifactId>struts2-core</artifactId>
                        <version>2.1.8.1</version>
                </dependency>
                <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.13</version>
                </dependency>
        </dependencies>
        <repositories>
                <repository>
                        <id>jboss-repository</id>
                        <name>JBoss Repository</name>
                        
<url>https://repository.jboss.org/nexus/content/groups/public</url>
                </repository>
                <repository>
                        <id>apache.snapshots</id>
                        <name>ASF Maven 2 Snapshot</name>

<url>http://people.apache.org/builds/struts/2.1.8.1/m2-staging-repository</url>
                </repository>
                <repository>
                        <id>mavenrepository.snapshots</id>
                        <name>Maven Repository</name>
                        <url>http://mvnrepository.com/artifact</url>
                </repository>
        </repositories>
</project>
=== >8 ===

Daniel

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to