You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Shawn McKinney <mc...@att.net> on 2019/12/11 01:18:19 UTC

Problems releasing fortress core, parent pom issue?

Hi,

On this step of the release process for the core:

>mvn -Papache-release release:prepare 


And can’t get past the error (listed below) which points to this location in the project’s pom file:
  <parent>
    <groupId>org.apache.directory.project</groupId>
    <artifactId>project</artifactId>
    <version>44</version>
    <relativePath />
  </parent>


Originally, <version>35</version> was in place, later, I changed to 44, after looking at what the ldap api project uses.  No change either way.

So, right now I’m stuck and wanted to check if there’s something obvious that I’m missing.


Error trace:

[WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.                                                                                                    
[INFO] [INFO] Scanning for projects...                                                                                                                                                                                          
[INFO] [ERROR] [ERROR] Some problems were encountered while processing the POMs:                                                                                                                                                
[INFO] [ERROR] Malformed POM /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml: Unknown attribute 'xmlns' for tag 'parent' (position: START_TAG seen ...delVersion>\n\n  <parent xmlns="https://maven.apache.org/POM/4.
0.0">... @23:54)  @ /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml, line 23, column 54                                                                                                                              
[INFO]  @                                                                                                                                                                                                                        
[INFO] [ERROR] The build could not read 1 project -> [Help 1]                                                                                                                                                                    
[INFO] [ERROR]                                                                                                                                                                                                                  
[INFO] [ERROR]   The project org.apache.directory.fortress:fortress-core:2.0.4 (/home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml) has 1 error                                                                        
[INFO] [ERROR]     Malformed POM /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml: Unknown attribute 'xmlns' for tag 'parent' (position: START_TAG seen ...delVersion>\n\n  <parent xmlns="https://maven.apache.org/PO
M/4.0.0">... @23:54)  @ /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml, line 23, column 54 -> [Help 2]                                                                                                              
[INFO] [ERROR]                                                                                                                                                                                                                  
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.                                                                                                                                      
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.                                                                                                                                                   
[INFO] [ERROR]                                                                                                                                                                                                                  
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:                                                                                                                
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException                                                                                                                               
[INFO] [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException                                                                                                                                     
[INFO] ------------------------------------------------------------------------                                                                                                                                                 
[INFO] BUILD FAILURE                                                                                                                                                                                                            
[INFO] ------------------------------------------------------------------------                                                                                                                                                 
[INFO] Total time:  6.278 s                                                                                                                                                                                                      
[INFO] Finished at: 2019-12-10T19:07:28-06:00                                                                                                                                                                                    
[INFO] ------------------------------------------------------------------------                                                                                                                                                 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project fortress-core: Maven execution failed, exit code: '1' -> [Help 1]                                           
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project fortress-core: Maven execution failed, exit code: '1'        
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)                                                                                                                                          
    at org.apache.maven.li

***


Running this mvn/java:

Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 1.8.0_222, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-64-generic", arch: "amd64", family: “unix”

Thanks,

—
Shawn



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: Problems releasing fortress core, parent pom issue?

Posted by Shawn McKinney <mc...@att.net>.
Failed to mention before, the previous operation updates the pom.mxl by inserting xmas tags:

*** Begin pom.xml excerpt at line29:

<groupId xmlns="https://maven.apache.org/POM/4.0.0">org.apache.directory.fortress</groupId>
  <artifactId xmlns="https://maven.apache.org/POM/4.0.0">fortress-core</artifactId>
  <packaging xmlns="https://maven.apache.org/POM/4.0.0">jar</packaging>
  <name xmlns="https://maven.apache.org/POM/4.0.0">Apache Fortress Core</name>
  <version xmlns="https://maven.apache.org/POM/4.0.0">2.0.4</version>
  <inceptionYear xmlns="https://maven.apache.org/POM/4.0.0">2007</inceptionYear>
  <description xmlns="https://maven.apache.org/POM/4.0.0">
    Apache Fortress is a standards-based Access Management SDK that implements ANSI RBAC INCITS 359.
  </description>
  <url xmlns="https://maven.apache.org/POM/4.0.0">https://directory.apache.org/fortress/</url>

  <licenses xmlns="https://maven.apache.org/POM/4.0.0">
    <license>
      <name>Apache License 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
    </license>
  </licenses>

  <scm xmlns="https://maven.apache.org/POM/4.0.0">
    <connection>scm:git:https://gitbox.apache.org/repos/asf/directory-fortress-core.git</connection>
    <developerConnection>scm:git: https://gitbox.apache.org/repos/asf/directory-fortress-core.git</developerConnection>
    <url>https://github.com/apache/directory-fortress-core/tree/{project.scm.tag}</url>
    <tag>2.0.4</tag>
  </scm

—
Shawn

> On Dec 10, 2019, at 7:18 PM, Shawn McKinney <mc...@att.net> wrote:
> 
> Hi,
> 
> On this step of the release process for the core:
> 
>> mvn -Papache-release release:prepare 
> 
> 
> And can’t get past the error (listed below) which points to this location in the project’s pom file:
>  <parent>
>    <groupId>org.apache.directory.project</groupId>
>    <artifactId>project</artifactId>
>    <version>44</version>
>    <relativePath />
>  </parent>
> 
> 
> Originally, <version>35</version> was in place, later, I changed to 44, after looking at what the ldap api project uses.  No change either way.
> 
> So, right now I’m stuck and wanted to check if there’s something obvious that I’m missing.
> 
> 
> Error trace:
> 
> [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.                                                                                                    
> [INFO] [INFO] Scanning for projects...                                                                                                                                                                                          
> [INFO] [ERROR] [ERROR] Some problems were encountered while processing the POMs:                                                                                                                                                
> [INFO] [ERROR] Malformed POM /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml: Unknown attribute 'xmlns' for tag 'parent' (position: START_TAG seen ...delVersion>\n\n  <parent xmlns="https://maven.apache.org/POM/4.
> 0.0">... @23:54)  @ /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml, line 23, column 54                                                                                                                              
> [INFO]  @                                                                                                                                                                                                                        
> [INFO] [ERROR] The build could not read 1 project -> [Help 1]                                                                                                                                                                    
> [INFO] [ERROR]                                                                                                                                                                                                                  
> [INFO] [ERROR]   The project org.apache.directory.fortress:fortress-core:2.0.4 (/home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml) has 1 error                                                                        
> [INFO] [ERROR]     Malformed POM /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml: Unknown attribute 'xmlns' for tag 'parent' (position: START_TAG seen ...delVersion>\n\n  <parent xmlns="https://maven.apache.org/PO
> M/4.0.0">... @23:54)  @ /home/smckinn/Release/2.0.4/directory-fortress-core/pom.xml, line 23, column 54 -> [Help 2]                                                                                                              
> [INFO] [ERROR]                                                                                                                                                                                                                  
> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.                                                                                                                                      
> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.                                                                                                                                                   
> [INFO] [ERROR]                                                                                                                                                                                                                  
> [INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:                                                                                                                
> [INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException                                                                                                                               
> [INFO] [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException                                                                                                                                     
> [INFO] ------------------------------------------------------------------------                                                                                                                                                 
> [INFO] BUILD FAILURE                                                                                                                                                                                                            
> [INFO] ------------------------------------------------------------------------                                                                                                                                                 
> [INFO] Total time:  6.278 s                                                                                                                                                                                                      
> [INFO] Finished at: 2019-12-10T19:07:28-06:00                                                                                                                                                                                    
> [INFO] ------------------------------------------------------------------------                                                                                                                                                 
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project fortress-core: Maven execution failed, exit code: '1' -> [Help 1]                                           
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project fortress-core: Maven execution failed, exit code: '1'        
>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)                                                                                                                                          
>    at org.apache.maven.li
> 
> ***
> 
> 
> Running this mvn/java:
> 
> Apache Maven 3.6.0
> Maven home: /usr/share/maven
> Java version: 1.8.0_222, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.15.0-64-generic", arch: "amd64", family: “unix”
> 
> Thanks,
> 
> —
> Shawn
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: Problems releasing fortress core, parent pom issue?

Posted by Shawn McKinney <mc...@att.net>.
> On Dec 10, 2019, at 8:02 PM, Emmanuel Lécharny <el...@gmail.com> wrote:
> 
> I fixed the other pom.xml.
> 
> You should be good to go !

Yes, that was indeed the problem.  Relieved that you caught it so quickly!  Thanks again.

—
Shawn
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: Problems releasing fortress core, parent pom issue?

Posted by Emmanuel Lécharny <el...@gmail.com>.
I fixed the other pom.xml.


You should be good to go !

On 11/12/2019 03:00, Shawn McKinney wrote:
>
>> On Dec 10, 2019, at 7:51 PM, Emmanuel Lécharny <el...@gmail.com> wrote:
>>
>> Hi Shawn,
>>
>> there is an issue with some changes done to have all the references to Apache using https instead of http. Typically, the following line won't work :
>>
>> <project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
>>
>> you should use
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>>
>> I've got it fixed for core, you should probably check the other projects.
> That did the trick… thanks Emmanuel!!
>
> —
> Shawn

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org