This seems to be working _against_ the maven way...

Why do you need this? Why not just configure your pom to tell maven where
your java and test java actually is?


wangq/Wang Qiang(IT) wrote:
> 
> Dear Sirs
> 
> I'm maven's new user.
> 
> There are some questions I want to ask you. Can you help me
> 
> 1 ) how can maven scm checkout two different directories into another two
> target directory. For Example, in cvs , I have two directories :
> /source/main , /source/test. I want to checkout them into /src/main/java
> and /src/test/java respectively (because this is maven default directory). 
> I don't want to use command line. but I don't know how to config in the
> POM.xml. Can you give me an example?
> 
>  
> 
> 2 ) I want to use <includse> and <excludes> element to filter the .project
> file and bin directory. I only want to check out *.java file . In POM ,I
> configure as follows:
> 
> <executions>
> 
>          <execution>
> 
>              <id>check-out1</id>
> 
>              <phase>generate-sources</phase>
> 
>              <goals>
> 
>                    <goal>checkout</goal>
> 
>              </goals>
> 
>              <configuration>
> 
>                        
> <connectionType>developerConnection</connectionType>     
> 
>                        
> <checkoutDirectory>${project.basedir}/src</checkoutDirectory>
> 
>                         <includes>*.java</includes>
> 
>                         <excludes>.project, bin</excludes>
> 
>             </configuration>
> 
>  </execution>
> 
>  
> 
> but the .project file and bin directory are still checked out . what's
> wrong
> 
>  
> 
>  
> 
> Thanks a lot for  you help.
> 
>  
> 
> qiang wang
> 
> 
> 
> 
> DISCLAIMER:
> This e-mail is confidential for COSCO CONTAINER LINES (COSCON) and may
> also be privileged. Any unauthorized use, copying, or dissemination of it
> and any attachments to it, is prohibited. If you have received this e-mail
> in error, please delete it immediately, unread and notify the sender as
> soon as possible. COSCON does not warrant this email is virus-free and is
> not liable for any losses or responsibilities arising from any virus being
> transmitted by this email. Internet communications are not secure and
> COSCON does not accept legal responsibility for the contents of this
> message.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/two-questions-about-maven-tf4222566s177.html#a12045716
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