You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/08/01 15:05:51 UTC
Maven2 eclipse plugin
hi all,
i have a project in which i am using Maven2...
so far i have used Notepad/TextPad as java editor, but now i wanted to move
to Eclipse
i followed steps outlined here
http://maven.apache.org/guides/mini/guide-ide-eclipse.html
fact is, my project is a MultiProject made of a main project and two
subprojects.
I followed stepso utlined in the link above, however when i tried to run
maven2
from eclipse (launching hte 'parent' pom.xml), it did nothing.... it just
outputted
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [clean, compile]
[INFO]
----------------------------------------------------------------------------
[INFO] clean:clean
[INFO] Deleting directory D:\Sw\step-by-step\middleware\target
[INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes
[INFO] Deleting directory D:\Sw\step-by-step\middleware\target\test-classes
[INFO] No goals needed for project - skipping
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 0 second
[INFO] Finished at: Tue Aug 01 14:01:57 BST 2006
[INFO] Memory 0M/2M
[INFO]
----------------------------------------------------------------------------
it looks like it is not picking up the dependent project, even though my pom
is as follows
<?xml version="1.0" encoding="UTF-8"?>
<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>middleware</groupId>
<artifactId>middleware</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>Maven Quick Start Archetype</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<modules>
<module>myMiddleware</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<unzipCommand>/usr/bin/unzip -o > err.txt</unzipCommand>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-j2ee</artifactId>
<version>1.4-rc4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>fop</groupId>
<artifactId>fop</artifactId>
<version>0.20.5rc2</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-saaj</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
if i go to the commanline instead, everything works fine
could anyone help me out?
my project structure is as follows
middleware
|____ myMiddleware
could anyone help me out?
thanks and regards
marco
Re: Maven2 eclipse plugin
Posted by Mykel Alvis <my...@weirdness.com>.
Another way to do this is to evoke the maven build as an "external
program". That spawns a new java process, effectively a command line
build.
It only requires a tiny bit of work.
1. Go to External Tools
2. Right click on Program, not m2 Build
3. Give it a name
4. In "Location", browse to the executable for the version of maven that you
installed outside of eclipse
5. Select your working directory
6. In "Arguments" put the goals you want to reach.
When you need to do a different type of build, right click on an existing
one, select Duplicate, rename it and change the goals (and workspace, if
need be).
On 8/1/06, Dario Luis Coneglian Oliveros <ol...@cpqd.com.br> wrote:
>
> Hi Marco,
> If I am not mistaken, this is a known problem with maven embedder that
> comes with m2eclipse plugin.
> It does not work with multiproject. However I guess this has been fixed
> in the main line of development.
> It's been a while since last time I saw that.
> Dário
>
> Marco Mistroni wrote:
>
> > hi all,
> > i have a project in which i am using Maven2...
> > so far i have used Notepad/TextPad as java editor, but now i wanted to
> > move
> > to Eclipse
> > i followed steps outlined here
> >
> > http://maven.apache.org/guides/mini/guide-ide-eclipse.html
> >
> > fact is, my project is a MultiProject made of a main project and two
> > subprojects.
> >
> > I followed stepso utlined in the link above, however when i tried to run
> > maven2
> > from eclipse (launching hte 'parent' pom.xml), it did nothing.... it
> just
> > outputted
> >
> > [INFO]
> >
> ----------------------------------------------------------------------------
> >
> > [INFO] Building Maven Quick Start Archetype
> > [INFO] task-segment: [clean, compile]
> > [INFO]
> >
> ----------------------------------------------------------------------------
> >
> > [INFO] clean:clean
> > [INFO] Deleting directory D:\Sw\step-by-step\middleware\target
> > [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes
> > [INFO] Deleting directory
> > D:\Sw\step-by-step\middleware\target\test-classes
> > [INFO] No goals needed for project - skipping
> > [INFO]
> >
> ----------------------------------------------------------------------------
> >
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> >
> ----------------------------------------------------------------------------
> >
> > [INFO] Total time: 0 second
> > [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006
> > [INFO] Memory 0M/2M
> > [INFO]
> >
> ----------------------------------------------------------------------------
> >
> >
> > it looks like it is not picking up the dependent project, even though
> > my pom
> > is as follows
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <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>middleware</groupId>
> > <artifactId>middleware</artifactId>
> > <packaging>pom</packaging>
> > <version>1.0-SNAPSHOT</version>
> > <name>Maven Quick Start Archetype</name>
> > <url>http://maven.apache.org</url>
> > <dependencies>
> > <dependency>
> > <groupId>junit</groupId>
> > <artifactId>junit</artifactId>
> > <version>3.8.1</version>
> > <scope>test</scope>
> > </dependency>
> >
> >
> > </dependencies>
> > <modules>
> > <module>myMiddleware</module>
> > </modules>
> > <build>
> > <pluginManagement>
> > <plugins>
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-compiler-plugin</artifactId>
> > <configuration>
> > <source>1.5</source>
> > <target>1.5</target>
> > </configuration>
> > </plugin>
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-site-plugin</artifactId>
> > <configuration>
> > <unzipCommand>/usr/bin/unzip -o > err.txt
> </unzipCommand>
> > </configuration>
> > </plugin>
> >
> > </plugins>
> > </pluginManagement>
> > </build>
> > <dependencyManagement>
> > <dependencies>
> > <dependency>
> > <groupId>geronimo-spec</groupId>
> > <artifactId>geronimo-spec-j2ee</artifactId>
> > <version>1.4-rc4</version>
> > <scope>provided</scope>
> > </dependency>
> > <dependency>
> > <groupId>fop</groupId>
> > <artifactId>fop</artifactId>
> > <version>0.20.5rc2</version>
> > </dependency>
> > <dependency>
> > <groupId>axis</groupId>
> > <artifactId>axis-saaj</artifactId>
> > <version>1.3</version>
> > </dependency>
> > <dependency>
> > <groupId>axis</groupId>
> > <artifactId>axis</artifactId>
> > <version>1.3</version>
> > </dependency>
> >
> >
> > </dependencies>
> > </dependencyManagement>
> > </project>
> >
> >
> >
> > if i go to the commanline instead, everything works fine
> >
> > could anyone help me out?
> >
> > my project structure is as follows
> >
> > middleware
> > |____ myMiddleware
> >
> > could anyone help me out?
> >
> > thanks and regards
> > marco
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
I'm just a caveman software developer. I don't understand your strange,
"modern" ways of thinking.
http://unfrozencavemancoder.blogspot.com
Re: Maven2 eclipse plugin
Posted by Dario Luis Coneglian Oliveros <ol...@cpqd.com.br>.
Hi Marco,
If I am not mistaken, this is a known problem with maven embedder that
comes with m2eclipse plugin.
It does not work with multiproject. However I guess this has been fixed
in the main line of development.
It's been a while since last time I saw that.
Dário
Marco Mistroni wrote:
> hi all,
> i have a project in which i am using Maven2...
> so far i have used Notepad/TextPad as java editor, but now i wanted to
> move
> to Eclipse
> i followed steps outlined here
>
> http://maven.apache.org/guides/mini/guide-ide-eclipse.html
>
> fact is, my project is a MultiProject made of a main project and two
> subprojects.
>
> I followed stepso utlined in the link above, however when i tried to run
> maven2
> from eclipse (launching hte 'parent' pom.xml), it did nothing.... it just
> outputted
>
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Building Maven Quick Start Archetype
> [INFO] task-segment: [clean, compile]
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] clean:clean
> [INFO] Deleting directory D:\Sw\step-by-step\middleware\target
> [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes
> [INFO] Deleting directory
> D:\Sw\step-by-step\middleware\target\test-classes
> [INFO] No goals needed for project - skipping
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Total time: 0 second
> [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006
> [INFO] Memory 0M/2M
> [INFO]
> ----------------------------------------------------------------------------
>
>
> it looks like it is not picking up the dependent project, even though
> my pom
> is as follows
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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>middleware</groupId>
> <artifactId>middleware</artifactId>
> <packaging>pom</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>Maven Quick Start Archetype</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
>
>
> </dependencies>
> <modules>
> <module>myMiddleware</module>
> </modules>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <configuration>
> <unzipCommand>/usr/bin/unzip -o > err.txt</unzipCommand>
> </configuration>
> </plugin>
>
> </plugins>
> </pluginManagement>
> </build>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>geronimo-spec</groupId>
> <artifactId>geronimo-spec-j2ee</artifactId>
> <version>1.4-rc4</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>fop</groupId>
> <artifactId>fop</artifactId>
> <version>0.20.5rc2</version>
> </dependency>
> <dependency>
> <groupId>axis</groupId>
> <artifactId>axis-saaj</artifactId>
> <version>1.3</version>
> </dependency>
> <dependency>
> <groupId>axis</groupId>
> <artifactId>axis</artifactId>
> <version>1.3</version>
> </dependency>
>
>
> </dependencies>
> </dependencyManagement>
> </project>
>
>
>
> if i go to the commanline instead, everything works fine
>
> could anyone help me out?
>
> my project structure is as follows
>
> middleware
> |____ myMiddleware
>
> could anyone help me out?
>
> thanks and regards
> marco
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven2 eclipse plugin
Posted by Stefan Magnus Landrø <st...@gjensidige.no>.
Hi,
Personally I use the cli for building. Also, I bleieve, the development on
the eclipse plugin hasn't come that far yet (ie. it might be buggy).
"Marco Mistroni" <mm...@gmail.com> skrev 01.08.2006 15:05:51:
> hi all,
> i have a project in which i am using Maven2...
> so far i have used Notepad/TextPad as java editor, but now i wanted to
move
> to Eclipse
> i followed steps outlined here
>
> http://maven.apache.org/guides/mini/guide-ide-eclipse.html
>
> fact is, my project is a MultiProject made of a main project and two
> subprojects.
>
> I followed stepso utlined in the link above, however when i tried to run
> maven2
> from eclipse (launching hte 'parent' pom.xml), it did nothing.... it
just
> outputted
>
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] Building Maven Quick Start Archetype
> [INFO] task-segment: [clean, compile]
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] clean:clean
> [INFO] Deleting directory D:\Sw\step-by-step\middleware\target
> [INFO] Deleting directory D:\Sw\step-by-step\middleware\target\classes
> [INFO] Deleting directory
D:\Sw\step-by-step\middleware\target\test-classes
> [INFO] No goals needed for project - skipping
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
>
----------------------------------------------------------------------------
> [INFO] Total time: 0 second
> [INFO] Finished at: Tue Aug 01 14:01:57 BST 2006
> [INFO] Memory 0M/2M
> [INFO]
>
----------------------------------------------------------------------------
>
> it looks like it is not picking up the dependent project, even though my
pom
> is as follows
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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>middleware</groupId>
> <artifactId>middleware</artifactId>
> <packaging>pom</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>Maven Quick Start Archetype</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
>
>
> </dependencies>
> <modules>
> <module>myMiddleware</module>
> </modules>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <configuration>
> <unzipCommand>/usr/bin/unzip -o >
err.txt</unzipCommand>
> </configuration>
> </plugin>
>
> </plugins>
> </pluginManagement>
> </build>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>geronimo-spec</groupId>
> <artifactId>geronimo-spec-j2ee</artifactId>
> <version>1.4-rc4</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>fop</groupId>
> <artifactId>fop</artifactId>
> <version>0.20.5rc2</version>
> </dependency>
> <dependency>
> <groupId>axis</groupId>
> <artifactId>axis-saaj</artifactId>
> <version>1.3</version>
> </dependency>
> <dependency>
> <groupId>axis</groupId>
> <artifactId>axis</artifactId>
> <version>1.3</version>
> </dependency>
>
>
> </dependencies>
> </dependencyManagement>
> </project>
>
>
>
> if i go to the commanline instead, everything works fine
>
> could anyone help me out?
>
> my project structure is as follows
>
> middleware
> |____ myMiddleware
>
> could anyone help me out?
>
> thanks and regards
> marco