You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by lightbulb432 <ve...@hotmail.com> on 2007/02/18 21:04:30 UTC
Can't compile project
When I do a mvn -e compiler:compile in the root of my project with a pom.xml
in it, I get the following output. It doesn't work, and I'm not sure why.
Any ideas how I can get it to work?
It's saying that it can't find the file from the remote repository, but
those files were all automatically downloaded into my local repository from
earlier, using those same remote repositories...so I'm not sure whether
that's the problem...
Thanks.
C:\Documents and Settings\Admin\My Documents\Workspace\myproject>mvn -e
compiler
:compile
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'compiler'.
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Unnamed - com.myproject:myproject:jar:0.0.1
[INFO] task-segment: [compiler:compile]
[INFO]
-------------------------------------------------------------------------
---
Downloading:
http://maven.softeu.cz//org/apache/myfaces/tomahawk/tomahawk/1.1.3/
tomahawk-1.1.3.pom
[WARNING] Unable to get resource from repository softeu-repo
(http://maven.softe
u.cz/)
Downloading:
http://repo1.maven.org/maven2/org/apache/myfaces/tomahawk/tomahawk/
1.1.3/tomahawk-1.1.3.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
Downloading:
http://maven.softeu.cz//org/apache/myfaces/tomahawk/tomahawk/1.1.3/
tomahawk-1.1.3.jar
[WARNING] Unable to get resource from repository softeu-repo
(http://maven.softe
u.cz/)
Downloading:
http://repo1.maven.org/maven2/org/apache/myfaces/tomahawk/tomahawk/
1.1.3/tomahawk-1.1.3.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
Downloading:
http://maven.softeu.cz//javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
[WARNING] Unable to get resource from repository softeu-repo
(http://maven.softe
u.cz/)
Downloading:
http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.
1B.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk
-DartifactI
d=tomahawk \
-Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.myproject:myproject:jar:0.0.1
2) jboss.seam.profiles:seam-facelets:jar:1.1.6.GA
3) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
2) javax.transaction:jta:jar:1.0.1B
Try downloading the file manually from:
http://java.sun.com/products/jta
Then, install it using the command:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta
\
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.myproject:myproject:jar:0.0.1
2) jboss.seam.profiles:seam-facelets:jar:1.1.6.GA
3) jboss.seam:jboss-seam-ui:jar:1.1.6.GA
4) jboss.seam:jboss-seam:jar:1.1.6.GA
5) org.hibernate:hibernate-annotations:jar:3.2.1.ga
6) org.hibernate:hibernate:jar:3.2.1.ga
7) javax.transaction:jta:jar:1.0.1B
----------
2 required artifacts are missing.
for artifact:
com.myproject:myproject:jar:0.0.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
softeu-repo (http://maven.softeu.cz/)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk
-DartifactI
d=tomahawk \
-Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.myproject:myproject:jar:0.0.1
2) jboss.seam.profiles:seam-facelets:jar:1.1.6.GA
3) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
2) javax.transaction:jta:jar:1.0.1B
Try downloading the file manually from:
http://java.sun.com/products/jta
Then, install it using the command:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta
\
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.myproject:myproject:jar:0.0.1
2) jboss.seam.profiles:seam-facelets:jar:1.1.6.GA
3) jboss.seam:jboss-seam-ui:jar:1.1.6.GA
4) jboss.seam:jboss-seam:jar:1.1.6.GA
5) org.hibernate:hibernate-annotations:jar:3.2.1.ga
6) org.hibernate:hibernate:jar:3.2.1.ga
7) javax.transaction:jta:jar:1.0.1B
----------
2 required artifacts are missing.
for artifact:
com.myproject:myproject:jar:0.0.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
softeu-repo (http://maven.softeu.cz/)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:551)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
: Missing:
----------
1) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.myfaces.tomahawk
-DartifactI
d=tomahawk \
-Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.myproject:myproject:jar:0.0.1
2) jboss.seam.profiles:seam-facelets:jar:1.1.6.GA
3) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
2) javax.transaction:jta:jar:1.0.1B
Try downloading the file manually from:
http://java.sun.com/products/jta
Then, install it using the command:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta
\
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) com.myproject:myproject:jar:0.0.1
2) jboss.seam.profiles:seam-facelets:jar:1.1.6.GA
3) jboss.seam:jboss-seam-ui:jar:1.1.6.GA
4) jboss.seam:jboss-seam:jar:1.1.6.GA
5) org.hibernate:hibernate-annotations:jar:3.2.1.ga
6) org.hibernate:hibernate:jar:3.2.1.ga
7) javax.transaction:jta:jar:1.0.1B
----------
2 required artifacts are missing.
for artifact:
com.myproject:myproject:jar:0.0.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
softeu-repo (http://maven.softeu.cz/)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:244)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:211)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:182)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDepende
ncies(DefaultPluginManager.java:1117)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:366)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sun Feb 18 13:00:40 MST 2007
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Can%27t-compile-project-tf3249541s177.html#a9033168
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: Can't compile project
Posted by Thierry Lach <th...@gmail.com>.
Noticed this again while going through some of the old emails I had marked
for followup.
There is a maven 2 repository also....
https://maven2-repository.dev.java.net/
On 2/18/07, Mark Derricutt <ma...@talios.com> wrote:
>
> On 2/19/07, Wendy Smoak <ws...@gmail.com> wrote:
> >
> > > 2) javax.transaction:jta:jar:1.0.1B
> >
> > That must be one of the Sun jars that can't go into the central repo
> > due to licensing. Only the pom is there:
> > http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/
> >
>
> Regarding this - I see that Suns maven repository [1] includes this as
> javax.transaction:transaction-api.
>
> Given that Sun is now open sourcing things, and making these libraries
> freely available via their own repository, is it not possible to sync
> their
> repository with the master?
>
> Mark
>
> [1] https://maven-repository.dev.java.net/ - its a maven 1 repository thou
> :(
>
Re: Can't compile project
Posted by Mark Derricutt <ma...@talios.com>.
On 2/19/07, Wendy Smoak <ws...@gmail.com> wrote:
>
> > 2) javax.transaction:jta:jar:1.0.1B
>
> That must be one of the Sun jars that can't go into the central repo
> due to licensing. Only the pom is there:
> http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/
>
Regarding this - I see that Suns maven repository [1] includes this as
javax.transaction:transaction-api.
Given that Sun is now open sourcing things, and making these libraries
freely available via their own repository, is it not possible to sync their
repository with the master?
Mark
[1] https://maven-repository.dev.java.net/ - its a maven 1 repository thou
:(
Re: Can't compile project
Posted by Wendy Smoak <ws...@gmail.com>.
On 2/18/07, lightbulb432 <ve...@hotmail.com> wrote:
>
> When I do a mvn -e compiler:compile in the root of my project with a pom.xml
> in it, I get the following output. It doesn't work, and I'm not sure why.
> Any ideas how I can get it to work?
Try "mvn package" or "mvn install" instead of the plugin:goal syntax
you are using.
> It's saying that it can't find the file from the remote repository, but
> those files were all automatically downloaded into my local repository from
> earlier, using those same remote repositories...so I'm not sure whether
> that's the problem...
What makes you sure the files were downloaded earlier? Has this build
completed successfully in the past?
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
...
> Path to dependency:
> 1) com.myproject:myproject:jar:0.0.1
> 2) jboss.seam.profiles:seam-facelets:jar:1.1.6.GA
> 3) org.apache.myfaces.tomahawk:tomahawk:jar:1.1.3
Tomahawk 1.1.3 is not in the central Maven repo. See:
http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven
> 2) javax.transaction:jta:jar:1.0.1B
That must be one of the Sun jars that can't go into the central repo
due to licensing. Only the pom is there:
http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org