Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: maven dependency unavailable

  1. #11
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    Thanks for the update, it looks like they're blowing out all snapshots and letting CI regenerate them for their nightly builds. It appears to be working fine now though.

  2. #12
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    128

    Default build error

    Hello lucas,

    just made the checkout. Build fails here too

    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Unsupported Protocol: 's3': Cannot find wagon which supports the requested protocol: s3
    net.java.dev.jets3t:jets3t:jar:0.5.0

    from the specified remote repositories:
    central (http://repo1.maven.org/maven2),
    spring-release (s3://maven.springframework.org/release),
    spring-milestone (s3://maven.springframework.org/milestone),
    apache-snapshots (http://people.apache.org/maven-snapshot-repository),
    spring-snapshot (s3://maven.springframework.org/snapshot),
    spring-snapshots (https://springframework.svn.sourcefo...repo-snapshots)
    Path to dependency:
    1) org.springframework.batch:spring-batchom:1.0-m2-SNAPSHOT
    2) org.springframework.aws:spring-aws-maven:jar:1.1.1
    3) net.java.dev.jets3t:jets3t:jar:0.5.0

    Can anybody help. Or something we can do to get past.

    Kris

  3. #13
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    From the output you posted, it looks like some issue with the following entry in the spring-batch pom:

    Code:
    	
    <snapshotRepository>
    	<id>spring-snapshot</id>
    	<name>Spring Snapshot Repository</name>
    	<url>s3://maven.springframework.org/snapshot</url>
    </snapshotRepository>
    It appears to be the only repository that's using the s3 protocol. Dave added this entry, so I'm not 100% sure why it's there, but it's in the DistributionManagement tag, which is usually tied to deploying a site, or a jar. You could try removing the repository entry from the root pom.xml, and see if that fixes it for your machine.
    Last edited by lucasward; Sep 7th, 2007 at 02:04 PM. Reason: Fixed formatting of the code section

  4. #14
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    128

    Default

    Lucas,

    this didn't solve the problem, suprisingly. Because this is the only place where 's3' is used.
    I tried to find where net.java.dev.jets3t:jets3t:jar:0.5.0 is specified, in vain.

    Maybe, you can tell me where this is used.

    Thanks
    Kris

  5. #15
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    You definitely won't find any place where net.java.dev.jets3t:jets3t:jar:0.5.0 is specified in spring-batch. What's happening is that, becuase the s3 protocol is being used, there is a build extension that knows how to interact within that protocol, which depends upon jets3t:

    Code:
    			
    <extension>
    	<groupId>org.springframework.aws</groupId>
    	<artifactId>spring-aws-maven</artifactId>
    	<version>1.1.1</version>
    </extension>
    I'm not sure why it's not finding it, because it does exist in the maven snapshot repository:

    http://repo1.maven.org/maven2/net/ja.../jets3t/0.5.0/

    However, you can try running the following:

    mvn clean install -cpu -U

  6. #16
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    128

    Default

    Lucas,

    I actually modified the following in the main pom

    <repositories>
    <repository>
    <id>ibiblio</id>
    <url>
    http://mirrors.ibiblio.org/pub/mirrors/maven2
    </url>
    </repository>
    <repository>
    <id>apache-snapshots</id>
    <url>
    http://people.apache.org/maven-snapshot-repository
    </url>
    </repository>
    <repository>
    <id>spring-snapshots</id>
    <url>
    https://springframework.svn.sourcefo...repo-snapshots
    </url>
    </repository>
    </repositories>

    Added the ibiblio repo. Looks like its building correctly now, its not complete however. I will send a notice if the build was completely successful.

    Kris Ramanah

  7. #17
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    128

    Default Almost there

    Lucas,

    with the ibiblio added, the build went until the 'stax' jars and failed. However, it proceeded when I removed the ibiblio again.

    Now, the build went quite a long way through, until I get the following

    Code:
    [INFO] Compiling 49 source files to C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\target\classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\AbstractJ
    obLauncher.java:[25,34] package org.apache.commons.logging does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\AbstractJ
    obLauncher.java:[26,34] package org.apache.commons.logging does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\AbstractJ
    obLauncher.java:[52,29] cannot find symbol
    symbol  : class Log
    location: class org.springframework.batch.execution.bootstrap.AbstractJobLauncher
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\SimpleJob
    Launcher.java:[20,34] package org.apache.commons.logging does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\SimpleJob
    Launcher.java:[46,29] cannot find symbol
    symbol  : class Log
    location: class org.springframework.batch.execution.bootstrap.SimpleJobLauncher
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\TaskExecu
    torJobLauncher.java:[24,34] package org.apache.commons.logging does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\TaskExecu
    torJobLauncher.java:[60,29] cannot find symbol
    symbol  : class Log
    location: class org.springframework.batch.execution.bootstrap.TaskExecutorJobLauncher
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\AbstractJ
    obLauncher.java:[52,42] cannot find symbol
    symbol  : variable LogFactory
    location: class org.springframework.batch.execution.bootstrap.AbstractJobLauncher
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\SimpleJob
    Launcher.java:[46,42] cannot find symbol
    symbol  : variable LogFactory
    location: class org.springframework.batch.execution.bootstrap.SimpleJobLauncher
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\execution\src\main\java\org\springframework\batch\execution\bootstrap\TaskExecu
    torJobLauncher.java:[60,42] cannot find symbol
    symbol  : variable LogFactory
    location: class org.springframework.batch.execution.bootstrap.TaskExecutorJobLauncher
    Can you help?

    Regards
    Kris

  8. #18
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    I'm not quite sure what to make of that error. commons logging is definitely a dependency (either explicitly or transitively) of spring-batch that should be downloaded. What goals are you trying to run?

  9. #19
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    128

    Default

    I am just running mvn install on the command line.

    Guys out there, am I the only one getting this?

    Thanks
    Kris

  10. #20
    Join Date
    Jul 2007
    Location
    Mauritius
    Posts
    128

    Default Further progress

    Hello guys,
    I commented the following in execution's pom to make things go a little further

    Code:
    <dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate</artifactId>
    			<version>3.2.3.ga</version>
    			<optional>true</optional>
    			<exclusions>
    				<!--exclusion>
    					<groupId>commons-logging</groupId>
    					<artifactId>commons-logging</artifactId>
    				</exclusion-->
    				<exclusion>
    	...
    However, I am now getting this error

    Code:
    [INFO] Compiling 74 source files to C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\target\classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\JdbcCustomerDebitWri
    ter.java:[20,37] package org.springframework.jdbc.core does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\JdbcCustomerDebitWri
    ter.java:[32,12] cannot find symbol
    symbol  : class JdbcOperations
    location: class org.springframework.batch.sample.dao.JdbcCustomerDebitWriter
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\JdbcCustomerDebitWri
    ter.java:[39,32] cannot find symbol
    symbol  : class JdbcOperations
    location: class org.springframework.batch.sample.dao.JdbcCustomerDebitWriter
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\mapping\CustomerCreditRo
    wMapper.java:[7,37] package org.springframework.jdbc.core does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\mapping\CustomerCreditRo
    wMapper.java:[9,48] cannot find symbol
    symbol: class RowMapper
    public class CustomerCreditRowMapper implements RowMapper {
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\SqlNflPlayerSummaryD
    ao.java:[5,45] package org.springframework.jdbc.core.support does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\SqlNflPlayerSummaryD
    ao.java:[6,32] package org.springframework.util does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\SqlNflPlayerSummaryD
    ao.java:[8,44] cannot find symbol
    symbol: class JdbcDaoSupport
    public class SqlNflPlayerSummaryDao extends JdbcDaoSupport implements OutputSource {
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\SqlNflPlayerDao.java
    :[9,41] package org.springframework.beans.factory does not exist
    
    C:\Projects\Research\checkouts\spring-batch\07_09_07\spring_batch\samples\src\main\java\org\springframework\batch\sample\dao\SqlNflPlayerDao.java
    :[10,37] package org.springframework.jdbc.core does not exist
    .
    .
    .
    I will try to modify the pom of 'samples' and see what happens.

    Thanks
    Kris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •