You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by buzzterrier <te...@gmail.com> on 2008/03/04 21:47:24 UTC
Compile error, cannot find locally installed resource
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Compile error, cannot find locally installed resource
Posted by Wayne Fay <wa...@gmail.com>.
No.
Wayne
On 3/4/08, Karthik Krishnan <kr...@gmail.com> wrote:
> 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 <wa...@gmail.com> wrote:
>
> > What exactly do you want to know/do?
> >
> > Wayne
> >
> > On 3/4/08, Karthik Krishnan <kr...@gmail.com> wrote:
> > > Hi,
> > >
> > > Is there a way to configure the pom creation?
> > >
> > > Thanks,
> > >
> > > Karthik
> > >
> > > On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier <te...@gmail.com>
> > 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 <te...@gmail.com> 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: 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
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > 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: 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: Compile error, cannot find locally installed resource
Posted by Karthik Krishnan <kr...@gmail.com>.
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 <wa...@gmail.com> wrote:
> What exactly do you want to know/do?
>
> Wayne
>
> On 3/4/08, Karthik Krishnan <kr...@gmail.com> wrote:
> > Hi,
> >
> > Is there a way to configure the pom creation?
> >
> > Thanks,
> >
> > Karthik
> >
> > On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier <te...@gmail.com>
> 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 <te...@gmail.com> 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: 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
> > > >
> > > >
> > > >
> > >
> > > --
> > > 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: 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: Compile error, cannot find locally installed resource
Posted by Wayne Fay <wa...@gmail.com>.
What exactly do you want to know/do?
Wayne
On 3/4/08, Karthik Krishnan <kr...@gmail.com> wrote:
> Hi,
>
> Is there a way to configure the pom creation?
>
> Thanks,
>
> Karthik
>
> On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier <te...@gmail.com> 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 <te...@gmail.com> 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: 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
> > >
> > >
> > >
> >
> > --
> > 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: 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: Compile error, cannot find locally installed resource
Posted by Karthik Krishnan <kr...@gmail.com>.
Hi,
Is there a way to configure the pom creation?
Thanks,
Karthik
On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier <te...@gmail.com> 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 <te...@gmail.com> 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: 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
> >
> >
> >
>
> --
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Compile error, cannot find locally installed resource
Posted by buzzterrier <te...@gmail.com>.
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 <te...@gmail.com> 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: 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
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Compile error, cannot find locally installed resource
Posted by Wayne Fay <wa...@gmail.com>.
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 <te...@gmail.com> 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: 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: Compile error, cannot find locally installed resource
Posted by buzzterrier <te...@gmail.com>.
Yep.
It contains:
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.foo.core</groupId>
<artifactId>CoreTools</artifactId>
<version>1.0-SNAPSHOT</version>
<description>POM was created from install:install-file</description>
</project>
mgainty wrote:
>
> In the same folder as the jar you should see
> CoreTools-1.0-SNAPSHOT.pom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15839649.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: Compile error, cannot find locally installed resource
Posted by Martin Gainty <mg...@hotmail.com>.
In the same folder as the jar you should see
CoreTools-1.0-SNAPSHOT.pom
M-
----- Original Message -----
From: "buzzterrier" <te...@gmail.com>
To: <us...@maven.apache.org>
Sent: Tuesday, March 04, 2008 3:47 PM
Subject: Compile error, cannot find locally installed resource
>
> 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\Core
Tools-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-resourc
e-tp15836706s177p15836706.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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org