Also, I'm using Maven 2.0.9, Servicemix 3.3 and the JBI plugin 4.0.
On Tue, Dec 16, 2008 at 12:43 PM, Ryan Moquin <[email protected]>wrote:
> Ok, so I'm restarting this question since some of my other thread might
> have been confusing due to some confusion I had and since I have more
> details now that narrow down this problem. The issue I'm having, out of the
> blue, is that my jbi-maven-plugin for my Service Archive projects, no longer
> generates a zip file on subsequent builds. So the first time I build my
> service archive, I will get a zip file (I'm copying it to my servicemix
> hotdeploy using ant, for convenience), but the second time I run it, I won't
> get a zip file. I actually have to delete my plugin from my maven2
> repository in order to get it to work again. I haven't made any changes to
> my environment, such as maven2 versions or servicemix versions, so I'm not
> sure what's triggering this or if anyone else has had a similar issue.
>
> Here is the output:
>
> When I start with no jbi-maven-plugin in my Maven2 repository, this is what
> happens:
>
> working after delete:
>
> [INFO] [jbi:jbi-service-assembly]
> [INFO] Generating service assembly
> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip
>
> [INFO] Building jar:
> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip
> [INFO] [jar:jar]
> [INFO] Building jar:
> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.jar
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
> [copy] Copying 1 file to c:\servicemix\hotdeploy
> [INFO] Executed tasks
> [INFO] [install:install]
> [INFO] Installing
> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.jar
> to C:\m2_repo\re
>
> pository\test\services\my-service-sa\2.0-SNAPSHOT\my-service-sa-2.0-SNAPSHOT.zip
> [INFO] Installing
> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip
> to C:\m2_repo\re
>
> pository\test\services\my-service-sa\2.0-SNAPSHOT\my-service-sa-2.0-SNAPSHOT.zip
>
> If I rerun the build after the first success, I get this:
>
> [INFO] [jbi:jbi-service-assembly]
> [INFO] [jar:jar]
> [INFO] Building jar:
> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.jar
> [INFO] [antrun:run {execution: default}]
> [INFO] Executing tasks
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
>
> Embedded error: Warning: Could not find file
> C:\projects\trunk\my-service-jbi\my-service-sa\target\my-service-sa-2.0-SNAPSHOT.zip
> to copy.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 53 seconds
> [INFO] Finished at: Tue Dec 16 12:11:56 EST 2008
> [INFO] Final Memory: 117M/227M
> [INFO]
> ------------------------------------------------------------------------
>
> I'm a little confused on why the zip doesn't get built unless I delete the
> plugin?
>
> Thanks,
> Ryan
>