You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chandrika <ch...@wipro.com> on 2006/05/29 12:58:27 UTC

Unable to locate local repository in Mac-OSX

hi, 

I had set my local repo in machintosh-OS, with all the jars installed in
it...
In settings.xml i had given the path of my local repository...
I had commented proxy setups, and made offline=true....with these settings
when i run mvn compile it still looks for my jars in remote repository...its
obviously difficult to give the download path of all jars in pom.xml and try
from remote...im doubtful on this with mac-OSX...coz, repo with .m2 as name
is illegal for mac-OS...so, i had created it with acceptable name...but im
unable to refer my local_repo...any solutions to locate my local
repository...
--
View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4609269
Sent from the Maven - Users forum at Nabble.com.


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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Roland Asmann <Ro...@cfc.at>.
You could try using the jboss-maven-plugin, like this:

<plugin>
	<groupId>org.codehaus.mojo</groupId>
	<artifactId>jboss-maven-plugin</artifactId>
	<configuration>
		<jbossHome>/path/to/jboss</jbossHome>
	</configuration>
</plugin>

And then run one of its goals (deploy / harddeploy)

Roland



On Tuesday 30 May 2006 21:02, Wayne Fay wrote:
> Unfortunately I don't use JBoss, so I'm not much help. My OC4J samples
> won't give you any useful info!
>
> Wayne
>
> On 5/30/06, Leo L <le...@gmail.com> wrote:
> > Hi Wayne!
> > I´m using Jboss4.0.2  can you help how can i configure my build.xml.
> > I followed what you said abou packing with maven and deploy with and
> > worried how maven works with ant.
> > I get that, but i have a problem in my build.xml, i saw many examples and
> > i couldn´t success yet...
> > Can you help me send me a build.xml example ????
> > my pom.xml and my build.xml
> >
> > pom.xml
> > ...
> >        <plugin>
> >         <artifactId>maven-antrun-plugin</artifactId>
> >         <executions>
> >           <execution>
> >             <phase>compile</phase>
> >             <configuration>
> >               <tasks>
> >                      <echo message="Efetuando o deploy..."/>
> >                      <ant antfile="build.xml" target="deploy"
> > inheritAll="true"/>
> >                      <echo message="Deploy complete"/>
> >               </tasks>
> >             </configuration>
> >             <goals>
> >               <goal>run</goal>
> >             </goals>
> >           </execution>
> >         </executions>
> >        </plugin>
> > ....
> >
> >
> > my build.xml
> >
> > <project name="buildDeploy">
> >    <target name="deploy">
> >         <scp file="/target/App.ear" todir="
> > user@server:/opt/jboss-4.0.1sp1/server/default" password="xxx"/>
> >     </target>
> > </project>
> >
> >
> > what Am i doing wrong????
> >
> > Regards,
> >
> > Leo
> >
> > 2006/5/30, Wayne Fay <wa...@gmail.com>:
> > > I don't know what app servers you guys are running, but we have
> > > discussed most of them on this list at some point I'm sure, esp JBoss,
> > > Tomcat, etc.
> > >
> > > Search the Maven User list archive at Nabble for "deploy <your app
> > > server here>" and you're bound to find examples.
> > >
> > > Wayne
> > >
> > > On 5/30/06, Leo L < leo.maven@gmail.com> wrote:
> > > > Hi Chandrika and Kennye!
> > > >
> > > > I have the same problem and your conversation helps a lot, but any of
> > >
> > > you
> > >
> > > > has a build.xml and a pom.xml configuration to deploy an
> > > > application????
> > > >
> > > >
> > > > So i can see how to deploy my app..
> > > >
> > > > Regards,
> > > > Leo
> > > >
> > > > 2006/5/30, Chandrika <ch...@wipro.com>:
> > > > > Thanks for your reply...
> > > > > I m able to invoke ant form maven:)))
> > > > > --
> > > > > View this message in context:
> > >
> > > http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t169
> > >8478.html#a4625037
> > >
> > > > > Sent from the Maven - Users forum at Nabble.com
> > > > > <http://nabble.com/>.
> > > > >
> > > > >
> > > > > -------------------------------------------------------------------
> > > > >-- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For
> > > > > additional commands, e-mail: users-help@maven.apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Wayne Fay <wa...@gmail.com>.
Unfortunately I don't use JBoss, so I'm not much help. My OC4J samples
won't give you any useful info!

Wayne

On 5/30/06, Leo L <le...@gmail.com> wrote:
> Hi Wayne!
> I´m using Jboss4.0.2  can you help how can i configure my build.xml.
> I followed what you said abou packing with maven and deploy with and worried
> how maven works with ant.
> I get that, but i have a problem in my build.xml, i saw many examples and i
> couldn´t success yet...
> Can you help me send me a build.xml example ????
> my pom.xml and my build.xml
>
> pom.xml
> ...
>        <plugin>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <executions>
>           <execution>
>             <phase>compile</phase>
>             <configuration>
>               <tasks>
>                      <echo message="Efetuando o deploy..."/>
>                      <ant antfile="build.xml" target="deploy"
> inheritAll="true"/>
>                      <echo message="Deploy complete"/>
>               </tasks>
>             </configuration>
>             <goals>
>               <goal>run</goal>
>             </goals>
>           </execution>
>         </executions>
>        </plugin>
> ....
>
>
> my build.xml
>
> <project name="buildDeploy">
>    <target name="deploy">
>         <scp file="/target/App.ear" todir="
> user@server:/opt/jboss-4.0.1sp1/server/default" password="xxx"/>
>     </target>
> </project>
>
>
> what Am i doing wrong????
>
> Regards,
>
> Leo
>
>
>
> 2006/5/30, Wayne Fay <wa...@gmail.com>:
> >
> > I don't know what app servers you guys are running, but we have
> > discussed most of them on this list at some point I'm sure, esp JBoss,
> > Tomcat, etc.
> >
> > Search the Maven User list archive at Nabble for "deploy <your app
> > server here>" and you're bound to find examples.
> >
> > Wayne
> >
> > On 5/30/06, Leo L < leo.maven@gmail.com> wrote:
> > > Hi Chandrika and Kennye!
> > >
> > > I have the same problem and your conversation helps a lot, but any of
> > you
> > > has a build.xml and a pom.xml configuration to deploy an application????
> >
> > >
> > > So i can see how to deploy my app..
> > >
> > > Regards,
> > > Leo
> > >
> > >
> > > 2006/5/30, Chandrika <ch...@wipro.com>:
> > > >
> > > >
> > > > Thanks for your reply...
> > > > I m able to invoke ant form maven:)))
> > > > --
> > > > View this message in context:
> > > >
> > http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
> > > > Sent from the Maven - Users forum at Nabble.com <http://nabble.com/>.
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>

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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Leo L <le...@gmail.com>.
Hi Wayne!
I´m using Jboss4.0.2  can you help how can i configure my build.xml.
I followed what you said abou packing with maven and deploy with and worried
how maven works with ant.
I get that, but i have a problem in my build.xml, i saw many examples and i
couldn´t success yet...
Can you help me send me a build.xml example ????
my pom.xml and my build.xml

pom.xml
...
       <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>compile</phase>
            <configuration>
              <tasks>
                     <echo message="Efetuando o deploy..."/>
                     <ant antfile="build.xml" target="deploy"
inheritAll="true"/>
                     <echo message="Deploy complete"/>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
       </plugin>
....


my build.xml

<project name="buildDeploy">
   <target name="deploy">
        <scp file="/target/App.ear" todir="
user@server:/opt/jboss-4.0.1sp1/server/default" password="xxx"/>
    </target>
</project>


what Am i doing wrong????

Regards,

Leo



2006/5/30, Wayne Fay <wa...@gmail.com>:
>
> I don't know what app servers you guys are running, but we have
> discussed most of them on this list at some point I'm sure, esp JBoss,
> Tomcat, etc.
>
> Search the Maven User list archive at Nabble for "deploy <your app
> server here>" and you're bound to find examples.
>
> Wayne
>
> On 5/30/06, Leo L < leo.maven@gmail.com> wrote:
> > Hi Chandrika and Kennye!
> >
> > I have the same problem and your conversation helps a lot, but any of
> you
> > has a build.xml and a pom.xml configuration to deploy an application????
>
> >
> > So i can see how to deploy my app..
> >
> > Regards,
> > Leo
> >
> >
> > 2006/5/30, Chandrika <ch...@wipro.com>:
> > >
> > >
> > > Thanks for your reply...
> > > I m able to invoke ant form maven:)))
> > > --
> > > View this message in context:
> > >
> http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
> > > Sent from the Maven - Users forum at Nabble.com <http://nabble.com/>.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Wayne Fay <wa...@gmail.com>.
I don't know what app servers you guys are running, but we have
discussed most of them on this list at some point I'm sure, esp JBoss,
Tomcat, etc.

Search the Maven User list archive at Nabble for "deploy <your app
server here>" and you're bound to find examples.

Wayne

On 5/30/06, Leo L <le...@gmail.com> wrote:
> Hi Chandrika and Kennye!
>
> I have the same problem and your conversation helps a lot, but any of you
> has a build.xml and a pom.xml configuration to deploy an application????
>
> So i can see how to deploy my app..
>
> Regards,
> Leo
>
>
> 2006/5/30, Chandrika <ch...@wipro.com>:
> >
> >
> > Thanks for your reply...
> > I m able to invoke ant form maven:)))
> > --
> > View this message in context:
> > http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
> > Sent from the Maven - Users forum at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>

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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Leo L <le...@gmail.com>.
Hi Chandrika and Kennye!

I have the same problem and your conversation helps a lot, but any of you
has a build.xml and a pom.xml configuration to deploy an application????

So i can see how to deploy my app..

Regards,
Leo


2006/5/30, Chandrika <ch...@wipro.com>:
>
>
> Thanks for your reply...
> I m able to invoke ant form maven:)))
> --
> View this message in context:
> http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Chandrika <ch...@wipro.com>.
Thanks for your reply...
I m able to invoke ant form maven:)))
--
View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4625037
Sent from the Maven - Users forum at Nabble.com.


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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Kenney Westerhof <ke...@apache.org>.
On Mon, 29 May 2006, Chandrika wrote:

>
> hi....as u expect i had hand modified it....i have the proper typo and
> <artifactId> in my pom....there are no syntax/typo or missing tag
> errors...but, let me know invoking antrun really runs the build.xml????
> also, is there any other tasks that i can try for debugging the problem? or
> any other goal i can try to run...could u give a simple example that invokes
> the antrun plugin???

Sure.. pom.xml:

-----------
<project xmlns="http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>testing</groupId>
  <artifactId>testantrun</artifactId>
  <packaging>war</packaging>
  <version>0.1-SNAPSHOT</version>

  <name>TestAntRun</name>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>compile</phase>
            <configuration>
              <tasks>
                <echo message="Hello world from pom.xml!"/>
                <ant antfile="build.xml" target="test" inheritAll="true">
                  <property name="warFile"
value="${project.build.directory}/${project.build.finalName}.war"/>
                </ant>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

----------

build.xml:

------------
<project name="Test">
  <target name="test">
    <echo>Hello world, from build.xml file! (warFile: ${warFile})</echo>
  </target>
</project>
------------


Output from 'mvn compile':

[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building TestAntRun
[INFO]    task-segment: [compile]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] Hello world from pom.xml!

test:
     [echo] Hello world, from build.xml file! (warFile:
/vol/home/forge/work/sandbox/m2test/antrun/test/target/testantrun-0.1-SNAPSHOT.war)
[INFO] Executed tasks
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue May 30 07:39:35 CEST 2006
[INFO] Final Memory: 4M/7M
[INFO]
------------------------------------------------------------------------



but if I were you i'd link the ant task to the 'package' phase, so it can
operate on the .war  file.

-- Kenney

>
> Thanks
> Chandrika
> --
> View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4621311
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Chandrika <ch...@wipro.com>.
hi....as u expect i had hand modified it....i have the proper typo and
<artifactId> in my pom....there are no syntax/typo or missing tag
errors...but, let me know invoking antrun really runs the build.xml????
also, is there any other tasks that i can try for debugging the problem? or
any other goal i can try to run...could u give a simple example that invokes
the antrun plugin???

Thanks 
Chandrika
--
View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4621311
Sent from the Maven - Users forum at Nabble.com.


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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Kenney Westerhof <ke...@apache.org>.
On Mon, 29 May 2006, Chandrika wrote:

Hi,

First, you've got a typo in the </configuration> tag ('confiiguration')
so I doubt you're getting a 'build successful'.

Next, you're missing the plugin definition; you need
<artifactId>maven-antrun-plugin</artifactId> in the <plugin> tag.

Finally, I assume your pom.xml contains a <project> tag
around the <build> tag, and your build.xml contains a <project> tag around the
<target> tag?

If all the above are fixed, then it should work just fine.
My guess is that you've hand-modified your original pom and build.xml in
pasting to this E-Mail, so something else might be wrong.

-- Kenney

>
> Hi,
> running mvn compile invokes maven's style of compilation which results in
> creating maven's directory structure as target/classes etc...im ok to have
> my pjt to follow the structure...but, i need my war file to get deployed
> directly in my app-server...for which im using ant build
> scripts...however,maven's install does it in local_repository...
> if maven cannot invoke ant's build script, what is the purpose of the plugin
> antrun:run???
> 'compile' is the phase under which im trying the goal 'run'...i tried a
> simple project....say, Sample...under sample i have pom.xml and
> build.xml...my build script echoes 'hello world'...
> my pom.xml follows as
> <build>
>   <plugins>
>     <plugin>
>       <executions>
>          <execution>
>             <phase>compile</phase>
>                <configuration>
>                   <tasks>
>                        <ant inherit='true' antfile="build.xml"
> target='prepare'/>
>                   </tasks>
>               </confiiguration>
>              <goals>
>                      <goal>run</goal>
>              </goals>
>           </execution>
>       </execution>
>     </plugin>
>   </plugins>
> </build>
>
> My build.xml is as follows
> <target name='prepare'>
>    <echo>Hello world</echo>
> </target>
>
> Running mvn antrun:run from project's root directory gives the o/p as build
> successful...but, it is not running my build script...my echo is not seen in
> output....
> any one could really help me on how to execute ant's build script with
> maven???
>
> Thanks in advance
> Chandrika
>
> --
> View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4621068
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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


Re: Unable to locate local repo in Mac-OSX(how to call ant from maven)

Posted by Chandrika <ch...@wipro.com>.
Hi, 
running mvn compile invokes maven's style of compilation which results in
creating maven's directory structure as target/classes etc...im ok to have
my pjt to follow the structure...but, i need my war file to get deployed
directly in my app-server...for which im using ant build
scripts...however,maven's install does it in local_repository...
if maven cannot invoke ant's build script, what is the purpose of the plugin
antrun:run???
'compile' is the phase under which im trying the goal 'run'...i tried a
simple project....say, Sample...under sample i have pom.xml and
build.xml...my build script echoes 'hello world'...
my pom.xml follows as
<build>
  <plugins>
    <plugin>
      <executions>
         <execution>
            <phase>compile</phase>
               <configuration>
                  <tasks>
                       <ant inherit='true' antfile="build.xml"
target='prepare'/>
                  </tasks>
              </confiiguration>
             <goals>
                     <goal>run</goal>
             </goals>
          </execution>
      </execution>
    </plugin>
  </plugins>
</build>

My build.xml is as follows
<target name='prepare'>
   <echo>Hello world</echo>
</target>

Running mvn antrun:run from project's root directory gives the o/p as build
successful...but, it is not running my build script...my echo is not seen in
output....
any one could really help me on how to execute ant's build script with
maven???

Thanks in advance
Chandrika

--
View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4621068
Sent from the Maven - Users forum at Nabble.com.


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


Re: Unable to locate local repository in Mac-OSX

Posted by Roland Asmann <Ro...@cfc.at>.
You shouldn't run 'antrun:run' directly, because it has no clue what to do! Even with a part specified inside your POM.
Your POM looks okay, try running 'mvn compile' to see if Ant is being run.

Roland



On Monday 29 May 2006 18:12, Chandrika wrote:
> hi steve,
> Thanks for ur reply...it works!
> My settings.xml is located under maven_home/conf and also i had created one
> under localrepo_home...I tried changing in both...
>
> I have one more query in invoking ant from maven!
>  In my pom.xml i had given
>
> <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <executions>
>           <execution>
>            <phase>compile</phase>
>             <configuration>
>            	   <tasks>
> 	        	    <ant inheritall="false" antfile="build.xml" target="all"
>
> ></ant>
>
>               	  </tasks>
>              </configuration>
>             <goals>
>               <goal>run</goal>
>             </goals>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
> </build>
>
> My build.xml is under Project_root/Build/build.xml....when i run "mvn
> antrun:run" from Build, it shows build is successful without executing any
> of the ant-scripts...
> i m struggling to invoke ant from maven ...u have any working sample of
> invoking ant through maven?
>
> Thanks,
> Chandrika
> --
> View this message in context:
> http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478
>.html#a4613553 Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


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


Re: Unable to locate local repository in Mac-OSX

Posted by Chandrika <ch...@wipro.com>.
hi steve, 
Thanks for ur reply...it works!
My settings.xml is located under maven_home/conf and also i had created one
under localrepo_home...I tried changing in both...

I have one more query in invoking ant from maven!
 In my pom.xml i had given 

<build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
           <phase>compile</phase>
            <configuration>
           	   <tasks>
	        	    <ant inheritall="false" antfile="build.xml" target="all"
></ant>
              	  </tasks>
             </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
</build>

My build.xml is under Project_root/Build/build.xml....when i run "mvn
antrun:run" from Build, it shows build is successful without executing any
of the ant-scripts...
i m struggling to invoke ant from maven ...u have any working sample of
invoking ant through maven?

Thanks,
Chandrika
--
View this message in context: http://www.nabble.com/Unable+to+locate+local+repository+in+Mac-OSX-t1698478.html#a4613553
Sent from the Maven - Users forum at Nabble.com.


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


Re: Unable to locate local repository in Mac-OSX

Posted by Stephen Coy <st...@gmail.com>.
Using ~/.m2/... works fine on my Mac. The Finder won't let you create  
a directory whose name begins with a ".", but you can do it easily  
from a command line. But ordinarily, you don't need to create it at  
all because maven will do that for you. In fact, I reckon that you  
already have one. Try using the Finder's "Go/Go To Folder.." command  
and type in "~/.m2" and see what happens.

As you have not been able to find this directory, where is the  
settings.xml file that you are changing located?

Steve C.


On 29/05/2006, at 8:58 PM, Chandrika wrote:

>
> hi,
>
> I had set my local repo in machintosh-OS, with all the jars  
> installed in
> it...
> In settings.xml i had given the path of my local repository...
> I had commented proxy setups, and made offline=true....with these  
> settings
> when i run mvn compile it still looks for my jars in remote  
> repository...its
> obviously difficult to give the download path of all jars in  
> pom.xml and try
> from remote...im doubtful on this with mac-OSX...coz, repo with .m2  
> as name
> is illegal for mac-OS...so, i had created it with acceptable  
> name...but im
> unable to refer my local_repo...any solutions to locate my local
> repository...
> --
> View this message in context: http://www.nabble.com/Unable+to+locate 
> +local+repository+in+Mac-OSX-t1698478.html#a4609269
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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