Hallo, I'm allready trying for about 2 hours to copy my dependencies into 
target/lib, I've found hundreds of posts and answers how to do it, but it just 
doesnt work for me.
 
I can compile the code, I can pack it into a jar and the JUnit tests run also, 
but the dependencies are not copied.
Here my whole pom.xml, hopefully somone can find the error, because maven also 
doesn't call any:
 
<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>at.ac.tuwien.sepm.tinyticketing</groupId>
 <artifactId>TinyTicketingProject</artifactId>
 <packaging>jar</packaging>
 <version>0.0.1-TRACY</version>
 <name>Tiny Ticketing</name>
 <description>Ziel dieses Projektes ist es die Abwicklung von Ticketverkäufen 
zu vereinfachen. TT soll die bisherige veraltete Kaufabwicklung vollständig 
übernehmen und außerdem noch neue Möglichkeiten zur Preisgestaltung, etc. 
schaffen.</description>
 <issueManagement>
  <system>Bitbucket</system>
  <url>http://bitbucket.org/grm/tiny-ticketing/issues</url>
 </issueManagement>
 <distributionManagement>
  <site>
   <id>website</id>
   <url>scp://webhost.company.com/www/website</url>
  </site>
 </distributionManagement>
 <developers>
  <developer>
   <id>abs</id>
   <name>Abseher Michael</name>
   <email>e0828...@student.tuwien.ac.at</email>
   <roles>
    <role>Dokument Beauftragter</role>
    <role>Stv. Technischer Architekt</role>
   </roles>
   <timezone>+1</timezone>
  </developer>
  <developer>
   <id>fau</id>
   <name>Faustmann Alex</name>
   <email>alex.faustm...@gmail.com</email>
   <roles>
    <role>Team Koordinator</role>
    <role>Stv. Test Beauftragter</role>
   </roles>
   <timezone>+1</timezone>
  </developer>
  <developer>
   <id>grm</id>
   <name>Grman Peter</name>
   <email>peter.gr...@gmail.com</email>
   <roles>
    <role>Technischer Architekt</role>
    <role>Release Manager</role>
    <role>Stv. Test Beauftragter</role>
   </roles>
   <timezone>+1</timezone>
  </developer>
  <developer>
   <id>pol</id>
   <name>Pollice Marcus</name>
   <email>marcus.poll...@gmail.com</email>
   <roles>
    <role>Test Beauftragter</role>
    <role>Stv. Oberflächendesigner</role>
   </roles>
   <timezone>+1</timezone>
  </developer>
  <developer>
   <id>sar</id>
   <name>Sarca Ana-Alina</name>
   <email>e0825...@student.tuwien.ac.at</email>
   <roles>
    <role>Oberflächendesigner</role>
    <role>Stv. Team Koordinator</role>
   </roles>
   <timezone>+1</timezone>
  </developer>
  <developer>
   <id>tos</id>
   <name>Tosun Emre</name>
   <email>e0825...@student.tuwien.ac.at</email>
   <roles>
    <role>Oberflächendesigner</role>
    <role>Stv. Dokument Beauftragter</role>
   </roles>
   <timezone>+1</timezone>
  </developer>
 </developers>
 <scm>
  <connection>scm:hg:https://bitbucket.org/grm/tiny-ticketing</connection>
  
<developerConnection>scm:hg:https://bitbucket.org/grm/tiny-ticketing</developerConnection>
  <url>https://bitbucket.org/grm/tiny-ticketing</url>
 </scm>
 <mailingLists>
  <mailingList>
   <name>SEPM-3 Google Group</name>
   <post>sep...@googlegroups.com</post>
   <archive>http://groups.google.com/group/sepm-3</archive>
  </mailingList>
 </mailingLists>
 <build>
  <pluginManagement>
   <plugins>
          <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-dependency-plugin</artifactId>
           <executions>
            <execution>
             <id>copy-dependencies</id>
             <phase>package</phase>
             <goals>
              <goal>copy-dependencies</goal>
             </goals>
             <configuration>
              <outputDirectory>./target/lib</outputDirectory>
             </configuration>
            </execution>
           </executions>
          </plugin>
    <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-compiler-plugin</artifactId>
     <!-- best lock down version of the plugin too -->
     <configuration>
      <source>1.6</source>
      <target>1.6</target>
     </configuration>
    </plugin>
    <plugin>
     <artifactId>maven-jar-plugin</artifactId>
     <version>2.2</version>
     <configuration>
      <archive>
       <manifest>
        <mainClass>at.ac.tuwien.sepm.tinyticketing.Basis</mainClass>
       </manifest>
      </archive>
     </configuration>
    </plugin>
    <plugin>
     <artifactId>maven-assembly-plugin</artifactId>
     <configuration>
      <archive>
       <manifest>
        <mainClass>at.ac.tuwien.sepm.tinyticketing.Basis</mainClass>
       </manifest>
      </archive>
      <descriptors>
       <descriptor>src/main/assembly/one_jar.xml</descriptor>
      </descriptors>
     </configuration>
     <executions>
      <execution>
       <id>make-assembly</id>
       <phase>package</phase>
       <goals>
        <goal>attached</goal>
       </goals>
      </execution>
     </executions>
    </plugin>
   </plugins>
  </pluginManagement>
 </build>
 <repositories>
  <repository>
   <id>maven2Repo</id>
   <name>Maven 2 repository</name>
   <url>http://repo1.maven.org/maven2</url>
  </repository>
  <repository>
   <id>qseRepo</id>
   <name>Repository for the sample application at the TU Vienna</name>
   
<url>http://best-practice-software-engineering.ifs.tuwien.ac.at/repository/</url>
  </repository>
 </repositories>
 <dependencies>
  <!-- Unit testing -->
  <dependency>
   <groupId>junit</groupId>
   <artifactId>junit</artifactId>
   <version>4.7</version>
   <scope>test</scope>
  </dependency>
  <!-- Database -->
  <dependency>
   <groupId>hsqldb</groupId>
   <artifactId>hsqldb</artifactId>
   <version>2.0.0</version>
  </dependency>
  <!-- Spring framework -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-test</artifactId>
   <version>3.0.1.RELEASE</version>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>org.hamcrest</groupId>
   <artifactId>hamcrest-all</artifactId>
   <version>1.1</version>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-beans</artifactId>
   <version>3.0.1.RELEASE</version>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-jdbc</artifactId>
   <version>3.0.1.RELEASE</version>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>3.0.1.RELEASE</version>
  </dependency>
  <dependency>
   <groupId>dom4j</groupId>
   <artifactId>dom4j</artifactId>
   <version>1.6.1</version>
  </dependency>
  <dependency>
   <groupId>log4j</groupId>
   <artifactId>log4j</artifactId>
   <version>1.2.14</version>
  </dependency>
 </dependencies>
 <reporting>
  <plugins>
   <plugin>
    <artifactId>maven-javadoc-plugin</artifactId>
   </plugin>
   <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jxr-maven-plugin</artifactId>
   </plugin>
  </plugins>
 </reporting>
</project>

afterwards I'd also love to generate one big jar, but this has a much higher 
priority.
 
thank you very much, hopefully somone can help

Reply via email to