Maven Ear Plugin
  1. Maven Ear Plugin
  2. MEAR-114

Properties in <executions> task not taken into consideration when defining an execution id for an auto generating application.xml

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows XP, M2Eclipse, Eclipse Galileo
    • Number of attachments :
      0

      Description

       
      <test> 
       					<execution>
      						<configuration>
      							<modules>
      								<webModule>
      									<groupId>com.logic.silogisme.pidi</groupId>
      									<artifactId>TransfertOT-WAR</artifactId>
      									<contextRoot>my-custom-context-root</contextRoot>
      								</webModule>
      							</modules>
      						</configuration>
      					</execution>
      </test> 
      

      But this doesn't work (it produce an application.xml with default contextRoot)

      <execution>
      					 <id>execution-1</id>
      						<configuration>
      							<modules>
      								<webModule>
      									<groupId>com.logic.silogisme.pidi</groupId>
      									<artifactId>TransfertOT-WAR</artifactId>
      									<contextRoot>my-custom-context-root</contextRoot>
      								</webModule>
      							</modules>
      						</configuration>
      					</execution>
      

      This is problematic if we want to use multiple executions .

        Activity

        Hide
        Stéphane Nicoll added a comment -

        uh? What is this test tag?

        Attach a test project that reproduces your problem.

        Show
        Stéphane Nicoll added a comment - uh? What is this test tag? Attach a test project that reproduces your problem.
        Hide
        Anthony BOUQUET added a comment -

        Sorry for the test tag. It souldn't be there ! I didn't know how to remove it after having posted this message.

        I will build the project again asap.

        Anyway it's only a sample with a war project wich is used to build the ear project.
        If we try to run multiple executions (I use this for multiples customers), the defined context root fails and it take only the default contextRoot wich is in fact the artefactID of the war project.

        Show
        Anthony BOUQUET added a comment - Sorry for the test tag. It souldn't be there ! I didn't know how to remove it after having posted this message. I will build the project again asap. Anyway it's only a sample with a war project wich is used to build the ear project. If we try to run multiple executions (I use this for multiples customers), the defined context root fails and it take only the default contextRoot wich is in fact the artefactID of the war project.
        Hide
        Stéphane Nicoll added a comment -

        Invoke mvn help:effective-pom -PyourProfile to validate the configuration. If it's not taken into account, it's either a typo in your pom or a bug in Maven itself.

        Show
        Stéphane Nicoll added a comment - Invoke mvn help:effective-pom -PyourProfile to validate the configuration. If it's not taken into account, it's either a typo in your pom or a bug in Maven itself.

          People

          • Assignee:
            Stéphane Nicoll
            Reporter:
            Anthony BOUQUET
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: