You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by th...@gmail.com on 2008/05/02 22:56:48 UTC

Re: maven pde rcp to build

Carlos,  Can you open the sample code area?


On Wed, Apr 30, 2008 at 9:15 AM, <th...@gmail.com> wrote:

> I need a userid and passcode to get access to the code.
>
>
> On Tue, Apr 29, 2008 at 6:59 PM, Carlos Sanchez <ca...@apache.org> wrote:
>
> > the link to the code is in the slides
> >
> > On Fri, Apr 25, 2008 at 7:47 AM,  <th...@gmail.com> wrote:
> > > There was no sample code with the slides, so I was a little lost. Most
> > of
> > >  the stuff has in the slide seems ok, but I could not make heads or
> > tails
> > >  without the src code.
> > >
> > >  On Thu, Apr 24, 2008 at 6:04 AM, Vincent Siveton <
> > vincent.siveton@gmail.com>
> > >  wrote:
> > >
> > >
> > >
> > >  > Hi,
> > >  >
> > >  > Have a look on Carlos's blog
> > >  > http://www.jroller.com/carlossg/entry/slides_from_eclipsecon
> > >  >
> > >  > Cheers,
> > >  >
> > >  > Vincent
> > >  >
> > >  > 2008/4/21  <th...@gmail.com>:
> > >  > > I have been looking for a while for this solution.
> > >  > >
> > >  > >  Has anyone been able to run this tutorial to complete?
> > >  > >
> > >  > >
> > http://mojo.codehaus.org/pde-maven-plugin/examples/simple_product.html
> > >  > >
> > >  > >  I have looked through many emails just to get the project to
> > build in
> > >  > maven
> > >  > >  with Eclipse 3.3.2 as target.
> > >  > >
> > >  > >  Now I am at a point where it builds with 0 errors. I had to
> > change the
> > >  > >  pom.xml packaging setting from ZIP to  JAR.
> > >  > >
> > >  > >  So I tried to run it from the dos with:  *java -jar
> > >  > >  simple_application-1.0-SNAPSHOT.jar
> > >  > >  *
> > >  > >  I get nothing. No errors, no failure,......... nothing!
> > >  > >
> > >  > >  Here is my pom.xml;
> > >  > >  <project xmlns="http://maven.apache.org/POM/4.0.0"
> > >  > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > >  > >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > >  > >  http://maven.apache.org/maven-v4_0_0.xsd">
> > >  > >   <modelVersion>4.0.0</modelVersion>
> > >  > >   <groupId>test.pde_maven_plugin</groupId>
> > >  > >   <artifactId>simple_application</artifactId>
> > >  > >   <packaging>jar</packaging>
> > >  > >   <name>Simple Plugin PDE Example</name>
> > >  > >   <version>1.0-SNAPSHOT</version>
> > >  > >   <description>A Simple Plugin PDE Example</description>
> > >  > >   <build>
> > >  > >     <plugins>
> > >  > >       <plugin>
> > >  > >         <groupId>org.codehaus.mojo</groupId>
> > >  > >         <artifactId>pde-maven-plugin</artifactId>
> > >  > >         <extensions>true</extensions>
> > >  > >         <configuration>
> > >  > >           <eclipseInstall>C:\Program
> > >  > >  Files\JavaWorkEnv\eclipse</eclipseInstall>
> > >  > >
> > <pdeProductFilename>simple_product.product</pdeProductFilename>
> > >  > >           <pdeBuildVersion>3.3.2.v20071019</pdeBuildVersion>
> > >  > >         </configuration>
> > >  > >       </plugin>
> > >  > >     </plugins>
> > >  > >   </build>
> > >  > >  </project>
> > >  > >
> > >  > >
> > >  > >  Any leads to get this to run from dos as jar or how to get the
> > zip
> > >  > packaging
> > >  > >  setting to build?
> > >  > >
> > >  > >  Here is the error if I have zip as packaging setting.
> > >  > >
> > >  > >  >mvn install
> > >  > >  [INFO] Scanning for projects...
> > >  > >  [INFO]
> > >  > >
> >  ------------------------------------------------------------------------
> > >  > >  [INFO] Building Simple Plugin PDE Example
> > >  > >  [INFO]    task-segment: [install]
> > >  > >  [INFO]
> > >  > >
> >  ------------------------------------------------------------------------
> > >  > >  [INFO] [pde:ext]
> > >  > >  [INFO]
> > >  > >
> >  ------------------------------------------------------------------------
> > >  > >  [ERROR] BUILD ERROR
> > >  > >  [INFO]
> > >  > >
> >  ------------------------------------------------------------------------
> > >  > >  [INFO] C:\Program Files\JavaWorkEnv\eclipse\startup.jar not
> > found.  Have
> > >  > you
> > >  > >  set up your -DeclipseInstall?
> > >  > >  [INFO]
> > >  > >
> >  ------------------------------------------------------------------------
> > >  > >  [INFO] For more information, run Maven with the -e switch
> > >  > >  [INFO]
> > >  > >
> >  ------------------------------------------------------------------------
> > >  > >  [INFO] Total time: 2 seconds
> > >  > >  [INFO] Finished at: Mon Apr 21 12:12:30 CDT 2008
> > >  > >  [INFO] Final Memory: 3M/8M
> > >  > >  [INFO]
> > >  > >
> >  ------------------------------------------------------------------------
> > >  > >
> > >  > >  Thanks
> > >  > >
> > >  >
> > >  >
> > ---------------------------------------------------------------------
> > >  > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >  > For additional commands, e-mail: users-help@maven.apache.org
> > >  >
> > >  >
> > >
> >
> >
> >
> > --
> > I could give you my word as a Spaniard.
> > No good. I've known too many Spaniards.
> >  -- The Princess Bride
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

Re: How to instruct Maven to run more than one script?

Posted by Jerome Lacoste <je...@gmail.com>.
On Sat, May 3, 2008 at 2:20 AM, Tawfik, Sameh E
<Sa...@fairisaac.com> wrote:
>
> Hi,
>
> I've two Perl scripts, "Before_Build.pl", and "After_Build.pl " that I
> need to run the first one before the build starts and the other one
> after the build is complete.
>
> So, what is the command line syntax to run a full build with the above
> requirements?

Extract from the soon to be published FAQ of the exec mojo:

Q: How to execute the plugin multiple times ?

    Use several execution nodes each with a different id. Don't forget
to bind each execution to a phase.

    Read the full answer here:
http://article.gmane.org/gmane.comp.java.maven-plugins.mojo.user/1307




> I've the following code in my pom.xml:
>
>             <plugin>
>               <groupId>org.codehaus.mojo</groupId>
>               <artifactId>exec-maven-plugin</artifactId>
>               <executions>
>                 <execution>
>                   <goals>
>                     <goal>exec</goal>
>                   </goals>
>                 </execution>
>               </executions>
>               <inherited>false</inherited>
>               <configuration>
>                 <executable>Before_Build.pl</executable>
>                 <arguments>
>                   <argument>20</argument>
>                 </arguments>
>               </configuration>
>             </plugin>
>
>             <plugin>
>               <groupId>org.codehaus.mojo</groupId>
>               <artifactId>exec-maven-plugin</artifactId>
>               <executions>
>                 <execution>
>                   <goals>
>                     <goal>exec</goal>
>                   </goals>
>                 </execution>
>               </executions>
>               <inherited>false</inherited>
>               <configuration>
>                 <executable>After_Build.pl</executable>
>                 <arguments>
>                   <argument>20</argument>
>                 </arguments>
>               </configuration>
>             </plugin>
>
> I can successfully execute the first Perl script "Before_Build.pl" from
> the command line, by running the following command:
>
>  C:\projects>mvn -N exec:exec -Dexec.executable=" Before_Build.pl"
>
>
>   Thanks,
>
>     Sameh
> This email and any files transmitted with it are confidential, proprietary
> and intended solely for the individual or entity to whom they are addressed.
> If you have received this email in error please delete it immediately.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Jerome Lacoste, +47 40867729, Daglig Leder, CoffeeBreaks AS

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


How to instruct Maven to run more than one script?

Posted by "Tawfik, Sameh E" <Sa...@fairisaac.com>.
Hi,

I've two Perl scripts, "Before_Build.pl", and "After_Build.pl " that I
need to run the first one before the build starts and the other one
after the build is complete.

So, what is the command line syntax to run a full build with the above
requirements?

I've the following code in my pom.xml:

             <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>exec-maven-plugin</artifactId>
               <executions>
                 <execution>
                   <goals>
                     <goal>exec</goal>
                   </goals>
                 </execution>
               </executions>
               <inherited>false</inherited>
               <configuration>
                 <executable>Before_Build.pl</executable>
                 <arguments>
                   <argument>20</argument>
                 </arguments>
               </configuration>
             </plugin>

             <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>exec-maven-plugin</artifactId>
               <executions>
                 <execution>
                   <goals>
                     <goal>exec</goal>
                   </goals>
                 </execution>
               </executions>
               <inherited>false</inherited>
               <configuration>
                 <executable>After_Build.pl</executable>
                 <arguments>
                   <argument>20</argument>
                 </arguments>
               </configuration>
             </plugin>

I can successfully execute the first Perl script "Before_Build.pl" from
the command line, by running the following command:
  
  C:\projects>mvn -N exec:exec -Dexec.executable=" Before_Build.pl"


   Thanks,

     Sameh
This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


site generation fails if war plugin is defined with goal 'exploded' (cant override read-only parameter)

Posted by Leonard Gestrin <Le...@markettools.com>.
Hello,
I am running into problems generating site for project that has war
plugin using 'exploded' goal. 

I searched the archives and it looks like other people had issues with
it over the last couple years, but I could not find solution for it.

The error is 

[INFO] Using default encoding to copy filtered resources.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error configuring: org.apache.maven.plugins:maven-war-plugin.
Reason: ERROR: Cannot override
read-only parameter: classesDirectory in goal: war:exploded
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error
configuring: org.apache.maven.plugins:
maven-war-plugin. Reason: ERROR: Cannot override read-only parameter:
classesDirectory in goal: war:
exploded
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor
.java:568)


Perhaps, this can be solved by defining profiles and each profile
defining different configuration for war plugin, but I was thinking
there is a simpler solution for it.

Thanks
Leonard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven pde rcp to build

Posted by Barrie Treloar <ba...@gmail.com>.
Where did you get with this?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org