I have the module foo-util which is dependent on core module. So in my pom,
I have this dependency.

<dependency>
    <groupId>foo</groupId>
    <artifactId>foo-core</artifactId>
    <version>${project.version}</version>
    <scope>compile</scope>
    </dependency>

The foo-core has been compiled and packaged into a jar. I want to package
the  foot-util jar into a jar. I saw the post where you install the
third_party jar by adding the argument -DgeneratePom=true. I was wondering
that instead of having to install 3 party jars again and again, perhaps we
could configure the pom.xml to handle the generatePom attribute.

Thanks,

Karthik

On Tue, Mar 4, 2008 at 2:28 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:

> What exactly do you want to know/do?
>
> Wayne
>
> On 3/4/08, Karthik Krishnan <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Is there a way to configure the pom creation?
> >
> > Thanks,
> >
> > Karthik
> >
> > On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier <[EMAIL PROTECTED]>
> wrote:
> >
> > >
> > > Thanks Wayne,
> > >
> > > That took care of that pom error at the start, but it still fails for
> to
> > > find the CoreTools-1.0-SNAPSHOT.jar when it tries to compile.  Really
> odd,
> > > because it is clearly on the classpath.
> > >
> > >
> > >
> > > Wayne Fay wrote:
> > > >
> > > > Its not finding the pom file because it doesn't exist, so its
> running
> > > > out and trying to find one in remote repos. Re-run mvn install and
> > > > this time specify -DgeneratePom=true along with the other
> parameters.
> > > >
> > > > Wayne
> > > >
> > > > On 3/4/08, buzzterrier <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >> Hello,
> > > >>
> > > >> I am new to Maven2 and am trying to get one of our applications
> > > building
> > > >> with it. I want to build myApp, and we have a home grown
> CoreTools.jar
> > > >> that
> > > >> is a dependency. The path of least resistance seemed to be to add
> > > >> CoreTools.jar as as dependency and then install it into my local
> > > >> repository.
> > > >>
> > > >>                <dependency>
> > > >>                        <groupId>com.foo.core</groupId>
> > > >>                        <artifactId>CoreTools</artifactId>
> > > >>                        <version>1.0-SNAPSHOT</version>
> > > >>                        <scope>compile</scope>
> > > >>                </dependency>
> > > >>
> > > >> The Core jar is installed:
> > > >> C:\Documents and
> > > >>
> > >
> Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-
> > > 1.0-SNAPSHOT.jar
> > > >>
> > > >>
> > > >> However, when I run the compile goal, it cannot resolve the path to
> it.
> > > >>
> > > >> ----
> > > >> [DEBUG] CoreTools: using locally installed snapshot
> > > >> [DEBUG] Trying repository gwt-maven
> > > >> Downloading:
> > > >>
> > >
> http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
> > > >> [DEBUG] Unable to get resource '
> com.foo.core:CoreTools:pom:1.0-SNAPSHOT
> > > '
> > > >> from repository gwt-maven
> > > >> (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
> > > >> [DEBUG] Skipping disabled repository central
> > > >> [DEBUG] Artifact not found - using stub model: Unable to download
> the
> > > >> artifact from any repository
> > > >>
> > > >>  com.foo.core:CoreTools:pom:1.0-SNAPSHOT
> > > >>
> > > >> from the specified remote repositories:
> > > >>  central (http://repo1.maven.org/maven2),
> > > >>  gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
> > > >>
> > > >> [DEBUG] Using defaults for missing POM
> > > >> com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
> > > >> [DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected
> for
> > > >> compile)
> > > >> ...
> > > >>
> > > >>   [ERROR] Errors in
> > > >> 'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
> > > >>      [ERROR] Line 19:  The import com.foo.core.Action cannot be
> > > resolved
> > > >>      [ERROR] Line 26:  Action cannot be resolved to a type
> > > >> ----
> > > >>
> > > >> where com.foo.core.Action resides in CoreTools.jar
> > > >>
> > > >> If I add Action.java to myApp/src/main/java/com/foo/core then it
> > > >> compiles.
> > > >>
> > > >> And the classpath from the maven output appears to correctly see
> the
> > > >> CoreTools.jar.
> > > >>
> > > >> Any ideas? I am certain that I am not handling the CoreTools.jar in
> an
> > > >> elegant way, but for right now I was just looking to get myApp to
> > > >> compile,
> > > >> and refactor from there.
> > > >>
> > > >>
> > > >> --
> > > >> View this message in context:
> > > >>
> > >
> http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
> > > >> Sent from the Maven - Users mailing list archive at Nabble.com.
> > > >>
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>
> > > >>
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > >
> http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15837552.html
> > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to