You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jim Garrison <Ji...@troux.com> on 2008/11/03 22:49:05 UTC

Broken dependency in Maven repo?

I have a project with a dependency on  activemq.  During the build, this
activemq dependency seems to introduce a dependency on javacc with what
looks like a bad version number, which cannot be located and breaks the
build.  Here's the output:

 

Missing:

----------

1) javacc:javacc:jar:${javacc_version}

 

  Try downloading the file manually from the project website.

 

  Then, install it using the command: 

      mvn install:install-file -DgroupId=javacc -DartifactId=javacc
-Dversion=${javacc_version} -Dpackaging=jar -Dfile=/path/to/file

 

  Alternatively, if you host your own repository you can deploy the file
there: 

      mvn deploy:deploy-file -DgroupId=javacc -DartifactId=javacc
-Dversion=${javacc_version} -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

 

  Path to dependency: 

        1) com.troux:platform:jar:1.0

        2) activemq:activemq-core:jar:4.0-M3

        3) javacc:javacc:jar:${javacc_version}

 

 

Does this represent a problem with the deployed activemq-core POM in the
Maven repo?


http://www.troux.com/email
 
 

 
 

Re: Broken dependency in Maven repo?

Posted by Rafael Trestini <tr...@gmail.com>.
Jim,

Looking at central repository, the pom provided by
activemq:activemq-core:4.0-M3 seems to require some more information, like
versions of dependencies. So you have two choices:
1. to provide all these information (for all packages listed in [1]) through
-D parameter in command line (ex: mvn clean install
-Dcommons_pool_version=1.4 -Dactivecluster_version=X.X (and so on...) );
2. modify pom.xml of activemq:activemq-core:4.0-M3 in your local repository
adding a properties section with all variables, ex:
  <properties>
    <commons_beanutils_version>X.X</commons_beanutils_version>
    <activecluster_version>Y.Y</activecluster_version>
    <!-- all others here -->
  </properties>
In this case, you will not to write all parameters in command line.

However, the version you are using is a milestone version. Do you really
need to use exactly this? Since there's released versions on
org.apache.activemq:activemq-core (like 4.1.1), which dependencies are fully
resolved.

Trestini


References:
[1] Packages referred by activemq:activemq-core:4.0-M3
/commons-beanutils/commons-beanutils/${commons_beanutils_version}/commons-beanutils-${commons_beanutils_version}
/javacc/javacc/${javacc_version}/javacc-${javacc_version}
/activecluster/activecluster/${activecluster_version}/activecluster-${activecluster_version}
/activemq/jmdns/${jmdns_version}/jmdns-${jmdns_version}
/activeio/activeio/${activeio_version}/activeio-${activeio_version}
/jmock/jmock/${jmock_version}/jmock-${jmock_version}
/jmock/jmock-cglib/${jmock_cglib_version}/jmock-cglib-${jmock_cglib_version}
/cglib/cglib-full/${cglib_full_version}/cglib-full-${cglib_full_version}
/org/apache/derby/derby/${derby_version}/derby-${derby_version}
/howl/howl-logger/${howl_logger_version}/howl-logger-${howl_logger_version}
/springframework/spring/${spring_version}/spring-${spring_version}
/xbean/xbean-spring/${xbean_spring_version}/xbean-spring-${xbean_spring_version}
/axion/axion/${axion_version}/axion-${axion_version}
/commons-primitives/commons-primitives/${commons_primitives_version}/commons-primitives-${commons_primitives_version}
/regexp/regexp/${regexp_version}/regexp-${regexp_version}
/hsqldb/hsqldb/${hsqldb_version}/hsqldb-${hsqldb_version}
/commons-dbcp/commons-dbcp/${commons_dbcp_version}/commons-dbcp-${commons_dbcp_version}
/commons-pool/commons-pool/${commons_pool_version}/commons-pool-${commons_pool_version}

On Mon, Nov 3, 2008 at 7:49 PM, Jim Garrison <Ji...@troux.com> wrote:

>   I have a project with a dependency on  activemq.  During the build, this
> activemq dependency seems to introduce a dependency on javacc with what
> looks like a bad version number, which cannot be located and breaks the
> build.  Here's the output:
>
>
>
> Missing:
>
> ----------
>
> 1) javacc:javacc:jar:${javacc_version}
>
>
>
>   Try downloading the file manually from the project website.
>
>
>
>   Then, install it using the command:
>
>       mvn install:install-file -DgroupId=javacc -DartifactId=javacc
> -Dversion=${javacc_version} -Dpackaging=jar -Dfile=/path/to/file
>
>
>
>   Alternatively, if you host your own repository you can deploy the file
> there:
>
>       mvn deploy:deploy-file -DgroupId=javacc -DartifactId=javacc
> -Dversion=${javacc_version} -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
>
>
>
>   Path to dependency:
>
>         1) com.troux:platform:jar:1.0
>
>         2) activemq:activemq-core:jar:4.0-M3
>
>         3) javacc:javacc:jar:${javacc_version}
>
>
>
>
>
> Does this represent a problem with the deployed activemq-core POM in the
> Maven repo?
>
> <http://www.troux.com/email>
>
>
>
>
>
>
>
>
>
>


-- 
Responsibility is the price of freedom