Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58B9517405 for ; Sat, 16 May 2015 22:38:08 +0000 (UTC) Received: (qmail 2768 invoked by uid 500); 16 May 2015 22:38:06 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 2687 invoked by uid 500); 16 May 2015 22:38:06 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 2670 invoked by uid 99); 16 May 2015 22:38:06 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2015 22:38:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9B3291827F4 for ; Sat, 16 May 2015 22:38:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Rd6z4BPHiSAL for ; Sat, 16 May 2015 22:37:56 +0000 (UTC) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 8603220659 for ; Sat, 16 May 2015 22:37:56 +0000 (UTC) Received: by iepk2 with SMTP id k2so146902651iep.3 for ; Sat, 16 May 2015 15:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5AESMzr7BnKPZ/cgkZ1xANs89KWsuGNb0sW+RpuCgWI=; b=ZPj7ZdKOBJMHK0Se6992q5wqHRplhcGUUEYXGuo8mlalslG7nR5r3Xn9g3Ayqfqp1J FjNa/sj1JoGjqnyj4lbQsfmqT+gwGPuBq3U5VF+BLjWKH1BHcol69kU5rBI43J3cQPCX i0rkzk+aCCxYl3uHSobGkhDYccER1wDpkUFMo41KTVC2elZPBUe2pNi5cIMnQ+nlmHC5 Xeir1LMqd8dbA2K5i5MRQIo0YGy6pz3tX2U0fe8u136PuKRMbAWEawjnH5q7PUX3+zJk tzip6PJJoGlr0gx8Xw4H0riin0+IwIWBDaEdY11waZAxQbUv3nej0I4S6uDcGfAf4Moh UUPw== MIME-Version: 1.0 X-Received: by 10.50.164.138 with SMTP id yq10mr6214732igb.29.1431815830674; Sat, 16 May 2015 15:37:10 -0700 (PDT) Received: by 10.36.110.146 with HTTP; Sat, 16 May 2015 15:37:10 -0700 (PDT) In-Reply-To: References: <555763F4.9070309@artifact-software.com> <5557752A.2030203@gmx.de> Date: Sat, 16 May 2015 15:37:10 -0700 Message-ID: Subject: Re: create one unique directroy for my project with the timestamp format. Please help me From: Dan Tran To: Maven Users List Content-Type: multipart/alternative; boundary=089e0129531af8a15805163a9971 --089e0129531af8a15805163a9971 Content-Type: text/plain; charset=UTF-8 @Aitor, Looks like you want to assemble a bunch of artifact into a directory with root directory has a timestamp format 1. Create a Maven project with its src/main/runtime has the static contents pom.xml src/main/runtime app1 configuration1.properties app2 configuration.properties .... 2. In your pom.xml - use maven-antrun-plugin to generate the timestamp and mkdir with that name under your ${project.build.directory}/staging - use maven-antrun-plugin to copy the static content over - use maven-dependency-plugin:copy to copy each specific dependency to your staging directory to your desire location 3. Finally use maven-assembly-plugin to zip up your staging Hope this helps -Dan On Sat, May 16, 2015 at 11:29 AM, Aitor Iturriondobeitia < laudio.info@gmail.com> wrote: > hello > > i must to generate the ears, conf files, and jboss modules into these > structure because It is the structure that have forced me to generate. > his structure is essential only for management issues . my projects have a > maven structure but need to copy the artifacts ( ears , jboss modules , > configuration files ) in the structure , hanging from a directory with a > date of generation > 20150516-17.22.12 > |-----ears > |----ear1.ear > |----ear2.ear > |----earn.ear > |-----Configuration > |---app1 > |----configuration1.properties > |---app2 > |----configuration2.properties > |--jboss-modules > |--module1.jar > |--module2.jar > |--modulen.jar > > I have to copy the files to that structure > > > Can you help me please? > > > > 2015-05-16 18:49 GMT+02:00 Karl Heinz Marbaise : > > > Hi, > > > > based on Ron's questions you seemed to be not answering his questions... > > > > Kind regards > > Karl Heinz Marbaise > > On 5/16/15 5:56 PM, Aitor Iturriondobeitia wrote: > > > >> hello > >> thanks for your answer > >> my pourpose is : > >> 1.- create one dir, for example: 20150516-17.22.12 > >> 2.- into this directory create for each maven project the artifact, this > >> is: > >> when i comple the 5 ears to copy to thar dir (20150516-17.22.12) > >> copy the configuration to that dir > >> > > > > This does not explain why are you trying to do such a thing? Do you want > > to deploy this to an application server ? Or what is the purpose? > > > > The intention of this structure is unknown nor the idea? > > > > > > > > > > > > > >> this structure i must to create for my proyject for to load this > >> extructure. for example: > >> > >> 20150516-17.22.12 > >> |-----ears > >> |----ear1.ear > >> |----ear2.ear > >> |----earn.ear > >> |-----Configuration > >> |---app1 > >> |----configuration1.properties > >> |---app2 > >> |----configuration2.properties > >> > >> i have a lot of projects and i am not able to load unique dir for copyns > >> all the files when i create them > >> > >> can you help me? > >> > >> thanks > >> > >> 2015-05-16 17:36 GMT+02:00 Ron Wheeler >: > >> > >> > >>> What are you trying to accomplish? > >>> > >>> What configuration files? > >>> What are you trying to build as an application? > >>> What is the purpose of the time stamp? > >>> > >>> Ron > >>> > >>> > >>> On 16/05/2015 10:50 AM, Aitor Iturriondobeitia wrote: > >>> > >>> Hello > >>>> > >>>> i am trying, during several days, to buids my proyects, copy my > >>>> configurations... to one directory > >>>> thsi directory must be unique and the name must to have the timestap > >>>> format > >>>> (yyyyMMdd-HH.mm.ss) > >>>> i cannot, i am unable to get it. can you help me please? > >>>> i have the next project structure. > >>>> i must to set one directory, into the parent (proyect parent1) into > one > >>>> variable ant this variable must to have the timestap value into > >>>> yyyyMMdd-HH.mm.ss format > >>>> > >>>> if into the project parent2, project parent 3, project parent n i > write > >>>> the > >>>> directory using the varaible value alway change it to the compilation > >>>> time. > >>>> how can i load one unique value for this timestap into one property > for > >>>> usint into all projects? > >>>> > >>>> thanks > >>>> > >>>> *proyect parent1 > >>>> |--project parent2 > >>>> | |--project1.1 > >>>> | |--project1.2 > >>>> | |--project1.3 > >>>> | |--project1.n > >>>> |--proyect parent3 > >>>> | |--project2.1 > >>>> | |--project2.2 > >>>> | |--project2.3 > >>>> | |--project2.n > >>>> |--project parentn > >>>> |--projectn.1 > >>>> |--projectn.2 > >>>> |--projectn.3 > >>>> |--projectn.n > >>>> > >>>> > >>>> > >>> > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > For additional commands, e-mail: users-help@maven.apache.org > > > > > --089e0129531af8a15805163a9971--