Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7837

Maven blows up on nested <project> pom attributes

    XMLWordPrintableJSON

Details

    Description

      • This started happening in 4.0.0-alpha-7

      When pom contains nested <project>, maven refuses to build:

      % mvn clean
      [INFO] Scanning for projects...
      [ERROR] Some problems were encountered while processing the POMs
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]   
      [ERROR]   The project (/Users/lprimak/Documents/dev/flowlogix/pom.xml) has 1 error
      [ERROR]     Unrecognised tag: 'project' (position: START_TAG @1:205)  @ line 1, column 205 -> [Help 2]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
      [ERROR] Re-run Maven using the '-X' switch to enable verbose output
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles: 

       

      Example:

      ...
      <plugin>
          <groupId>org.commonjava.maven.plugins</groupId>
          <artifactId>directory-maven-plugin</artifactId>
          <version>1.0</version>
          <executions>
              <execution>
                  <id>directories</id>
                  <goals>
                      <goal>directory-of</goal>
                  </goals>
                  <phase>validate</phase>
                  <configuration>
                      <property>flowlogix.basedir</property>
                      <project>
                          <groupId>com.flowlogix</groupId>
                          <artifactId>flowlogix</artifactId>
                      </project>
                  </configuration>
              </execution>
          </executions>
      </plugin>
      ...
       

      Reproducer: https://github.com/flowlogix/flowlogix

      Thank you!

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              lprimak Lenny Primak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: