Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Compiling local copies and met parent's pom not found errors
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steven Camarillo  
View profile  
 More options Jun 6 2012, 10:24 pm
From: Steven Camarillo <www.clemson....@gmail.com>
Date: Wed, 6 Jun 2012 19:24:34 -0700 (PDT)
Local: Wed, Jun 6 2012 10:24 pm
Subject: Compiling local copies and met parent's pom not found errors

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:

        <repository>
            <id>frontlinesms.repo</id>
            <name>FrontlineSMS Maven repository</name>
            <url>*file:///C:/git/frontlinesms-super-project/dist*</url>
        </repository>

The parent section was correct and the relative directory was there,

    <parent>
        <groupId>net.frontlinesms.core</groupId>
        <artifactId>frontlinesms-pom-parent</artifactId>
        <version>1.7.00-beta-5</version>
        <relativePath>../pom-parent</relativePath>
    </parent>

It reports:

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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Anderson  
View profile  
 More options Jun 7 2012, 12:13 pm
From: Alex Anderson <alexanderandersonofando...@gmail.com>
Date: Thu, 7 Jun 2012 19:13:36 +0300
Local: Thurs, Jun 7 2012 12:13 pm
Subject: Re: [frontlinesms-dev] Compiling local copies and met parent's pom not found errors
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to ""Error: could not find or load main class frontlinesms-dist-1.7.00-beta-6-SNAPSHOT.jar"" by Steven Camarillo
Steven Camarillo  
View profile  
 More options Jun 18 2012, 1:20 am
From: Steven Camarillo <www.clemson....@gmail.com>
Date: Sun, 17 Jun 2012 22:20:35 -0700 (PDT)
Local: Mon, Jun 18 2012 1:20 am
Subject: "Error: could not find or load main class frontlinesms-dist-1.7.00-beta-6-SNAPSHOT.jar"

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?

Thanks.

Steven.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Anderson  
View profile  
 More options Jun 18 2012, 2:10 am
From: Alex Anderson <alexanderandersonofando...@gmail.com>
Date: Mon, 18 Jun 2012 09:10:34 +0300
Local: Mon, Jun 18 2012 2:10 am
Subject: Re: [frontlinesms-dev] "Error: could not find or load main class frontlinesms-dist-1.7.00-beta-6-SNAPSHOT.jar"
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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »