You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2005/09/27 16:42:15 UTC

svn commit: r291966 - in /maven/components/trunk/maven-embedder: ./ src/main/assembly/ src/main/java/org/apache/maven/embedder/ src/main/resources/META-INF/maven/ src/main/resources/META-INF/maven/org.apache.maven/ src/main/resources/META-INF/maven/org...

Author: jvanzyl
Date: Tue Sep 27 07:42:04 2005
New Revision: 291966

URL: http://svn.apache.org/viewcvs?rev=291966&view=rev
Log:
o adding metadata needed by DefaultRuntimeInformation
o adding required plexus component descriptors


Added:
    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/
    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/
    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/
    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties   (with props)
    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml   (with props)
Modified:
    maven/components/trunk/maven-embedder/Plugin.java
    maven/components/trunk/maven-embedder/notes.txt
    maven/components/trunk/maven-embedder/src/main/assembly/dep.xml
    maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
    maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml

Modified: maven/components/trunk/maven-embedder/Plugin.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-embedder/Plugin.java?rev=291966&r1=291965&r2=291966&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/Plugin.java (original)
+++ maven/components/trunk/maven-embedder/Plugin.java Tue Sep 27 07:42:04 2005
@@ -1,4 +1,8 @@
 import org.apache.maven.embedder.*;
+import org.apache.maven.project.*;
+import org.apache.maven.monitor.event.*;
+import java.io.*;
+import java.util.*;
 
 public class Plugin
 {
@@ -14,6 +18,20 @@
         maven.start();
         
         System.out.println( "Happy happy joy joy!" );
+
+        System.out.println( "Now build a project" );
+
+        File targetDirectory = new File( System.getProperty( "user.dir" ), "target/embedder-test-project" );
+
+        System.out.println( ">> " + targetDirectory );
+        
+        File pomFile = new File( targetDirectory, "pom.xml" );
+
+        MavenProject pom = maven.readProjectWithDependencies( pomFile );
+
+        EventDispatcher eventDispatcher = new DefaultEventDispatcher();
+
+        maven.execute( pom, Collections.singletonList( "package" ), eventDispatcher, targetDirectory );
     }
     
     public static void main( String[] args )

Modified: maven/components/trunk/maven-embedder/notes.txt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-embedder/notes.txt?rev=291966&r1=291965&r2=291966&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/notes.txt (original)
+++ maven/components/trunk/maven-embedder/notes.txt Tue Sep 27 07:42:04 2005
@@ -43,3 +43,7 @@
    and what the default values would be if they aren't set.
 
 -- Need to make an input handler to IDE use soon.
+
+-- having to add all the component descriptors by hand and the maven
+   version metadata is a real drag. something needs to be added to
+   the assembly plugin.

Modified: maven/components/trunk/maven-embedder/src/main/assembly/dep.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-embedder/src/main/assembly/dep.xml?rev=291966&r1=291965&r2=291966&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/assembly/dep.xml (original)
+++ maven/components/trunk/maven-embedder/src/main/assembly/dep.xml Tue Sep 27 07:42:04 2005
@@ -21,8 +21,12 @@
         <exclude>junit:junit</exclude>
         <exclude>commons-lang:commons-lang</exclude>
         <exclude>commons-logging:commons-logging</exclude>
-        <exclude>commons-cli:commons-cli</exclude>        
+        <exclude>commons-cli:commons-cli</exclude>
+        <!--
+        I should be able to exclude this because I don't want tool integrators
+        to have to use this at all ...
         <exclude>jline:jline</exclude>
+        -->
         <!--
          |
          | When the embedder API provides deployment options this can be put

Modified: maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java?rev=291966&r1=291965&r2=291966&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java (original)
+++ maven/components/trunk/maven-embedder/src/main/java/org/apache/maven/embedder/MavenEmbedder.java Tue Sep 27 07:42:04 2005
@@ -66,6 +66,8 @@
  */
 public class MavenEmbedder
 {
+    public static final String userHome = System.getProperty( "user.home" );
+
     // ----------------------------------------------------------------------
     // Embedder
     // ----------------------------------------------------------------------
@@ -118,6 +120,8 @@
 
     private String globalChecksumPolicy;
 
+    private File mavenHome;
+
     // ----------------------------------------------------------------------
     // Accessors
     // ----------------------------------------------------------------------
@@ -217,6 +221,16 @@
         return localRepositoryDirectory;
     }
 
+    public File getMavenHome()
+    {
+        return mavenHome;
+    }
+
+    public void setMavenHome( File mavenHome )
+    {
+        this.mavenHome = mavenHome;
+    }
+
     // ----------------------------------------------------------------------
     // Embedder Client Contract
     // ----------------------------------------------------------------------
@@ -402,6 +416,25 @@
     public void start()
         throws MavenEmbedderException
     {
+        // ----------------------------------------------------------------------
+        // Set the maven.home system property which is need by components like
+        // the plugin registry builder.
+        // ----------------------------------------------------------------------
+
+        // TODO: create a maven.home discovery method.
+
+        if ( mavenHome == null )
+        {
+            mavenHome = new File( userHome, "m2" );
+
+            if ( !mavenHome.exists() )
+            {
+                throw new IllegalStateException( "You have set a maven home, or the default of ~/m2 must exist on your system." );
+            }
+
+            System.setProperty( "maven.home", mavenHome.getAbsolutePath() );
+        }
+
         if ( classLoader == null )
         {
             throw new IllegalStateException( "A classloader must be specified using setClassLoader(ClassLoader)." );

Added: maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties?rev=291966&view=auto
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties (added)
+++ maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties Tue Sep 27 07:42:04 2005
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Sun Sep 25 18:25:58 GMT-05:00 2005
+version=2.0-beta-2-SNAPSHOT
+groupId=org.apache.maven
+artifactId=maven-core

Propchange: maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml?rev=291966&view=auto
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml (added)
+++ maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml Tue Sep 27 07:42:04 2005
@@ -0,0 +1,154 @@
+<project>
+  <parent>
+    <artifactId>maven</artifactId>
+    <groupId>org.apache.maven</groupId>
+    <version>2.0-beta-2-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven</groupId>
+  <artifactId>maven-core</artifactId>
+  <name>Maven</name>
+  <version>2.0-beta-2-SNAPSHOT</version>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>RELEASE</version>
+        <configuration>
+          <descriptor>src/assemble/bin.xml</descriptor>
+          <finalName>maven-2.0-beta-1</finalName>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-settings</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.wagon</groupId>
+      <artifactId>wagon-file</artifactId>
+      <version>1.0-alpha-4</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.wagon</groupId>
+      <artifactId>wagon-http-lightweight</artifactId>
+      <version>1.0-alpha-4</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.reporting</groupId>
+      <artifactId>maven-reporting-api</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-profile</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-model</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-artifact</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>plexus</groupId>
+      <artifactId>plexus-container-default</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.wagon</groupId>
+      <artifactId>wagon-provider-api</artifactId>
+      <version>1.0-alpha-4</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-repository-metadata</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-registry</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-cli</groupId>
+      <artifactId>commons-cli</artifactId>
+      <version>1.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>plexus</groupId>
+      <artifactId>plexus-input-handler</artifactId>
+      <version>1.0-alpha-2</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-descriptor</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-monitor</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-artifact-manager</artifactId>
+      <version>2.0-beta-2-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.wagon</groupId>
+      <artifactId>wagon-ssh</artifactId>
+      <version>1.0-alpha-4</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>jsch</groupId>
+      <artifactId>jsch</artifactId>
+      <version>0.1.21</version>
+    </dependency>
+  </dependencies>
+  <reporting>
+    <plugins>
+      <plugin>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <artifactId>maven-clover-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <artifactId>maven-pmd-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <artifactId>maven-project-info-reports-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
+  <distributionManagement>
+    <site>
+      <id>website</id>
+      <url>scp://minotaur.apache.org//www/maven.apache.org/m2</url>
+    </site>
+  </distributionManagement>
+</project>
\ No newline at end of file

Propchange: maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml?rev=291966&r1=291965&r2=291966&view=diff
==============================================================================
--- maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml (original)
+++ maven/components/trunk/maven-embedder/src/main/resources/META-INF/plexus/components.xml Tue Sep 27 07:42:04 2005
@@ -873,6 +873,15 @@
         <userRegistryPath>${user.home}/.m2/plugin-registry.xml</userRegistryPath>
       </configuration>
     </component>
+
+    <!-- Plexus components -->
     
+    <component>
+      <role>org.codehaus.plexus.components.inputhandler.InputHandler</role>
+      <implementation>org.codehaus.plexus.components.inputhandler.DefaultInputHandler</implementation>
+      <instantiation-strategy>per-lookup</instantiation-strategy>
+    </component>
+    
+
   </components>
 </component-set>



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


Re: svn commit: r291966 - in /maven/components/trunk/maven-embedder: ./ src/main/assembly/ src/main/java/org/apache/maven/embedder/ src/main/resources/META-INF/maven/ src/main/resources/META-INF/maven/org.apache.maven/ src/main/resources/META-INF/maven/org...

Posted by Brett Porter <br...@apache.org>.
Jason van Zyl wrote:

>On Wed, 2005-09-28 at 09:18 +1000, Brett Porter wrote:
>  
>
>>Yep, I'm aware of that. The OSGi seems the way to go for the eclipse
>>plugin, and there is an enhancement req on assembly already to learn to
>>merge some files.
>>
>>Actually, I was asking about pom.properties and pom.xml that you
>>manually included?
>>    
>>
>
>The DefaultRuntimeInformation component doesn't like it if it doesn't
>exist. I think the information there can't hurt so I put it in. I
>definitely want not to have to hand bomb this piece of information.
>  
>
It should be finding it from the classloader it is coming from - I think
it is just because it is missing the leading "/".

ie change:
                resourceAsStream =
getClass().getClassLoader().getResourceAsStream(
                   
"META-INF/maven/org.apache.maven/maven-core/pom.properties" );
to
                resourceAsStream =
getClass().getClassLoader().getResourceAsStream(
                   
"/META-INF/maven/org.apache.maven/maven-core/pom.properties" );

Can you see if that fixes the issue?

- Brett

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


Re: svn commit: r291966 - in /maven/components/trunk/maven-embedder: ./ src/main/assembly/ src/main/java/org/apache/maven/embedder/ src/main/resources/META-INF/maven/ src/main/resources/META-INF/maven/org.apache.maven/ src/main/resources/META-INF/maven/org...

Posted by Jason van Zyl <ja...@maven.org>.
On Wed, 2005-09-28 at 09:18 +1000, Brett Porter wrote:
> Yep, I'm aware of that. The OSGi seems the way to go for the eclipse
> plugin, and there is an enhancement req on assembly already to learn to
> merge some files.
> 
> Actually, I was asking about pom.properties and pom.xml that you
> manually included?

The DefaultRuntimeInformation component doesn't like it if it doesn't
exist. I think the information there can't hurt so I put it in. I
definitely want not to have to hand bomb this piece of information.

> - Brett
> 
> Jason van Zyl wrote:
> 
> >On Wed, 2005-09-28 at 08:54 +1000, Brett Porter wrote:
> >  
> >
> >>Is this a temporary solution?
> >>
> >>I'm a bit confused - why can't DRI find it from the maven-core JAR? If
> >>it really needs to be reading the maven-embedder POM should that be made
> >>to happen instead?
> >>    
> >>
> >
> >I think this is working exactly in the same way the ant tasks are in
> >that the assembly plugin throws away the META-INF/plexus/components.xml
> >file. I see in the maven-ant-tasks that you have a hand rolled
> >descriptor so I assumed you are doing this as I have too.
> >
> >Ideally I think the Eclipse plugin could be an OSGi bundle that could
> >have the intact JARs or maybe the assembly plugin can be taught to
> >process resources if necessary (I don't believe it does this, maybe I'm
> >wrong) but for now I just wanted to make a single JAR and hand-bombing a
> >components.xml seems to be the only way.
> >
> >  
> >
> >>- Brett
> >>
> >>jvanzyl@apache.org wrote:
> >>
> >>    
> >>
> >>>Author: jvanzyl
> >>>Date: Tue Sep 27 07:42:04 2005
> >>>New Revision: 291966
> >>>
> >>>URL: http://svn.apache.org/viewcvs?rev=291966&view=rev
> >>>Log:
> >>>o adding metadata needed by DefaultRuntimeInformation
> >>>o adding required plexus component descriptors
> >>>
> >>>
> >>>Added:
> >>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/
> >>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/
> >>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/
> >>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties   (with props)
> >>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml   (with props)
> >>> 
> >>>
> >>>      
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >>    
> >>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

A party which is not afraid of letting culture,
business, and welfare go to ruin completely can
be omnipotent for a while.

  -- Jakob Burckhardt


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


Re: svn commit: r291966 - in /maven/components/trunk/maven-embedder: ./ src/main/assembly/ src/main/java/org/apache/maven/embedder/ src/main/resources/META-INF/maven/ src/main/resources/META-INF/maven/org.apache.maven/ src/main/resources/META-INF/maven/org...

Posted by Brett Porter <br...@apache.org>.
Yep, I'm aware of that. The OSGi seems the way to go for the eclipse
plugin, and there is an enhancement req on assembly already to learn to
merge some files.

Actually, I was asking about pom.properties and pom.xml that you
manually included?

- Brett

Jason van Zyl wrote:

>On Wed, 2005-09-28 at 08:54 +1000, Brett Porter wrote:
>  
>
>>Is this a temporary solution?
>>
>>I'm a bit confused - why can't DRI find it from the maven-core JAR? If
>>it really needs to be reading the maven-embedder POM should that be made
>>to happen instead?
>>    
>>
>
>I think this is working exactly in the same way the ant tasks are in
>that the assembly plugin throws away the META-INF/plexus/components.xml
>file. I see in the maven-ant-tasks that you have a hand rolled
>descriptor so I assumed you are doing this as I have too.
>
>Ideally I think the Eclipse plugin could be an OSGi bundle that could
>have the intact JARs or maybe the assembly plugin can be taught to
>process resources if necessary (I don't believe it does this, maybe I'm
>wrong) but for now I just wanted to make a single JAR and hand-bombing a
>components.xml seems to be the only way.
>
>  
>
>>- Brett
>>
>>jvanzyl@apache.org wrote:
>>
>>    
>>
>>>Author: jvanzyl
>>>Date: Tue Sep 27 07:42:04 2005
>>>New Revision: 291966
>>>
>>>URL: http://svn.apache.org/viewcvs?rev=291966&view=rev
>>>Log:
>>>o adding metadata needed by DefaultRuntimeInformation
>>>o adding required plexus component descriptors
>>>
>>>
>>>Added:
>>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/
>>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/
>>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/
>>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties   (with props)
>>>   maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml   (with props)
>>> 
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>    
>>

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


Re: svn commit: r291966 - in /maven/components/trunk/maven-embedder: ./ src/main/assembly/ src/main/java/org/apache/maven/embedder/ src/main/resources/META-INF/maven/ src/main/resources/META-INF/maven/org.apache.maven/ src/main/resources/META-INF/maven/org...

Posted by Jason van Zyl <ja...@maven.org>.
On Wed, 2005-09-28 at 08:54 +1000, Brett Porter wrote:
> Is this a temporary solution?
> 
> I'm a bit confused - why can't DRI find it from the maven-core JAR? If
> it really needs to be reading the maven-embedder POM should that be made
> to happen instead?

I think this is working exactly in the same way the ant tasks are in
that the assembly plugin throws away the META-INF/plexus/components.xml
file. I see in the maven-ant-tasks that you have a hand rolled
descriptor so I assumed you are doing this as I have too.

Ideally I think the Eclipse plugin could be an OSGi bundle that could
have the intact JARs or maybe the assembly plugin can be taught to
process resources if necessary (I don't believe it does this, maybe I'm
wrong) but for now I just wanted to make a single JAR and hand-bombing a
components.xml seems to be the only way.

> - Brett
> 
> jvanzyl@apache.org wrote:
> 
> >Author: jvanzyl
> >Date: Tue Sep 27 07:42:04 2005
> >New Revision: 291966
> >
> >URL: http://svn.apache.org/viewcvs?rev=291966&view=rev
> >Log:
> >o adding metadata needed by DefaultRuntimeInformation
> >o adding required plexus component descriptors
> >
> >
> >Added:
> >    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/
> >    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/
> >    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/
> >    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties   (with props)
> >    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml   (with props)
> >  
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

  -- Jacques Ellul, The Technological Society


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


Re: svn commit: r291966 - in /maven/components/trunk/maven-embedder: ./ src/main/assembly/ src/main/java/org/apache/maven/embedder/ src/main/resources/META-INF/maven/ src/main/resources/META-INF/maven/org.apache.maven/ src/main/resources/META-INF/maven/org...

Posted by Brett Porter <br...@apache.org>.
Is this a temporary solution?

I'm a bit confused - why can't DRI find it from the maven-core JAR? If
it really needs to be reading the maven-embedder POM should that be made
to happen instead?

- Brett

jvanzyl@apache.org wrote:

>Author: jvanzyl
>Date: Tue Sep 27 07:42:04 2005
>New Revision: 291966
>
>URL: http://svn.apache.org/viewcvs?rev=291966&view=rev
>Log:
>o adding metadata needed by DefaultRuntimeInformation
>o adding required plexus component descriptors
>
>
>Added:
>    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/
>    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/
>    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/
>    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.properties   (with props)
>    maven/components/trunk/maven-embedder/src/main/resources/META-INF/maven/org.apache.maven/maven-core/pom.xml   (with props)
>  
>

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