Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5830

Failed to execute goal com.github.veithen.phos:enforcer-maven-plugin:0.1.0:enforce (default) on project axiom-impl:

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.7.4
    • None
    • Integration
    • None
    • JDK 1.8
      AXIOM 1.3.0
      Axis 1.8

    Description

      [ERROR] Failed to execute goal com.github.veithen.phos:enforcer-maven-plugin:0.1.0:enforce (default) on project axiom-impl: Package cycle detected. Classes involved:
      [ERROR] org.apache.axiom.om.impl.intf.AxiomAttribute -> org.apache.axiom.core.CoreNSAwareAttribute

      Here is AxiomAttribute.java:
      /*

      • Licensed to the Apache Software Foundation (ASF) under one
      • or more contributor license agreements. See the NOTICE file
      • distributed with this work for additional information
      • regarding copyright ownership. The ASF licenses this file
      • to you under the Apache License, Version 2.0 (the
      • "License"); you may not use this file except in compliance
      • with the License. You may obtain a copy of the License at
        *
      • http://www.apache.org/licenses/LICENSE-2.0
        *
      • Unless required by applicable law or agreed to in writing,
      • software distributed under the License is distributed on an
      • "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
      • KIND, either express or implied. See the License for the
      • specific language governing permissions and limitations
      • under the License.
        */
        package org.apache.axiom.om.impl.mixin;

      import org.apache.axiom.core.CoreModelException;
      import org.apache.axiom.om.OMElement;
      import org.apache.axiom.om.OMNamespace;
      import org.apache.axiom.om.impl.common.AxiomExceptionTranslator;
      import org.apache.axiom.om.impl.common.AxiomSemantics;
      import org.apache.axiom.om.impl.common.NSUtil;
      import org.apache.axiom.om.impl.intf.AxiomAttribute;
      import org.apache.axiom.om.impl.intf.AxiomElement;

      public class AxiomAttributeSupport {
      public AxiomAttributeSupport() {}
      public AxiomElement omElement = null;
      public AxiomElement coreGetOwnerElement()

      { return this.omElement; }

      public AxiomElement getOwner()

      { return (AxiomElement)coreGetOwnerElement(); }

      public final void beforeSetLocalName()

      { if(this.localName!=null) this.localName="localName"; }

      public OMNamespace ns=null;
      public String localName="localName";
      public boolean decl=true;
      public void internalSetNamespace(OMNamespace ns_param)

      { ns=org.apache.axiom.om.impl.common.NSUtil.handleNamespace( (AxiomElement)getOwner(), (OMNamespace)ns_param, (boolean)true, (boolean)decl); }

      public final void setNamespace(org.apache.axiom.om.OMNamespace namespace, boolean decl)

      { this.ns=namespace; internalSetNamespace(org.apache.axiom.om.impl.common.NSUtil.handleNamespace((AxiomElement)getOwner(), namespace, true, decl)); }

      public final void setOMNamespace(OMNamespace omNamespace)

      { this.ns=omNamespace; internalSetNamespace(omNamespace); }

      public Object coreCharacterData = null;
      public String coreGetCharacterData()

      { return this.coreCharacterData.toString(); }

      public final String getAttributeValue()

      { return coreGetCharacterData(); }

      public String value="value";
      public org.apache.axiom.om.impl.common.AxiomSemantics axiomSemantics =null;
      public void coreSetCharacterData(String s, org.apache.axiom.om.impl.common.AxiomSemantics axiomSemantics)

      { this.value =s; this.axiomSemantics = axiomSemantics; }

      public final void setAttributeValue(String value)

      { coreSetCharacterData(value, AxiomSemantics.INSTANCE); }

      public String attributeType="ELEMENT";
      public String coreGetType()

      { return this.attributeType; }

      public String coreSetType(String s)

      { this.attributeType = s; return s; }

      public final String getAttributeType()

      { return coreGetType(); }

      public final void setAttributeType(String type)

      { coreSetType(type); }

      public final void build()

      { // TODO }

      }

      //where does org.apache.axiom.om.impl.intf.AxiomAttribute contain org.apache.axiom.core.CoreNSAwareAttribute?

      until this plugin is fixed I will be disabling this plugin and using maven-enforcer-plugin instead here is the plugin link:

      http://maven.apache.org/enforcer/maven-enforcer-plugin/

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgainty@hotmail.com Martin Gainty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified