You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "aboussoror@gmail.com" <ab...@gmail.com> on 2010/12/02 15:01:45 UTC

[Antrun]: access to build file located in a jar

Hi


 I'm trying to lauch an antfile from a jar but it'd not working.
If I unzip the jar it works but the idea is to work with the jar.
This is my pom :

	<dependency>
  		<groupId>fr.sogeti.plpm.infra.persistance.jpa</groupId>
  		<artifactId>fr.sogeti.plpm.infra.persistance.jpa.generator</artifactId>
  		<version>0.0.1-SNAPSHOT</version>
  		<type>jar</type>
  		<scope>compile</scope>
  	</dependency>
  	<dependency>
  		<groupId>fr.sogeti.plpm.infra.persistance.jpa</groupId>
  		<artifactId>fr.sogeti.plpm.infra.persistance.jpa.model</artifactId>
  		<version>0.0.1-SNAPSHOT</version>
  		<type>jar</type>
  		<scope>compile</scope>
  	</dependency>
  </dependencies>
  
  <build>
<plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.6</version>
        <executions>
          <execution>
            <phase>compile</phase>
            <configuration>
              <tasks>
        <ant 
      antfile ="D:\Documents and
settings\elabouss\.m2\repository\fr\sogeti\plpm\infra\persistance\jpa\fr.sogeti.plpm.infra.persistance.jpa.model\0.0.1-SNAPSHOT\fr.sogeti.plpm.infra.persistance.jpa.model-0.0.1-SNAPSHOT.jar/0_UML2JPA_chain.xml"/>


              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

Any idea ?
thanks
-- 
View this message in context: http://maven.40175.n5.nabble.com/Antrun-access-to-build-file-located-in-a-jar-tp3289407p3289407.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


Re: [Antrun]: access to build file located in a jar

Posted by Wayne Fay <wa...@gmail.com>.
>  I'm trying to lauch an antfile from a jar but it'd not working.
> If I unzip the jar it works but the idea is to work with the jar.
>
>        <ant
>      antfile ="D:\Documents and
> settings\elabouss\.m2\repository\fr\sogeti\plpm\infra\persistance\jpa\fr.sogeti.plpm.infra.persistance.jpa.model\0.0.1-SNAPSHOT\fr.sogeti.plpm.infra.persistance.jpa.model-0.0.1-SNAPSHOT.jar/0_UML2JPA_chain.xml"/>

Did you just make this up and hope/assume it would work? Where are you
getting this from? I can see no such support for this kind of feature
listed in any documentation for Maven, Ant, or the Antrun plugin
itself.

Wayne

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