I finally found some lead to progress.
I managed to build and install the original version of the mojos.
Then I found something: it's all a problem of dependency versions. In my
source-plugin module manifest dependencies, I did not specify any version
for the plugins on which I depend, which caused the modified pom to
reference 1.0 version by default.
Now I added a version for the plugins that are in my workspace
(source-plugin et binary-plugin) and it's looking for the right versions.
But I still have a problem for plugins that are supposed to be provided by
Eclipse itself. It seems that they are not deployed to my local repository
or it's looking in the wrong directories:
1) com.mycompany.eclipse:org.eclipse.ui.ide:pom:1.0
Path to dependency:
1)
com.mycompany.eclipse:com.mycompany.framework.eclipse.rcp:source-pl
ugin:1.0-SNAPSHOT
2) com.mycompany.eclipse:org.eclipse.ui.ide:pom:1.0
Obviously some bits and pieces are missing.
2007/10/26, Sebastien ARBOGAST <[EMAIL PROTECTED] >:
>
> OK, I really need this to work because I'm fed up with ant maintenance and
> manual dependency management.
>
> I've tried to start all over again. I think the problem might have come
> from the fact that I was not using the original version of the mojos
> described by the author of the article, but one that I found on m2eclipse
> repository. Do I downloaded the original version linked in the article, but
> when I tried to build it, it failed because it doesn't find maven-pst parent
> project. Does anyone know where I can fin that project?
>
> 2007/10/23, Sebastien ARBOGAST <[EMAIL PROTECTED] >:
> >
> > I checked out the last version I could find in the m2eclipse project:
> > http://svn.codehaus.org/m2eclipse/maven-pst
> >
> >
> > That's the one I'm using with a few modifications to the POM in order to
> > build against Maven 2.0.7 and Eclipse 3.3.1
> >
> > Now here are the error messages that I get:
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Failed to resolve artifact.
> >
> > Missing:
> > ----------
> > 1) com.myapp.eclipse:org.springframework.spring:pom:1.0
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.springframework.spring:pom:1.0
> >
> > 2) com.myapp.eclipse:org.eclipse.core.databinding:pom:1.0
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.eclipse.core.databinding:pom:1.0
> >
> > 3) com.myapp.eclipse:org.apache.log4j:pom:1.0
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.apache.log4j:pom:1.0
> >
> > 4) com.myapp.eclipse:com.myapp.framework.common:pom:1.0-SNAPSHOT
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:com.myapp.framework.common:pom:1.0-SNAPSH
> > OT
> >
> > 5) com.myapp.eclipse:org.eclipse.ui:jar:1.0
> >
> > Try downloading the file manually from the project website.
> >
> > Then, install it using the command:
> > mvn install:install-file -DgroupId=com.myapp.eclipse-DartifactId=org
> > .eclipse.ui \
> > -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
> >
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.eclipse.ui:jar:1.0
> >
> > 6) com.myapp.eclipse:org.eclipse.core.runtime:jar:1.0
> >
> > Try downloading the file manually from the project website.
> >
> > Then, install it using the command:
> > mvn install:install-file -DgroupId=com.myapp.eclipse-DartifactId=org
> > .eclipse.core.runtime \
> > -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
> >
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.eclipse.core.runtime:jar:1.0
> >
> > 7) com.myapp.eclipse:org.eclipse.jface.databinding:pom:1.0
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.eclipse.jface.databinding:pom:1.0
> >
> > 8) com.myapp.eclipse:com.myapp.security.crypto.smartcard:pom:1.0-SNAPS
> > HOT
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:com.myapp.security.crypto.smartcard:pom:1
> > .0-SNAPSHOT
> >
> > 9) com.myapp.eclipse:org.eclipse.ui.ide:pom:1.0
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.eclipse.ui.ide:pom:1.0
> >
> > 10) com.myapp.eclipse:org.eclipse.draw2d:pom:1.0
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.eclipse.draw2d:pom:1.0
> >
> > 11) com.myapp.eclipse:org.eclipse.core.databinding.beans:pom:1.0
> > Path to dependency:
> > 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl
> > ugin:1.0-SNAPSHOT
> > 2) com.myapp.eclipse:org.eclipse.core.databinding.beans:pom:1.0
> >
> > ----------
> > 11 required artifacts are missing.
> >
> > for artifact:
> > com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-plugin:1.0-
> > SNAPSHOT
> >
> > from the specified remote repositories:
> > central ( http://repo1.maven.org/maven2),
> > eclipse ( http://repo1.maven.org/eclipse)
> >
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 37 seconds
> > [INFO] Finished at: Tue Oct 23 10:16:38 CEST 2007
> > [INFO] Final Memory: 10M/19M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > 2007/10/23, Torsten Schlabach < [EMAIL PROTECTED]>:
> > >
> > > Hi Sebastien,
> > >
> > > I know I once made it work, but I remember I had to download some more
> > >
> > > recent code than the one which is mentioned on the article. I'd argue
> > > that the authors of the article did a great job making me understand
> > > what the problem is after all and explaining why they made the design
> > > decisions they have made, but it's not exactly a howto IMO.
> > >
> > > > But when I try to run mvn install at the level of my super POM, I
> > > get
> > > > error messages because Eclipse jar dependencies are missing.
> > >
> > > If I remember that article correctly, their concept was to modify POMs
> > > in memory to point to the actual Eclipse installation, but they make
> > > some assumptions as to where that should be.
> > >
> > > What section of the article to you refer to? Can you post an error
> > > message you're getting?
> > >
> > > Regards,
> > > Torsten
> > >
> > > Sebastien ARBOGAST schrieb:
> > > > I'm trying to apply the instructions given in the Eclipse Corner
> > > article
> > > > (http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
> > > > <http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
> > > >)
> > > > in order to build several Eclipse plugins using Maven 2.0.4.
> > > > In the first part of the article there is something about a Deploy
> > > Mojo
> > > > that would scrape my Eclipse installation and deploy all the jars to
> > > my
> > > > local repository.
> > > > But when I try to run mvn install at the level of my super POM, I
> > > get
> > > > error messages because Eclipse jar dependencies are missing.
> > > >
> > > > Has anyone managed to build Eclipse plugins with this article? Any
> > > idea
> > > > of what I might have forgotten?
> > > > BTW, I've attached my super POM.
> > > >
> > > > --
> > > > Sébastien Arbogast
> > > >
> > > > http://www.sebastien-arbogast.com
> > > >
> > > >
> > > >
> > > ------------------------------------------------------------------------
> > > >
> > > > <?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> com.myapp.eclipse</groupId>
> > > > <artifactId>com.myapp.eclipse.plugin</artifactId>
> > > > <packaging>pom</packaging>
> > > > <version>1.0.0</version>
> > > > <name>Eclipse Plug-ins</name>
> > > > <description>This is the Supe POM for all eclipse plugins
> > > inside myapp</description>
> > > > <build>
> > > > <resources>
> > > > <resource>
> > > > <directory>src/main/java</directory>
> > > > <includes>
> > > >
> > > <include>**/*.properties</include>
> > > > <include>**/*.xml</include>
> > > > </includes>
> > > > </resource>
> > > > <resource>
> > > > <directory>.</directory>
> > > > <includes>
> > > > <include>plugin.xml</include>
> > > > <include>plugin.properties
> > > </include>
> > > > <include>model/**</include>
> > > > <include>icons/**</include>
> > > > </includes>
> > > > </resource>
> > > > </resources>
> > > > <plugins>
> > > > <plugin>
> > > > <groupId>org.codehaus.mojo</groupId>
> > > >
> > > <artifactId>cobertura-maven-plugin</artifactId>
> > > > <configuration>
> > > > <instrumentation>
> > > > <excludes>
> > > >
> > > <exclude>com/myapp/**/model/**/impl/*.class</exclude>
> > > >
> > > <exclude>com/myapp/**/model/**/util/*.class</exclude>
> > > >
> > > <exclude>com/myapp/**/pojo/*.class</exclude>
> > > >
> > > <exclude>com/myapp/**/Messages.class</exclude>
> > > >
> > > <exclude>com/myapp/**/wizard/*.class</exclude>
> > > >
> > > <exclude>com/myapp/**/actions/*.class</exclude>
> > > >
> > > <exclude>com/cloudgarden/resource/**/*.class</exclude>
> > > > </excludes>
> > > > </instrumentation>
> > > > </configuration>
> > > > <executions>
> > > > <execution>
> > > > <goals>
> > > >
> > > <goal>clean</goal>
> > > > </goals>
> > > > </execution>
> > > > </executions>
> > > > </plugin>
> > > > <plugin>
> > > > <groupId>org.apache.maven.plugins
> > > </groupId>
> > > >
> > > <artifactId>maven-psteclipse-plugin</artifactId>
> > > > <version>1.0.0-SNAPSHOT</version>
> > > > <extensions>true</extensions>
> > > > <configuration>
> > > >
> > > <logModifications>true</logModifications>
> > > > <testFrameworkVersion>3.3.1
> > > </testFrameworkVersion>
> > > > </configuration>
> > > > <executions>
> > > > <execution>
> > > > <id>test-package</id>
> > > >
> > > <phase>test-compile</phase>
> > > > <goals>
> > > >
> > > <goal>testPackage</goal>
> > > > </goals>
> > > > </execution>
> > > > <execution>
> > > > <id>update</id>
> > > >
> > > <phase>process-resources</phase>
> > > > <goals>
> > > >
> > > <goal>update</goal>
> > > > </goals>
> > > > </execution>
> > > > <execution>
> > > >
> > > <id>update-site-classpath</id>
> > > >
> > > <phase>pre-site</phase>
> > > > <goals>
> > > >
> > > <goal>update</goal>
> > > > </goals>
> > > > </execution>
> > > > </executions>
> > > > </plugin>
> > > > <plugin>
> > > >
> > > <artifactId>maven-eclipse-plugin</artifactId>
> > > > <configuration>
> > > > <projectnatures>
> > > > <projectnature>
> > > org.eclipse.jdt.core.javanature</projectnature>
> > > > <projectnature>
> > > org.eclipse.pde.PluginNature </projectnature>
> > > > </projectnatures>
> > > > <buildcommands>
> > > > <buildcommand>
> > > org.eclipse.jdt.core.javabuilder</buildcommand>
> > > > <buildcommand>
> > > org.eclipse.pde.ManifestBuilder</buildcommand>
> > > > <buildcommand>
> > > org.eclipse.pde.SchemaBuilder</buildcommand>
> > > > </buildcommands>
> > > > <classpathContainers>
> > > > <classpathContainer>
> > > org.eclipse.pde.core.requiredPlugins</classpathContainer>
> > > > </classpathContainers>
> > > > </configuration>
> > > > </plugin>
> > > > </plugins>
> > > > </build>
> > > > <profiles>
> > > > <profile>
> > > > <id>org.eclipse.swt.win32</id>
> > > > <activation>
> > > > <os>
> > > > <name>windows xp</name>
> > > > <arch>x86</arch>
> > > > </os>
> > > > </activation>
> > > > <dependencies>
> > > > <dependency>
> > > > <groupId>
> > > org.eclipse.swt.win32.win32 </groupId>
> > > > <artifactId>x86</artifactId>
> > > > <version>3.3.0-v3346</version>
> > > > <type>jar</type>
> > > > </dependency>
> > > > </dependencies>
> > > > </profile>
> > > > <profile>
> > > > <id> org.eclipse.swt.linux</id>
> > > > <activation>
> > > > <os>
> > > > <name>linux</name>
> > > > <arch>i386</arch>
> > > > </os>
> > > > </activation>
> > > > <dependencies>
> > > > <dependency>
> > > > <groupId>
> > > com.princetonsoftech.eclipse</groupId>
> > > > <artifactId>
> > > org.eclipse.swt.gtk.linux.x86</artifactId>
> > > > <version>3.3.1 </version>
> > > > <type>jar</type>
> > > > </dependency>
> > > > </dependencies>
> > > > </profile>
> > > > </profiles>
> > > > <properties>
> > > > <org.eclipse.core.runtime
> > > >jar</org.eclipse.core.runtime>
> > > > <org.eclipse.jface>jar</org.eclipse.jface>
> > > > <org.eclipse.ui>jar</org.eclipse.ui>
> > > > <org.eclipse.datatools.connectivity
> > > >pom</org.eclipse.datatools.connectivity>
> > > >
> > > > <org.eclipse.datatools.modelbase.dbdefinition>pom</org.eclipse.datatools.modelbase.dbdefinition>
> > > > <org.eclipse.datatools.modelbase.sql
> > > >pom</org.eclipse.datatools.modelbase.sql>
> > > >
> > > > <org.eclipse.datatools.connectivity.sqm.core>jar</org.eclipse.datatools.connectivity.sqm.core>
> > > > <org.eclipse.datatools.connectivity.sqm.core.ui
> > > >pom</org.eclipse.datatools.connectivity.sqm.core.ui>
> > > > < org.eclipse.datatools.connectivity.sqm.server.ui
> > > >pom</org.eclipse.datatools.connectivity.sqm.server.ui>
> > > >
> > > > <org.eclipse.datatools.connectivity.ui>pom</org.eclipse.datatools.connectivity.ui>
> > >
> > > > <org.eclipse.datatools.connectivity.ui.dse
> > > >pom</org.eclipse.datatools.connectivity.ui.dse>
> > > >
> > > > <org.eclipse.datatools.modelbase.sql>pom</org.eclipse.datatools.modelbase.sql>
> > >
> > > > <org.junit>pom</org.junit>
> > > > </properties>
> > > > <modules>
> > > > <module>com.myapp.framework.eclipse.rcp</module>
> > > > <module> com.myapp.framework.common</module>
> > > > <module>org.eclipse.core.databinding</module>
> > > > <module>org.eclipse.core.databinding.beans</module>
> > > > <module>org.eclipse.jface.databinding </module>
> > > > <module>org.apache.log4j</module>
> > > > <module>com.myapp.security.crypto.smartcard</module>
> > > > <module>org.springframework.spring</module>
> > > > <module>com.myapp.security.kmc.client.noncritical</module>
> > > > <module>com.myapp.security.kmc.common</module>
> > > > </modules>
> > > >
> > > > <repositories>
> > > > <repository>
> > > > <id>eclipse</id>
> > > > <name>Eclipse Repository</name>
> > > > <url> http://repo1.maven.org/eclipse </url>
> > > > </repository>
> > > > </repositories>
> > > > </project>
> > > >
> > > >
> > > >
> > > ------------------------------------------------------------------------
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Sébastien Arbogast
> >
> > http://www.sebastien-arbogast.com
> >
>
>
>
> --
> Sébastien Arbogast
>
> http://www.sebastien-arbogast.com
>
--
Sébastien Arbogast
http://www.sebastien-arbogast.com