You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2009/01/29 14:10:59 UTC

[jira] Assigned: (FELIX-677) Parser throws error when DynamicImport-Package contains attributes

     [ https://issues.apache.org/jira/browse/FELIX-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch reassigned FELIX-677:
--------------------------------------

    Assignee: Stuart McCulloch

> Parser throws error when DynamicImport-Package contains attributes
> ------------------------------------------------------------------
>
>                 Key: FELIX-677
>                 URL: https://issues.apache.org/jira/browse/FELIX-677
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-1.4.1
>         Environment: NA
>            Reporter: Sahoo
>            Assignee: Stuart McCulloch
>             Fix For: maven-bundle-plugin-1.6.0
>
>
> If I try to specify a matching attribute in DynamicImport-Package as shown below, I get a build error.
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <version>RELEASE</version>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <instructions>
>                         <Private-Package>bar</Private-Package>
>                         <Bundle-Activator>bar.MyActivator</Bundle-Activator>
>                         <DynamicImport-Package>* ; password=foo</DynamicImport-Package>
>                     </instructions>
>                 </configuration>
>             </plugin>
> The error is given below:
> [INFO] [bundle:bundle]
> [ERROR] Error building bundle sahoo.dynamic-import-attr:dynamic-importer:bundle:1.0-SNAPSHOT : Invalid value for DynamicImport-Package, * ; password=foo does not match ((\p{Alnum}|_)+(\.(\p{Alnum}|_)+)*(\.\*)?)|\*
> [ERROR] Error(s) found in bundle configuration
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error(s) found in bundle configuration
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error(s) found in bundle configuration
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error(s) found in bundle configuration
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:341)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:227)
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:218)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         ... 16 more
> Caused by: org.apache.maven.plugin.MojoFailureException: Error(s) found in bundle configuration
>         at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:296)
>         ... 20 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.