code: public static String extractArchitectureFromArtifact( Artifact artifact, final String defaultArchitecture )
      {
          String classifier = artifact.getClassifier();
          if ( classifier != null )
          {
              //
              // We loop backwards to catch the case where the classifier is
              // potentially armeabi-v7a - this collides with armeabi if looping
              // through this loop in the other direction
              //
  
              for ( int i = AndroidNdk.NDK_ARCHITECTURES.length - 1; i >= 0; i-- )
              {
                  String ndkArchitecture = AndroidNdk.NDK_ARCHITECTURES[i];
                  if ( classifier.startsWith( ndkArchitecture ) )
                  {
                      return ndkArchitecture;
                  }
              }
  
          }
          // Default case is to return the default architecture
          return defaultArchitecture;
      }
docs: Extracts, if embedded correctly, the artifacts architecture from its classifier.  The format of the
  classifier, if including the architecture is &lt;architecture&gt;-&lt;classifier&gt;.  If no
  architecture is embedded in the classifier, 'armeabi' will be returned.
  
  
  @param artifact The artifact to retrieve the classifier from.
  @param defaultArchitecture The architecture to return if can't be resolved from the classifier
  @return The retrieved architecture, or <code>defaulArchitecture</code> if not resolveable