質問

したいと思っていmavenのeclipseプラグインを再生するclasspathでも構築運営しかったので、次の設定:

    <!--
        Generate a new .classpath each time the build is run, but don't try
        to download sources or javadocs
    -->
    <profile>
        <id>elipse-update</id>
        <activation>
            <file>
                <exists>.classpath</exists>
            </file>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <artifactId>maven-eclipse-plugin</artifactId>
                    <executions>
                        <execution>
                            <phase>generate-sources</phase>
                            <goals>
                                <goal>eclipse</goal>
                            </goals>
                            <configuration>
                                <downloadSources>false</downloadSources>
                                <downloadJavadocs>false</downloadJavadocs>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </profile>

何らかの理由にすることにより、mavenプラグイン桟橋がとClassNotFoundException誤差ので文句をつな春の授業は存在しない場合には、代わりにもちろん、これまでやってきたことを出になっているmavenのeclipseプラグイン設置。以下に例を示しますので何か:

$ mvn jetty:run
[INFO] Scanning for projects...
...
[INFO] Starting jetty 6.1.22 ...
2010-02-11 20:53:08.984:INFO::jetty-6.1.22
2010-02-11 20:53:09.109:WARN::Could not instantiate listener org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
        at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

もちろん、を削除するとeclipseプラグイン、ま桟橋としての期待:

$ mvn jetty:run
[INFO] Scanning for projects...
...
Feb 11, 2010 8:55:28 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 1672 ms
2010-02-11 20:55:28.687:INFO::Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 5 seconds.

もちろん:

  • あいする場合は、プロファイル。クラスパスがあります。このようカウンター-直感的で、いかなる理由私は別のプロフィール起動時ます。クラスパスが未指定の場合にはeclipseのプラグインのオプションをダウンロードソースコードとjavadocs設定します。いることができ、各構築、作成した別個のプラグインconfigをする際のクラスパスがあります。
  • あり、単なる作物件の価値オプションにい変更の代わりに指定のプラグインのconfigます。その場合、セットするだけで、eclipse.downloadSources性をtrueまたはfalseによっては、クラスパスとして単一のプラグイン定義の構築です。

任意に相談すればいいのだろうか。これは不思議な問題です。

おかげさ LES

役に立ちましたか?

解決

疑いのMaven Eclipseのプラグイン 混乱 いくつかのクラスパスwoodoに影響する桟橋プラグインです。

しかし、正直こんなに高くはないけれど、どうなるかという点に集中して使用のEclipseプラグインは、少なくとも自分の知識です。ほとんどの人からその構築と実行でき、POM変更及びこの一般的な毎に作れます。さらに、触れると .classpath 混乱させEclipseばさなければならないと分かってい力クリーンの再構築のプロジェクトはかなり面倒。

なので、すみません、このように紹介しますannoyancesりません。滞在ビザを取得することができ開 Jira問題 ものです。

他のヒント

までにない走らせたいというのmaven-eclipseプラグイン毎の構築がありますクラスパスです。りませんが何なのclasspathsけがなどで使用されます。の提出がありますだけ実行eclipse:日食(またはその他る。

なぜい再走るのですか?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top