On Tue, Sep 16, 2008 at 9:44 PM, Sahoo <[EMAIL PROTECTED]> wrote:
> The instructions are:
>
>           <Export-Package>javax.security.jacc.*;
> version=1.2</Export-Package>
>
> <_include>-/space/ss141213/WS/gf/v3.trunk.new/security/javax.security.jacc/osgi.bundle</_include>
>
> There is no file called
> /space/ss141213/WS/gf/v3.trunk.new/security/javax.security.jacc/osgi.bundle.
>
> Since the pom inherits from another, instead of sending multiple pom.xmls, I
> am attaching the effective pom.xml generated by mvn help:effective-pom.

Just a shot in the dark, but if it is being caused by the bundle
plugin / bnd - the how about adding an  <excludeDependencies> element
to see if that resolves it. We do the same thing in Commons[1] and I
think that config was left over from when we using packaging "bundle"
rather than just the manifest goal - but haven't seen the problems
you're getting.

    <configuration>
          <excludeDependencies>true</excludeDependencies>
          <manifestLocation>target/osgi</manifestLocation>
          <instructions>
            ...
          </instructions>
        </configuration>

Niall

[1] 
http://svn.apache.org/repos/asf/commons/proper/commons-parent/tags/commons-parent-9/pom.xml

> Thanks,
> Sahoo
>
> Peter Kriens wrote:
>>
>> So where are the instructions? Your POM does not contain ANY bnd
>> instruction and I can't see anything in the log?
>>
>> Kind regards,
>>
>>    Peter Kriens
>>
>>
>> On 16 sep 2008, at 19:34, Sahoo wrote:
>>
>>> I do use bnd plugin. I explicitly configure maven-bundle-plugin's
>>> manifest in a parent POM to run as part of process-classes phase. Then I use
>>> maven-jar-plugin to  prepare the archive. You can see that in the attached
>>> log file.
>>>
>>> Thanks,
>>> Sahoo
>>>
>>> Peter Kriens wrote:
>>>>
>>>> You do not seem to be using the bnd plugin as far as I can see? The
>>>> packaging is jar, which means you just get what is in your project as far 
>>>> as
>>>> I know.
>>>>
>>>> Kind regards,
>>>>
>>>>   Peter Kriens
>>>>
>>>> On 16 sep 2008, at 17:25, Sahoo wrote:
>>>>
>>>>> I had sent this email to maven forum, but I think I may be able to get
>>>>> some tips from felix forum as well because I am using 
>>>>> maven-bundle-plugin. I
>>>>> must say I am surprised as to how this is happening when I am using 
>>>>> manifest
>>>>> goal of bundle plugin. Any help is much appreciated.
>>>>>
>>>>> Thanks,
>>>>> Sahoo
>>>>>
>>>>> From: Sahoo <[EMAIL PROTECTED]>
>>>>> Date: 16 september 2008 09:10:54 CEST
>>>>> To: Maven Users List <[EMAIL PROTECTED]>
>>>>> Subject: jar artifact contains more classes than desired.
>>>>> Reply-To: Maven Users List <[EMAIL PROTECTED]>
>>>>>
>>>>>
>>>>> We are experiencing an issue in our build system and it is not
>>>>> happening for every one. I used to think it only happens for mvn 2.0.8, 
>>>>> but
>>>>> just now a developer told me that they see it mvn 2.0.7 as well. For
>>>>> whatever reason, sometimes, a jar artifact is containing not only the
>>>>> classes compiled from the sources that are part of that artifact, it also
>>>>> contains dependent .class files. It is a very serious problem for us. 
>>>>> Given
>>>>> below is the artifact that's causing trouble.
>>>>> <project ...>
>>>>>  <modelVersion>4.0.0</modelVersion>
>>>>>  <parent>
>>>>>     <groupId>org.glassfish</groupId>
>>>>>     <artifactId>api-pom</artifactId>
>>>>>     <version>10.0-SNAPSHOT</version>
>>>>>  </parent>
>>>>>  <artifactId>javax.security.jacc</artifactId>
>>>>>  <packaging>jar</packaging>
>>>>>  <name>javax.security.jacc API v.1.2</name>
>>>>>  <dependencies>
>>>>>     <dependency>
>>>>>         <groupId>org.glassfish</groupId>
>>>>>         <artifactId>javax.servlet</artifactId>
>>>>>         <version>${project.version}</version>
>>>>>     </dependency>
>>>>> </dependencies>
>>>>> </project>
>>>>>
>>>>> As you can see, it depends on
>>>>> org.glassfish:javax.servlet:10.0-SNAPSHOT, which is a jar type artifact 
>>>>> and
>>>>> contains javax.servlet classes. I can assure you that in the source tree 
>>>>> of
>>>>> javax.security.jacc module, there is no javax.servlet class. Yet,
>>>>> javax.security.jacc-10.0-SNAPSHOT.jar contains a bunch of javax.servlet
>>>>> classes. I should also state that it only happens when both javax.servlet
>>>>> module and javax.security.jacc module are part of same maven reactor. The
>>>>> build log produced with -X option is quite large, so I am supplying log 
>>>>> for
>>>>> jacc module portion only. Pl. see the attachment called 
>>>>> build.all.jacc.log.
>>>>> I will be happy to supply more of it if need be. I should say, I don't
>>>>> understand something from the log file. I am highlighting it here with 
>>>>> bold
>>>>> letters:
>>>>>
>>>>> [INFO] Reactor build order:
>>>>> ...
>>>>> [INFO]   javax.servlet API v.3.0
>>>>> [INFO]   javax.security.jacc API v.1.2
>>>>> ...
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Building javax.servlet API v.3.0
>>>>> [INFO]    task-segment: [clean, install]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> ...
>>>>> [INFO] Installing
>>>>> /export/v3/v3/web/javax.servlet/target/javax.servlet-10.0-SNAPSHOT-sources.jar
>>>>> to
>>>>> /home/mvatkina/.m2/repository/org/glassfish/javax.servlet/10.0-SNAPSHOT/javax.servlet-10.0-SNAPSHOT-sources.jar
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Building javax.security.jacc API v.1.2
>>>>> [INFO]    task-segment: [clean, install]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> ...
>>>>> [INFO] [clean:clean]
>>>>> [INFO] Deleting directory
>>>>> /export/v3/v3/security/javax.security.jacc/target
>>>>> [DEBUG] org.glassfish:javax.security.jacc:jar:10.0-SNAPSHOT (selected
>>>>> for null)
>>>>> [DEBUG]   junit:junit:jar:4.3.1:test (selected for test)
>>>>> [DEBUG]   active project artifact:
>>>>> *        artifact =
>>>>> org.glassfish:javax.servlet:jar:10.0-SNAPSHOT:compile;
>>>>>     project: MavenProject: org.glassfish:javax.servlet:10.0-SNAPSHOT @
>>>>> /export/v3/v3/web/javax.servlet/pom.xml (selected for compile)
>>>>> *
>>>>> What does this active project artifact mean? By looking at the attached
>>>>> log file, do you have any suggestion for me?
>>>>>
>>>>> Thanks,
>>>>> Sahoo
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to