[jira] Created: (FELIX-2865) bundleall goal does not honour parameter ignoreMissingArtifacts

2011-03-01 Thread Odd Vinje (JIRA)
bundleall goal does not honour parameter ignoreMissingArtifacts
---

 Key: FELIX-2865
 URL: https://issues.apache.org/jira/browse/FELIX-2865
 Project: Felix
  Issue Type: Bug
  Components: Maven Bundle Plugin
Affects Versions: maven-bundle-plugin-2.3.4
Reporter: Odd Vinje
 Fix For: maven-bundle-plugin-2.3.4


The code in org.apache.felix.bundleplugin.BundleAllPlugin: 

  /**
 * Ignore missing artifacts that are not required by current project but 
are required by the
 * transitive dependencies.
 * 
 * @parameter expression=${ignoreMissingArtifacts}
 */
private boolean ignoreMissingArtifacts;


should have been: 

@parameter expression=${ignoreMissingArtifacts}


So Maven can pick it up with the -D flag: 

mvn maven-bundle-plugin bundleall -DignoreMissingArtifacts=true



-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (FELIX-2856) Goal bundleall breaks for optional dependencies with a scope.

2011-02-23 Thread Odd Vinje (JIRA)
Goal bundleall breaks for optional dependencies with a scope. 
--

 Key: FELIX-2856
 URL: https://issues.apache.org/jira/browse/FELIX-2856
 Project: Felix
  Issue Type: Improvement
  Components: Maven Bundle Plugin
Affects Versions: maven-bundle-plugin-2.3.4
Reporter: Odd Vinje


A lot of code changes have been commited to 
bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java, but 
relevant changes have not been refelected in BundleAllPlugin.java. Maybe the 
two classes need delegation/refactoring. 

Example: 
Goal bundleall now breaks for optional dependencies with a scope.  This is 
handled in bundle goal: 

if( artifact.isOptional() ) {
String id = artifact.toString();
if( artifact.getScope()!=null ) {
// strip the scope...
id = id.replaceFirst(":[^:]*$", "");
}
optionalArtifactIds.add(id);
}

but not in bundleall...

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira