This packet is chosen as my project. I am new to Java and Maven and other stuff. I am using Windows 7 and all latest Eclipse, Maven, git as of today.
When I downloaded and compiled FrontlineSMS, it works fine (can build and the FrontlineSMS interface can pop up). However, when I changed all remote repositories to local ones, such as the pom.xml in dist is:
The project net.frontlinesms.core:frontlinesms-dist:1.7.00-beta-6-SNAPSHOT (C:\git\frontlinesms-super-project\dist\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Failure to find net.frontlinesms.core:frontlinesms-pom-parent:pom:1.7.00-beta-5 in file:///C:/git/frontlinesms-super-project/dist was cached in the local repository, resolution will not be reattempted until the update interval of frontlinesms.repo has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 8, column 10 -> [Help 2] [ERROR]
I have tried a few options, Option 1. Change all repositories in core and dist to file:///C:/git/frontlinesms-super-project/; Option 2. Change all repositories with their own individual directory, such as for core, use file:///C:/git/frontlinesms-super-project/core while for dist, use file:///C:/git/frontlinesms-super-project/dist
So my question is: Do I also need to update all four pom.xmls under root, dist, core, and parent to let them point to local copies?
Not sure why changing repositories to be local directories is helpful
- if you run mvn install then artifacts are deployed to your local
repository anyway (~/.m2/repository).
The issue you're probably facing is the definition:
<project>
...
<parent>
<relativePath>...this value is probably not right for
you...</relativePath>
Let me know how changing that/moving the pom-parent dir goes.
Alex
On 7 June 2012 05:24, Steven Camarillo <www.clemson....@gmail.com> wrote:
> This packet is chosen as my project. I am new to Java and Maven and other
> stuff. I am using Windows 7 and all latest Eclipse, Maven, git as of today.
> When I downloaded and compiled FrontlineSMS, it works fine (can build and
> the FrontlineSMS interface can pop up). However, when I changed all remote
> repositories to local ones, such as the pom.xml in dist is:
> The project net.frontlinesms.core:frontlinesms-dist:1.7.00-beta-6-SNAPSHOT
> (C:\git\frontlinesms-super-project\dist\pom.xml) has 1 error
> [ERROR] Non-resolvable parent POM: Failure to find
> net.frontlinesms.core:frontlinesms-pom-parent:pom:1.7.00-beta-5 in
> file:///C:/git/frontlinesms-super-project/dist was cached in the local
> repository, resolution will not be reattempted until the update interval of
> frontlinesms.repo has elapsed or updates are forced and
> 'parent.relativePath' points at wrong local POM @ line 8, column 10 -> [Help
> 2]
> [ERROR]
> I have tried a few options,
> Option 1. Change all repositories in core and dist to
> file:///C:/git/frontlinesms-super-project/;
> Option 2. Change all repositories with their own individual directory, such
> as for core, use file:///C:/git/frontlinesms-super-project/core while for
> dist, use file:///C:/git/frontlinesms-super-project/dist
> So my question is: Do I also need to update all four pom.xmls under root,
> dist, core, and parent to let them point to local copies?
On Thursday, June 7, 2012 9:13:36 AM UTC-7, Alex Anderson wrote:
> Hi Steven,
> Not sure why changing repositories to be local directories is helpful > - if you run mvn install then artifacts are deployed to your local > repository anyway (~/.m2/repository).
> The issue you're probably facing is the definition:
> <project> > ... > <parent> > <relativePath>...this value is probably not right for > you...</relativePath>
> Let me know how changing that/moving the pom-parent dir goes.
> Alex
> On 7 June 2012 05:24, Steven Camarillo <www.clemson....@gmail.com> wrote: > > Hello All:
> > This packet is chosen as my project. I am new to Java and Maven and > other > > stuff. I am using Windows 7 and all latest Eclipse, Maven, git as of > today.
> > When I downloaded and compiled FrontlineSMS, it works fine (can build > and > > the FrontlineSMS interface can pop up). However, when I changed all > remote > > repositories to local ones, such as the pom.xml in dist is:
> > The project > net.frontlinesms.core:frontlinesms-dist:1.7.00-beta-6-SNAPSHOT > > (C:\git\frontlinesms-super-project\dist\pom.xml) has 1 error > > [ERROR] Non-resolvable parent POM: Failure to find > > net.frontlinesms.core:frontlinesms-pom-parent:pom:1.7.00-beta-5 in > > file:///C:/git/frontlinesms-super-project/dist was cached in the local > > repository, resolution will not be reattempted until the update interval > of > > frontlinesms.repo has elapsed or updates are forced and > > 'parent.relativePath' points at wrong local POM @ line 8, column 10 -> > [Help > > 2] > > [ERROR]
> > I have tried a few options, > > Option 1. Change all repositories in core and dist to > > file:///C:/git/frontlinesms-super-project/; > > Option 2. Change all repositories with their own individual directory, > such > > as for core, use file:///C:/git/frontlinesms-super-project/core while > for > > dist, use file:///C:/git/frontlinesms-super-project/dist
> > So my question is: Do I also need to update all four pom.xmls under > root, > > dist, core, and parent to let them point to local copies?
On 18 June 2012 08:20, Steven Camarillo <www.clemson....@gmail.com> wrote:
> Thanks, Alex.
> What I did is using Eclipse to download source code, and from Windows7
> terminal, at dist, run "mvn install". Then maven can build it with success.
> However, when I went to directory dist/target, and run it,
> "java frontlinesms-dist-1.7.00-beta-6-SNAPSHOT.jar, "
> it reports:
> "Error: could not find or load main class
> frontlinesms-dist-1.7.00-beta-6-SNAPSHOT.jar"
> How to solve the problem? Is this a path issue?
Yeah, kind of. This is how Maven works - look at the size of the JAR
you've created - it's *only* frontlinesms-dist, and does not include
any dependencies. If you want to run the project, run `mvn exec:java`
from the project's root directory.