Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 4498 invoked from network); 25 Feb 2011 08:30:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 08:30:41 -0000 Received: (qmail 50295 invoked by uid 500); 25 Feb 2011 08:30:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 50099 invoked by uid 500); 25 Feb 2011 08:30:37 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 50083 invoked by uid 99); 25 Feb 2011 08:30:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 08:30:36 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,MANY_SPAN_IN_TEXT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pajbam@gmail.com designates 209.85.214.50 as permitted sender) Received: from [209.85.214.50] (HELO mail-bw0-f50.google.com) (209.85.214.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 08:30:30 +0000 Received: by bwz2 with SMTP id 2so2615847bwz.37 for ; Fri, 25 Feb 2011 00:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:message-id:in-reply-to :references:subject:x-mailer:mime-version:content-type :content-transfer-encoding; bh=ZUotAx26N302mrpYv0mRqMAkPBkVUbiKRuemFBd3Ph4=; b=KkrChqhPry3TjfRT3p99aQRo5bs+CfwS/cF8Xsa5WaVctgTI2H5ItyEwaWowyeHluL oJCxgC/57/gOuVgfChFFT3JMWhbjMWqka2+As8EYEbsfi30yOIqKSaxjm3KKf8rlD8Pk EYXNCVrunHRk+g632hNBsry3YgHJx5jwWbYUo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:message-id:in-reply-to:references:subject :x-mailer:mime-version:content-type:content-transfer-encoding; b=CB/BJxdEHrQu4kz6xkR2bYLLfOg8qgUXlDhGO1GO+Z7Qdb7z9W6tmB4hHTExCuxaE/ NXrunTMKx+AbiM3llKWxhHlT7YhQeX/7hvk+PksbqD+B/qeuhV4GAM5+42pKEXPg2gVf 4wiXuTT5T5P9pDbQ+wYe1J6IpuI2VgC2mnKtE= Received: by 10.204.121.73 with SMTP id g9mr1765701bkr.37.1298622607202; Fri, 25 Feb 2011 00:30:07 -0800 (PST) Received: from MacBook-Pro.local (def92-4-82-225-58-213.fbx.proxad.net [82.225.58.213]) by mx.google.com with ESMTPS id x38sm219991bkj.1.2011.02.25.00.30.04 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Feb 2011 00:30:05 -0800 (PST) Sender: Pierre-Arnaud Marcelot Date: Fri, 25 Feb 2011 09:30:01 +0100 From: Pierre-Arnaud Marcelot To: Apache Directory Developers List , elecharny@apache.org Message-ID: <07B6E006208B47C6A106782742C69AC9@gmail.com> In-Reply-To: <4D670255.2050305@gmail.com> References: <1FB7E130968747F68CFEA4269613C049@gmail.com> <4D670255.2050305@gmail.com> Subject: Re: Adding a new profile to the 'project' pom.xml to ease the import of the same project twice in Eclipse X-Mailer: sparrow 1.0.1 (build 589.15) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4d67688a_333ab105_554" Content-Transfer-Encoding: 8bit --4d67688a_333ab105_554 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Done! http://svn.apache.org/viewvc?rev=1074434&view=rev I noticed we have a few other profiles in the 'project' pom.xml, 'release' and 'full' profiles. Here they are: > > release > > > > > > > > org.apache.maven.plugins > maven-release-plugin > > false > deploy > -Prelease ${release.altDeploymentRepository} > > > > > > org.apache.maven.plugins > maven-source-plugin > > > > jar > > > > > > > > org.apache.maven.plugins > maven-gpg-plugin > true > > ${gpg.passphrase} > > > > > sign > > > > > > > > > org.apache.maven.plugins > maven-deploy-plugin > true > > > > true > > > > > > org.apache.maven.plugins > maven-javadoc-plugin > true > > 1.5 > > > > attach-javadocs > > jar > > > > > > > > > > full > > > > > > org.apache.maven.plugins > maven-source-plugin > > > > jar > > > > > > > > org.apache.maven.plugins > maven-javadoc-plugin > true > > 1.5 > > > > attach-javadocs > > jar > > > > > > > Does anyone know if these profiles are still used and not deprecated? I'm really wondering... Maybe we should remove if they are not used anymore. Should I schedule a new release of the 'project' pom.xml for later today? Regards, Pierre-Arnaud On vendredi 25 février 2011 at 02:13, Emmanuel Lecharny wrote: > On 2/23/11 1:54 PM, Pierre-Arnaud Marcelot wrote: > > Hi Dev, > > > > Eclipse is great but it has one major drawback for me (and others too I believe), that's it's inability to import the same project twice in the workspace. > > > > Now, by "the same project" I don't mean the exact same project (which would not make much sense) but I mean the same project but from various SVN branches (e.g. one version from trunk and another from a branch). > > > > Considering that we're now working in two different places ('trunks' and 'milestones' branches), I would rather have all the projects in a common workspace than having two workspaces (one for each branch). > > > > The basic problem is that 'mvn eclipse:eclipse' generates the same project names for both branches and that Eclipse only allows one project with a given name at a time in the workspace (and I can understand that). > > > > Recently, while looking at the Maven Eclipse plugin documentation I found out an interesting configuration option that we could leverage to solve this issue. > > > > I built a specific profile that will be activated if we specify a string we want to be appended to the name of the project when creating eclipse descriptors using 'mvn eclipse:eclipse -Dappend.to.project.name=[string]'. > > > > Here it is: > > > > > > > > append-to-project-name > > > > > > > > > append.to.project.name > > > > > > > > > > > > > > > > > > maven-eclipse-plugin > > > > > > [artifactId]-${append.to.project.name} > > > > > > > > > > > > > > > > > > > > > > > Using this profile it is now possible to import the same project twice (and more) by providing for example the name of the branch, which will be appended to the name of the project. > > > > I'd like to include this new profile in the 'project' pom to be able to reuse it across all our projects. > > > > Thoughts? > > > > Regards, > > Pierre-Arnaud > +1. Go for it ! > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com > --4d67688a_333ab105_554 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Done=21


I no= ticed we have a few other profiles in the 'project' pom.xml, 'release' an= d 'full' profiles.
Here they are:

    = <profile>

&nb= sp;     <id>release</id>

&nb= sp;     <build>

&nb= sp;       <= plugins>


      =     <=21-- We want do the rat check 

          <plugin>

            <groupId>o= rg.apache.rat</groupId>

            <artifactId&g= t;apache-rat-plugin</artifactId>

            <configuratio= n>

              <exclu= des> 

                &l= t;exclude>**/target/**/*</exclude>

                &l= t;exclude>**/cobertura.ser</exclude>

                &l= t;exclude>**/.classpath</exclude>

                &l= t;exclude>**/.project</exclude>

                &l= t;exclude>**/.settings/**/*</exclude>

                &l= t;exclude>**/*.iml</exclude>

                &l= t;exclude>**/*.ipr</exclude>

                &l= t;exclude>**/*.iws</exclude>

                &l= t;exclude>**/MANI=46EST.M=46</exclude>

              </excl= udes>

            </configurati= on>

            <executions&g= t;

              <execu= tion>

                &l= t;phase>verify</phase>

                &l= t;goals>

                &n= bsp; <goal>check</goal>

                &l= t;/goals>

              </exec= ution>

            </executions&= gt;

         </plugin>

         -->

   


&nb= sp;         <= plugin>

&nb= sp;           <groupId>org.apache.maven.plugins</groupId>

&nb= sp;           <artifactId>maven-release-plugin</a= rtifactId>

      =       <configuration>

      =         &= lt;useReleaseProfile>false</useReleaseProfile>

&nb= sp;             <goals>deploy</goals>

&nb= sp;             <arguments>-Prelease =24=7Brelease.= altDeploymentRepository=7D</arguments>

      =       </configuration>

&nb= sp;         <= /plugin>

          

      =     <=21-- We want a source jar -->

&nb= sp;         <= plugin>

&nb= sp;           <groupId>org.apache.maven.plugins</groupId>

&nb= sp;           <artifactId>maven-source-plugin</a= rtifactId>

&nb= sp;           <executions>

&nb= sp;             <execution>

&nb= sp;               <goals>

&nb= sp;                 <go= al>jar</g= oal>

&nb= sp;               </goals>

&nb= sp;             </execution>

&nb= sp;           </executions>

&nb= sp;         <= /plugin>


      =     <=21-- We want to sign the artifact, the POM, and= all attached artifacts -->

&nb= sp;         <= plugin>

&nb= sp;           <groupId>org.apache.maven.plugins</groupId>

&nb= sp;           <artifactId>maven-gpg-plugin</arti= factId>

      =       <inherited>true&l= t;/inherited>

      =       <configuration>

&nb= sp;             <passphrase>=24=7Bgpg.passphrase=7D= </passphrase>

      =       </configuration>

&nb= sp;           <executions>

&nb= sp;             <execution>

&nb= sp;               <goals>

&nb= sp;                 <go= al>sign</g= oal>

&nb= sp;               </goals>

&nb= sp;             </execution>

&nb= sp;           </executions>

&nb= sp;         <= /plugin>


      =     <=21-- In the future... -->

      =     <=21-- We want to deploy the artifact to a stagin= g location for perusal -->

&nb= sp;         <= plugin>

&nb= sp;           <groupId>org.apache.maven.plugins</groupId>

&nb= sp;           <artifactId>maven-deploy-plugin</a= rtifactId>

      =       <inherited>true&l= t;/inherited>

      =       <configuration>

      =         <=21-- uncomment to enable =22stage= d=22 release process -->

      =         <=21--<altDeploymentRepository&g= t;=24=7Bdeploy.altRepository=7D</altDeploymentRepository>-->

=

      =         &= lt;updateReleaseInfo>true</updateReleaseInfo>

      =       </configuration>

&nb= sp;         <= /plugin>


      =     <=21-- We want the JavaDoc JAR published with the= release -->

&nb= sp;         <= plugin>

&nb= sp;           <groupId>org.apache.maven.plugins</groupId>

&nb= sp;           <artifactId>maven-javadoc-plugin</a= rtifactId>

      =       <inherited>true&l= t;/inherited>

      =       <configuration>

&nb= sp;             <source>1.5</source>

      =       </configuration>

&nb= sp;           <executions>

&nb= sp;             <execution>

&nb= sp;               <id>attach-javadocs</id>

&nb= sp;               <goals>

&nb= sp;                 <go= al>jar</g= oal>

&nb= sp;               </goals>

&nb= sp;             </execution>

&nb= sp;           </executions>

&nb= sp;         <= /plugin>

&nb= sp;       </plugins>

&nb= sp;     </build>

    = </profile>


    = <profile>

&nb= sp;     <id>full</id>

&nb= sp;     <build>

&nb= sp;       <= plugins>


      =     <=21-- We want a source jar -->

&nb= sp;         <= plugin>

&nb= sp;           <groupId>org.apache.maven.plugins</groupId>

&nb= sp;           <artifactId>maven-source-plugin</a= rtifactId>

&nb= sp;           <executions>

&nb= sp;             <execution>

&nb= sp;               <goals>

&nb= sp;                 <go= al>jar</g= oal>

&nb= sp;               </goals>

&nb= sp;             </execution>

&nb= sp;           </executions>

&nb= sp;         <= /plugin>


      =     <=21-- We want the JavaDoc JAR published with the= release -->

&nb= sp;         <= plugin>

&nb= sp;           <groupId>org.apache.maven.plugins</groupId>

&nb= sp;           <artifactId>maven-javadoc-plugin</a= rtifactId>

      =       <inherited>true&l= t;/inherited>

      =       <configuration>

&nb= sp;             <source>1.5</source>

      =       </configuration>

&nb= sp;           <executions>

&nb= sp;             <execution>

&nb= sp;               <id>attach-javadocs</id>

&nb= sp;               <goals>

&nb= sp;                 <go= al>jar</g= oal>

&nb= sp;               </goals>

&nb= sp;             </execution>

&nb= sp;           </executions>

&nb= sp;         <= /plugin>

&nb= sp;       </plugins>

&nb= sp;     </build>

    = </profile>


<= /span>
Does anyone know if these profiles are still = used and not deprecated=3F
I'm really wondering...
Ma= ybe we should remove if they are not used anymore.

Should I schedule a new release of the 'project' pom.xml for later tod= ay=3F

Regards,
Pierre-Arnaud

= =20

On vendredi 25 f=C3=A9= vrier 2011 at 02:13, Emmanuel Lecharny wrote:

On 2/23/11 1:54 PM, Pierre-Arnaud Mar= celot wrote:
Hi Dev,

Eclipse= is great but it has one major drawback for me (and others too I believe)= , that's it's inability to import the same project twice in the workspace= .

Now, by =22the same project=22 I don't mean the exact same proje= ct (which would not make much sense) but I mean the same project but from= various SVN branches (e.g. one version from trunk and another from a bra= nch).

Considering that we're now working in two different places (= 'trunks' and 'milestones' branches), I would rather have all the projects= in a common workspace than having two workspaces (one for each branch).<= br>
The basic problem is that 'mvn eclipse:eclipse' generates the same= project names for both branches and that Eclipse only allows one project= with a given name at a time in the workspace (and I can understand that)= .

Recently, while looking at the Maven Eclipse plugin documentatio= n I found out an interesting configuration option that we could leverage = to solve this issue.

I built a specific profile that will be activ= ated if we specify a string we want to be appended to the name of the pro= ject when creating eclipse descriptors using 'mvn eclipse:eclipse -Dappend.to.project.name=3D=5B= string=5D'.

Here it is:

= <profile>
<id>append-to-project-name</id>
<act= ivation>
<property>
<name>append.to.project.name</name>
</prope= rty>
</activation>
<build>
<plugins>
<= ;plugin>
<artifactId>maven-eclipse-plugin</artifactId><= br><configuration>
<projectNameTemplate>=5BartifactId=5D-=24= =7Bappend.to.project.name=7D</projectNameTemplate>
</configuration>
</plugi= n>
</plugins>
</build>
</profile>
=



Using this profile it is now possible to import = the same project twice (and more) by providing for example the name of th= e branch, which will be appended to the name of the project.

I'd l= ike to include this new profile in the 'project' pom to be able to reuse = it across all our projects.

Thoughts=3F

Regards,
Pierre-= Arnaud
+1. Go for it =21

--
Regards,
= Cordialement,
Emmanuel L=C3=A9charny
www.iktek.com
=20 =20 =20 =20
=20

--4d67688a_333ab105_554--