Announcement Announcement Module
Collapse
No announcement yet.
Troubles with maven / bundlor / greenpages demo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Troubles with maven / bundlor / greenpages demo

    I'm having troubles getting the greenpages application built and working correctly. I had it working 3+ days ago, but now some SNAPSHOT updates appear to have broken things.

    I've tracked the problem down to appearing to be a missing class com.springsource.util.manifest.ManifestFactory in the bundlor.maven.plugin jar. I see a SNAPSHOT was updated April 29 which appears to have broken things. The class was in the previous SNAPSHOT release.

    Since this is the introductory way to learn Spring dm server, and I was trying to mimic in creating my own application, any help in solving this would be appreciated.

    Here is the trace:

    [INFO] [jar:jar]
    [INFO] [com.springsource.bundlor.:transform {execution: bundlor}]
    [FATAL ERROR] com.springsource.bundlor.maven.plugin.TransformBun dlorMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
    [FATAL ERROR] Plugin realm = app0.child-container[com.springsource.bundlor:com.springsource.bundlor. maven:1.0.0.BUILD-SNAPSHOT]
    urls[0] = file:/home/khein/.m2/repository/com/springsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor.maven-1.0.0.BUILD-SNAPSHOT.jar
    urls[1] = file:/home/khein/.m2/repository/org/springframework/org.springframework.core/2.5.6.A/org.springframework.core-2.5.6.A.jar
    urls[2] = file:/home/khein/.m2/repository/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
    urls[3] = file:/home/khein/.m2/repository/com/springsource/bundlor/com.springsource.bundlor/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor-1.0.0.BUILD-SNAPSHOT.jar
    urls[4] = file:/home/khein/.m2/repository/com/springsource/util/com.springsource.util.osgi/2.0.0.BUILD-SNAPSHOT/com.springsource.util.osgi-2.0.0.BUILD-SNAPSHOT.jar
    urls[5] = file:/home/khein/.m2/repository/org/eclipse/osgi/org.eclipse.osgi/3.5.0.v20090311-1300/org.eclipse.osgi-3.5.0.v20090311-1300.jar
    urls[6] = file:/home/khein/.m2/repository/com/springsource/util/com.springsource.util.common/2.0.0.BUILD-SNAPSHOT/com.springsource.util.common-2.0.0.BUILD-SNAPSHOT.jar
    urls[7] = file:/home/khein/.m2/repository/com/springsource/util/com.springsource.util.io/2.0.0.BUILD-SNAPSHOT/com.springsource.util.io-2.0.0.BUILD-SNAPSHOT.jar
    urls[8] = file:/home/khein/.m2/repository/com/springsource/util/com.springsource.util.math/2.0.0.BUILD-SNAPSHOT/com.springsource.util.math-2.0.0.BUILD-SNAPSHOT.jar
    urls[9] = file:/home/khein/.m2/repository/org/objectweb/asm/com.springsource.org.objectweb.asm/3.1.0/com.springsource.org.objectweb.asm-3.1.0.jar
    urls[10] = file:/home/khein/.m2/repository/org/objectweb/asm/com.springsource.org.objectweb.asm.tree/3.1.0/com.springsource.org.objectweb.asm.tree-3.1.0.jar
    urls[11] = file:/home/khein/.m2/repository/org/objectweb/asm/com.springsource.org.objectweb.asm.commons/3.1.0/com.springsource.org.objectweb.asm.commons-3.1.0.jar
    urls[12] = file:/home/khein/.m2/repository/org/springframework/ws/org.springframework.xml/1.5.2.A/org.springframework.xml-1.5.2.A.jar
    urls[13] = file:/home/khein/.m2/repository/org/apache/ws/com.springsource.org.apache.ws.commons.schema/1.3.2/com.springsource.org.apache.ws.commons.schema-1.3.2.jar
    urls[14] = file:/home/khein/.m2/repository/org/springframework/org.springframework.beans/2.5.6.A/org.springframework.beans-2.5.6.A.jar
    urls[15] = file:/home/khein/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
    [FATAL ERROR] Container realm = plexus.core
    urls[0] = file:/home/khein/apache-maven-2.1.0/lib/maven-2.1.0-uber.jar
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] com/springsource/util/osgi/manifest/ManifestFactory
    com.springsource.util.osgi.manifest.ManifestFactor y
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    java.lang.NoClassDefFoundError: com/springsource/util/osgi/manifest/ManifestFactory
    at com.springsource.bundlor.maven.plugin.AbstractBund lorMojo.getManifest(AbstractBundlorMojo.java:232)
    at com.springsource.bundlor.maven.plugin.AbstractBund lorMojo.execute(AbstractBundlorMojo.java:205)
    at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPluginManager.java:483)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:678)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:540)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:519)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.java:371)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:332)
    at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:181)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:356)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:137)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:3 56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va:375)
    Caused by: java.lang.ClassNotFoundException: com.springsource.util.osgi.manifest.ManifestFactor y
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at org.codehaus.classworlds.RealmClassLoader.loadClas sDirect(RealmClassLoader.java:195)
    at org.codehaus.classworlds.DefaultClassRealm.loadCla ss(DefaultClassRealm.java:255)
    at org.codehaus.classworlds.DefaultClassRealm.loadCla ss(DefaultClassRealm.java:274)
    at org.codehaus.classworlds.RealmClassLoader.loadClas s(RealmClassLoader.java:214)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
    ... 20 more

  • #2
    Is this message in the correct forum?

    Just haven't seen any replies, wondering if it is in the wrong forum.

    Comment


    • #3
      Problem Fixed

      An update to the bundlor maven plugin was posted and the dependency problem is fixed. Probably just a symptom of using the technologies before GA.

      It might be a worthwhile exercise to update the greenpages POM's (fixed dependencies instead of SNAPSHOTS) so that this won't happen to others building the example. It didn't give me a really solid feeling when I couldn't even get through the initial build instructions in the simple example....

      Comment


      • #4
        @khein,

        Sorry for the delayed response, what with all of the conferences and a little time off, I'm just getting back to the forums.

        We're aware of the issue with GreenPages as well as the more fundamental problem with how the Maven plugin dependencies work.

        For sure we will tie down the next version of GreenPages to a milestone of Bundlor (when we first released GreenPages there wasn't a milestone to work against). Getting Bundlor's dependencies right is going to be a bit more challenging but I'm actively working on it now.

        Comment


        • #5
          Hello,

          Just to let you know I've been fighting with the Greenpages examples as well.

          My Setup:
          Eclipse JEE 3.4.2
          Latest Spring STS (version ?)
          Spring IDE 2.2.2.RELEASE

          I think there is a missing step in getting-started.pdf: the user must first run "mvn install" on greenpages-1.0.1.RELEASE\solution\parent for the parent pom being resolved from other projects

          Or maybe because the parent pom is not installed locally correctly when invoking "mvn package" in the greenpages-1.0.1.RELEASE\solution folder ?

          Originally posted by Ben Hale View Post
          We're aware of the issue with GreenPages as well as the more fundamental problem with how the Maven plugin dependencies work.

          For sure we will tie down the next version of GreenPages to a milestone of Bundlor (when we first released GreenPages there wasn't a milestone to work against). Getting Bundlor's dependencies right is going to be a bit more challenging but I'm actively working on it now.
          I'm currently investigating Spring DM server as a solution for our OSGi migration in my company, can we have some plan on when Bundlor and Spring STS will be mostly stable for entreprise use ?

          Comment


          • #6
            NPE on mvn package

            I too am having difficulty with mvn package on the Greenpages 1.0.1 demo. It fails when running the tests.

            Stacktrace:

            [INFO] Scanning for projects...
            [INFO] Reactor build order:
            [INFO] greenpages.parent
            [INFO] greenpages.db
            [INFO] greenpages.app
            [INFO] greenpages.jpa
            [INFO] greenpages.web
            [INFO] greenpages.tests
            [INFO] GreenPages PAR
            [INFO] GreenPages App Build
            [INFO] ------------------------------------------------------------------------
            [INFO] Building greenpages.parent
            [INFO] task-segment: [package]
            [INFO] ------------------------------------------------------------------------
            [INFO] [site:attach-descriptor]
            [INFO] [com.springsource.bundlor.:transform {execution: bundlor}]
            [INFO] Ignored project with non-bundle packaging: [pom]
            [INFO] ------------------------------------------------------------------------
            [INFO] Building greenpages.db
            [INFO] task-segment: [package]
            [INFO] ------------------------------------------------------------------------
            [INFO] [resources:resources]
            [INFO] Using default encoding to copy filtered resources.
            [INFO] [compiler:compile]
            [INFO] No sources to compile
            [INFO] [resources:testResources]
            [INFO] Using default encoding to copy filtered resources.
            [INFO] [compiler:testCompile]
            [INFO] No sources to compile
            [INFO] [surefire:test]
            [INFO] No tests to run.
            [INFO] [jar:jar]
            [INFO] Building jar: C:\Spring\greenpages-1.0.1.RELEASE\solution\greenpages.db\target\greenp ages.db-solution-1.0.0.SNAPS
            HOT.jar
            [INFO] [com.springsource.bundlor.:transform {execution: bundlor}]
            [INFO] Transforming bundle at C:\Spring\greenpages-1.0.1.RELEASE\solution\greenpages.db\target\greenp ages.db-solution-1.
            0.0.SNAPSHOT.jar to C:\Spring\greenpages-1.0.1.RELEASE\solution\greenpages.db\target\greenp ages.db-solution-1.0.0.SNAPSH
            OT.jar
            [INFO] ------------------------------------------------------------------------
            [INFO] Building greenpages.app
            [INFO] task-segment: [package]
            [INFO] ------------------------------------------------------------------------
            [INFO] [resources:resources]
            [INFO] Using default encoding to copy filtered resources.
            [INFO] [compiler:compile]
            [INFO] Nothing to compile - all classes are up to date
            [INFO] [resources:testResources]
            [INFO] Using default encoding to copy filtered resources.
            [INFO] [compiler:testCompile]
            [INFO] No sources to compile
            [INFO] [surefire:test]
            [INFO] No tests to run.
            [INFO] [jar:jar]
            [INFO] Building jar: C:\Spring\greenpages-1.0.1.RELEASE\solution\greenpages.app\target\green pages.app-solution-1.0.0.SNA
            PSHOT.jar
            [INFO] [com.springsource.bundlor.:transform {execution: bundlor}]
            [INFO] Transforming bundle at C:\Spring\greenpages-1.0.1.RELEASE\solution\greenpages.app\target\green pages.app-solution-
            1.0.0.SNAPSHOT.jar to C:\Spring\greenpages-1.0.1.RELEASE\solution\greenpages.app\target\green pages.app-solution-1.0.0.SN
            APSHOT.jar
            [INFO] ------------------------------------------------------------------------
            [INFO] Building greenpages.jpa
            [INFO] task-segment: [package]
            [INFO] ------------------------------------------------------------------------
            [INFO] [resources:resources]
            [INFO] Using default encoding to copy filtered resources.
            [INFO] [compiler:compile]
            [INFO] Nothing to compile - all classes are up to date
            [INFO] [resources:testResources]
            [INFO] Using default encoding to copy filtered resources.
            [INFO] [compiler:testCompile]
            [INFO] Nothing to compile - all classes are up to date
            [INFO] [surefire:test]
            [INFO] ------------------------------------------------------------------------
            [ERROR] FATAL ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] null
            [INFO] ------------------------------------------------------------------------
            [INFO] Trace
            java.lang.NullPointerException
            at org.apache.maven.plugin.surefire.SurefirePlugin.co nstructSurefireBooter(SurefirePlugin.java:594)
            at org.apache.maven.plugin.surefire.SurefirePlugin.ex ecute(SurefirePlugin.java:391)
            at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPluginManager.java:447)
            at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:539)
            at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:48
            0)
            at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:459)
            at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.jav
            a:311)
            at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:278)
            at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:143)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:333)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:126)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:2 82)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va:375)
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 3 seconds
            [INFO] Finished at: Fri May 22 09:59:23 CDT 2009
            [INFO] Final Memory: 7M/14M


            Eclipse: 3.4.2
            STS: 2.1.0.M1
            Maven: 2.0.8

            Comment


            • #7
              bundlor dependencies

              For what it is worth, to get:
              Code:
              cd $GREENPAGES_HOME/solution
              mvn package
              to work for both greenpages-1.0.1.RELEASE and greenpages-1.1.0.RELEASE I had to mod $GREENPAGES_HOME/solution/parent/pom.xml to point to non-snapshot version of bundlor:

              .
              Code:
              ..
                <pluginRepositories>
                  <pluginRepository>
                    <id>com.springsource.repository.bundles.snapshot</id>
                    <name>SpringSource Enterprise Bundle Repository</name>
                    <url>http://repository.springsource.com/maven/bundles/milestone</url>
                  </pluginRepository>
                </pluginRepositories>
              ...
                <build>
                  <plugins>
                    <plugin>
                      <groupId>com.springsource.bundlor</groupId>
                      <artifactId>com.springsource.bundlor.maven</artifactId>
                      <version>1.0.0.M4</version>
              ...

              Comment


              • #8
                Originally posted by frederic.conrotte View Post
                I'm currently investigating Spring DM server as a solution for our OSGi migration in my company, can we have some plan on when Bundlor and Spring STS will be mostly stable for entreprise use ?
                Frederic, if you're most interested in stability, rather than getting the latest features as early as possible, I'd recommend making use of the Bundlor milestones, rather than its snapshots. As for STS, I would adopt a similar policy and use the 2.0.x stream (currently at 2.0.2.RELEASE), rather than the 2.1.0 stream which has yet to GA.

                If you encounter any problems, please do post here and let us know and we'll do our best to help.

                Comment


                • #9
                  POM problem

                  For greenpages-1.1.0.release.
                  I ran mvn package

                  [INFO] Scanning for projects...
                  [INFO] Reactor build order:
                  [INFO] greenpages.parent
                  [INFO] greenpages.db
                  [INFO] greenpages.app
                  [INFO] greenpages.jpa
                  [INFO] greenpages.web
                  [INFO] greenpages.tests
                  [INFO] GreenPages PAR
                  [INFO] GreenPages App Build
                  [INFO] -------------------------------------------------------------------------
                  ---
                  [INFO] Building greenpages.parent
                  [INFO] task-segment: [package]
                  [INFO] -------------------------------------------------------------------------
                  ---
                  Downloading: http://repository.springsource.com/m...shot/com/sprin
                  gsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springso
                  urce.bundlor.maven-1.0.0.BUILD-SNAPSHOT.pom
                  Downloading: http://repository.springsource.com/m...shot/com/sprin
                  gsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springso
                  urce.bundlor.maven-1.0.0.BUILD-SNAPSHOT.pom
                  Downloading: http://repository.springsource.com/m...ase/com/spring
                  source/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springsou
                  rce.bundlor.maven-1.0.0.BUILD-SNAPSHOT.pom
                  Downloading: http://repository.springsource.com/m...rnal/com/sprin
                  gsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springso
                  urce.bundlor.maven-1.0.0.BUILD-SNAPSHOT.pom
                  Downloading: http://repository.springsource.com/m...lease/com/spri
                  ngsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springs
                  ource.bundlor.maven-1.0.0.BUILD-SNAPSHOT.pom
                  Downloading: http://repository.springsource.com/m...ternal/com/spr
                  ingsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.spring
                  source.bundlor.maven-1.0.0.BUILD-SNAPSHOT.pom
                  [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-SNAPSH
                  OT

                  from the specified remote repositories:
                  com.springsource.repository.bundles.snapshot (http://repository.springsource.c
                  om/maven/bundles/snapshot),
                  com.springsource.repository.libraries.external (http://repository.springsource
                  .com/maven/libraries/external),
                  com.springsource.repository.bundle.external (http://repository.springsource.co
                  m/maven/bundles/external),
                  central (http://repo1.maven.org/maven2),
                  com.springsource.repository.libraries.release (http://repository.springsource.
                  com/maven/libraries/release),
                  com.springsource.repository.bundles.release (http://repository.springsource.co
                  m/maven/bundles/release)



                  [INFO] ------------------------------------------------------------------------
                  [INFO] For more information, run Maven with the -e switch
                  [INFO] ------------------------------------------------------------------------
                  [INFO] Total time: 6 seconds
                  [INFO] Finished at: Tue May 26 11:05:26 EDT 2009
                  [INFO] Final Memory: 3M/508M
                  [INFO] ------------------------------------------------------------------------

                  Comment


                  • #10
                    Did you follow the requirements ?

                    http://static.springsource.org/s2-bu...l/ch06s03.html

                    Comment


                    • #11
                      I think so. My pom file looks like this.

                      Code:
                      <?xml version="1.0" encoding="UTF-8"?>
                      <project
                      		xmlns="http://maven.apache.org/POM/4.0.0"
                      		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      		xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
                      
                      	<modelVersion>4.0.0</modelVersion>
                      	<groupId>com.springsource.dmserver</groupId>
                      	<artifactId>greenpages-top-level-solution</artifactId>
                      	<version>1.0.0.SNAPSHOT</version>
                          <name>GreenPages App Build</name>
                      	<packaging>pom</packaging>
                      	<modules>
                      		<module>parent</module>
                      		<module>greenpages.db</module>
                      		<module>greenpages.app</module>
                      		<module>greenpages.jpa</module>
                      		<module>greenpages.web</module>
                      		<module>greenpages.tests</module>
                      		<module>greenpages</module>
                      	</modules>
                      	<pluginRepositories>
                      		<pluginRepository>
                      			<id>com.springsource.repository.bundles.milestone</id>
                      			<name>SpringSource Enterprise Bundle Repository</name>
                      			<url>http://repository.springsource.com/maven/bundles/milestone</url>
                      		</pluginRepository>
                      	</pluginRepositories>
                      	
                      	<build>
                      		<plugins>
                      		
                      			<plugin>
                      				<groupId>org.apache.maven.plugins</groupId>
                      				<artifactId>maven-dependency-plugin</artifactId>
                      				<executions>
                      					<execution>
                      						<id>copy-dependencies</id>
                      						<phase>package</phase>
                      						<goals>
                      							<goal>copy-dependencies</goal>
                      						</goals>
                      						<configuration>
                      							<outputDirectory>${project.build.directory}/par-provided</outputDirectory>
                      							<overWriteIfNewer>true</overWriteIfNewer>
                      						</configuration>
                      					</execution>
                      				</executions>
                      			</plugin>
                      			<plugin>
                            <groupId>com.springsource.bundlor</groupId>
                            <artifactId>com.springsource.bundlor.maven</artifactId>
                            <version>1.0.0.M4</version>
                            <executions>
                              <execution>
                                <id>bundlor</id>
                                <goals>
                                  <goal>transform</goal>
                                </goals>
                              </execution>
                            </executions>
                          </plugin>
                      
                      		</plugins>
                      	</build>
                      </project>

                      Comment


                      • #12
                        Yeah, it kept showing the same error message.

                        This is my pom file, did I do something wrong?
                        Code:
                        <?xml version="1.0" encoding="UTF-8"?>
                        <project
                        		xmlns="http://maven.apache.org/POM/4.0.0"
                        		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        		xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
                        
                        	<parent>
                        		<groupId>com.springsource.dmserver</groupId>
                        		<artifactId>greenpages.parent-solution</artifactId>
                        		<version>1.0.0.SNAPSHOT</version>
                        		<relativePath>../parent</relativePath>
                        	</parent>
                        
                        	<modelVersion>4.0.0</modelVersion>
                        	<groupId>com.springsource.dmserver</groupId>
                        	<artifactId>greenpages-solution</artifactId>
                        	<name>GreenPages PAR</name>
                        	<packaging>par</packaging>
                        
                        	<dependencies>
                        		<dependency>
                        			<groupId>com.springsource.dmserver</groupId>
                        			<artifactId>greenpages.app-solution</artifactId>
                        			<version>${project.version}</version>
                        		</dependency>
                        		<dependency>
                        			<groupId>com.springsource.dmserver</groupId>
                        			<artifactId>greenpages.jpa-solution</artifactId>
                        			<version>${project.version}</version>
                        		</dependency>
                        		<dependency>
                        			<groupId>com.springsource.dmserver</groupId>
                        			<artifactId>greenpages.db-solution</artifactId>
                        			<version>${project.version}</version>
                        		</dependency>
                        		<dependency>
                        			<groupId>com.springsource.dmserver</groupId>
                        			<artifactId>greenpages.web-solution</artifactId>
                        			<version>${project.version}</version>
                        		</dependency>
                        	</dependencies>
                        
                        	<pluginRepositories>
                        		<pluginRepository>
                        			<id>com.springsource.repository.bundles.milestone</id>
                        			<name>SpringSource Enterprise Bundle Repository</name>
                        			<url>http://repository.springsource.com/maven/bundles/milestone</url>
                        		</pluginRepository>
                        	</pluginRepositories>
                        
                        	<build>
                        		<plugins>
                        			<plugin>
                        				<groupId>org.apache.maven.plugins</groupId>
                        				<artifactId>maven-par-plugin</artifactId>
                        				<version>0.2.0</version>
                        				<configuration>
                        					<fqn>true</fqn>
                        					<applicationSymbolicName>greenpages</applicationSymbolicName>
                        					<applicationVersion>${project.version}</applicationVersion>
                        					<applicationDescription>GreenPages PAR</applicationDescription>
                        					<applicationName>GreenPages PAR</applicationName>
                        				</configuration>
                        			</plugin>
                        				<plugin>
                              <groupId>com.springsource.bundlor</groupId>
                              <artifactId>com.springsource.bundlor.maven</artifactId>
                              <version>1.0.0.M4</version>
                              <executions>
                                <execution>
                                  <id>bundlor</id>
                                  <goals>
                                    <goal>transform</goal>
                                  </goals>
                                </execution>
                              </executions>
                            </plugin>
                        			<plugin>
                        				<groupId>org.apache.maven.plugins</groupId>
                        				<artifactId>maven-dependency-plugin</artifactId>
                        				<executions>
                        					<execution>
                        						<id>copy-dependencies</id>
                        						<phase>package</phase>
                        						<goals>
                        							<goal>copy-dependencies</goal>
                        						</goals>
                        						<configuration>
                        							<outputDirectory>${project.build.directory}/par-provided</outputDirectory>
                        							<overWriteIfNewer>true</overWriteIfNewer>
                        							<excludeGroupIds>com.springsource.dmserver</excludeGroupIds>
                        						</configuration>
                        					</execution>
                        				</executions>
                        			</plugin>
                        		</plugins>
                        	</build>
                        </project>
                        When I run this on Eclipse, I get this error message instead:
                        Error message: Failed to resolve plugin for mojo binding: org.apache.maven.plugins:maven-par-plugin:0.2.0ar
                        Root error message: Unable to download the artifact from any repository

                        Comment


                        • #13
                          In your latest error message, you'll notice that you're missing the maven-par-plugin. In section 7.4 of the Getting Started Guide the first listing mentions that you need to add a special plugin repository for this plugin since it's not maintained by SpringSource.

                          Comment

                          Working...
                          X