You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lecharny <el...@gmail.com> on 2008/08/29 19:50:40 UTC
Pb building Studio from scratch, missing artifact
Hi guys,
while trying to fix the bug I introduced lately with my modification in
shared, I found that it was not possible to run mvn eclipse:eclipse on
studio, because of the missing studio-dsml-parser jar.
There must be something wrong in the way we declare the dependencies or
the build order. Does enyone has an idea ?
Here are the logs I get (Pierre-Arnaud confirmed that he has the same
problem) :
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Directory Studio Jars
[INFO] task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
Downloading:
http://repo1.maven.org/maven2/org/apache/directory/studio/studio-dsml-parser/0.4.2/studio-dsml-parser-0.4.2.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.directory.studio:studio-dsml-parser:jar:0.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.directory.studio
-DartifactId=studio-dsml-parser -Dversion=0.4.2 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.directory.studio
-DartifactId=studio-dsml-parser -Dversion=0.4.2 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.directory.studio:jars:jar:1.3.0.SNAPSHOT
2) org.apache.directory.studio:studio-dsml-parser:jar:0.4.2
----------
1 required artifact is missing.
for artifact:
org.apache.directory.studio:jars:jar:1.3.0.SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.directory.snapshot.repo (http://vm094.oxylos.org/mirror-maven2/),
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Fri Aug 29 17:50:56 CEST 2008
[INFO] Final Memory: 28M/120M
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
Re: Pb building Studio from scratch, missing artifact
Posted by Felix Knecht <fe...@apache.org>.
Emmanuel Lecharny schrieb:
> Hi guys,
>
> while trying to fix the bug I introduced lately with my modification in
> shared, I found that it was not possible to run mvn eclipse:eclipse on
> studio, because of the missing studio-dsml-parser jar.
Obviously this artifact has never been released and deploy to the 'standard' maven remote repository.
Look, the whole studio stuff is missing: http://repo1.maven.org/maven2/org/apache/directory/ !
To CI server only snapshot versions are deployed.
HTH
Felix
>
> There must be something wrong in the way we declare the dependencies or
> the build order. Does enyone has an idea ?
>
> Here are the logs I get (Pierre-Arnaud confirmed that he has the same
> problem) :
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Directory Studio Jars
> [INFO] task-segment: [eclipse:eclipse]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing eclipse:eclipse
> Downloading:
> http://repo1.maven.org/maven2/org/apache/directory/studio/studio-dsml-parser/0.4.2/studio-dsml-parser-0.4.2.jar
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.directory.studio:studio-dsml-parser:jar:0.4.2
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.directory.studio
> -DartifactId=studio-dsml-parser -Dversion=0.4.2 -Dpackaging=jar
> -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.directory.studio
> -DartifactId=studio-dsml-parser -Dversion=0.4.2 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.apache.directory.studio:jars:jar:1.3.0.SNAPSHOT
> 2) org.apache.directory.studio:studio-dsml-parser:jar:0.4.2
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> org.apache.directory.studio:jars:jar:1.3.0.SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> apache.directory.snapshot.repo (http://vm094.oxylos.org/mirror-maven2/),
> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 17 seconds
> [INFO] Finished at: Fri Aug 29 17:50:56 CEST 2008
> [INFO] Final Memory: 28M/120M
>
Re: Pb building Studio from scratch, missing artifact
Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Hi Emmanuel,
I think this is because, you only try to use the eclispe plugin (mvn
eclipse:eclipse), and this plugin does not create a dependency tree.
If you try to compile the project (mvn install), then, the dsml project is
compiled before project that are using it.
As a fix, I think we should declare the dsml-parser module at one of the top
position in the main pom.xml.
Regards,
Pierre-Arnaud
On Fri, Aug 29, 2008 at 7:50 PM, Emmanuel Lecharny <el...@gmail.com>wrote:
> Hi guys,
>
> while trying to fix the bug I introduced lately with my modification in
> shared, I found that it was not possible to run mvn eclipse:eclipse on
> studio, because of the missing studio-dsml-parser jar.
>
> There must be something wrong in the way we declare the dependencies or the
> build order. Does enyone has an idea ?
>
> Here are the logs I get (Pierre-Arnaud confirmed that he has the same
> problem) :
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Directory Studio Jars
> [INFO] task-segment: [eclipse:eclipse]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing eclipse:eclipse
> Downloading:
> http://repo1.maven.org/maven2/org/apache/directory/studio/studio-dsml-parser/0.4.2/studio-dsml-parser-0.4.2.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.directory.studio:studio-dsml-parser:jar:0.4.2
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.directory.studio
> -DartifactId=studio-dsml-parser -Dversion=0.4.2 -Dpackaging=jar
> -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.directory.studio
> -DartifactId=studio-dsml-parser -Dversion=0.4.2 -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.apache.directory.studio:jars:jar:1.3.0.SNAPSHOT
> 2) org.apache.directory.studio:studio-dsml-parser:jar:0.4.2
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> org.apache.directory.studio:jars:jar:1.3.0.SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> apache.directory.snapshot.repo (http://vm094.oxylos.org/mirror-maven2/),
> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 17 seconds
> [INFO] Finished at: Fri Aug 29 17:50:56 CEST 2008
> [INFO] Final Memory: 28M/120M
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>