ok, this is my plugin config:

                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-dependency-plugin</artifactId>
                                <version>2.1</version>
                                <executions>
                                        <execution>
                                                <id>copy1</id>
                                                <phase>prepare-package</phase>
                                                <goals>
                                                        
<goal>copy-dependencies</goal>
                                                </goals>
                                                        <configuration>
                                                                
<includeGroupIds>org.springframework</includeGroupIds> 
                                                                
<outputDirectory>target/lib</outputDirectory>
                                                        </configuration>
                                        </execution>
                                        <execution>
                                                <id>copy2</id>
                                                <phase>prepare-package</phase>
                                                <goals>
                                                        
<goal>copy-dependencies</goal>
                                                </goals>
                                                        <configuration>
                                                                
<includeGroupIds>org.hamcrest</includeGroupIds> 
                                                                
<outputDirectory>target/lib</outputDirectory>
                                                        </configuration>
                                        </execution>
                                        <execution>
                                                <id>copy3</id>
                                                <phase>prepare-package</phase>
                                                <goals>
                                                        
<goal>copy-dependencies</goal>
                                                </goals>
                                                        <configuration>
                                                                
<includeGroupIds>log4j</includeGroupIds> 
                                                                
<outputDirectory>target/lib</outputDirectory>
                                                        </configuration>
                                        </execution>
                                        <execution>
                                                <id>copy4</id>
                                                <phase>prepare-package</phase>
                                                <goals>
                                                        
<goal>copy-dependencies</goal>
                                                </goals>
                                                        <configuration>
                                                                
<includeGroupIds>dom4j</includeGroupIds> 
                                                                
<outputDirectory>target/lib</outputDirectory>
                                                        </configuration>
                                        </execution>
                                </executions>
                        </plugin>

and in the attachments are the debug outputs in prepare-package mode,
package mode and install mode


nsowatsk wrote:
> 
> The plugin will be called in the prepare-package phase. There is no asdf
> phase, so that won't work.
> 
> Try without the  includeGroupIds and see what happens.
> 
> Also run Maven with debug turned on.
> 
> Regards
> 
> Nathan
> 
> 
> On 29/04/2010 11:54, "grm" <[email protected]> wrote:
> 
>> 
>> I tried it, but didn't had really a luck ... for a test, I set the
>> <goal></goal> value to asdf, but no error has been thrown, is it
>> possible,
>> that the dependency-plugin is never called???
>> 
>> 
>> nsowatsk wrote:
>>> 
>>> <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" <[email protected]> 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:[email protected]]
>>>>> Sent: Thursday, April 29, 2010 6:26 AM
>>>>> To: [email protected]
>>>>> 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>
>>>>>    [email protected]
>>>>>    <roles>
>>>>>     <role>Dokument Beauftragter</role>
>>>>>     <role>Stv. Technischer Architekt</role>
>>>>>    </roles>
>>>>>    <timezone>+1</timezone>
>>>>>   </developer>
>>>>>   <developer>
>>>>>    <id>fau</id>
>>>>>    <name>Faustmann Alex</name>
>>>>>    [email protected]
>>>>>    <roles>
>>>>>     <role>Team Koordinator</role>
>>>>>     <role>Stv. Test Beauftragter</role>
>>>>>    </roles>
>>>>>    <timezone>+1</timezone>
>>>>>   </developer>
>>>>>   <developer>
>>>>>    <id>grm</id>
>>>>>    <name>Grman Peter</name>
>>>>>    [email protected]
>>>>>    <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 protected]
>>>>>    <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 protected]
>>>>>    <roles>
>>>>>     <role>Oberflächendesigner</role>
>>>>>     <role>Stv. Team Koordinator</role>
>>>>>    </roles>
>>>>>    <timezone>+1</timezone>
>>>>>   </developer>
>>>>>   <developer>
>>>>>    <id>tos</id>
>>>>>    <name>Tosun Emre</name>
>>>>>    [email protected]
>>>>>    <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</devel
>>>>> op
>>>>> erConnection>
>>>>>   <url>https://bitbucket.org/grm/tiny-ticketing</url>
>>>>>  </scm>
>>>>>  <mailingLists>
>>>>>   <mailingList>
>>>>>    <name>SEPM-3 Google Group</name>
>>>>>    <post>[email protected]</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: [email protected]
>>>>> For additional commands, e-mail: [email protected]
>>>>> 
>>>>> 
>>>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>> 
>>> 
>>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 
http://old.nabble.com/file/p28398761/prepare-package.txt prepare-package.txt 
http://old.nabble.com/file/p28398761/prepare-package.txt prepare-package.txt 
http://old.nabble.com/file/p28398761/package.txt package.txt 
http://old.nabble.com/file/p28398761/install.txt install.txt 
-- 
View this message in context: 
http://old.nabble.com/Copy-Dependencies-into-target-lib-tp28397233p28398761.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to