2008/7/8 Alin Dreghiciu <[EMAIL PROTECTED]>: > sping-dm does not add any repo. The spring repos are already on the > default list. > If you specify extra repos and still want to use the default ones you > have to start the repo list with a + (plus). See here: > > http://wiki.ops4j.org/confluence/display/ops4j/Pax+URL+-+mvn#PaxURL-mvn-repositories >
ah - this needs careful consideration if I add a "+" to the repositories passed to Pax-Runner from Pax-Construct then the spring repositories will be used (and checked) even when deploying very simple projects and profiles which may not want the spring repositories however, if I don't add a "+" then anyone wanting to use the spring-dm profile will need to remember to add the spring repositories to the pom themselves. I guess I could always detect the use of the spring-dm profile and add them inside Pax-Construct, which might be the best option - but sounds hacky anyone have other suggestions? On Tue, Jul 8, 2008 at 10:11 AM, Stuart McCulloch > <[EMAIL PROTECTED]> wrote: > > 2008/7/8 Alin Dreghiciu <[EMAIL PROTECTED]>: > >> > >> Can you set up the pax runner "log" option to trace and run again? > >> You can do that by adding the following to your maven pax plugin > something > >> like: > >> <plugin> > >> <groupId>org.ops4j</groupId> > >> <artifactId>maven-pax-plugin</artifactId> > >> <configuration> > >> <provision> > >> <param>--log=TRACE</param> > >> </provision> > >> </configuration> > >> </plugin> > >> </plugins> > >> > >> This will shouw much more details about how is pax runner is resolving > >> the artifacts. this will put some light on the problem. > >> I dod not use pax construct but by using directly pax runner on a > >> fresh directory everything worked file (pax-run --profiles=spring-dm). > > > > hmm, it looks like if you specify explicit repositories using > --repositories > > then > > Pax-Runner won't add the extra repositories needed for the spring-dm > > profile. > > ( pax-provision uses this option to pass project repositories to > Pax-Runner > > ) > > > > should the spring-dm profile add necessary repositories if they're not > > there? > > > >> > >> On Sat, Jul 5, 2008 at 5:23 PM, Michael Greifeneder <[EMAIL PROTECTED]> > >> wrote: > >> > Hello, > >> > > >> > Today I updated pax-construct to version 1.3 and tried to use profile > >> > spring-dm. Because I got a strange error I tried from scratch. > >> > > >> > pax-create-project -g mygroup -a myartifact > >> > cd myartifact > >> > pax-provision -p spring-dm > >> > > >> > shows the error message at the end of this mail. Executing > >> > pax-provision -p spring-dm > >> > in an empty directory works. > >> > I have added pax repository to my Maven setttings. > >> > > >> > <repository> > >> > <id>pax</id> > >> > <url>http://repository.ops4j.org/maven2</url> > >> > <releases> > >> > <enabled>true</enabled> > >> > </releases> > >> > <snapshots> > >> > <enabled>true</enabled> > >> > </snapshots> > >> > </repository> > >> > > >> > I cannot rememeber when I added this repository information, but a > test > >> > with > >> > another user on my pc didn't even work in an empty directory. Trace > >> > output > >> > shows the same > >> > repositories > >> > --repositories= > http://repo1.maven.org/maven2,http://repository.ops4j.org/maven2/ > >> > > >> > I cannot find any reference to "org.aopalliance" in the directory > >> > created by > >> > pax-create-project. > >> > > >> > Anyone has a similar problems or know what's obviously wrong? > >> > Thanks in advance. > >> > > >> > Regards, Mike > >> > > >> > ###ERROR MESSAGE### > >> >>pax-provision -p spring-dm > >> > [INFO] Scanning for projects... > >> > [INFO] Reactor build order: > >> > [INFO] mygroup.myartifact (OSGi project) > >> > [INFO] myartifact - plugin configuration > >> > [INFO] myartifact - wrapper instructions > >> > [INFO] myartifact - bundle instructions > >> > [INFO] myartifact - imported bundles > >> > [INFO] > >> > > ---------------------------------------------------------------------------- > >> > [INFO] Building mygroup.myartifact (OSGi project) > >> > [INFO] task-segment: [org.ops4j:maven-pax-plugin:1.3:provision] > >> > (aggregator-style) > >> > [INFO] > >> > > ---------------------------------------------------------------------------- > >> > [INFO] [pax:provision] > >> > [INFO] ~~~~~~~~~~~~~~~~~~~ > >> > [INFO] No bundles found! > >> > [INFO] ~~~~~~~~~~~~~~~~~~~ > >> > [INFO] > >> > Installing > >> > /opt/Development/osgi/Projects/myartifact/runner/deploy-pom.xml > >> > to > >> > > /home/mike/.m2/repository/mygroup/myartifact/build/deployment/1.0-SNAPSHOT/deployment-1.0-SNAPSHOT.pom > >> > ______ ________ __ __ > >> > / __ / / __ / / / / / > >> > / ___/ / __ / _\ \ _/ > >> > / / / / / / / _\ \ > >> > /__/ /__/ /__/ /_/ /_/ > >> > > >> > Pax Runner from OPS4J - http://www.ops4j.org > >> > -------------------------------------------- > >> > > >> > -> Using config [classpath:META-INF/runner.properties] > >> > -> Provision from > >> > [/opt/Development/osgi/Projects/myartifact/runner/deploy-pom.xml] > >> > -> Provision from > >> > > >> > > [scan-pom:file:/opt/Development/osgi/Projects/myartifact/runner/deploy-pom.xml] > >> > -> Using property [google.webtoolkit.home=/opt/gwt] > >> > -> Using property [org.osgi.service.http.port=8080] > >> > -> Using property [org.osgi.service.http.port.secure=8443] > >> > -> Downloading bundles... > >> > -> Felix 1.0.4 : 349938 bytes @ [ 119kBps ] > >> > -> org.osgi.compendium : 689150 bytes @ [ 293kBps ] > >> > -> org.ops4j.pax.logging.api : 72696 bytes @ [ 358kBps ] > >> > -> org.ops4j.pax.logging.service : 183340 bytes @ [ 414kBps ] > >> > ___ngsource.org.aopalliance : connecting... > >> > / / > >> > / / Oops, there has been a problem! > >> > / / > >> > /__/ > >> > ___ > >> > /__/ > >> > > >> > -> java.lang.RuntimeException: URL > >> > [mvn:org.aopalliance/com.springsource.org.aopalliance/1.0.0] could not > >> > be > >> > resolved. (enable TRACE logging for details) > >> > java.lang.RuntimeException: URL > >> > [mvn:org.aopalliance/com.springsource.org.aopalliance/1.0.0] could not > >> > be > >> > resolved. (enable TRACE logging for details) > >> > at > >> > > >> > > org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:169) > >> > at java.net.URL.openStream(URL.java:1009) > >> > at > >> > > >> > > org.ops4j.pax.runner.platform.internal.StreamUtils.streamCopy(StreamUtils.java:105) > >> > at > >> > > >> > > org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:549) > >> > at > >> > > >> > > org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:399) > >> > at > >> > > >> > > org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadPlatformBundles(PlatformImpl.java:450) > >> > at > >> > > >> > > org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:191) > >> > at org.ops4j.pax.runner.Run.startPlatform(Run.java:429) > >> > at org.ops4j.pax.runner.Run.start(Run.java:157) > >> > at org.ops4j.pax.runner.Run.main(Run.java:545) > >> > at org.ops4j.pax.runner.Run.main(Run.java:518) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > at > >> > > >> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > >> > at > >> > > >> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > >> > at java.lang.reflect.Method.invoke(Method.java:597) > >> > at > >> > > >> > > org.ops4j.pax.construct.lifecycle.ProvisionMojo.invokePaxRunner(ProvisionMojo.java:801) > >> > at > >> > > >> > > org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployRunnerNG(ProvisionMojo.java:779) > >> > at > >> > > >> > > org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployBundles(ProvisionMojo.java:477) > >> > at > >> > > >> > > org.ops4j.pax.construct.lifecycle.ProvisionMojo.execute(ProvisionMojo.java:270) > >> > at > >> > > >> > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) > >> > at > >> > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > >> > at > >> > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) > >> > at > >> > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) > >> > at > >> > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > >> > at > >> > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) > >> > at > >> > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > >> > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > >> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > >> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > at > >> > > >> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > >> > at > >> > > >> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > >> > at java.lang.reflect.Method.invoke(Method.java:597) > >> > at > >> > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.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.java:375) > >> > > >> > _______________________________________________ > >> > general mailing list > >> > general@lists.ops4j.org > >> > http://lists.ops4j.org/mailman/listinfo/general > >> > > >> > >> > >> > >> -- > >> Alin Dreghiciu > >> http://www.ops4j.org - New Energy for OSS Communities - Open > >> Participation Software. > >> http://www.qi4j.org - New Energy for Java - Domain Driven Development. > >> http://malaysia.jayway.net - New Energy for Projects - Great People > >> working on Great Projects at Great Places > >> > >> _______________________________________________ > >> general mailing list > >> general@lists.ops4j.org > >> http://lists.ops4j.org/mailman/listinfo/general > > > > > > > > -- > > Cheers, Stuart > > _______________________________________________ > > general mailing list > > general@lists.ops4j.org > > http://lists.ops4j.org/mailman/listinfo/general > > > > > > > > -- > Alin Dreghiciu > http://www.ops4j.org - New Energy for OSS Communities - Open > Participation Software. > http://www.qi4j.org - New Energy for Java - Domain Driven Development. > http://malaysia.jayway.net - New Energy for Projects - Great People > working on Great Projects at Great Places > > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > -- Cheers, Stuart
_______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general