On Thu, 2020-03-26 at 09:09 +0100, JCR wrote:
> 
> On 24.03.2020 17:37, JCR wrote:
> > On 24.03.20 12:11, Robert Munteanu wrote:
> > > On Mon, 2020-03-23 at 21:47 +0100, JCR wrote:
> > > > > No, no error log entries present and I cannot find a 
> > > > > $HOME/.m2
> > > > > directory at all. What is $HOME referfing to? Workspace root?
> > > > > There
> > > > > are settings.xml only in the file vaults.
> > > > > Perhaps additional info: both, the Sling11 and the Eclipse
> > > > > installation run on Ubuntu V18.04. May be an installation
> > > > > issue?
> > > Sorry, I mean to ask for the location of the Maven settings file
> > > [1].
> > > The user file should be under /home/$YOURUSER/.m2/settings.xml .
> > > If not
> > > present, the default is used. Do you have a custom maven settings
> > > file?
> > > 
> > > > I found something suspicious when starting up Eclipse (before I
> > > > checked
> > > > errors from the wizard only):
> > > > 
> > > > !ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2020-
> > > > 03-23
> > > > 19:33:09.453
> > > > !MESSAGE No repository found at
> > > > jar:file:/home/juerg/Downloads/sling-maven-plugin-2.4.2.jar!/.
> > > > 
> > > > !ENTRY org.eclipse.equinox.p2.repository 2 0 2020-03-23
> > > > 19:34:00.220
> > > > !MESSAGE Server returned lastModified <= 0 for
> > > > http://pirbot.com/mirrors/apache/sling/eclipse/1.2.2/content.jar
> > > > 
> > > > !ENTRY org.eclipse.equinox.p2.metadata.repository 4 1002 2020-
> > > > 03-23
> > > > 19:34:01.859
> > > > !MESSAGE Unable to read repository at
> > > > http://pirbot.com/mirrors/apache/sling/eclipse/1.2.2/.
> > > > !STACK 0
> > > > java.io.IOException:
> > > > http://pirbot.com/mirrors/apache/sling/eclipse/1.2.2/ is not a
> > > > valid
> > > That seems a bit off, but it's p2 - the Eclipse plugin management
> > > system, and not Maven.
> > > 
> > > Can you try running the following command from the CLI?
> > > 
> > >    mvn archetype:generate -Dfilter=org.apache.sling:sling-bundle-
> > > archetype
> > > 
> > > It should print an entry for the sling-bundle-archetype, such as
> > > 
> > > 1: remote -> org.apache.sling:sling-bundle-archetype (Maven
> > > archetype
> > > for a generic OSGi bundle.)
> > > 
> > > Thanks,
> > > Robert
> > > 
> > I don't have a  /home/$YOURUSER/p2/settings.xml directory (if it's
> > that what you meant (neither a .p2)).
> > 
> > I did not manage to execute above command through CLI, what would I
> > need to do exactly? But I get the expected result 
> > when executing in the Linux shell.
> > Additionally, for the Maven preferences,  I can't find anything
> > "slingy" at all, including under archetypes, don't 
> > know if that's okay? The path in the user settings to $HOME/.m2
> > seems okay.
> > 
> > Thanks,
> > Juerg
> > 
> Resolved: I completely re-installed eclipse and the Sling plugin, and
> it's working miraculously. Sometimes the last exit 
> works.
> Thanks to Robert anyway!

Happy to hear that!

Have fun :-)

Robert

Reply via email to