[ 
http://jira.codehaus.org/browse/MNBMODULE-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243971#action_243971
 ] 

Sergey Ushakov commented on MNBMODULE-127:
------------------------------------------

$ mvn clean compile -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   mavenPlatformApp - NetBeans Platform Application
[INFO]   mavenPlatformApp - Platform application branding resources
[INFO]   simplemodule
[INFO]   mavenPlatformModuleA NetBeans Module
[INFO]   mavenPlatformApp - NetBeans Platform based application
[INFO] ------------------------------------------------------------------------
[INFO] Building mavenPlatformApp - NetBeans Platform Application
[INFO]    task-segment: [clean, compile]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building mavenPlatformApp - Platform application branding resources
[INFO]    task-segment: [clean, compile]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/branding/target
[INFO] [resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO] [nbm:branding {execution: branding}]
[INFO] Building jar: 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/branding/target/nbm/netbeans/foobar/core/locale/core_foo.jar
[INFO] Building jar: 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/branding/target/nbm/netbeans/foobar/modules/locale/org-netbeans-core-windows_foo.jar
[INFO] Building jar: 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/branding/target/nbm/netbeans/foobar/modules/locale/org-netbeans-core_foo.jar
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] ------------------------------------------------------------------------
[INFO] Building simplemodule
[INFO]    task-segment: [clean, compile]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/simplemodule/target
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/simplemodule/src/main/resources
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/simplemodule/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] Building mavenPlatformModuleA NetBeans Module
[INFO]    task-segment: [clean, compile]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/mavenPlatformModuleA/target
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] Building mavenPlatformApp - NetBeans Platform based application
[INFO]    task-segment: [clean, compile]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/application/target
[INFO] [nbm:cluster-app]
[INFO] Processing cluster 'platform'
[INFO] Processing cluster 'foobar'
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Could not open 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/mavenPlatformModuleA/target/classes: 
error in opening zip file

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Could not open 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/mavenPlatformModuleA/target/classes: 
error in opening zip file
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
        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:597)
        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: Could not open 
/tmp/nbm_plugin_bugreport/mavenPlatformApp/mavenPlatformModuleA/target/classes: 
error in opening zip file
        at 
org.codehaus.mojo.nbm.ExamineManifest.checkFile(ExamineManifest.java:85)
        at 
org.codehaus.mojo.nbm.AbstractNbmMojo.turnJarToNbmFile(AbstractNbmMojo.java:413)
        at 
org.codehaus.mojo.nbm.CreateClusterAppMojo.execute(CreateClusterAppMojo.java:175)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        ... 16 more
Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:114)
        at java.util.jar.JarFile.<init>(JarFile.java:135)
        at java.util.jar.JarFile.<init>(JarFile.java:99)
        at 
org.codehaus.mojo.nbm.ExamineManifest.checkFile(ExamineManifest.java:81)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Mon Nov 22 14:17:40 KGT 2010
[INFO] Final Memory: 41M/729M
[INFO] ------------------------------------------------------------------------


> CLONE -mvn install working but mvn compile failing
> --------------------------------------------------
>
>                 Key: MNBMODULE-127
>                 URL: http://jira.codehaus.org/browse/MNBMODULE-127
>             Project: Maven NetBeans Module Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>         Environment: $ mvn -v
> Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
>            Reporter: Sergey Ushakov
>            Assignee: Jesse Glick
>         Attachments: MNBMODULE-61.tar.bz2
>
>
> When running goals if I execute a mvn install it works correctly, however if 
> I execute a mvn compile it fails with the following error.
> $ mvn clean compile
> [INFO] Scanning for projects...
> [INFO] Reactor build order: 
> [INFO]   cmc - Platform Application
> [INFO]   cmc - sample NetBeans Module
> [INFO]   cmc - Platform application branding resources
> [INFO]   cmc - NetBeans Platform based application
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building cmc - Platform Application
> [INFO]    task-segment: [clean, compile]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] No goals needed for project - skipping
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building cmc - sample NetBeans Module
> [INFO]    task-segment: [clean, compile]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory 
> /Users/damianoneill/Documents/workspace-genesis/maven.1253546914431/trunk/src/genesis/cmc/module1/target
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (MacRoman actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] Copying 2 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building cmc - Platform application branding resources
> [INFO]    task-segment: [clean, compile]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory 
> /Users/damianoneill/Documents/workspace-genesis/maven.1253546914431/trunk/src/genesis/cmc/branding/target
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (MacRoman actually) to copy filtered 
> resources, i.e. build is platform dependent!
> [INFO] Copying 2 resources
> [INFO] [nbm:branding {execution: branding}]
> [INFO] Building jar: 
> /Users/damianoneill/Documents/workspace-genesis/maven.1253546914431/trunk/src/genesis/cmc/branding/target/nbm/netbeans/foobar/core/locale/core_foo.jar
> [INFO] Building jar: 
> /Users/damianoneill/Documents/workspace-genesis/maven.1253546914431/trunk/src/genesis/cmc/branding/target/nbm/netbeans/foobar/modules/locale/org-netbeans-core-windows_foo.jar
> [INFO] Building jar: 
> /Users/damianoneill/Documents/workspace-genesis/maven.1253546914431/trunk/src/genesis/cmc/branding/target/nbm/netbeans/foobar/modules/locale/org-netbeans-core_foo.jar
> [INFO] Created branded jars for branding 'foo'.
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building cmc - NetBeans Platform based application
> [INFO]    task-segment: [clean, compile]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory 
> /Users/damianoneill/Documents/workspace-genesis/maven.1253546914431/trunk/src/genesis/cmc/application/target
> [INFO] [nbm:cluster-app {execution: default-cluster-app}]
> [INFO] Processing cluster 'platform10'
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] error in opening zip file
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Wed Sep 23 11:12:17 BST 2009
> [INFO] Final Memory: 20M/79M
> [INFO] 
> ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to