Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 75111 invoked from network); 19 Jun 2009 12:54:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jun 2009 12:54:23 -0000 Received: (qmail 57137 invoked by uid 500); 19 Jun 2009 12:54:32 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 57031 invoked by uid 500); 19 Jun 2009 12:54:32 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 57020 invoked by uid 99); 19 Jun 2009 12:54:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 12:54:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 12:54:22 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MHdbW-0005f7-9V for users@maven.apache.org; Fri, 19 Jun 2009 05:54:02 -0700 Message-ID: <24110743.post@talk.nabble.com> Date: Fri, 19 Jun 2009 05:54:01 -0700 (PDT) From: Yoda Koda II To: users@maven.apache.org Subject: RE: maven-ejb-plugin & was6-maven-plugin generated jar files In-Reply-To: <2007E972E904A240B02B1C0E754EE5BD050AD72C@APSW0639EVS.ms.ds.uhc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: james.gustard@tiscali.co.uk References: <2007E972E904A240B02B1C0E754EE5BD0462FBED@APSW0639EVS.ms.ds.uhc.com> <23966080.post@talk.nabble.com> <1245248197537-3093071.post@n2.nabble.com> <2007E972E904A240B02B1C0E754EE5BD050AD72C@APSW0639EVS.ms.ds.uhc.com> X-Virus-Checked: Checked by ClamAV on apache.org if ( workingDirectorySubdirs.length == 1 ) { // copy sources File generatedSources = new File( workingDirectorySubdirs[0], getMavenProject().getBuild().getFinalName() + File.separator + "ejbModule" ); try { FileUtils.copyDirectory( generatedSources, getGeneratedSourcesDirectory() ); FileUtils.deleteDirectory( new File( getGeneratedSourcesDirectory(), "META-INF" ) ); } catch ( IOException e ) { getLog().warn( "No sources were copied: " + e.getMessage() ); } List compileSourceRoots = getMavenProject().getCompileSourceRoots(); compileSourceRoots.add( getGeneratedSourcesDirectory().getPath() ); // copy generated classes File generatedClasses = new File( workingDirectorySubdirs[0], getMavenProject().getBuild().getFinalName() + File.separator + "build" + File.separator + "classes" ); try { FileUtils.copyDirectory( generatedClasses, getGeneratedClassesDirectory() ); Resource resource = new Resource(); resource.setDirectory( getGeneratedClassesDirectory().getPath() ); getMavenProject().getResources().add( resource ); } catch ( IOException e ) { getLog().warn( "No classes were copied: " + e.getMessage() ); } } else { getLog().warn( "No sources were generated" ); } getLog().info( "ejbDeploy finished" ); Pacileo, Ken wrote: > > > Can you post the code you used to change the exception to just log > warnings? > > Regards, > Ken > > -- View this message in context: http://www.nabble.com/maven-ejb-plugin---was6-maven-plugin-generated-jar-files-tp23061582p24110743.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org