[ 
https://issues.apache.org/jira/browse/KARAF-3811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14619370#comment-14619370
 ] 

ASF GitHub Bot commented on KARAF-3811:
---------------------------------------

GitHub user jonathanbyrne opened a pull request:

    https://github.com/apache/karaf/pull/71

    [KARAF-3811] Exception thrown when including the feature "feature" in Maven 
karaf:assembly goal

    The JarFile object was not being closed.  For some reason, this only seems 
to have caused a problem on the Windows HotSpot JVM.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SourceScope/karaf master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/71.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #71
    
----
commit b059fd14acbc17923b2446aaba8c377473355d6d
Author: jonathanbyrne <jonathan.by...@yahoo.com>
Date:   2015-07-08T20:33:58Z

    [KARAF-3811] Exception thrown when including the feature "feature" in Maven 
karaf:assembly goal

----


> Exception thrown when including the feature "feature" in Maven karaf:assembly 
> goal
> ----------------------------------------------------------------------------------
>
>                 Key: KARAF-3811
>                 URL: https://issues.apache.org/jira/browse/KARAF-3811
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-profile, karaf-tooling
>    Affects Versions: 4.0.0
>            Reporter: Jonathan Byrne
>              Labels: maven
>         Attachments: KARAF-3811.patch, pom.xml
>
>
> The exception below is thrown when you include the feature named "feature" in 
> the Maven configuration. Attached is a POM file that replicates the error. 
> Suppressed: java.nio.file.FileSystemException: 
> C:\dev\code\karaf-test\target\assembly\system\org\apache\karaf\features\org.apache.karaf.features.core\4.0.0\org.apache.karaf.features.core-4.0.0.jar:
>  The process cannot access the file because it is being used by another 
> process.
>         at 
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
>         at 
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
>         at 
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
>         at sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:165)
>         at 
> sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:278)
>         at java.nio.file.Files.copy(Files.java:1274)
>         at 
> org.apache.karaf.profile.assembly.Builder$3.downloaded(Builder.java:969)
>         at 
> org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:133)
>         at 
> org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:127)
>         at 
> org.apache.karaf.features.internal.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:344)
>         at 
> org.apache.karaf.features.internal.download.impl.DefaultFuture.addListener(DefaultFuture.java:293)
>         at 
> org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.download(MavenDownloadManager.java:127)
>         at 
> org.apache.karaf.profile.assembly.Builder.installArtifact(Builder.java:959)
>         at 
> org.apache.karaf.profile.assembly.Builder.bootStage(Builder.java:771)
>         ... 26 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to