Announcement Announcement Module
Collapse
No announcement yet.
Bundlor Maven Config Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bundlor Maven Config

    I'm trying to get a Maven build working with Bundlor to manage dependencies and the manifest file, but can't seem to get the combination of repositories, plugin versions and bundlor versions correct.

    I've added the repository configs from the greenpages project to my pom.xml, along with the plugin config from that same project. I've tried com.springsource.bundlor:com.springsource.bundlor. maven:1.0.0.BUILD-SNAPSHOT, and several variations thereof. However, each time maven is started it indicates that whatever version of the bundlor plugin I've specified cannot be found in any of the repositories.

    The blog article (20th April on Bundlor) states that "Bundlor is available as a zip download from the Bundlor page. It is also accessible in the SpringSource Enterprise Bundle Repository as both Ivy and Maven artifacts. In addition, there is a detailed user guide available.". Well a search on the enterprise repository for "bundlor" gives no results, so I can't find the config from there.

    My current maven config is:

    <plugin>
    <groupId>com.springsource.bundlor</groupId>
    <artifactId>com.springsource.bundlor.maven
    </artifactId>
    <version>1.0.0.M3</version>
    <executions>
    <execution>
    <id>bundlor</id>
    <goals>
    <goal>transform</goal>
    </goals>
    <phase>package</phase>
    </execution>
    </executions>
    </plugin>

    with the following repositories:

    <repositories>
    <repository>
    <id>com.springsource.repository.bundles.snapshot
    </id>
    <name>SpringSource Enterprise Bundle Repository -
    SpringSource Bundle Snapshot</name>
    <url>http://repository.springsource.com/m...ndles/snapshot
    </url>
    </repository>
    <repository>
    <id>com.springsource.repository.bundles.release
    </id>
    <name>SpringSource Enterprise Bundle Repository -
    SpringSource Bundle Releases</name>
    <url>http://repository.springsource.com/m...undles/release
    </url>
    </repository>
    <repository>
    <id>com.springsource.repository.bundle.external
    </id>
    <name>SpringSource Enterprise Bundle Repository -
    External Bundle Releases</name>
    <url>http://repository.springsource.com/m...ndles/external
    </url>
    </repository>
    <repository>
    <id>com.springsource.repository.libraries.releas e
    </id>
    <name>SpringSource Enterprise Bundle Repository -
    SpringSource Library Releases</name>
    <url>http://repository.springsource.com/m...raries/release
    </url>
    </repository>
    <repository>
    <id>com.springsource.repository.libraries.extern al
    </id>
    <name>SpringSource Enterprise Bundle Repository -
    External Library Releases</name>
    <url>http://repository.springsource.com/m...aries/external
    </url>
    </repository>
    <repository>
    <id>com.springsource.repository.bundles.mileston e
    </id>
    <url>http://repository.springsource.com/m...dles/milestone
    </url>
    </repository>
    </repositories>
    <pluginRepositories>
    <pluginRepository>
    <id>com.springsource.repository.bundles.snapshot
    </id>
    <name>SpringSource Enterprise Bundle Repository</name>
    <url>http://repository.springsource.com/m...ndles/snapshot
    </url>
    </pluginRepository>
    </pluginRepositories>

    The error I get is:

    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Error building POM (may not be this project's POM).


    Project ID: com.springsource.bundlor:com.springsource.bundlor. maven

    Reason: POM 'com.springsource.bundlor:com.springsource.bundlor .maven' not found in repository: Unable to download the artifact from any repository

    com.springsource.bundlor:com.springsource.bundlor. mavenom:1.0.0.BUILD-SNAPSHOT

    from the specified remote repositories:
    com.springsource.repository.bundles.milestone (http://repository.springsource.com/m...dles/milestone),
    com.springsource.repository.bundles.snapshot (http://repository.springsource.com/m...ndles/snapshot),
    com.springsource.repository.libraries.external (http://repository.springsource.com/m...aries/external),
    com.springsource.repository.bundle.external (http://repository.springsource.com/m...ndles/external),
    central (http://repo1.maven.org/maven2),
    com.springsource.repository.bundles.release (http://repository.springsource.com/m...undles/release),
    com.springsource.repository.libraries.release (http://repository.springsource.com/m...raries/release)
    for project com.springsource.bundlor:com.springsource.bundlor. maven

    The group/artifact/version appear correct, as does the repo location mentioned in http://forum.springsource.org/showthread.php?t=70427. I've browsed the repo at http://s3browse.com/explore/reposito...bundlor.maven/ and the file appears to be there. But I still get this error.

    I get the same error when trying to build the greenpages app as per the DM server getting started guide.

    Can anybody suggest what part of this config is wrong so that I can get my maven build working?
    Last edited by pumbers; Apr 27th, 2009, 03:19 PM.

  • #2
    @pumbers

    Have you had a change to take a look at the GreenPages Sample? In the solution directory is a parent POM with the Bundlor plugin properly configured. You might try comparing your configuration with that.
    Last edited by Ben Hale; May 7th, 2009, 08:31 AM.

    Comment

    Working...
    X