<build>
  <plugins>
    <plugin>
      <artifactId>maven-dependency-plugin</artifactId>
      <version>2.1</version>
      <executions>
    <execution>
      <id>xxx</id>
      <phase>prepare-package</phase>
      <goals>
        <goal>copy-dependencies</goal>
      </goals>
      <configuration>
        <includeGroupIds>com.xxx</includeGroupIds>
      <outputDirectory>target/lib</outputDirectory>
      </configuration>
    </execution>
    <execution>
      <id>xxxx</id>
      <phase>prepare-package</phase>
      <goals>
        <goal>copy-dependencies</goal>
      </goals>
      <configuration>
        <includeGroupIds>com.xxx.xxx</includeGroupIds>
      <outputDirectory>target/lib</outputDirectory>
      </configuration>
    </execution>
    <execution>
      <id>xxxxxx</id>
      <phase>prepare-package</phase>
      <goals>
        <goal>copy-dependencies</goal>
      </goals>
      <configuration>
        <includeGroupIds>com.xxx.xxx.xxx</includeGroupIds>
      <outputDirectory>target/lib</outputDirectory>
      </configuration>
    </execution>
      </executions>
    </plugin>
  </plugins>
</build>


On 29/04/2010 11:32, "grm" <peter.gr...@grman.at> wrote:

> 
> I also tried this many times, but it doesn't copies the dependencies, I
> think, I allready tried every possible configuration you can find on the
> internet, so my question ist, could the dependencies be defined wrong??? but
> i can compile the program, so i think, if the dependencies were wrong
> defined, i couldn't do it. I also can run the program in eclipse
> 
> 
> subir.sasikumar wrote:
>> 
>> Try this configuration
>> 
>> <configuration>
>>    <outputDirectory>${project.build.directory}/lib</outputDirectory>
>> </configuration>
>> 
>> Subir
>> -----Original Message-----
>> From: Peter Grman [mailto:peter.gr...@grman.at]
>> Sent: Thursday, April 29, 2010 6:26 AM
>> To: users@maven.apache.org
>> Subject: Copy Dependencies into target/lib
>> 
>> 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>
>>    e0828...@student.tuwien.ac.at
>>    <roles>
>>     <role>Dokument Beauftragter</role>
>>     <role>Stv. Technischer Architekt</role>
>>    </roles>
>>    <timezone>+1</timezone>
>>   </developer>
>>   <developer>
>>    <id>fau</id>
>>    <name>Faustmann Alex</name>
>>    alex.faustm...@gmail.com
>>    <roles>
>>     <role>Team Koordinator</role>
>>     <role>Stv. Test Beauftragter</role>
>>    </roles>
>>    <timezone>+1</timezone>
>>   </developer>
>>   <developer>
>>    <id>grm</id>
>>    <name>Grman Peter</name>
>>    peter.gr...@gmail.com
>>    <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>
>>    marcus.poll...@gmail.com
>>    <roles>
>>     <role>Test Beauftragter</role>
>>     <role>Stv. Oberflächendesigner</role>
>>    </roles>
>>    <timezone>+1</timezone>
>>   </developer>
>>   <developer>
>>    <id>sar</id>
>>    <name>Sarca Ana-Alina</name>
>>    e0825...@student.tuwien.ac.at
>>    <roles>
>>     <role>Oberflächendesigner</role>
>>     <role>Stv. Team Koordinator</role>
>>    </roles>
>>    <timezone>+1</timezone>
>>   </developer>
>>   <developer>
>>    <id>tos</id>
>>    <name>Tosun Emre</name>
>>    e0825...@student.tuwien.ac.at
>>    <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</develop
>> erConnection>
>>   <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
>> 
>> Please do not print this email unless it is absolutely necessary.
>> 
>> The information contained in this electronic message and any attachments
>> to this message are intended for the exclusive use of the addressee(s) and
>> may contain proprietary, confidential or privileged information. If you
>> are not the intended recipient, you should not disseminate, distribute or
>> copy this e-mail. Please notify the sender immediately and destroy all
>> copies of this message and any attachments.
>> 
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>> 
>> www.wipro.com
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to